YaK:: Fixing absurdly-high mplayer fps (frames per second) problem [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   
[mega_changes]
[photos]

Fixing absurdly-high mplayer fps (frames per second) problem

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.

(unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
(last modified 2009-01-18)       [Login]
(No back references.)