[vorbis] Quality & ripping speed

Shawn core at enodev.com
Thu Jul 25 11:52:16 PDT 2002


I've attatched some scripts used to encode the wavs and also a shell
script to calculate the results. (read before use) I hope it's ok to
send attatchments to the list.

Looks like quality level 6 - 8 enjoy a speed increase, but that's
about it. Pretty flat everywhere else with this setup.

Redhat 7.3
        ogg cvs as of Jul 17 20:30
        glibc-2.2.5-36
        gcc-2.96-110
        kernel-2.4.18-4 compiled for athlon
        -> CD: 9 tracks of "No Doubt - Rock Steady"

All tests are conducted where a wav file is read from a RAID0 array of
two disks and written to a third disk as ogg to reduce disk IO
bottlenecks (I doubt there would be anyway, but hey...). The disks may
or may not share a controller. I don't care enough to check...

Attatched is also a longer form of the output showing the values which
were averaged. (9 tracks encoded per quality level)

Avg Quality level 0:	= 7.9882555555
Avg Quality level 0.5:	= 7.9639555555
Avg Quality level 1:	= 7.9600000000
Avg Quality level 1.5:	= 7.9278111111
Avg Quality level 2:	= 7.8813222222
Avg Quality level 2.5:	= 7.8365111111
Avg Quality level 3:	= 7.9125777777
Avg Quality level 3.5:	= 7.8732777777
Avg Quality level 4:	= 8.1207777777
Avg Quality level 4.5:	= 8.0530333333
Avg Quality level 5:	= 7.8718888888
Avg Quality level 5.5:	= 7.8209888888
Avg Quality level 6:	= 8.5092666666
Avg Quality level 6.5:	= 8.4538555555
Avg Quality level 7:	= 8.3127000000
Avg Quality level 7.5:	= 8.2413333333
Avg Quality level 8:	= 8.1656000000
Avg Quality level 8.5:	= 8.0365777777
Avg Quality level 9:	= 7.7731333333
Avg Quality level 9.5:	= 7.5515777777
Avg Quality level 10:	= 7.4371222222

On 07/25, Shawn said something like:
> I'm running a test right now, and I expect to have encoding speed
> results for encoding an entire CD, at quality levels from 0..10 at .5
> increments. I'll take the speed at qN for all tracks and average
> that, so I will have twenty numbers.
> 
> Maybe someone can add results for gcc3.1 compiled vorbis as well?
> 
> On 07/25, Moritz Grimm said something like:
> > Andrew Shaw wrote:
> > > I'm getting 7x on a PIII (encoding from wav). I've noticed that the
> > > higher -q value I set, the quicker the encoding. My assumption is
> > 
> > Now that's weird, I have it the other way round on my Athlon TB 1GHz.
> > While I get insane speeds like up to 10-13x on the really low quality
> > settings, the average encoding time @ -q 5 to -q 6 varies somewhere
> > between 4.5x and 5.5x (depends on the song to be encoded). I blame
> > Voodoo magic.
> > 
> > 
> > Moritz
> > 
> > --- >8 ----
> > List archives:  http://www.xiph.org/archives/
> > Ogg project homepage: http://www.xiph.org/ogg/
> > To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
> > containing only the word 'unsubscribe' in the body.  No subject is needed.
> > Unsubscribe messages sent to the list will be ignored/filtered.
> --
> Shawn Leas
> core at enodev.com
> 
> I went to a restaurant that serves "breakfast at any time".  So
> I ordered French Toast during the Renaissance.
> 						-- Stephen Wright
> 
> --- >8 ----
> List archives:  http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.

--
Shawn Leas
core at enodev.com

I spilled Spot Remover on my dog... Now he's gone.
						-- Stephen Wright


-------------- next part --------------
#!/bin/bash

/bin/rm -f ./compare-long.txt ./compare.txt
/bin/touch ./compare-long.txt ./compare.txt

