DOKK / manpages / debian 11 / tstools / es2ts.1.en
ES2TS(1) General Commands Manual ES2TS(1)

es2tsConvert an ES video stream to H.222 TS

es2ts [-err stdout] [-err stderr] [-verbose | -v] [-quiet | -q] [-pid pid_no] [-pmt pmt_pid_no] [-host host[:port]] [-max max_units | -m max_units] in_file | -stdin out_file | [-stdout]

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.

in_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)

Write error messages to standard output (the default)
Write error messages to standard error (Unix traditional)
, -verbose
Output summary information about each ES packet as it is read
, -quiet
Only output error messages
pid_no
pid_no is the video PID to use for the data. Use '-pid 0x<pid>' to specify a hex value. [default = 0x68]
pmt_pid_no
pmt_pid_no is the PMT PID to use. Use '-pmt 0x<pid>' to specify a hex value. [default = 0x66]
max_units, -m max_units
Maximum number of ES data units to read
Input from standard input, instead of a file
Write output to <stdout>, instead of a named file Forces -quiet and -err stderr.
host[: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.

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.

, -avc
Force the program to treat the input as MPEG-4/AVC.
Force the program to treat the input as MPEG-2.
Force the program to treat the input as AVS.

esdots(1),

For the moment, the video input must be H.264 or AVS, and the audio input ADTS, AC-3 ATSC or MPEG layer 2. Also, the audio is assumed to have a constant number of samples per frame.

October 28, 2015 Debian