8
votes
4answers
13k views

How do I get the number of frames in a video on the linux command line?

I have a video file and I want to get the number of video frames that are in it. I can use ffmpeg to get the length of the video and the FPS. However I can't see anything obvious for the total number ...