Add support for VDPAU video out, including hardware decoding.
[mplayer/glamo.git] / TOOLS / midentify.sh
blob1502950e13e87153e39d4c1b59fd1fcd390dd9ce
1 #!/bin/sh
3 # This is a wrapper around the -identify functionality.
4 # It is supposed to escape the output properly, so it can be easily
5 # used in shellscripts by 'eval'ing the output of this script.
7 # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de>
8 # Licensed under GNU GPL.
10 if [ -z "$1" ]; then
11 echo "Usage: midentify.sh <file> [<file> ...]"
12 exit 1
15 mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
16 sed -ne '/^ID_/ {
17 s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p