Mercurial > mplayer.hg
view TOOLS/midentify @ 17920:a781bc070922
1.1243: 10l
1.1242: sync to x264 r476 (subq=7)
1.1241: Support libavcodec vrc_strategy=1 (XviD ratecontrol).
1.1240: [applied by diego, commit #1.209]
1.1239: mpegopts example
1.1238: adapter doesn't require vm anymore
author | kraymer |
---|---|
date | Wed, 22 Mar 2006 18:11:44 +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 }'