[FFmpeg-user] How to get he total number of frames

Peter White peter.white at posteo.net
Tue Mar 9 10:26:40 EET 2021


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.


Peter


More information about the ffmpeg-user mailing list