Am 09.03.2021 um 09:46 schrieb Ulf Zibis:
Am 09.03.21 um 09:26 schrieb Peter White:
On Tue, Mar 09, 2021 at 09:13:14AM +0100, Ulf Zibis wrote:
Hi,,
can one please tell me, how I can get the total number of frames of
a video?
ffmpeg -i input -an -sn -c copy -f null -
This basically copies all frames into the void but you get the total
count this way in the stats line.
Much thanks. This at least gives a ballpark figure. Is there a way to
get the exact frame count?
These links might help:
https://stackoverflow.com/questions/2017843/fetch-frame-count-with-ffmpeg
https://superuser.com/questions/1512575/why-total-frame-count-is-different-in-ffmpeg-than-ffprobe
Michael
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".