Lots of frames buffered when pausing rtspsrc pipeline

Sergio Basurco sergio.b at coherentsynchro.com
Mon Dec 22 06:33:20 PST 2014


When I pause a live rtspsrc stream images are queued up to a minute. I 
want to drop all frames when the pipeline is paused.

I'm using a common live rtspsrc pipeline inside my application:

rtspsrc location=rtsp:// latency=100 ! 
rtph264depay ! h264parse ! avdec_h264 ! autovideoconvert ! autovideosink

On demand, I pause (GST_STATE_PAUSED) the pipeline for some time, after 
which I resume the pipeline by setting it to GST_STATE_PLAYING. Then I 
get playback of the frames captured while paused.

Setting the drop-on-latency to TRUE works, but for some cameras I don't 
want to do that, because I don't control how much latency will be needed 
to decode properly.

Any advice?

Sergio Basurco,
Coherent Synchro

More information about the gstreamer-devel mailing list