DOKK / manpages / debian 12 / tstools / ts2es.1.en
TS2ES(1) General Commands Manual TS2ES(1)

ts2esExtract a program stream from a Transport Stream

ts2es -pid pid | -video | -audio [-err stdout] [-err stderr] [-verbose | -v] [-quiet | -q] [-max max_pkts | -m max_pkts] [-pes | -ps] in_file | -stdin out_file | -stdout

Extract a single (elementary) program stream from a Transport Stream (or Program Stream).

in_file
is an H.222 Transport Stream file (but see -stdin and -pes)
out_file
is a single elementary stream file (but see -stdout)

pid
Output data for the stream with the given pid. Use -pid 0xpid to specify a hex value
Output data for the (first) video stream named in the (first) PMT. This is the default.
Output data for the (first) audio stream named in the (first) PMT

Write error messages to standard output (the default)
Write error messages to standard error (Unix traditional)
Input from standard input, instead of a file
, -verbose
Output extra information about packets
, -quiet
Only output error messages
max_pkts, -m max_pkts
Maximum number of TS packets to read.
, -ps
Use the PES interface to read ES units from the input file. This allows PS data to be read (there is no point in using this for TS data). Does not support -pid, -stdin or -stdout.

esdots(1),

October 28, 2015 Debian