[FFmpeg-user] out_time_us wrong or strangely inaccurate
thefoss at icybiz.com
thefoss at icybiz.com
Fri Jul 4 19:33:06 EEST 2025
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 at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at 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
More information about the ffmpeg-user
mailing list