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.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel