[MPlayer-users] newbie parsing -identify

Christian Ebert blacktrash at gmx.net
Wed Jan 20 10:32:11 CET 2010


* ... on Tuesday, January 19, 2010 at 18:58:45 -0600
> I am familiar with scripting (eg python) but am new to linux and shell
> scripting.  Could someone give me a hint as to how to grab the value of
> ID_LENGTH from the mplayer -identify output?

mplayer -endpos 0 -vo null -ao null -identify <infile> 2> /dev/null |
awk -F '=' '/^ID_LENGTH/ { print $2 }'

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
                     Ein deutscher Western/A German Western

         --->> http://www.blacktrash.org/underdogma/ccc.php


More information about the MPlayer-users mailing list