annotate TOOLS/midentify @ 14145:9c47f90ad94a

fix leak with -fixed-vo, allow concatenating
author reimar
date Sun, 12 Dec 2004 15:17:53 +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; }'