ts2es1
Extract a program stream from a transport stream
Usage
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}
Overview
Extract a single (elementary) program stream from a Transport Stream (or Program Stream).
Files
- 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)
Which stream to extract:
-
-pid pid -
Output data for the stream with the given pid. Use
-pid0xpid to specify a hex value -
-video -
Output data for the (first) video stream named in the (first) PMT. This is the default.
-
-audio -
Output data for the (first) audio stream named in the (first) PMT
Switches
-
-err stdout -
Write error messages to standard output (the default)
-
-err stderr -
Write error messages to standard error (Unix traditional)
-
-stdin -
Input from standard input, instead of a file
-
-v, -verbose -
Output extra information about packets
-
-q, -quiet -
Only output error messages
-
-max max_pkts, -m max_pkts -
Maximum number of TS packets to read.
-
-pes, -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,-stdinor-stdout.
Releases
9 releases since Debian 3.0 (Woody); the text changed 2 times.
-audio since Debian 6.0 (Squeeze);
-err since Debian 11 (Bullseye);
-m since Debian 6.0 (Squeeze);
-max since Debian 6.0 (Squeeze);
-pes since Debian 6.0 (Squeeze);
-pid since Debian 6.0 (Squeeze);
-ps since Debian 6.0 (Squeeze);
-q since Debian 6.0 (Squeeze);
-quiet since Debian 6.0 (Squeeze);
-stdin since Debian 6.0 (Squeeze);
-v since Debian 6.0 (Squeeze);
-verbose since Debian 6.0 (Squeeze);
-video since Debian 6.0 (Squeeze).
-stdout until Debian 10 (Buster).