changeset 7865:d151608b9f28

Add convenience wrapper for mplayer -identify
author ranma
date Wed, 23 Oct 2002 15:49:44 +0000
parents dacc35bc92c7
children 732a8bfc7681
files TOOLS/midentify
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TOOLS/midentify	Wed Oct 23 15:49:44 2002 +0000
@@ -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; }'