Mux pipeline problem

Nicolas Dufresne nicolas at ndufresne.ca
Fri May 10 13:57:44 UTC 2019


Le vendredi 10 mai 2019 à 05:10 -0500, JPM a écrit :
> Hi,
> 
> The follow pipeline mux two UDP streams (video from a camera and audio from
> a microphone) to a mkv file.
> 
> gst-launch-1.0 -q udpsrc multicast-group=224.1.1.1 auto-multicast=true
> port=6000 ! jpegparse ! \
> queue ! mux. udpsrc multicast-group=224.1.1.2 auto-multicast=true port=6000
> ! \
> audio/x-raw,format=S16LE,rate=48000,channels=1 ! volume volume=10 ! queue !
> \
> mux. matroskamux streamable=true name=mux ! filesink location=test.mkv
> 
> Everything is OK but when the server does not send audio the video disappear
> in mkv file.
> 
> Any alternative pipeline to fix this problem ?.

Maybe just add an audiomixer. By default audiomixer will start
producing data from time zero, so will ensure there is no gap, but also
in live mode, it will use timers to generate data when there is nothing
coming in (data being silence). That being said, make sure to configure
enough latency, otherwise you'll endup with a very clippy audio.

> 
> Regards
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list