Problem with videorate

Tim Müller tim at centricular.com
Tue Dec 3 01:25:09 PST 2013


On Tue, 2013-12-03 at 09:26 +0100, Frédéric Sallé wrote:

Hi Frédéric,

> On average it's ok, I have 20 images per seconds ...
> HOWEVER, you can see  there is a burst of 10 images in ~50ms after
> each input then nothing for~450ms
> 
> It was clearly not the expected behavior for videorate...
> Is there a way to make it smooth or it is a bug ??
> 
> (I do not mention that the command above freeze my computer (it
> happens 3 times already) after a while as I didn't try to reproduce
> that issue for now).

Just guessing here of course, but what might happen is that the video
encoder blocks for too long, which means that packets are not read from
the udp buffer, so some new packets will get dropped. You can fix that
by inserting a

  queue max-size-time=0 max-size-bytes=0 max-size-buffers=0

after udpsrc (for example).

Also, if you want to debug timestamps generated after videorate or the
encoder, just use  fakesink silent=false and pass -v to gst-launch-1.0.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com






More information about the gstreamer-devel mailing list