how to detect stop of RTSP streaming at source
Nicolas Dufresne
nicolas at ndufresne.ca
Tue Apr 18 23:32:14 UTC 2023
Hi,
Le mar. 18 avr. 2023, 10 h 45, cfd new via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> a écrit :
> Thank you for your reply, Will. It is a good idea. It would be nice to
> have an element or event to handle this scenario.
>
Interesting project. I haven't used fallback sex either, for sure you can
insert an IDR anywhere you want. So if you have a 5s prerecorded sequence,
you can always use the and switch to your pre-recorded sequence until the
rtsp part is restored. You can probably do that yourself too. The least
painful method imho would be to use seperate pipeline. One for rtsp, one
for file fallack, and one for the recording. Then with appsrc (2) and
appsink (recording) you can multiplex in your app.
> Joe
>
> On Tuesday, April 18, 2023, 07:59:33 a.m. EDT, wm-gstreamer.switchd.net
> via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:
>
>
> Hi Joe,
>
>
> Not a direct answer to your question, but an idea for a workaround I used
> that may help you:
>
> I used identity with a hand-off function that simply counts updates, then
> use a periodic timer to ensure updates keep coming through.
>
> When no buffers have come through, time to terminate!
>
>
> In my use-case I placed this after the mp4mux as it was refusing to pass
> data on after some unusual data was received, but it's a flexible approach.
>
>
> I'd not be surprised if there is a standard pipeline element that does
> something similar...
>
>
> Will.
>
>
> On 17/04/2023 19:01, cfd new via gstreamer-devel wrote:
>
> how does the receiver(client side) know quickly if the camera is unplugged
> or simply stops for whatever reasons.
> I tried to check EOS or ERROR messages from the bus. However, it will take
> more than 30s to see these messages
> after the camera is unplugged. This is kind of too long.
>
> Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230418/60324b1c/attachment.htm>
More information about the gstreamer-devel
mailing list