[FFmpeg-user] out_time_us wrong or strangely inaccurate
Ferdi Scholten
ferdi at sttc-nlp.nl
Fri Jul 4 19:15:27 EEST 2025
>
> How do I get the exact duration of a video file? Best would be of
> course if every frame is marked with its correct timestamp.
>
Why not use ffprobe?
|ffprobe -v error -show_entries format=duration -of
default=noprint_wrappers=1:nokey=1 |./recordedVideo.webm
webm containers also store the duration of the streams in the stream metadata so you can also just query the duration tag.
More information about the ffmpeg-user
mailing list