[FFmpeg-devel] [PATCH] simplify ipmovie.c pts calculation

Reimar Döffinger Reimar.Doeffinger
Thu Feb 26 18:47:23 CET 2009


On Thu, Feb 26, 2009 at 05:14:16PM +0100, Michael Niedermayer wrote:
> why does lavf fail?
> could you print the duration from the packets (i mean pts-last_pts) ?
> if they are (near) multiplies of some integer lavf should find the
> timebase, if OTOH they are random then 1/1m is maybe the best timebase
> in which these can be specified exactly

Can you point me to the code that does this guessing? I didn't find it.
the ipmovie.c debugging code after my patch shows this:
sending video frame with pts 0
sending video frame with pts 66728
sending video frame with pts 133456
sending video frame with pts 200184
sending video frame with pts 266912
sending video frame with pts 333640
sending video frame with pts 400368
sending video frame with pts 467096
sending video frame with pts 533824
sending video frame with pts 600552
sending video frame with pts 667280
sending video frame with pts 734008
sending video frame with pts 800736
sending video frame with pts 867464
sending video frame with pts 934192
sending video frame with pts 1000920
sending video frame with pts 1067648
sending video frame with pts 1134376
sending video frame with pts 1201104
sending video frame with pts 1267832
sending video frame with pts 1334560

Directly after these the "Stream #0.0: Video: interplayvideo, pal8, 640x272,
1000k tbr, 1000k tbn, 1000k tbc" is printed.

The deltas are all exactly 66728.




More information about the ffmpeg-devel mailing list