view TOOLS/midentify @ 13345:fec54060c91f

fix a memory corruption and make sure only getch2 handles stdin in order to avoid delayed events caused by lost input patch by Mikulas Patocka <mikulas at artax.karlin.mff.cuni.cz>
author faust3
date Wed, 15 Sep 2004 14:08:46 +0000
parents 96f874a6cd60
children 70ad5a19d831
line wrap: on
line source

#!/bin/sh
mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
	grep "^ID" |
	sed -e 's/[`\\!$"]/\\&/g' |
	sed -e '/^ID_FILENAME/ { s/^ID_FILENAME=\(.*\)/ID_FILENAME="\1"/g; }'