glimagesink FPS client-redraw

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Nov 17 06:30:37 PST 2014


Le 2014-11-17 09:20, Arnaud Loonstra a écrit :
>> Thanks for the pointer, setting is-live does make a difference. The draw
>> rate drops to 30 draws per second. Still much more than the 5fps from
>> v4l2src. Any pointers to how I can get the fps from the v4l2src?
>>
>> Rg,
>>
>> Arnaud
>
> I've managed to increase the calls per sec to around 10-20 per second 
> by using a queue in between.
>
> FPS: 7.74201574815649
> FPS: 14.326277414937632
> FPS: 17.10184667393395
> FPS: 14.838574975039403
> FPS: 10.5936354309953
> FPS: 14.475639501481396
> FPS: 17.88552981864034
> FPS: 19.91333846930036
>
> From the debug I get that the v4l2src is giving 30 fps:
>
> 0:00:00.618567472 16197      0x2387940 INFO GST_EVENT 
> gstevent.c:678:gst_event_new_caps: creating caps event video/x-raw, 
> format=(string)YUY2, width=(int)640, height=(int)480, 
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, 
> framerate=(fraction)30/1
> 0:00:00.618829241 16197      0x2387940 INFO basetransform 
> gstbasetransform.c:1359:gst_base_transform_setcaps:<capsfilter0> reuse 
> caps
> 0:00:00.618866606 16197      0x2387940 INFO GST_EVENT 
> gstevent.c:678:gst_event_new_caps: creating caps event video/x-raw, 
> format=(string)YUY2, width=(int)640, height=(int)480, 
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, 
> framerate=(fraction)30/1
>
> Could it be color conversion? 

20 fps seems rather normal if this is a cheap webcam, 7 is way too low. 
Don't you get traces about dropped frames from the video sink ? What 
rate do you get if you don't synchronize to the clock (sync=false) ? 
Also, what camera, GST version, kernel version is this ? I have a camera 
here on my laptop that outputs broken TS, hence would give me very bad 
results. In git master I've currently experimenting with code to ignore 
HW TS if they are clearly broken.

Nicolas



More information about the gstreamer-devel mailing list