[FFmpeg-user] Meaning of duration

Carl Zwanzig cpz at tuunq.com
Fri Dec 30 18:30:39 EET 2022


On 12/30/2022 5:34 AM, Reindl Harald wrote:
> 
> the days where duration and filesize are hard connected are long gone,

Hard connected, no; but a 3 hour duration on a 2mb file is probably wrong.


I've found that duration metadata is often incorrect unless file was 
re-coded, and even then it can be suspect. If you want an _exact_ duration, 
count the frames and divide by the rate (assuming a constant rate).

Later,

z!


More information about the ffmpeg-user mailing list