[FFmpeg-user] Meaning of duration

Reindl Harald h.reindl at thelounge.net
Fri Dec 30 18:36:19 EET 2022



Am 30.12.22 um 17:30 schrieb Carl Zwanzig:
> 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)

and since it's not constant these days that won't work
for audio-files anything relies on avg-bitrate


More information about the ffmpeg-user mailing list