Mercurial > mplayer.hg
view TOOLS/midentify @ 23960:0525bd0aed18
r23897: Experimental negative panscan values
r23898: Set -vo gl slice-height default to 0, the current default of 4 seems
r23913: punctuation, new sentences on new lines
r23917: Document -rawvideo format="format string"
r23924: Teletext support
r23926: update man page with v4l2 a/v outputs
r23944: h/w -> hardware
r23962: added missing ':' for separator
r23978: add possibly incorrect subfont entry
author | voroshil |
---|---|
date | Wed, 01 Aug 2007 01:15:26 +0000 |
parents | efb8b8fa323e |
children |
line wrap: on
line source
#!/bin/sh # # This is a wrapper around the -identify functionality. # It is supposed to escape the output properly, so it can be easily # used in shellscripts by 'eval'ing the output of this script. # # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de> # Licensed under GNU GPL. if [ -z "$1" ]; then echo "Usage: midentify <file> [<file> ...]" exit 1 fi mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null | sed -ne '/^ID_/ { s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p }'