Help - Search - Members - Calendar
Full Version: Looking for info about modified lame_enc.dll
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
uart
Hi, I'm still trying to find out what other settings are different between the standard lame3.96.1 version and the following modified version that I downloaded from rarewares.
http://www.rarewares.org/files/mp3/lameDll3.96.1_MOD.zip

At first I though that the only difference was that this modified version takes all it's settings from an ini file instead of from the command line, but that doesn't explain why the modified version produces much smaller file sizes. On the test track I encoded at --preset medium, the normal version of lame (3.96.1) encodes at approx 160kpbs whereas the modified version only encodes ar 138kbps.

I appreciate the smaller file size but would love to know what settings have been altered to achieve this lower bit rate.

BTW. The ini file I'm using to encode at --preset medium with the modified encoder is as follows.

BTW. The ini file I'm using to encode at --preset medium with the modified encoder is as follows.
CODE
[lame_enc]
LamePreset=11
Scale=0.0
ExperimentalY=0

REM LamePreset is allocated using the following numbering scheme:
REM  1 = V9 - VBR_RH(Old)                               - ExperimentalY already set
REM  2 = V9 - VBR_MTRH(New - FAST)                      - ExperimentalY already set
REM  3 = V8 - VBR_RH(Old)                               - ExperimentalY already set
REM  4 = V8 - VBR_MTRH(New - FAST)                      - ExperimentalY already set
REM  5 = V7 - VBR_RH(Old)                               - ExperimentalY already set
REM  6 = V7 - VBR_MTRH(New - FAST)                      - ExperimentalY already set
REM  7 = V6 - VBR_RH(Old)                               - ExperimentalY already set
REM  8 = V6 - VBR_MTRH(New - FAST)                      - ExperimentalY already set
REM  9 = V5 - VBR_RH(Old)                               - ExperimentalY already set
REM 10 = V5 - VBR_MTRH(New - FAST)                      - ExperimentalY already set
REM 11 = V4 - VBR_RH(Old)          - Preset MEDIUM      - ExperimentalY already set
REM 12 = V4 - VBR_MTRH(New - FAST) - Preset MEDIUM FAST - ExperimentalY already set
REM 13 = V3 - VBR_RH(Old)                               - ExperimentalY already set
REM 14 = V3 - VBR_MTRH(New - FAST) - R3MIX              - ExperimentalY already set
REM 15 = V2 - VBR_RH(Old)          - Preset STANDARD
REM 16 = V2 - VBR_MTRH(New - FAST) - Preset STANDARD FAST
REM 17 = V1 - VBR_RH(Old)
REM 18 = V1 - VBR_MTRH(New - FAST)
REM 19 = V0 - VBR_RH(Old)          - Preset EXTREME
REM 20 = V0 - VBR_MTRH(New - FAST) - Preset EXTREME FAST
REM 21 = 320                       - Preset INSANE
REM
REM To change the preset used, edit the number following 'LamePreset='.
REM NOTE: Invalid numbers will be ignored, default is 'V2 VBR_RH - preset STANDARD'.
REM
REM Scale can be used to apply the ReplayGain factor to scale the samples
REM as floating point numbers within LAME before encoding.
REM Valid values are > 0.0 and less than 1.0, default = 0.0.
REM
REM ExperimentalY is used to toggle the switch ON or OFF. Set to 1 if you want
REM it changed to ON or OFF, depending whether it is already set.
REM If set to anything other than 1,it will be ignored.
REM NOTE: ONLY the FIRST 4 lines of this file are read and used.
john33
Hmmm, thanks for drawing this to my attention. It would appear there was a problem with that dll. I have now fixed this and uploaded again to Rarewares.
Jojo
I'd say the only difference is that -Y has been added for some presets...

So in your case, try --preset medium -Y and see if you get 138kbps for the original version...
uart
QUOTE (john33 @ Jan 3 2005, 09:24 AM)
Hmmm, thanks for drawing this to my attention. It would appear there was a problem with that dll. I have now fixed this and uploaded again to Rarewares.
*


Thanks heaps John, that dll which takes it's settings from an ini file is extremely useful for programs like CDex that dont give you enough encoding options. smile.gif

I just downloaded the updated dll and now it's producing my "--preset medium" mp'3 at exactly the same bitrate as the regular lame (3.96.1). I even decoded the two mp3's back to wav and they were bit for bit identical. biggrin.gif
k.eight.a
I thought that every setting under quality -V2 (or --preset standard) comes with -Y switch already set... So where's the truth?
uart
QUOTE (k.eight.a @ Jan 4 2005, 06:21 AM)
I thought that every setting under quality -V2 (or --preset standard) comes with -Y switch already set... So where's the truth?
*


Yep that's what I read in the pinned post in the mp3-tech forum here. : http://www.hydrogenaudio.org/forums/index....showtopic=18091

Perhaps that's one of the reasons that the later compiles are often being recommended for lower bit rate vbr settings despite the fact that they're not yet universially considered better than the older 3.90.3 at -aps.

CODE
Switch            equals               target  Y  b  lowpass resample
-V 0            = --preset extreme       240     128  19500
-V 0 --vbr-new  = --preset fast extreme  240     128  19500
-V 1                                     210     128  19000
-V 1 --vbr-new                           210     128  19000
-V 2            = --preset standard      190     128  19000
-V 2 --vbr-new  = --preset fast standard 190     128  19000
-V 3                                     175   1      18000
-V 3 --vbr-new                           175   1      18000
-V 4            = --preset medium        165   1      18000
-V 4 --vbr-new  = --preset fast medium   165   1      18000
-V 5                                     130   1      17000
-V 5 --vbr-new                           130   1      17000
-V 6                                     115   1      16000
-V 6 --vbr-new                           115   1      16000
-V 7                                     100   1      14900   32000
-V 7 --vbr-new                           100   1      14900   32000
-V 8                                      85   1      12500   32000
-V 8 - vbr-new                            85   1      12500   32000
-V 9                                      65   1      10000   24000
-V 9 - vbr-new                            65   1      10000   24000
larswes
From this thread:

QUOTE (Gabriel @ Dec 7 2004, 02:30 PM)
QUOTE
Is there really no (undocumented?) way to turn -Y off for -V 3 or -V 4?

No
*
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-2009 Invision Power Services, Inc.