[Ffmpeg-devel] Timestamps on Decoding

Paul Curtis pfc
Sun Oct 23 17:17:41 CEST 2005


Rich Felker wrote:

> Neither. DTS is the decode timestamp, which is definitely NOT the
> presentation timestamp (not even in the same order) unless the stream
> contains no out-of-order frames.

At this point, I don't have any other choices. Without some indication 
from either the codec or the demuxer, there is no way to determine the 
actual frame timestamps. Since I haven't found any other value (on 
decode) that can be used with reasonable accuracy, I'm forced to use the 
DTS. It is not my first choice either ... I would much rather have the PTS.

In reviewing the e-mails on this subject, and searching the lists, I 
haven't found a single example of how to access the PTS across different 
formats and codec. Since the decoder timestamp is present in the formats 
I've tested, it will have to do.

I have found, however, that using the decoder timestamp as the basis for 
the values to feed the Helix Producer encoder produces perfectly synced 
RealMedia files, it is what I'm staying with. If someone has a better 
solution, please post it.

Paul





More information about the ffmpeg-devel mailing list