On Tue, 03 Mar 2009 13:27:02 -0500, Smart, Gary <[email protected]>  
wrote:
>
> I have dumped the first few frames of an mpeg2 file and get:
>
> F1 - dts 16501
[...]
>
> The codec context time_base for the stream has num=1, den=60 (60fps).
[...]
> Clearly the frames are separated by 1500 - but how does this relate to
> the 60fps (time_base)?
>

I think the confusion is that packet PTS/DTS are in units of the format  
context's time_base, where the AVFrame->pts value is in units of the codec  
context's time_base.

In other words, the container can have (and usually does) a different  
time_base than the codec.  Most libav players don't bother using the  
codec's time_base or pts since not all codecs have one, but most  
containers do.  (This is why the dranger tutorial says to ignore  
AVFrame->pts)


-- 
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[email protected]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to