#!/bin/sh # # The -vo null and -ao null are important. See whole funny story at: # http://home.comcast.net/~tomhorsley/game/heisenbug.html # mydir=`dirname $0` PATH=`$mydir/echo-path` export PATH # mplayer -frames 0 -identify -vo null -ao null "$@" 2>/dev/null | grep -e '^ID_'