Article Rich Public

Sometimes mplayer thinks flash .flv videos have way too many frames per seconds, like 1000, so it plays them at breakneck speed.

This script tries to correct for that:

  /usr/local/bin/identify-fps

#!/bin/sh

mplayer 2>/dev/null  -vo none -ao none  -identify  "$@" | awk -F= '/^ID_VIDEO_FPS/ { r=$2; if (r>39) print 10; else print r; }'

Usage:

mplayer -fps `identify-fps myvideo.flv` ...other-options... myvideo.flv

Tweaking: The script aboves says if FPS is greater than 39, use 10 instead. That seems to work OK for me. You can adjust the constants.