[MPlayer-users] newbie parsing -identify

John Doe jdmls at yahoo.com
Wed Jan 20 10:33:05 CET 2010


From: ... <offonoffoffonoff at gmail.com>

> 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?

export `mplayer -really-quiet -vo null -ao null -frames 0 -identify <VIDEO> | grep ID_LENGTH`
echo $ID_LENGTH

But if you use python, why would you do it in shell?

JD


      


More information about the MPlayer-users mailing list