valve and mp4mux break a pipeline flow

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

valve and mp4mux break a pipeline flow

Grégoire Gentil
I have the following video pipeline:

filesrc ! qtdemux name=demux ! queue ! h264parse ! valve drop=false !
mp4mux name=mux ! filesink

If I turn true/false the drop property of the valve element, the
pipeline continues running and the video input "advances" as it should
be. So far, so good.


If I add audio with a fakesink to the pipeline:

filesrc ! qtdemux name=demux ! queue ! h264parse ! valve drop=false !
mp4mux name=mux ! filesink demux. ! aacparse ! valve drop=false ! fakesink

everything works fine the same way as above.


But if I link audio to mp4mux:

filesrc ! qtdemux name=demux ! queue ! h264parse ! valve drop=false !
mp4mux name=mux ! filesink demux. ! aacparse ! valve drop=false ! mux.

when I turn true both valves at the same time, the pipeline gets stuck.
The buffers are not flowing anymore.


Any idea why and how I could fix this problem?

Grégoire

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

Re: valve and mp4mux break a pipeline flow

killerrats

try putting a valve right after the filesrc

filesrc ! valve ! qtdemux name=demux ! queue ! h264parse ! mp4mux name=mux ! filesink demux. ! aacparse ! fakesink

so when you add the new branch to the demux you can open and close the valve.

------------------------------
Gstreamer 1.14.4
------------------------------
Windows


Sent from the GStreamer-devel mailing list archive at Nabble.com.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.14.4
------------------------------
Windows