ffmpeg - Video - Frame - Count number of frames

ffmpeg -i input.mp4 -map 0:v:0 -c copy -f null -

NOTE: This loops through the video file but does not decode any frames.

  • It only increments the counter, thus it is very fast.

This works on any video file.