TS2ES(1)
π ts2es β the girl who yanks one stream out of the chaos π
okay so bestie, welcome to ts2es, a lil tool from the General Commands Manual section. its whole personality? extract a program stream from a Transport Stream. that's it. that's the job. she's a specialist, she's focused, she's not doing extra credit. π
β¨ NAME β¨
ts2es β extract a program stream from a Transport Stream π
β¨ SYNOPSIS β¨
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
like. look at her. one command, so many little dials. iconic honestly. π¦
β¨ DESCRIPTION β¨
so the whole point: she extracts a single (elementary) program stream from a Transport Stream (or Program Stream). one stream. in, out. she's not messy about it. π
πΈ Files πΈ
in_fileβ this is an H.222 Transport Stream file β¨ (but peek at-stdinand-pesfirst, they change the vibe a little)out_fileβ this is a single elementary stream file π (but again,-stdoutexists and she's ready)
πΈ Which stream to extract: πΈ
this is the part where you tell her who you want. pick your main character. π
-pid pidβ output data for the stream with the givenpid. and btw, use-pid 0xpidto specify a hex value π-videoβ output data for the (first) video stream named in the (first) PMT. π₯ and guess what β this is the default. she assumes video unless you say otherwise, no cap.-audioβ output data for the (first) audio stream named in the (first) PMT π§
fr fr, note the double "(first)" energy on both of those. first PMT, first stream. she's not hunting through every PMT for you, bestie. π«Ά
πΈ Switches πΈ
-err stdoutβ write error messages to standard output (this is the default)-err stderrβ write error messages to standard error (the Unix traditional choice, very old-money π )-stdinβ input from standard input, instead of a file π-v,-verboseβ output extra information about packets. she gets chatty. we love a talkative queen. π-q,-quietβ only output error messages. she goes minimal. silent but deadly. π-max max_pkts,-m max_pktsβ maximum number of TS packets to read. a lil limit, a lil self-control. π-pes,-psβ use the PES interface to read ES units from the input file. this allows PS data to be read. and listen β there is no point in using this for TS data. like, none. don't. π
π¨ WAIT. important:-pes/-psdoes not support-pid,-stdinor-stdout. periodt. don't try it, she will not be doing that. π€
β¨ SEE ALSO β¨
esdots(1),π
this page is brought to you by Debian, dated October 28, 2015 π that's the source, that's the version, that's the whole vibe check. mwah. π«Άβ¨π
π¦ where this page comes from
- debian bookworm: tstools 1.13~git20151030-6 Β· MPL-1.1
- debian trixie: tstools 1.13~git20151030-6 Β· MPL-1.1
- ubuntu jammy: tstools 1.13~git20151030-5 Β· MPL-1.1
- ubuntu noble: tstools 1.13~git20151030-6 Β· MPL-1.1
- ubuntu questing: tstools 1.13~git20151030-7
- ubuntu resolute: tstools 1.13~git20151030-7build1 Β· MPL-1.1
- ubuntu stonking: tstools 1.13~git20151030-8 Β· MPL-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms