[FFmpeg-devel] [PATCH] thp: set duration
Derek Buitenhuis
derek.buitenhuis at gmail.com
Sun Dec 16 02:43:27 CET 2012
On 15/12/2012 8:38 PM, Piotr Bandurski wrote:
> 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).
This sounds like a horrible arcane thing to rely on. You should calculate
the duration properly using the time base, framerate, and frame count.
If ->time_base is not set, I think the default is AV_TIME_BASE or something.
Someone like Michael probably knows.
- Derek
More information about the ffmpeg-devel
mailing list