Help - Search - Members - Calendar
Full Version: Transcoding with lame - missing samples?
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
janger
Hi all.
I have some high bitrate lame encoded mp3's, and would like to convert them to a lower bitrate for a flash player. However, I'm confused as to why lame adds/deletes samples upon recoding.

For example, a 320kbs cbr file was rencoded using the same settings. After decoding both files to wave - again with lame - the EAC compare tool showed the first file was missing 1105 samples from the beginning compared to the second file. If I've read the results correctly that means the second file had been padded at the front. Why does this happen? I thought lame wrote info about encoding delays etc into the files. Is it just not using them?

This is no big deal for me. But I'm curious as to how and why this happens.
rutra80
LAME decoder isn't perfect (more info in this post), decode/reencode with for example foobar2000 to avoid such problems.
Cosmo
Shortly after the issue was brought up (again) in that post, a lame.exe was released that fixed the decoding issue. You can get it at RareWares.
janger
QUOTE(Cosmo @ Nov 28 2005, 06:49 PM)
Shortly after the issue was brought up (again) in that post, a lame.exe was released that fixed the decoding issue. You can get it at RareWares.
*



Well ain't I a drongo. Saw that version and just overlooked it. I'll give it a try.

So this is just a decoding problem, nothing to do with encoding? I read that foobar2000 gave proper results but couldn't work out how since it relies on lame to encode mp3's.
Does that mean if I go from mp3 --> mp3, fb2k uses it's built in decoding routine as the intermediate step, rather than lame's?
rutra80
Yes, LAME as an encoder is all fine, but as decoder it tended to be buggy. Foobar2000 as a player has its own decoding routines for MP3 (one of the finest), it uses external encoders for encoding only, so when you reencode with fb2k the file is decoded by fb2k and then encoded by external encoder (LAME in this case).
janger
I meant to say in my last post that I hadn't used fb2k much. It overwhelmed me with all the options etc. But after playing with it for a few hours, I love it. Definately the best way to do what I asked about. And it writes the tags to the new files! Great stuff.

And thanks for the help, all.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.