[MPlayer-users] [newbie] GUIDE to mencoder (1 or 2 CD)

Philippe Monroux ph.monroux-DEL-SPAM at wanadoo.fr
Sat Jun 12 05:17:43 CEST 2004


Bonjour,

Le ven 11 jun 2004, à 10 h 17 min 26 s  (UTC +0100),
vous (Martin Collins <martin at mkcollins.org>) 
avez écrit :

> else
>     # figure out what bitrate we need to get our target size
>     OGG_SIZE=`ogginfo $NAME.ogg | grep data | cut -d' ' -f4`
>     OVERHEAD=`echo "$TARGET_SIZE / 100 * 1024 * 1024 * 1.5" | bc`
>     VIDEO_SIZE=`echo "$TARGET_SIZE * 1024 * 1024 - $OGG_SIZE - $OVERHEAD" | bc`
>     MINS=`ogginfo $NAME.ogg | grep Playback | cut -d' ' -f3 | cut -dm -f1`
>     SECS=`ogginfo $NAME.ogg | grep Playback | cut -d' ' -f3 | cut -d: -f2 | cut -ds -f1
>     DURATION=`echo "$MINS * 60 + $SECS" | bc`
>     BITRATE=`echo "$VIDEO_SIZE * 8 / $DURATION / 1000" | bc`
> fi

Thank you very much for your help. One question :

in :

OGG_SIZE=`ogginfo $NAME.ogg | grep data | cut -d' ' -f4`

Why "grep data" ? ogginfo doesn't provide data ... 

bye
-- 
ph




More information about the MPlayer-users mailing list