Add convenience wrapper for mplayer -identify

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7866 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ranma 2002-10-23 15:49:44 +00:00
parent d5a36f752c
commit ddaa6dd19d
1 changed files with 5 additions and 0 deletions

5
TOOLS/midentify Executable file
View File

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