Help - Search - Members - Calendar
Full Version: No Paddig Flag @insane since Lame V3.95
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
.halverhahn
I realised that Lame >V3.95 at "preset insane" has no padding-flag set.
Some decoders - like CEP - don't decode until the last frame, so some samples are missing.
Gabriel
QUOTE
Some decoders - like CEP - don't decode until the last frame, so some samples are missing.

Do you mean that they do not decode at all?
.halverhahn
QUOTE(Gabriel @ Jun 20 2004, 06:53 PM)
QUOTE
Some decoders - like CEP - don't decode until the last frame, so some samples are missing.

Do you mean that they do not decode at all?

No... only the last few samples are missing.
But the filesize at 320kbps is also different, why?

e.g.
Isaac Hayes - Never Can Say Goodbye

filetype - playtime (decoded in CEP) - filesize
------------------------------------------------------------------------------
wav - 3:38.639 - 38.568.140 byte
Lame 3.93.1 @320 (insane) - 3:38.723 - 8.748.929 byte
Lame 3.96 @320 (insane) - 3:38.535 - 8.741.412 byte
Lame 3.93.1 @256 (ap cbr 256) - 3:38.723 - 6.999.143 byte
Lame 3.96 @256 (ap cbr 256) - 3:38.723 - 6.999.143 byte

encode string for CBR 320: --alt-preset insane
encode string for CBR 256: --alt-preset cbr 256

Used encoder:
Lame V3.93.1 from Mitiok's Site
Lame V3.96 from Mitiok's Site

Edit:
The decoded playtime in CEP is different, decoded with F2k all files are the same!
It seems this is a problem in CEP.
metaller
QUOTE
But the filesize at 320kbps is also different, why?

Because of padding. When it is used, some frames are one byte longer than those without padding, resulting in different file sizes in your case.

It looks like your decoder uses file size to calculate number of frames, then decodes only that many frames. Without padding, calculated number of frames will be lesser than actual number, so your decoder skips last few frames.

44kHz audio CBR mp3's should always use padding to avoid such problems.
holkie
QUOTE
Isaac Hayes - Never Can Say Goodbye

filetype - playtime - filesize
------------------------------------------------------------------------------
wav - 3:38.639 - 38.568.140 byte
Lame 3.93.1 @320 (insane) - 3:38.723 - 8.748.929 byte
Lame 3.96 @320 (insane) - 3:38.535 - 8.741.412 byte
Lame 3.93.1 @256 (ap cbr 256) - 3:38.723 - 6.999.143 byte
Lame 3.96 @256 (ap cbr 256) - 3:38.723 - 6.999.143 byte


are versions 3.96, 3.93 and 3.90.3 supposed to give exactly the same results in cbr mode (--api for instance)?
Gabriel
QUOTE
are versions 3.96, 3.93 and 3.90.3 supposed to give exactly the same results in cbr mode

Regarding bitrate, yes.
The change here is because of the missing padding in 3.96. (already corrected in CVS)
.halverhahn
QUOTE(Gabriel @ Jun 21 2004, 11:55 AM)
QUOTE
are versions 3.96, 3.93 and 3.90.3 supposed to give exactly the same results in cbr mode

Regarding bitrate, yes.
The change here is because of the missing padding in 3.96. (already corrected in CVS)


Are there any quality restrictions for the files without padding?
holkie
btw, might be irrelevant to ask but has --api switch been improved in 3.96?
Gabriel
QUOTE
Are there any quality restrictions for the files without padding?

Very minor: 1 byte less in frames without padding.
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.