dir=/03data/Quality
for q in ${dir}/[0-9]*; do
  q=${q##${dir}/}
  echo $q
done | sort -n | \
 \
while read ql; do
  n=`grep Rate: ${dir}/${ql}/*.txt | \
   wc -l | sed 's/[	 ]//g'`
  sum=`grep Rate: ${dir}/${ql}/*.txt | \
   sed 's/^.*Rate://' | \
   sed 's/[	 ]//g' | \
   tr "\n" "+" | \
   sed 's/+$//'`
  avg=`echo "scale=10
($sum)/$n" | bc`
  echo "Quality level ${ql}:	($sum)/$n	= $avg" >> ./compare-long.txt
  echo "Avg Quality level ${ql}:	= $avg" >> ./compare.txt
done

-------------- next part --------------
#!/bin/bash

for f in /data0/qwav/*; do
  f=${f##/data0/qwav/}
  bf=${f%%.wav}
  for i in 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10; do
    [ -d /03data/Quality/${i} ] || mkdir /03data/Quality/${i}
    nice --50 oggenc -q${i} /data0/qwav/${f} \
     -o /03data/Quality/${i}/${bf}.q${i}.ogg \
     > /03data/Quality/${i}/${bf}.q${i}.txt 2>&1
  done
done

-------------- next part --------------
Quality level 0:	(8.0109+7.9734+7.8812+7.9722+8.0145+8.1629+7.9232+7.8832+8.0728)/9	= 7.9882555555
Quality level 0.5:	(7.9794+8.0943+7.8004+7.9619+7.9501+8.0517+7.8833+8.0281+7.9264)/9	= 7.9639555555
Quality level 1:	(7.9695+8.0561+7.8377+7.9018+7.9855+8.1772+7.8865+7.7887+8.0370)/9	= 7.9600000000
Quality level 1.5:	(7.9588+8.0151+7.8053+7.9095+7.9166+8.1722+7.7349+7.8635+7.9744)/9	= 7.9278111111
Quality level 2:	(7.8928+7.9881+7.7130+7.8029+7.8597+8.0621+7.8306+7.8703+7.9124)/9	= 7.8813222222
Quality level 2.5:	(7.8537+7.8995+7.6899+7.7999+7.8660+8.0925+7.6610+7.8415+7.8246)/9	= 7.8365111111
Quality level 3:	(7.9279+8.0563+7.7311+7.8191+7.9043+8.1836+7.8109+7.8375+7.9425)/9	= 7.9125777777
Quality level 3.5:	(7.8662+8.0184+7.6383+7.7561+7.9139+8.1509+7.7858+7.9495+7.7804)/9	= 7.8732777777
Quality level 4:	(8.1233+8.2212+7.8599+8.0232+8.1461+8.5035+7.9737+8.0821+8.1540)/9	= 8.1207777777
Quality level 4.5:	(8.0262+8.1736+7.7911+7.9392+8.0797+8.3852+7.9383+8.0890+8.0550)/9	= 8.0530333333
Quality level 5:	(7.8624+7.9876+7.6169+7.7095+7.9370+8.3075+7.7478+7.9774+7.7009)/9	= 7.8718888888
Quality level 5.5:	(7.7180+7.9805+7.5126+7.6916+7.8331+8.2441+7.6332+7.9309+7.8449)/9	= 7.8209888888
Quality level 6:	(8.4336+8.6102+8.2204+8.3022+8.4772+9.0078+8.2946+8.6112+8.6262)/9	= 8.5092666666
Quality level 6.5:	(8.3989+8.5922+8.1053+8.2106+8.5299+8.9801+8.2431+8.5397+8.4849)/9	= 8.4538555555
Quality level 7:	(8.2140+8.5080+7.9197+7.9090+8.3814+8.9315+8.2060+8.3284+8.4163)/9	= 8.3127000000
Quality level 7.5:	(8.1036+8.3560+7.8013+7.9045+8.3551+8.8677+8.1164+8.3240+8.3434)/9	= 8.2413333333
Quality level 8:	(7.9710+8.3098+7.7691+7.7993+8.3002+8.8051+8.0044+8.2521+8.2794)/9	= 8.1656000000
Quality level 8.5:	(7.8383+8.1360+7.6509+7.6437+8.1274+8.6340+7.9528+8.1876+8.1585)/9	= 8.0365777777
Quality level 9:	(7.5217+7.8660+7.3750+7.3056+7.9624+8.4267+7.6466+7.9092+7.9450)/9	= 7.7731333333
Quality level 9.5:	(7.3198+7.7097+7.1524+7.1427+7.6693+8.2016+7.3729+7.6871+7.7087)/9	= 7.5515777777
Quality level 10:	(7.2122+7.5992+7.0438+7.0149+7.6410+8.1396+7.2097+7.5211+7.5526)/9	= 7.4371222222



More information about the Vorbis mailing list