[FFmpeg-devel] [PATCH] V4L2 wait for new frames

Samuli Valo samuli.valo at picturall.com
Wed Aug 10 13:24:55 CEST 2011


Hi,

Current v4l2 implementation doesn't wait for new frames to be ready
before calling VIDEOC_DQBUF. This resulted in reading incomplete
frames or same frame multiple times with at least one v4l2 capture
card (reading ~80fps from ~60fps source).

Attached patch adds poll() call before DQBUF to wait until filled
buffers become available as suggested on v4l2 specs.

-- 
--
* Samuli Valosamuli.valo at picturall.com
* Picturall Ltd.             gsm: +358 40 582 9016
*http://www.picturall.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-v4l2-poll.patch
Type: text/x-patch
Size: 1102 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110810/b04820b2/attachment.bin>


More information about the ffmpeg-devel mailing list