summaryrefslogtreecommitdiffstats
path: root/TOOLS/midentify
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/midentify')
-rwxr-xr-xTOOLS/midentify5
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; }'