Mux pipeline problem

classic Classic list List threaded Threaded
3 messages Options
JPM
Reply | Threaded
Open this post in threaded view
|

Mux pipeline problem

JPM
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 ?.

Regards



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mux pipeline problem

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
JPM
Reply | Threaded
Open this post in threaded view
|

Re: Mux pipeline problem

JPM
audiomixer did the trick



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel