ps2ts(1) | General Commands Manual | ps2ts(1) |
ps2ts
— Extract a
program stream from a Transport Stream
ps2ts |
-pid pid |
-video | -audio
[-err stdout ] [-err
stderr ] [-verbose |
-v ] [-quiet |
-q ] [-max
max_pkts | -m
max_pkts] [-dvd |
-notdvd | -nodvd ]
[-vstream vstream_no]
[-astream astream_no]
[-ac3stream ac3stream_no]
[-host host[:port]]
[-vpid vpid_no]
[-apid apid_no]
[-noaudio ] [-pmt
pmt_pid_no] [-prepeat
pat_freq] [-pad
pad_pkts] [-h264 |
-avc | -h262 |
-mp42 | -vtype
video_type] [-dolby
dvd | atsc ]
in_file | -stdin
out_file | -stdout |
Convert an H.222 program stream to H.222 transport stream.
This program does not make use of any Program Stream Map packets in the data (mainly because I have yet to see data with any). This means that the program has to determine the stream type of the data based on the first few ES units.
This program does not output more than one video and one audio stream. If the program stream data contains more than one of each, the first will be used, and the others ignored (with a message indicating this).
It is assumed that the video stream will contain DTS values in its PES packets at reasonable intervals, which can be used as PCR values in the transport stream, and thus the video stream's PID can be used as the PCR PID in the transport stream.
-stdin
-dvd
-notdvd
,
-nodvd
-vstream
vstream_no-astream
astream_no-ac3stream
astream_no-err
stdout
-err
stderr
-host
host[:Arport]-vpid
vpid_no-apid
apid_no-noaudio
-pmt
pmt_pid_no-prepeat
pat_freq-pad
pad_pktsWhen the TS data is being output, it is flagged to indicate whether it conforms to H.262, H.264, etc. It is important to get this right, as it will affect interpretation of the TS data.
If input is from a file, then the program will look at the start of the file to determine if the stream is H.264 or H.262 data. This process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches.
If input is from standard input (via -stdin), then it is not possible for the program to make its own decision on the input stream type. Instead, it defaults to H.262, and relies on the user indicating if this is wrong.
-h264
,
-avc
-h262
-mp42
-vtype
video_typeOctober 28, 2015 | Debian |