DOKK / manpages / debian 12 / tstools / ts_packet_insert.1.en
TS_PACKET_INSERT(1) General Commands Manual TS_PACKET_INSERT(1)

ts_packet_insertInsert TS packets into a Transport Stream

ts_packet_insert [-err stdout] [-err stderr] [-p positions] [-pid pid_no] [-s -string] [-o out_file] in_file

Insert TS packets into a Transport Stream at positions specified by the user.

in_file
An H.222 Transport Stream file.

Write error messages to standard output (the default)
Write error messages to standard error (Unix traditional)
positions
This a a colon (':') delimited string of numbers between 0 and 1, representing how far through to put each TS packet. E.g., -p 0.1:0.4:0.7:0.9 will insert 4 packets at 10%, 40%, 70% and 90% through the file.
pid_no
The inserted packets will have the PID specified. [default = 0x68]
string
The inserted packets will contain string as their payload. [default = 'Inserted packet']
out_file
The new TS file will be written out with the given name [default = out.ts]

ts_packet_insert -p 0.3:0.6 -o out.ts -pid 89 -s "AD=start" in.ts

esdots(1),

October 28, 2015 Debian