annotate TOOLS/midentify @ 14092:5a310666c054

dvd_aid_from_lang() should return -1 if lang was not found
author aurel
date Fri, 03 Dec 2004 14:14:29 +0000
parents 96f874a6cd60
children 70ad5a19d831
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7865
d151608b9f28 Add convenience wrapper for mplayer -identify
ranma
parents:
diff changeset
1 #!/bin/sh
9572
96f874a6cd60 Prevent vo window flashing.
ranma
parents: 9562
diff changeset
2 mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
7865
d151608b9f28 Add convenience wrapper for mplayer -identify
ranma
parents:
diff changeset
3 grep "^ID" |
d151608b9f28 Add convenience wrapper for mplayer -identify
ranma
parents:
diff changeset
4 sed -e 's/[`\\!$"]/\\&/g' |
d151608b9f28 Add convenience wrapper for mplayer -identify
ranma
parents:
diff changeset
5 sed -e '/^ID_FILENAME/ { s/^ID_FILENAME=\(.*\)/ID_FILENAME="\1"/g; }'