How to convert WAV to MP3 at CD Quality.....

  • Thread starter Thread starter NickHall
  • Start date Start date
oooooooohhhh... I was just farting around with the VBR settings on CDex and found out that it has an R3Mix preset built in... :o So you don't even have to know anything to use it... :D


and man, does that ever help... :p

WATYF
 
Sweet case, WATYF! Just went and checked it out! I built mine about a year ago, and got the Coolermaster ATC201. It's all aluminum, check it out. It pretty much kicks ass! Check it out at www.coolermaster.com

Darth
 
Nice lookin' case man...

I was thinkin' of goin' aluminum, but then I found the Noblesse.. that mirrored front panel just plain rocks..!! :p

P.S... you ever visit the sharky forums?? I post there too.

WATYF
 
Never been there before, but I like it! I'm sure I'll be there more often! Thanks for the link...

Darth
 
super

i thought I was being too picky having a 192 setting but I always noticed a difference with s noises and clean sounds compared to the boss wav. I am so chuffed you taught me the way. Thanks a lot.
 
Just a note:

You might want to fix your terminology, as it is physically IMPOSSIBLE to get full CD/WAV quality out of an MP3. MP3 is by nature a lossey codec, and you will lose some of the original representation, no matter what bit-rate you encode at.

You can get 'Close' to CD/WAV quality (Within about 80%), and fake the human ear into not knowing the difference, but you will never get full CD/WAV quality.

There is many more lossey codecs, that have a better representation than mp3s, and lossless codecs that are of course miles above (because they are 100% CD/WAV quality). Fraunhofer just got lucky and became popular.

W.
 
W... What do you think of the WMA format? Ever think of switching to that...?


:D ;) :p

WATYF
 
WM8 is fairly decent, but very proprietary. I run mostly *nix boxes here, not much microcrap, so I wouldn't be able to listen to anything in WM8. Requires their player, very proprietary, etc., so haven't considered it.

OGG Vorbis is my next choice for lossey codecs, but still not there as far as development.

It's a toss up, myself, I do everything in pure WAV format, and distribute it via. CD only usually. But, I've been known to use RKAU or monkeys for lossless compression on occasion.

W.
 
I was just messin' with ya... :)



I figured you for a *nix guy... :p



WATYF
 
I've been using musicmatch vbr encoding recently. is the lame vbr a better choice for any reason?
 
Not sure what musicmatch uses anymore, but it used to use an out-dated Xing encoder, which yes, sucked.

W.
 
Some people would say yes. Fraunhofer invented MP3, now the biggest issue is that technically, if you use their codec, and re-distribute your music in their format, you'll have to pay them royalties.... Their VBR ain't so great either, CBR is fine though.

W.
 
Good thread guys. So I've read all the links and understand all the theory-- the problem is, it hasn't worked for me. Using CDex, I've encoded the same .wav to mp3 with LAME at 196kbps, then also with the VBR at levels 0, 1, and 4. The good news-- the VBR files are substantially smaller. However, they really sound bad-- the 196 files are clearly better. The VBR files sound really grainy/warbly on sustaining notes, kinda like a bad cassette deck. Has this been anyone else's experience? Am I doing something completely wrong?
Thanks in advance
aaron
 
I think I talked a little about this earlier on in the thread, and the point is, its not enough to simply use the quality setting. There are a number of options that LAME uses to specify the quality vs size ratio, and you need to play around with these to get 'good' quality.

