[FFmpeg-devel] [PATCH] Frame rate emulation

Ramiro Ribeiro Polla ramiro
Fri Aug 10 01:21:12 CEST 2007


Ramiro Ribeiro Polla wrote:
> Michael Niedermayer wrote:
>   
>> Hi
>>
>> On Sun, Jun 17, 2007 at 06:59:30PM -0300, Ramiro Ribeiro Polla wrote:
>>     

[...]

>>> @@ -270,8 +263,8 @@
>>>      st->codec->codec_id = CODEC_ID_RAWVIDEO;
>>>      st->codec->width = width;
>>>      st->codec->height = height;
>>> -    st->codec->time_base.den      = frame_rate;
>>> -    st->codec->time_base.num = frame_rate_base;
>>> +    st->codec->time_base.den = ap->time_base.den;
>>> +    st->codec->time_base.num = ap->time_base.num;
>>>     
>>>       
>> st->codec->time_base= ap->time_base;
>>
>> except these and a missing minor version increase the patch looks ok
>> asuming you did test the changes grabing demxuers (AV sync amongth others
>> should not get worse)
>>
>>   
>>     
>
> I won't apply this (at least for now) since the discussion seems to be 
> pointing to be a better solution (or looking for a better solution).
>
>   

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.

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



More information about the ffmpeg-devel mailing list