Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg time format : what does ".80" mean in 00:05:25.80 for ffmpeg?

Tags:

ffmpeg

ffmpeg shows an video duration is 00:05:25.80, what does ".80" mean in ffmpeg ?

Is it possible for ffmpeg to return the video duration in seconds rather than this format ?

like image 606
iMath Avatar asked Oct 17 '25 06:10

iMath


1 Answers

What does ".80" mean in ffmpeg?

Same as it does everywhere else, eight tenths and zero hundredths. That is, the full duration is five minutes and twenty-five point eight seconds.

Is it possible for ffmpeg to return the video duration in seconds?

ffprobe uses seconds by default. What you're looking at in there in ffmpeg is just information for human convenience.

$ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4
325.800000
like image 73
OrangeDog Avatar answered Oct 20 '25 13:10

OrangeDog