diff options
author | 2002-10-23 15:49:44 +0000 | |
---|---|---|
committer | 2002-10-23 15:49:44 +0000 | |
commit | ddaa6dd19d52961065344b66a474dc4629d04cbd (patch) | |
tree | 773bd5cd4a5264cffa166307dc05c5c30b67cce0 | |
parent | d5a36f752ceb7840d03236adcd62ddb7f2078b00 (diff) |
Add convenience wrapper for mplayer -identify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7866 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | TOOLS/midentify | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/TOOLS/midentify b/TOOLS/midentify new file mode 100755 index 0000000000..ec6bf019e4 --- /dev/null +++ b/TOOLS/midentify @@ -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; }' |