[Ffmpeg-devel] How to calculate a packet's duration in milliseconds for VOB format video?

Michel Bardiaux mbardiaux
Thu Jan 11 12:13:07 CET 2007


Nico Sabbi wrote:
> Michel Bardiaux wrote:
> 
>> Sean wrote:
>>
>>> Greetings,
>>>
>>> Can anyone help me on how to calculate each packet's
>>> duration in milliseconds for VOB format video?
>>>
>>
>> There is no such thing as the 'duration' of a particular packet. You 
>> will have to reformulate your question using correct technical terms.
>>
>> Greetings,
> 
> 
> assuming mpeg1video the duration of a frame is 1/framerate;
> as for mpeg2, when the various telecining flags are set the duration may
> be modified from 1/framerate up to 3/framerate in 0.5/framerate steps.
> see mplayer/libmpdemux/mpeg_hdr.c for more details

Of course. But the OP said 'packet', not frame...

-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-devel mailing list