Reconnecting to a rtsp stream after EOS

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

Reconnecting to a rtsp stream after EOS

Andreas Lubensky
Hello,

I am using an uridecobin to decode all kinds of videos, including rtsp
streams.
Usually I want videos to loop seamlessly, so I seek the video with
GST_SEEK_FLAG_SEGMANT to get a GST_MESSAGE_SEGMENT_DONE
and seek back to the beginning.
I use vlc to broadcast the rtsp stream and there looping basically means that
the stream is closed and restarted again. That gives me a
GST_MESSAGE_EOS. Unfortunately just seeking to the beginning or setting
the pipeline state to GST_STATE_NULL and GST_STATE_PLAYING to
reconnect the stream has no effect.
I guess I can tear down and build up the whole pipeline again, but is there a
cleaner way?

best regards,
Andreas Lubensky

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Reconnecting to a rtsp stream after EOS

Nathanael D. Noblet
On 01/27/2011 07:28 AM, Andreas Lubensky wrote:

> Hello,
>
> I am using an uridecobin to decode all kinds of videos, including rtsp
> streams.
> Usually I want videos to loop seamlessly, so I seek the video with
> GST_SEEK_FLAG_SEGMANT to get a GST_MESSAGE_SEGMENT_DONE
> and seek back to the beginning.
> I use vlc to broadcast the rtsp stream and there looping basically means that
> the stream is closed and restarted again. That gives me a
> GST_MESSAGE_EOS. Unfortunately just seeking to the beginning or setting
> the pipeline state to GST_STATE_NULL and GST_STATE_PLAYING to
> reconnect the stream has no effect.

Don't set state to NULL, AFAIK that removes all settings (like the uri
etc). Have you tried setting it to READY and then PLAYING?

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel