On 04.07.25 18:15, Ferdi Scholten wrote:
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. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Because I accept user videos and not all clips contain this information: ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 ./recordedVideo.webm N/A