Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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
share|improve this answer
    
that's exactly what I was looking for! Yet it doesn't at all do what I want. Where is the information displayed? I was hoping it would be displayed either on the movie, or in the console, but it doesn't appear anywhere. Also, the fps is indicated in the console, but I believe that's the intended frame rate, not the actual rate –  puk Dec 18 '11 at 4:43
    
It will print stats at the end of the playback. What is it you are trying to benchmark exactly ? If you start mplayer from the command line I believe it displays FPS in the terminal. –  bodhi.zazen Dec 18 '11 at 4:49
    
My video is choppy and I want to know if it's due to low performance or low video quality. The FPS is displayed in the terminal, but it is exactly 24.000 fps. I am assuming this is the intended frame rate. Surely at some point the frame rate will drop below 24.000 –  puk Dec 18 '11 at 4:53
    
Is the playback choppy with only a single file, or all files ? What video card do you have ? I am not sure how benchmarks are going to help you debug your problem. –  bodhi.zazen Dec 18 '11 at 5:01
    
It's mostly choppy with 720p files, but I think it has to do with the fact that they are 25 fps –  puk Dec 18 '11 at 5:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.