Convert an elementary video stream to H.222 transport stream. Supports input streams conforming to
MPEG-2 (H.262), MPEG-4/AVC (H.264) and AVS. Also supports MPEG-1 input streams, insofar as MPEG-2 is
backwards compatible with MPEG-1.
Note that this program works by reading and packaging the elementary stream packages directly - it does
not parse them as H.262 or H.264 data.
Filesin_file
is a file containing the Elementary Stream data (but see -stdin below)
out_file
is an H.222 Transport Stream file (but see -stdout and -host below)
Switches-errstdout
Write error messages to standard output (the default)
-errstderr
Write error messages to standard error (Unix traditional)
-v, -verbose
Output summary information about each ES packet as it is read
-q, -quiet
Only output error messages
-pidpid_nopid_no is the video PID to use for the data. Use '-pid 0x<pid>' to specify a hex value.
[default = 0x68]
-pmtpmt_pid_nopmt_pid_no is the PMT PID to use. Use '-pmt 0x<pid>' to specify a hex value. [default = 0x66]
-maxmax_units, -mmax_units
Maximum number of ES data units to read
-stdin Input from standard input, instead of a file
-stdout
Write output to <stdout>, instead of a named file Forces -quiet and -err stderr.
-hosthost[:port]
Writes output (over TCP/IP) to the named host, instead of to a named file. If port is not
specified, it defaults to 88.
Streamtype
When the TS data is being output, it is flagged to indicate whether it conforms to H.262, H.264 or AVS.
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, H.262 or AVS. 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
Force the program to treat the input as MPEG-4/AVC.
-h262 Force the program to treat the input as MPEG-2.
-avs Force the program to treat the input as AVS.