TS_PACKET_INSERT(1)
π NAME π
ts_packet_insert β bestie, this one inserts TS packets into a Transport Stream. That's the whole vibe. No cap.
β¨ SYNOPSIS β¨
ts_packet_insert [-err stdout] [-err stderr] [-p positions]
[-pid pid_no] [-s -string] [-o out_file] in_file
π¦ DESCRIPTION π¦
Okay so real talk: ts_packet_insert drops TS packets into a Transport Stream, and it puts them exactly wherever you tell it to. You're the main character, you pick the spots. π
πΈ Input πΈ
in_fileβ an H.222 Transport Stream file. That's your source, your starting point, your origin story. Hand it over. π«Ά
π Switches π
-err stdoutβ sends error messages to standard output. This is literally the default, so if you do nothing, this is what you get. β¨-err stderrβ sends error messages to standard error instead. This is the Unix traditional way, iykyk. π-p positionsβ this is a colon (:) delimited string of numbers, and every number sits between0and1. Each one says how far through the file to put a TS packet. So like,-p 0.1:0.4:0.7:0.9will insert 4 packets at 10%, 40%, 70% and 90% through the file. Four positions, four packets, math is mathing. π₯-pid pid_noβ the inserted packets get the PID you specify. [default =0x68] π-s stringβ the inserted packets carrystringas their payload. [default ='Inserted packet'] π-o out_fileβ the brand new TS file gets written out under the name you give it. [default =out.ts] π
β EXAMPLES β
Like, here's the moment you've been waiting for:
ts_packet_insert -p 0.3:0.6 -o out.ts -pid 89 -s "AD=start" in.ts
π SEE ALSO π
π quick vibe check: that SYNOPSIS line says-s -string, not-s string. Not me trying to fix it, I'm just saying β type it exactly like it's written, bestie. π
Okay that's the whole page, mwah π β this one's from the Debian crew, dated October 28, 2015, and it lives in the General Commands Manual section. Slay. πβ¨
π¦ 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