[FFmpeg-devel] [PATCH 6/6] Implement v4l2 input size autodetection.

Luca Abeni lucabe72
Tue Apr 27 10:59:30 CEST 2010


Luca Abeni wrote:
> Stefano Sabatini wrote:
> [...]
>> BTW, I'm noticing that:
>> ffplay -f video4linux2 /dev/video0
>>
>> starts with a smooth playback, then the framerate seems to linearly
>> decrease and becomes very slow just after few seconds.
> 
> After a first look, the problem seems to be that ffplay does not
> release all the frames (it releases some of them, but sometimes
> some frame is not freed... After few seconds, all the v4l2 buffers
> are busy and not freed, and VIDIOC_DQBUF fails).

Update: setting "framedrop" to 0 in ffplay.c fixes the problem (BTW,
how can I change the framedrop value using the command line? "-framedrop"
does not seem to allow it).

This is not a solution to the problem, but points to the faulty code
(the frame dropping code in ffplay.c).


				Luca



More information about the ffmpeg-devel mailing list