view TOOLS/midentify @ 15649:c3688869c2e5

Generate the version string with awk on BSD systems and work around wrong day/month order in the ls output. based on a patch by Chris Roccati <roccati - at - pobox - dot - com>
author diego
date Sun, 05 Jun 2005 17:38:10 +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; }'