(Re)starting rtspsrc when the source is offline

David Röthlisberger david at rothlis.net
Fri Jan 18 03:38:43 PST 2013


On 18 Jan 2013, at 11:22, Paddy wrote:
> Cheers David,
> 
> I'm liking the elegant solution of queue buffer monitoring - has it
> introduced any AV sync issues ?
> 
> My first guess at a solution for this is to attach a buffer probe on the
> srcpad & timeout when the probe handler hasn't been called for a short while
> - where I unlink & remove the rtspsrc. I'm scratching my head as to how best
> determine that the camera has come on-line.
> 
> The queue buffer monitoring solution sounds like it will be far less
> resource hungry than mine - but I have concerns about AV sync as I've got 2
> seperate audio & video rtspsrc's.


My application only has a video stream, no audio. But you're right, it
will be better to use a probe instead of listening to the queue's bus
messages. The only reason I haven't done that yet in my codebase is
lazyness. :-)



More information about the gstreamer-devel mailing list