[FFmpeg-devel] [PATCH] thp: set duration

Piotr Bandurski ami_stuff at o2.pl
Sun Dec 16 02:38:02 CET 2012


> I think that's kind of the point.If the format doesn't contain duration info,
> and it cannot be derived from existing data, st->duration should not be set.

But we have framecnt and fps, so duration in seconds is just framecnt / fps.
When I set duration to framecnt then I get correct result in seconds
(it looks like FFmpeg divides automaticly the value by calculated fps).


More information about the ffmpeg-devel mailing list