[Libav-user] PTS And DTS get

Yulius Candra caesar_06elektro at yahoo.co.id
Sun Apr 15 16:14:09 CEST 2012


Dear All,

Hello,, When i try build a player video for mpeg 1,2,4..there something that make me wonder,
when i try sync a frame with timing then i get pts and dts but first frame in mpeg 1,2 i get value pts and pts too large then if i multiply with timebase i will get big delay. but that case not happen in mpeg 4 . is there any explanation? or any calculaction for timing in mpeg 1,2?

Detail Information in fist Frame mpeg 2 :

timebase = 0.0417083333333333
pts = 45000 
dts = 41246
pts *  timebase = 1876.875 

Mpeg 4
timebase = 0.0416666666666667
pts = 0 
dts = 0
pts *  timebase  = 0 


Thanks in Advance..

Best Regard...
Yulius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120415/7a49b033/attachment.html>


More information about the Libav-user mailing list