rtspsrc: Attempting to reconnect to IPCam

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

rtspsrc: Attempting to reconnect to IPCam

jlancaster
Using rtspsrc, I stream from an IP cam to my app.  Sometimes the camera will drop off-line for any number of reasons for what may be hours. I would like my app to continue to attempt to reconnect to the camera until it comes back on line and ready to stream video again.

What is the best way to do that?

Is there a setting in rtspsrc that I can use to attempt a reconnection?

Do I need to tear down and set up my pipeline again every so often?
Jeff Lancaster
Reply | Threaded
Open this post in threaded view
|

Re: rtspsrc: Attempting to reconnect to IPCam

Federico Zamperini
> Using rtspsrc, I stream from an IP cam to my app.  Sometimes the camera will
> drop off-line for any number of reasons for what may be hours. I would like
> my app to continue to attempt to reconnect to the camera until it comes back
> on line and ready to stream video again.
>
> What is the best way to do that?
>
> Is there a setting in rtspsrc that I can use to attempt a reconnection?

I searched the documentation but didn't find anything; I guess that's
because this is an app task, not a rtspsrc one.

> Do I need to tear down and set up my pipeline again every so often?

I just stopped it (set it's status to stopped); don't know waht you mean
by "tear down".
Then a thread periodically tries to restart it, monitoring the bus for
error messages or chenaged status (success).
Cheers

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

Re: rtspsrc: Attempting to reconnect to IPCam

Marc Leeman
> I searched the documentation but didn't find anything; I guess that's
> because this is an app task, not a rtspsrc one.
>
>
>> Do I need to tear down and set up my pipeline again every so often?
>
>
> I just stopped it (set it's status to stopped); don't know waht you mean by
> "tear down".
> Then a thread periodically tries to restart it, monitoring the bus for error
> messages or chenaged status (success).

What is stopping at your camera?

If the entire RTSP control stops; your pipeline will exit; and a
simple 'while' would do it around your app; or does your camera stop
streaming while keeping the RTSP control line open?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel