how to merge/mux 2 mpegts programs

About encoding, codec settings, muxers and filter usage
przemo1983
New Cone
New Cone
Posts: 3
Joined: 28 Jul 2020 11:39

how to merge/mux 2 mpegts programs

Postby przemo1983 » 28 Jul 2020 11:42

I am receiving 2 multicast streams each with 1 service (MPTS TS).
I would like to merge those 2 streams info 1 MPTS stream with 2 services. Is it possible?
I am trying following command but with no luck so far:
vlc -Idummy udp://@233.0.0.1:4000 --program=1 udp://@233.0.0.1:4001 --program=2 --sout "#gather:std{access=udp,mux=ts,dst=239.4.4.4:4444}" --sout-all

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

Re: how to merge/mux 2 mpegts programs

Postby Rémi Denis-Courmont » 28 Jul 2020 17:11

If the two programs are in synch, notably if they originally come from the same mux, then you can do it with secondary sources. Otherwise, no.
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 11 guests