[MPlayer-dev-eng] [PATCH] automatic fps for mpeg4 raw/in TS

Nico Sabbi nsabbi at tiscali.it
Thu Jan 6 21:45:21 CET 2005


Michael Niedermayer wrote:

>Hi
>
>On Wednesday 05 January 2005 23:12, Nico Sabbi wrote:
>  
>
>>Michael Niedermayer wrote:
>>    
>>
>>>Hi
>>>
>>>On Wednesday 05 January 2005 22:09, Nico Sabbi wrote:
>>>      
>>>
>>>>Hi,
>>>>this patch permits to determine automatically the initial fps of mpeg4
>>>>video in the VOL header,
>>>>so there's no need to specify it with -fps.
>>>>
>>>>Michael, can you please check it?
>>>>        
>>>>
>>>did u try it with a few different framerates like a 24000/1001 .m4v stream
>>>generated by ffmpeg? i doubt it will work
>>>
>>>[...]
>>>      
>>>
>>I checked some fancy fps but not the fractional ones; now I see they
>>aren't recognized
>>correctly.
>>If I understand correctly the specs the fixed_timeinc is given by the
>>smallest
>>number of bits (up to 16) to represent   timeinc_resolution-1, correct ?
>>    
>>
>
>IIRC, yes
>
>
>  
>
>>What's wrong? :)
>>    
>>
>
>many mpeg4 files have no fixed_timeinc 
>
>[...]
>  
>

This one works correctly with all fps I tried, both with lavc and with 
xvid, in raw files and in TS.
Is it ok ?

    Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpeg4fps.diff
Type: text/x-patch
Size: 6524 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050106/e7118979/attachment.bin>


More information about the MPlayer-dev-eng mailing list