[FFmpeg-devel] [PATCH] Frame rate emulation

Ramiro Ribeiro Polla ramiro
Sun Aug 12 03:06:21 CEST 2007


Michael Niedermayer wrote:
> Hi
>
> On Thu, Aug 09, 2007 at 08:21:12PM -0300, Ramiro Ribeiro Polla wrote:
>   

[...]

>> Updated patches introduce AVRateEmu, and use it with AVFMT_FLAG_NONBLOCK in 
>> v4l and x11grab. Tested with r9876 reverted, and works the same with v4l 
>> and x11grab.
>>     
>
> what about moving the av rate emu loop to av_read_frame_internal()
> that would avoid duplicating it for every grab demuxer
>   

Patches attached. Regression tests pass and capture works well.

This way seems to me a little too intrusive inside libavformat though.

I have 2 more demuxers that would use this (vfw and gdi32 capture) just 
waiting to send in for review.

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: introduce_av_rate_emu.diff
Type: text/x-patch
Size: 4170 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070811/131d1ae0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_av_rate_emu.diff
Type: text/x-patch
Size: 5746 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070811/131d1ae0/attachment-0001.bin>



More information about the ffmpeg-devel mailing list