newbie parsing -identify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



* ... 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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux