QUOTE(burnett_s @ Nov 5 2005, 12:27 AM)
OK, just to clear this thing.
I use LAME 3.97b1 to encode to MP3.
And I also use it to decode to WAV.
Should I continue using LAME for decoding ?
Should I use another decoder ?
Gr.
Gonzalo
Reading a lot of posts here in HA I discovered that decoding using Foobar's diskwriter is the preferred method.
QUOTE(timcupery @ Feb 13 2005, 01:58 AM)
There are a couple of reasons I decode using Foobar's diskwriter instead of Winamp's. These won't necessarily matter for people's mp3 files...
1. Foobar reads LAME headers to do gapless decodes. Whereas Winamp will add 576 samples of basically silence, at the beginning, and whatever number of leftover samples at the end of the track. This only really matters with live music, or songs that are supposed to be gapless.
2. With foobar you can dither the output. This is useful if you have significantly lowered the volume of the mp3 files using replaygain - it's possible that you'll get a noise floor that's too low with the outputted wave files. And this doesn't matter for files that haven't had their volume lowered with replaygain, or have only been dropped a small bit.
http://www.hydrogenaudio.org/forums/index....ndpost&p=273029QUOTE(timcupery @ Feb 13 2005, 02:27 PM)
Mp3 files are in frames of 1152 samples each. CD-audio tracks are in "frames" (basically) of 588 samples (75 of these per second, for a total of 44100 samples per second).
Most mp3 encoders introduce a delay of some samples into the first frame before the actual info from the encoded wav begins. In LAME, this delay is 576 samples.
Also note that since mp3 files need to be an integer of frames (you can't really have half a frame, or if you can, your mp3 header information is messed up), there will be some null samples at the end.
LAME deals with this by writing info to the header on the number of samples of delay (at the start) and padding (at the end). So a file might say
enc_delay: 576
enc_padding: 1644
Foobar reads this information and does not play (or decode) the initial 576 samples, or the last 1644, thus providing true gapless playback. So you end up with a decoded file the exact length of the initial encoded wav file.
Winamp ignores this information, and thus plays (and decodes) the extra samples. And it's not always clean silence, sometimes with a very slight baseline noise, so you can't actually get rid of the initial 576 samples from a winamp decode by "removing null samples".
So the upshot: if decoding a live album that was encoded with LAME, use foobar.
http://www.hydrogenaudio.org/forums/index....ndpost&p=273153QUOTE(dev0 @ Jan 21 2005, 02:43 PM)
LAME uses mpglib, which is known to be reliable, but doesn't decode gaplessly.
foobar2000 uses mpglib too, decodes gaplessly and lets you use its advanced dithering algorithms for optimal quality beyond audibility.
http://www.hydrogenaudio.org/forums/index....ndpost&p=267076QUOTE(Gabriel @ Jan 21 2005, 03:45 PM)
I would not trust Lame's decoding too much.
There are probably still some uncorrected bugs in the mpglib version we are using.
http://www.hydrogenaudio.org/forums/index....ndpost&p=267087QUOTE(picmixer @ Jan 21 2005, 09:16 PM)
Foobar2000 uses a custom modified version of mpglib as dev0 already said and should be absolutely safe for decoding LAME encoded mp3 to wav. Plus you will be sure that all your tracks will be decoded gapless.
http://www.hydrogenaudio.org/forums/index....ndpost&p=267133Well, it seems that Foobar2000 is the best.