AW: How to handle multiple blocking probe before a muxer without freezing the pipeline?
keith.thornton at zeiss.com
Wed Jun 24 04:21:00 UTC 2020
my solution is not simple, I have an outputselectror followed by a fakesink and the muxer. I set the active output to fakesink and switch it to the muxer when needed. On top of that you need a pad-probe to wait for a keyframe before switching. I'm sure someone else can suggest an easier way.
On top of that, you still need to set max-threshold-time to 10 seconds and when the event arrives set it to 0.
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von Yuniesky Vasconcelo
Gesendet: Dienstag, 23. Juni 2020 20:57
An: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Betreff: Re: How to handle multiple blocking probe before a muxer without freezing the pipeline?
I tried what you told me but it still doesn't work.
The pipe works well when there is only one transmission present, video or audio.
The problem arises when I try to lock on both pads.
I attach the image of the pipeline.
El mar., 23 jun. 2020 a las 3:15, Thornton, Keith (<keith.thornton at zeiss.com<mailto:keith.thornton at zeiss.com>>) escribió:
if you want 10 seconds of video max-size alone won't help you, you also need to set min-threshold-time. Just setting max-size can also mean that the queue can be empty
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org<mailto:gstreamer-devel-bounces at lists.freedesktop.org>> Im Auftrag von Yuniesky Vasconcelo
Gesendet: Dienstag, 23. Juni 2020 05:08
An: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>>
Betreff: How to handle multiple blocking probe before a muxer without freezing the pipeline?
I am trying to save video and audio when an event occurs, but with 10 seconds before the event. So, I put a queue with max-size-time = 10 seconds and leaking = 2 before the audio and another one for the video.
Problems arise when I add a blocking probe to the queue src pad, the pipeline freezes after one of the probe blocks. Perhaps this occurred because the muxer is waiting for the buffer that was blocked. How can I handle this situation?
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel