Ubuntu – How to display the number of frames per second in mplayer

command linemplayer

Is there a command (either a command line option, or a navigation command) to display the number of frames per second of the playing movie?

I am testing to see if my computer is slow (ie running at less than 30 fps) or if the video was sampled poorly.

Note: I did try to 'google it', but googling for 'mplayer' and 'fps' returns how to set the desired number of frames per second.

Best Answer

Sounds as if you are interested in benchmarking, try the -benchmark option.

From the ubuntu man page

-benchmark
Prints some statistics on CPU usage and dropped frames at the end of playback. Use in combination with -nosound and -vo null for benchmarking only the video codec. NOTE: With this option MPlayer will also ignore frame duration when playing only video (you can think of that as infinite fps).

mplayer -benchmark -nosound -vo null your_file