glimagesink FPS client-redraw

Arnaud Loonstra arnaud at sphaero.org
Mon Nov 17 06:20:30 PST 2014


On 11/17/2014 02:51 PM, Arnaud Loonstra wrote:
> On 11/16/2014 04:24 PM, Nicolas Dufresne wrote:
>>
>> Le 2014-11-15 17:44, Arnaud Loonstra a écrit :
>>> I'm testing some client-redraw setups similar to the provided cube
>>> example:
>>> http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/gl/generic/cube
>>>
>>>
>>>
>>> When I use a videotestsrc and the glimagesink pipeline I'm getting
>>> around 60 client-redraws per second.
>>> If I change that into a v4l2src for example it drops to around 5 calls
>>> per second.
>> I don't know exactly what is going on, though you need to be aware that
>> to make a comparison between videotestsrc and v4l2src, you should use
>> is-live=1 on videotestsrc element. A final note that you should test
>> framerate coming out of your v4l2src, most will do much less then
>> configured framerate in low light. It would be some other problem of
>> course.
>>
>> Nicolas
>
> 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?

Rg,

Arnaud
-- 
w: http://www.sphaero.org
t: http://twitter.com/sphaero
g: http://github.com/sphaero
i: freenode: sphaero_z25


More information about the gstreamer-devel mailing list