I'm trying to record 5 UDP transport streams as one multi program transport stream (MPTS) file but when I play the recording, it flickers and changes program IDs as if all streams where recorded as one program.
In order to form the UDP streams, I use the MPTS file in the link:https://tsduck.io/streams/netherlands-d ... 0-06-21.ts.
I use the following commands to stream the selected programs from the input file as UDP:
Code: Select all
vlc %inputfile% --program=710 --no-sout-all --loop --sout="#es{access=udp,dst=localhost:1721,mux=ts{pid-video=800,pid-audio=801,pid-pmt=802,tsid=500}}"
vlc %inputfile% --program=720 --no-sout-all --loop --sout="#es{access=udp,dst=localhost:1731,mux=ts{pid-video=810,pid-audio=811,pid-pmt=812,tsid=500}}"
vlc %inputfile% --program=730 --no-sout-all --loop --sout="#es{access=udp,dst=localhost:1741,mux=ts{pid-video=900,pid-audio=911,pid-pmt=912,tsid=500}}"
vlc %inputfile% --program=740 --no-sout-all --loop --sout="#es{access=udp,dst=localhost:1751,mux=ts{pid-video=1000,pid-audio=1001,pid-pmt=1002,tsid=500}}"
vlc %inputfile% --program=750 --no-sout-all --loop --sout="#es{access=udp,dst=localhost:1761,mux=ts{pid-video=1100,pid-audio=1101,pid-pmt=1102,tsid=500}}"
And I use the following command to record them to MPTS:
Code: Select all
start vlc udp://@:1721 udp://@:1731 udp://@:1741 udp://@:1751 udp://@:1761 --sout="#gather:std{access=file,mux=ts,dst=%outputfile%}" --sout-keep
What do I do wrong?