How to record multiple UDP streams as one MPTS file

About encoding, codec settings, muxers and filter usage
strobile
New Cone
New Cone
Posts: 5
Joined: 26 Apr 2021 21:03

How to record multiple UDP streams as one MPTS file

Postby strobile » 05 May 2021 20:17

Hello,

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?

strobile
New Cone
New Cone
Posts: 5
Joined: 26 Apr 2021 21:03

Re: How to record multiple UDP streams as one MPTS file

Postby strobile » 07 May 2021 06:37

Please?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to record multiple UDP streams as one MPTS file

Postby Rémi Denis-Courmont » 07 May 2021 20:13

Your command line is specifying five consecutive streams. Press "next" or equivalent to get to the next one.

It is not generally possible to record multiple streams as a single TS.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests