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 -stdin and -pes first, they change the vibe a little)
  • out_file β€” this is a single elementary stream file 🌈 (but again, -stdout exists 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 given pid. and btw, use -pid 0xpid to 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 / -ps does not support -pid, -stdin or -stdout. periodt. don't try it, she will not be doing that. 😀

✨ SEE ALSO ✨


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. πŸ«Άβœ¨πŸŽ€