r3mix.net have a set of options they consider to be 'the best', and you should paste their options into the field in CDex (im not sure it has this, as i've not tried that particular front end...) in fact, looking at the site, the 3 main front ends they suggest are EAC, RazorLame and win32Lame (go to http://www.r3mix.net then click 'encoding')

I personally found the r3mix.net options created a file a little too big for my website, and with not significantly improved quality, so I Tweaked teh settings to get to this:

-b 128 -m j --nspsytune --vbr-mtrh -V2 -mj -h -b96 --lowpass 19.5 --athtype 3 --ns-sfb21 2 -Z --scale 0.98 -X0

If you copy that and paste it, youll find you get very good quality - a 3 min song will come out around 4Mb, and you honestly wont be able to tell the difference from the original.

Peace.
 
erichenryus said:
I have version 7 and the about window says this: ”MPEG Layer-3 audio coding technology licensed by Fraunhofer IIS http://www.iis.fhg.de/audio/

So is LAME bettter than Fraunhofer?

T.R.Waldo is correct in that:

Fraunhofer is better at cbr, as it can produce CD quality at 256kbps.

LAME is much better at vbr, as the ability to specify a huge amount of settings, to suit your particular needs, give you huge flexibility when it comes to file size vs quality.

Waldo: true, true, I realize the quality of an mp3 is 'technically' not cd quality, but the point is, you can encode an mp3 which , to all intents and purposes is cd quality, and if you get it right, noone will be able to tell the difference, as it encodes the bits out of the range of human hearing and uses enough bitrate at the right time to fool the human ear.

I'm no expert on this, but there have been numerous articles on the net, one in particular regarding a blind trial of 'audiophiles' who couldnt tell the difference between CD, and MP3 encoding using LAME...

My main reason for starting a thread with that terminology was to get people to listen. People would hardly be impressed by a thread entitled 'How to convert WAV to almost, but not quite CD quality MP3....' now would they ;)

Peace.
 
Well thanks for all the help guys. I vbr encoded something with razorlame and with musicmatch and really can't tell much of a difference except the file with musicmatch is a lot bigger. Maybe that's the point? I surely don't want to pay anyone royalties for encoding a file though I'm not sure that will ever be an issue for me so I'll stay away from Musicmatch for now. I do like the razor lame interface a little better than musicmatch anyway. So is there a difference in the sound quality of the players? I like the way musicmatch organizes files and such but I'd be willing to check out another. Seriously dislike windows media player.
 
I still use MusicMatch for playin stuff, as I too like the interface. The only thing I dont use it for is encoding.

AS for sizes....your about right, you could encode a file using razorlame to a higher quality....:

in this setup there are some key quality modifiers which do the following things:

-b 128 -m j --nspsytune --vbr-mtrh -V2 -mj -h -b96 --lowpass 19.5 --athtype 3 --ns-sfb21 2 -Z --scale 0.98 -X0

--lowpass 19.5: cuts anything below 19.5hz. no-one hears the difference between a 19.5kHz lowpassed signal and the same full-range clip in a double-blind test. It's been proven by science many times before (even with 18.5khz on a very significant number of youngsters)

-V2: Key one this, this sets the VBR quality on a 0-9 scale. Try setting this to 1. ull get a bigger file and better quality...

--scale 0.98: This normalizes the mp3 at 98% of the input quality. If youve ever heard an encoded mp3 that clips, youll realize why.....

These are the key ones I play around with to modify size vs quality ratio....and mainly the 'V' one....

One Point.

After youve encoded a WAV through this route, it is possible to decode it back to a wav and 'uncompress' some of the things this mix above did...............
 
LAME= Lame Ain't an MP3 Encoder, just so you know. It didn't start out life as an mp3 codec.

You can encode with nearly any encoder at 256kbps. Some encoders disable this so you will pay them to get that higher rate. Fraunhofer invented CBR MP3's, and therefor have the upper hand on quality.

You CANNOT encode and then decode an MP3 and have the same WAV that you put in. You are guarunteed loss.

You cannot make the claim that it is CD quality, you have to tell the truth here. The title very well should be 'getting near CD quality out of MP3's' because you will never be closer than 90%

I assembled a list of codecs and specifications along time ago on NWR, in the technical section of the forums. You'll have to be a member to check it out though.

A note, go DIRECTLY to the source for information on LAME:

http://www.sulaco.org/mp3/

Another note, tuning the variables on the LAME encoder entirely depends on WHAT you are encoding. A solo flute would have entirely different results than a full orchestra, or rock band. If I were to take one song of mine and pass it through with those variables, it would sound horrible. But if I juggle them to the song, it will sound way, way better.

W.
 
