YaK:: Fixing absurdly-high mplayer fps (frames per second) problem | [Changes] [Calendar] [Search] [Index] [PhotoTags] |
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.
(last modified 2009-01-18) [Login] |