[Ffmpeg-devel] Timestamp troubles (original) (raw)

Steve Lhomme slhomme
Wed Feb 22 01:07:44 CET 2006


Hi everyone,

We're currently adding some kind of frame browsing in DrDivX OSS, using (Dr)FFMPEG as the decoding engine. So far so good.

But we also want to seek in the stream backward and forward. We use av_seek_frame for that, with the video stream index we're looking for.

The problem is that the timestamps of packets seem to be inconsistent. Here are 2 cases to explain the situation :

So, it looks like the timestamp to give to av_seek_frame should be between 1 and 78, that is the duration multiplied by both time bases. Or it could just simply be the duration divided by AV_TIME_BASE (1.000.000).

And in that case I have no idea how to translate a value in the "duration" format to something that will match the value needed to look in the index_entries.

Am I wrong or there is a bug somewhere ? The duration (in AV_TIME_BASE) and time_base seem to be correct. Only the index_entries seem to be weird.

Steve



More information about the ffmpeg-devel mailing list