AW: How to handle multiple blocking probe before a muxer without freezing the pipeline?

Thornton, Keith keith.thornton at zeiss.com
Wed Jun 24 04:21:00 UTC 2020


Hi,
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.
Gruesse

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?

Thank you.

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ó:
Hi,
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
Gruesse

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?

Hi,
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>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=02%7C01%7C%7C9962d2bf99ef47804ed908d817b01fab%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637285392499678606&sdata=AeSw623raP22EZumPDAeQvcqHf1hWCqoN9an1VLPVMk%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200624/cda94b26/attachment.htm>


More information about the gstreamer-devel mailing list