Ok, I'm getting a bit bored of this now. It wasnt intended to spark up a huge debate, and I dont claim to be an expert on it. Continually picking small holes in my posts would seem to be a waste of time. The purpose of this thread was an attempt to improve the quality of peoples mp3's which, I'm sure is something a lot of people here are interested in doing.

Waldo, If you think I'm wrong, please provide a reason, and an alternative.

As I said, Im no expert, and If you want to argue with what I'm saying...first read the 'quality' and 'critique' pages at www.r3mix.net as everything I'm saying came (almost) straight from there.....these arent my opinions.....

Comments:

Picking bones over the title of the thread is up to you, but I did comment earlier that it was to get people in to read.

Just because someone invented something, doesnt mean they are always gonna be the best. Sony invented the CD player, but are about average in terms of quality.

In terms of quality, I agree, an mp3 will never be CD quality, but the point is, if you can get an mp3 to a reasonable size, such that 'NOONE' can tell the difference (and I keep saying there have been tests to prove this) then I'm, sorry, but loss in 'technical quality' does not necessarily mean loss in sound quality. If the mp3 sounds the same as the wav, then I'm happy.

Again, to quote r3mix.net:
--------------------------------------------------------------------------------
03. Nice page, but no matter what bitrate, there's always quality loss.
(Beefchow) FYI all mp3's no matter what the bitrate have quality loss... it's not lossless compression. 'Close to cd' is all you can aim for.
(zZoVutu) Very good site, despite it says that you can have perfect mp3 cd ripping (that it isn't true as we all know) the guy knows what he says.


"lossy compression" Does not mean you defacto lose sound quality.

This is what the C't test proved. That at a certain bitrate the mp3 and the original is judged to be of the same quality. Therefore: a perfect transparent music encoding makes the source and the encoded material sound exactly the same.
The problem is that most people play mp3's through their soundcard on their computer through a poor quality cable and then they say: "my original cd sounds better". Quite normal I would say. The original tracks and the decoded tracks on cdr is the only way to make a good comparison.
---------------------------------------------------------------------------------

As for juggling settings for different songs thats rubbish. The whole point of VBR, is it analyses the song and puts the compresssion where its needed. every song I have ever encoded with the settings I described 'sounds' exactly the same as the original....if I changed the settings, all I would do would change the size/quality ratio.

VBR measures the level of a signal and if it's under the ATH (absolute treshold of hearing) the signal will be left out of the encoding.

The LAME site is good, but tells you very little real information about mp3 quality....they even point you at r3mix.net. To quote http://www.sulaco.org/mp3/ :

-r3mix.net Up-to-date ripper and encoder information, and the truth about MP3 quality.

---------------------------------------------------------------------------------
I'm getting totally bored with this, so here is a copy from the 'quality' page in r3mix.net, which, if you can be bothered to read, explains all this shit....


Facts:
128 kbit/s is not cd quality
256 kbit/s is cd quality (x) (in case of Lame or some Fraunhofer, not Xing)
In february 2000 c't magazin organised a blind listening test. 300 Audiophiles were involved, finalists tested 17 1-min clips from different artists (classic and pop):
original CD recording
128 Kbit/s Joint Stereo [MusicMatch (FhG) v4.4] encoded PC decoded Mac
256 Kbit/s Joint Stereo [MusicMatch (FhG) v4.4] encoded PC decoded Mac
all on cdrs and played in a Recording Studio on:
B&W Nautilus 803, Marantz CD14 with amp PM14 (Straightwire Pro cabling and extra's) [DM30000- so bit more than $15000]
Sennheiser Orpheus Electrostatic Reference-headphones with tweaked accompanying amp (digital and analog out) [>$10000]

Conclusions:

90% of the 128 Kbit material was picked out
MP3@256 was rated to have the same music quality as cd!
If you find MP3@256 to be of inferior quality compared to the original cd, you're very likely to be doing something wrong with the test (correct decoder, no objective double blind testing, DSP filters distorting the process, ...) Maybe this is something for you. You can always read the article in the german c't 6/2000 on p92.
The treshold of mp3 transparency lies somewhere between 128kbit/s and 256kbit/s, depending on the kind of music and your hearing and equipment.


--------------------------------------------------------------------------------
Why not to use any Xing encoders (Xing, Audio Catalyst, MpegDJ, ...):
stereo separation problems in joint stereo mode (listen with headphones)
all above 16kHz is mutilated, at any given bitrate (up to 320, and VBR High)
In mp3 you can have long and short blocks. Xing encoders don't use "short blocks", which, by definition, leaves Xing encoding quick peaks and sharp signals not nearly as accurate as with short blocks, which are used in Blade, FhG and LAME encoders.
the code is buggy, and music will get mangled from time to time (try first few seconds of Rammstein on Matrix Soundtrack)

--------------------------------------------------------------------------------
Knowing the facts of mp3, you could, if space is not really an issue use:
cbr 256kbit/s by Lame or some Fraunhofer encoders
Remarks: Guaranteed perfect(x) transparent encoding, but guaranteed overkill on most parts of the music. Also: space is always an issue if you use mp3, because otherwise why no use a lossless (eg. zip) compressor for your music (eg. WavPack, Monkey's Audio or my favorite LPAC) or just store the wavs?

--------------------------------------------------------------------------------
The classic trade-off between space and quality for mp3-archival quality is:
cbr 192kbit/s by any Fraunhofer encoder (audioactive, radium codec, mp3enc, ...)
Remarks: Decent sound quality, but not perfect so no archival quality. Clearly audible encoding artifacts on some music when using hq headphones. Everytime you see a vbr encoder take a bitrate >192 to encode a frame, you know that 192 is not sufficient for that part of the music.

--------------------------------------------------------------------------------
LAME brings us the first (and still only) optimally tweaked (unlike Fraunhofer) VBR mp3 encoder that does not mess up (unlike Xing):

lame --r3mix infile.wav outfile.mp3 (LAME 3.89b)

"--r3mix -b112" is synonym for "--nspsytune --vbr-mtrh -V1 -mj -h -b96 --lowpass 19.5 --athtype 3 --ns-sfb21 2 -Z --scale 0.98 -X0", explained here

Remarks: Perfect(x) sound quality at optimal bitrate. Sounds perfect to me and many others with -V2 -b32, but for the sake of people with very expensive audio equipment and "golden ears" an extra few bytes (about 10% size increase) are allowed with this setting. Downside to Lame VBR is the slightly longer encoding time when comparing to CBR. The resulting average bitrate will be 170-175 kbit/s (tested on +500 random mp3's). On a rare occasion you will get a small file (120 kbit) and some very rare tracks require mp3 to use up to 260-270 kbit on average to be reproduced with good quality. However, the global average for all your music is 170-175 kbit/s. If you're into really loud and busy music, like some metal collections, your album averages could be around 200kbit/s. If you're into classical music, your album average may be 160kbit/s. To learn more why this size difference, read here.


--------------------------------------------------------------------------------
Why VBR?(answer by ThomasLG)
VBR seems like a no-brainer to me. Near the beginning and ending of a song (assuming it starts and ends softly), where the volume is lower, and the music is less "demanding" in terms of its encodability, it makes sense to drop the bit rate, simply because there's not much there to encode, and the wasted space is overkill. In the middle of the song, where it may be more complicated, the idea of giving the encoder the option of "bumping up" the rate on a frame-by-frame basis is great! You may end up with a file that's the same overall size as a 170kbps CBR, but that uses frames as low as 32 on the really dead parts, and as high as 320 on the really tough parts. The bitrate is dynamically adapting to keep the quality constant. To know that the whole file isn't bloated where it isn't necessary, is a real bonus.

As you see there are fragments of a few seconds when the mp3 requires 128kbit/s to sustain quality, and there are parts when the mp3 uses 224 and 256kbit/s to sustain that same quality. Now, as a CBR user, what would you do? Or you choose to encode 128kbit/s and have some horrible sounding seconds in your music clip, or you're left to encode this clip in 256 or even 320 kbit/s, wasting a lot of bits in the process. VBR is being used in all new compression techniques: AAC, MPC, ... and also in MP3, as the standard defines!
 
Back
Top