Rok Papez
2000-Jun-20 01:52 UTC
[vorbis-dev] Test: Lame vs. Ogg/Vorbis -- warning big mail
Hi there. First of all, I'd like to congratulate to developers for making a free specification and LGPLed decoder/encoder. :-). I did some test, ripping 17 tracks of my CD and converting them to both MP3 and OGG format. MP3 encoder/player was Lame 3.70 OGG encoder/player was from a Saturday nightly tgz package. ------------------------------------ MP3: LAME-3.70 mpg123-0.59r-4 MP3: lame -S -b 128 $FILE $OUT_FILE.mp3 Ogg: Vorbize-0.2 (Xiphophorus libVorbis I 20000508), ogg123-0.1 Ogg: /opt/ogg/bin/vorbize -q -w $OUT_FILE.ogg $FILE ENCODED SIZE: ------------- Total filesize report is: 80740 ogg files 71818 mp3 files 791391 wav files Vorbis shrunk WAV files to 10,2% Lame shrunk the WAV files to 9,1% ENCODE SPEED: ------------- Vorbis needed somewhere from 4 - 5 times more time than lame to encode a file. (text report from my script is appende later in this mail) DECODE SPEED: ------------- OK.. not speed.. CPU usage :-) on a K6-188 -> ogg123: 176.56user 1.44system 5:01.00elapsed 59%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (1229major+280minor)pagefaults 0swaps -> mpg123: 50.57user 3.50system 5:00.65elapsed 17%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (2396major+116minor)pagefaults 30swaps COMMENTS: ---------- For Alpha software Ogg/Vorbis is great. OGG size is comparable to MP3 size (will this improve?), OGG encode speed is comparable to l3enc and will most likely improve with time (after all lame wasn't developed in 24 hours). But the playback CPU usage is what is not 'nice'. There I think is a problem as ogg123 needs 3x more CPU power to decode than mpg123. But I hope this will also change with further development. To be fair: Ogg/Vorbis is free and LGPLed and that beats the crap out of MP3, no matter the speed/size arguments. ----------------------------------------------------------- Test results: ----------------------------------------------------------- MP3: LAME-3.70 mpg123-0.59r-4 MP3: lame -S -b 128 $FILE $OUT_FILE.mp3 Ogg: Vorbize-0.2 (Xiphophorus libVorbis I 20000508), ogg123-0.1 Ogg: /opt/ogg/bin/vorbize -q -w $OUT_FILE.ogg $FILE HW: K6 188 MHz ---<MP3>---<track01.cdda.wav>--- 423.28user 1.76system 7:06.27elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13151major+141minor)pagefaults 0swaps ---<Ogg>---<track01.cdda.wav>--- 1739.84user 1.72system 29:04.72elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (12786major+291minor)pagefaults 0swaps ---<MP3>---<track02.cdda.wav>--- 452.13user 1.74system 7:36.11elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (14295major+142minor)pagefaults 0swaps ---<Ogg>---<track02.cdda.wav>--- 1830.50user 1.79system 30:35.76elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13903major+289minor)pagefaults 0swaps ---<MP3>---<track03.cdda.wav>--- 347.75user 1.41system 5:50.91elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (12055major+142minor)pagefaults 0swaps ---<Ogg>---<track03.cdda.wav>--- 1527.93user 1.56system 25:31.99elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (11498major+291minor)pagefaults 0swaps ---<MP3>---<track04.cdda.wav>--- 321.49user 1.53system 5:24.59elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (11087major+142minor)pagefaults 0swaps ---<Ogg>---<track04.cdda.wav>--- 1391.57user 1.02system 23:12.70elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (220major+289minor)pagefaults 0swaps ---<MP3>---<track05.cdda.wav>--- 327.41user 1.40system 5:30.05elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (10959major+141minor)pagefaults 0swaps ---<Ogg>---<track05.cdda.wav>--- 1423.69user 0.92system 23:44.82elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (272major+292minor)pagefaults 0swaps ---<MP3>---<track06.cdda.wav>--- 344.57user 1.41system 5:47.84elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (11772major+142minor)pagefaults 0swaps ---<Ogg>---<track06.cdda.wav>--- 1494.70user 1.41system 24:56.96elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (3399major+294minor)pagefaults 0swaps ---<MP3>---<track07.cdda.wav>--- 387.20user 1.64system 6:30.63elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13796major+143minor)pagefaults 0swaps ---<Ogg>---<track07.cdda.wav>--- 1791.23user 1.93system 29:56.18elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13646major+291minor)pagefaults 0swaps ---<MP3>---<track08.cdda.wav>--- 290.61user 1.37system 4:53.68elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (10319major+141minor)pagefaults 0swaps ---<Ogg>---<track08.cdda.wav>--- 1302.98user 1.04system 21:44.14elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (212major+292minor)pagefaults 0swaps ---<MP3>---<track09.cdda.wav>--- 317.77user 1.46system 5:20.32elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (10889major+141minor)pagefaults 0swaps ---<Ogg>---<track09.cdda.wav>--- 1420.93user 1.31system 23:42.50elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (326major+290minor)pagefaults 0swaps ---<MP3>---<track10.cdda.wav>--- 362.84user 1.58system 6:05.94elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (12082major+142minor)pagefaults 0swaps ---<Ogg>---<track10.cdda.wav>--- 1555.08user 1.87system 25:59.46elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (11013major+294minor)pagefaults 0swaps ---<MP3>---<track11.cdda.wav>--- 350.18user 1.41system 5:53.35elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (11563major+141minor)pagefaults 0swaps ---<Ogg>---<track11.cdda.wav>--- 1469.32user 1.27system 24:30.84elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (264major+292minor)pagefaults 0swaps ---<MP3>---<track12.cdda.wav>--- 376.16user 1.38system 6:19.00elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (12279major+143minor)pagefaults 0swaps ---<Ogg>---<track12.cdda.wav>--- 1584.45user 1.16system 26:26.44elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (2224major+292minor)pagefaults 0swaps ---<MP3>---<track13.cdda.wav>--- 339.37user 1.73system 5:57.99elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (10972major+142minor)pagefaults 0swaps ---<Ogg>---<track13.cdda.wav>--- 1422.86user 1.88system 24:15.72elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (10815major+290minor)pagefaults 0swaps ---<MP3>---<track14.cdda.wav>--- 356.78user 1.49system 6:00.33elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (12313major+141minor)pagefaults 0swaps ---<Ogg>---<track14.cdda.wav>--- 1566.37user 1.66system 26:10.81elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (11935major+292minor)pagefaults 0swaps ---<MP3>---<track15.cdda.wav>--- 320.13user 1.28system 5:23.32elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (10969major+143minor)pagefaults 0swaps ---<Ogg>---<track15.cdda.wav>--- 1374.47user 0.90system 22:55.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (231major+289minor)pagefaults 0swaps ---<MP3>---<track16.cdda.wav>--- 413.07user 1.45system 6:56.28elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13257major+141minor)pagefaults 32swaps ---<Ogg>---<track16.cdda.wav>--- 1720.54user 1.87system 28:45.72elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (13137major+294minor)pagefaults 0swaps ---<MP3>---<track17.cdda.wav>--- 461.38user 1.97system 7:45.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (14788major+141minor)pagefaults 0swaps ---<Ogg>---<track17.cdda.wav>--- 1903.28user 2.11system 31:48.90elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (14503major+302minor)pagefaults 5swaps -- best regards, Rok Papez. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/