In case you have upgraded to Ubuntu Trusty Beta you might have noticed that the some mp4 video files play too fast using MPlayer or SMPlayer. The problem is with incorrect FPS detection. The View info and properties… option in SMPlayer shows the Frames per second as -nan.
Some mp4 and 3gp files play too fast on Trusty. Here are some workarounds.
The solution is to install a newer version of MPlayer either by compiling the latest source from SVN or by installing it from this up-to-date PPA (you may lose mencoder if you have it installed):
$ sudo add-apt-repository ppa:mc3man/mplayer-test $ sudo apt-get update $ sudo apt-get install mplayer
This seems to be a temporary bug in MPlayer and there is a quick workaround. The problem is that it is a per file issue, some files may play fine without any workaround.
- MPlayer: run the video with -fps option. For example of the correct FPS for a video is 23.976 (should work for most videos), use
$ mplayer -fps 23.976 myvideo.mp4
- SMPlayer: you can pass the same option in runtime and it will take effect without restart. Add -fps 23.976 to Options ▸ Preferences ▸ Advanced ▸ Options for MPlayer ▸ Options text field.
Another way to counter it is to add the following in your ~/.mplayer/config file:
But this will now affect all mp4 files. Fortunately most high-def videos use 23.976 fps which is scientifically correct.