Help - Search - Members - Calendar
Full Version: LAME 3.98 Final
Hydrogenaudio Forums > Hydrogenaudio Forum > Validated News
Pages: 1, 2, 3, 4
robert
@Bad Monkey

Using Visual C++ Express Edition with the Microsoft Platform SDK

Nmake is one of the executables in PSDK bin directory.

To setup build environment from the command line, call the batch files vcvarsall.bat from Visual Studio and SetEnv.cmd from PSDK. They will set PATH, INCLUDE and LIB environment variables for you.
rbrito
QUOTE(Wombat @ Jul 4 2008, 13:41) *

Cool thing! Finaly smile.gif
Waiting for the first complaints about inreased bitrate at V2. My noise samples seem fine but higher in bitrate than older 3.98 betas i tested. Much higher than 3.97 for sure.


See if the lowpass filter is filtering higher frequencies than before. This may be one of the reasons for the bitrate inflation.

I for one, am perfectly happy with lame 3.98 and "-V 5" (or even lower than that, as I already mentioned that I can't abx "--resample 44100 -V 7" from the original). I guess that I don't have the golden ears that you guys have.

I'm using the misc/abx tool that I fixed. Oh, and I started committing some cosmetic changes to the repository. In particular, I will take care of some of the expopt=full things, but I don't have access to a MacOS X running Leopard.

My iBook G3 (yes, G3) can only run MacOS X Tiger and I'm switching to Debian (goodbye, Apple) as soon as I can finally debug the rt2500usb driver for PowerPC.


Regards, Rogério Brito.

P.S.: I don't know if this is still the case, or if I am dreaming, but if I pass "--resample 44100" to a "-V 7" encoding process, then the lowpass filter allows higher frequencies to be encoded... I will have to check our sources.
rbrito
QUOTE(john33 @ Jul 4 2008, 18:38) *

QUOTE(Jebus @ Jul 4 2008, 22:29) *

QUOTE(Canar @ Jul 4 2008, 10:05) *
My congratulations to the LAME team on another awesome release!

I suppose now we're just one update away from 4.0? Or will the LAME team be humorous and release 3.100 instead? Find out next time on Hydrogenaudio!



I don't believe there is much (if any) activity on 4.0 anymore... at least there wasn't the last time I checked.

There's been no activity for about 2 and a half years. I imagine Takehiro's life has gone in a different direction. wink.gif


Indeed, it seems that the development will be on the 3.x front for some time. But who cares? Version numbers are not decimal numbers (or numbers in any other base smile.gif ) in general, at least. smile.gif

Anyway, we haven't seen messages from Takehiro for the past 6 months or so. A pity, since I planned on doing things with him (as he is a Debian user like me). smile.gif

And doing a benchmark regarding his hack (like the guy from Intel asked us) on other platforms than Windows would be a good thing... I think that I will have to make things systematic here with many compilations and GCC options.

(BTW, if any Debian/Ubuntu user feels that lame should be a bit faster and you have a recent CPU, I would recommend that you base your own compilations on the switches that I've put on Makefile.unix from the recent CVS trunk---it will quite possibly have some improvements related to what you get if you compile with expopt=full).

Oh, you should have GCC 4.3, as we were discussing on lame-dev that versions from Red Hat may not work correctly with the -ffast-math switch (Robert found a funny case of miscompilation).

Regards, Rogério Brito.


QUOTE(krmathis @ Jul 4 2008, 10:23) *

Great news! biggrin.gif
Lame 3.98 for Mac OS X (universal binary) available on my website.


How did you compile it? With the macosx directory present on the sources? I guess that some ia32 code could be improved, depending on the options you've used.

Regards, Rogério Brito.

P.S.: I have not checked your .dmg file since I am on Ubuntu, but do you provide dynamic libraries also? It would be a good thing for those that use audacity to export their files...

QUOTE(.halverhahn @ Jul 4 2008, 13:19) *

Free Beer for all developers! beer.gif beer.gif beer.gif


A used/old (traditional, not extreme) Apple Airport card for G3 iBooks would be much appreciated. smile.gif I have problems drinking and coding. smile.gif


Regards, Rogério Brito.

P.S.: Actually, I'm moderately serious here: if anybody in the US or Europe can get one such a card and send me as a "gift" (so that I don't have problems with customs, like I did for ordering a US$9 "The Gathering" DVD from amazon, when I ordered books on Abstract Algebra), I would be quite grateful.

We can see how I can pay back for the card and shipping (most probably, places like Otherworld computing or www.smalldog.com would have such a card).

krmathis
QUOTE(rbrito @ Jul 13 2008, 18:07) *
How did you compile it? With the macosx directory present on the sources? I guess that some ia32 code could be improved, depending on the options you've used.

Regards, Rogério Brito.

P.S.: I have not checked your .dmg file since I am on Ubuntu, but do you provide dynamic libraries also? It would be a good thing for those that use audacity to export their files...

I (cross)compiled static binaries in three stages (one for each architecture), which I later merged to one universal binary with 'lipo'.
Just a plain "./configure [flags here] && make" in the source directory. No magic...

Would be interested in improvements which would make it more effective. smile.gif

Edit: Think I used GCC 4.2.1. Have GCC 4.0.1 installed as well, hence why I am not 100% sure.
rbrito
QUOTE(k.eight.a @ Jul 5 2008, 21:40) *

QUOTE(garym @ Jul 5 2008, 15:20) *

What' the difference between using the "LAME 3.98 using libsndfile 1.0.17" versus the other bundle of LAME 3.98. I don't recall this option before. I simply use LAME encoder as called by EAC or fb2k. Thanks for any insight on this.
I'd love to know it either. cool.gif

Anyway many thanks to the developers for the new version and a step forward. smile.gif


libsndfile allows lame to take much more input formats than "bare" lame.

Version 1 of the library (as opposed to version 0, which was available earlier, in lame 3.97 and previous versions) still allow one to grab input from the standard input, while allowing one to take a FLAC file directly as input (just to name one popular format that I know that works) and (this one is particularly important to me, since I record my classes) to take "wav" audio in IMA ADPCM (like those generated by the very popular S1MP3 recorders/players), all without many gymnastics.

The libsndfile1 ability of lame came directly from Erik de Castro Lopo's (the upstream author of libsndfile). That is, from the horse's mouth. smile.gif

Hope this clarifies a bit, Rogério Brito.
rbrito
QUOTE(krmathis @ Jul 13 2008, 13:24) *

QUOTE(rbrito @ Jul 13 2008, 18:07) *
How did you compile it? With the macosx directory present on the sources? I guess that some ia32 code could be improved, depending on the options you've used.

Regards, Rogério Brito.

P.S.: I have not checked your .dmg file since I am on Ubuntu, but do you provide dynamic libraries also? It would be a good thing for those that use audacity to export their files...

I (cross)compiled static binaries in three stages (one for each architecture), which I later merged to one universal binary with 'lipo'.
Just a plain "./configure [flags here] && make" in the source directory. No magic...

Would be interested in improvements which would make it more effective. smile.gif

Edit: Think I used GCC 4.2.1. Have GCC 4.0.1 installed as well, hence why I am not 100% sure.


Apple ships their own "instrumented" GCC 4.0.1, which makes it hard to detect the features based on the version alone (grrr...). Anyway, you could try to compile things with (Apple's) options --arch, like "--arch powerpc --arch i386 --arch ppc64". Pass it, in the configure step, as:

CFLAGS="--arch powerpc --arch i386 --arch ppc64" ./configure && make

It should work. If not, please, file a bugreport on our tracker. But using "lipo" is fine also. Just thought you would like to know about an easier method.

You might want to see what I posted here: My (outdated) diary/blog.

Anyway, it would be worth it to grab the sources from the FSF of GCC 4.3.1 (and of two libraries that are required now) to benefit from some newer features and fixes. Just enable C, if you have a slow machine or if you are impatient. smile.gif

BTW, I've been crosscompiling kernels for PowerPC with a x86-64 machine, generating a .deb package and everything with a similar recipe.


Regards, Rogério Brito.
rbrito
QUOTE(IgorC @ Jul 4 2008, 20:59) *

QUOTE(DARcode @ Jul 4 2008, 19:13) *

I've surely missed something in the MP3 forums, but what's the reason behind Gabriel's limited involvement with this release please?

He's doing well on x264 project.


Ah, this explains why he mentioned lately that there was a lack of manpower in the lame project (citing that once that the core people working on lame hasn't changed in the last 8--10 years, with Robert doing a lot of work), while he mentioned that some people were getting paid on other Open Source projects like x264... Hummm...

But, actually, he is correct. Lame is next to its limits (Robert can prove me wrong here smile.gif ), as I see it, while other progeny from the newer MPEG specifications should be improved. And his work on x264 is greatly appreciated (actually, the projects developed/communicated/hosted at mplayerhq.hu are so welcome that I can't even start thanking them). One has got to love the ffmpeg project, for instance.

Regards, Rogério Brito.
rbrito
QUOTE(Synthetic Soul @ Jul 6 2008, 05:53) *

This option was present with 3.97 also (and presumably previous versions). Lame with libsndfile allows you to encode from numerous additional formats, including AIFF, SND, VOC, and FLAC. Check the site for the full list.


Yes, but it only had libsndfile0, while, now, lame has support for libsndfile1, which includes flac files and IMA ADPCM files to be used as input.

The patch was sent by Erik himself about the time of lame 3.98 beta 1, according to our changelog.

Regards, Rogério Brito.
rbrito
QUOTE(Rain @ Jul 7 2008, 16:04) *

BTW, I'm not sure if anyone's noticed but many of the pages on the official LAME sourceforge website are not valid XHTML 1.0 Transitional.


The changelog is valid HTML 4.01 Transitional, soon to be XHTML 1.0 Transitional. smile.gif


Regards, Rogério. smile.gif
krmathis
QUOTE(rbrito @ Jul 13 2008, 20:45) *
Apple ships their own "instrumented" GCC 4.0.1, which makes it hard to detect the features based on the version alone (grrr...). Anyway, you could try to compile things with (Apple's) options --arch, like "--arch powerpc --arch i386 --arch ppc64". Pass it, in the configure step, as:

CFLAGS="--arch powerpc --arch i386 --arch ppc64" ./configure && make

It should work. If not, please, file a bugreport on our tracker. But using "lipo" is fine also. Just thought you would like to know about an easier method.

Thats basically what I did. Add "--arch powerpc" etc. But one architecture at a time, since I had to cross-compile and thought that were the only way. Works like a treat, so guess I stick with it. After all it end up identical...

QUOTE
You might want to see what I posted here: My (outdated) diary/blog
Will head over to take a look.

QUOTE
Anyway, it would be worth it to grab the sources from the FSF of GCC 4.3.1 (and of two libraries that are required now) to benefit from some newer features and fixes. Just enable C, if you have a slow machine or if you are impatient. smile.gif

BTW, I've been crosscompiling kernels for PowerPC with a x86-64 machine, generating a .deb package and everything with a similar recipe.


Regards, Rogério Brito.
Well, I just installed Xcode 3.1 today. With two compilers installed already I stay clear of installing a third one. Its a shame that Apple lay so far behind with their GCC version, but guess they have their reason...
Bad Monkey
QUOTE(robert @ Jul 14 2008, 03:27) *

@Bad Monkey

Using Visual C++ Express Edition with the Microsoft Platform SDK

Nmake is one of the executables in PSDK bin directory.

To setup build environment from the command line, call the batch files vcvarsall.bat from Visual Studio and SetEnv.cmd from PSDK. They will set PATH, INCLUDE and LIB environment variables for you.

Thanks Robert, that got me along a bit. It's built some libraries, but now failed with an error along the lines of x86 when x64 is needed.

Backing up a bit, in my VC/bin/ dir, there is only a "vcvars32.bat". Running "vcvarsall.bat x64" (as I understand I need to) fails, configuration data unavailable. None of the 64-bit bats exist.
A bit of a look later, and I see this: http://msdn.microsoft.com/en-us/library/hs24szh9.aspx
Does this mean VS Express is incompatible with ICL 64-bit?
Or am I doing something stupid again.
cabbagerat
QUOTE(rbrito @ Jul 13 2008, 08:07) *

(BTW, if any Debian/Ubuntu user feels that lame should be a bit faster and you have a recent CPU, I would recommend that you base your own compilations on the switches that I've put on Makefile.unix from the recent CVS trunk---it will quite possibly have some improvements related to what you get if you compile with expopt=full).

I took a look at the version in the CVS Head (dated 12 July) and have a couple of comments for you:
QUOTE

135 # Suggested for GCC 4.* & machines with sse+sse2+sse3: -Os might reduce
136 # the use of the instruction cache and, thus, get better performance,
137 # but this should be experimented by the user. Customize at your own
138 # convenience.
139 #
140 #CC_OPTS = -pipe -O3 \
141 # -Wall -Wextra -pedantic \
142 # -Wmissing-declarations -Wfloat-equal -Wshadow \
143 # -Wcast-qual -Wcast-align -Wdisabled-optimization \
144 # -ffast-math -ftree-vectorize -ftree-vect-loop-version \
145 # -mtune=nocona -march=nocona -mfpmath=sse -msse -msse2 -msse3 \
146 # -malign-double -maccumulate-outgoing-args


-ftree-vectorize-version is the default, and might or might not make faster code. It makes some of my code slower, but I couldn't get a significant result either way with LAME.
-mtune=nocona is not needed because -march= implies -mtune
-march=nocona could probably be replaced with -march=native, which would be better for a wider range of people

On x86_64 you can drop -malign-double and -mfpmath=sse because these are default.

Thanks again for the development effort, and good luck with future releases.
niask
QUOTE(twostar @ Jul 4 2008, 20:03) *
Thanks so much to the LAME devs!

Maybe it's time to update the recommended version here at HA as well.
Yeah, why in the Hydrogenaudio Knowledgebase the currently recommended LAME version is still 3.97?
MedO
QUOTE(niask @ Jul 16 2008, 10:31) *

QUOTE(twostar @ Jul 4 2008, 20:03) *
Thanks so much to the LAME devs!

Maybe it's time to update the recommended version here at HA as well.
Yeah, why in the Hydrogenaudio Knowledgebase the currently recommended LAME version is still 3.97?


Because we should verify first that 3.98 is superior generally and shows no serious regressions over 3.97. What use is the recommendation if it always just indicates the latest stable version? I don't doubt the ability of the devs here, but everyones ears are different, and testing the new recommended version and settings against the old ones in a public listening test is important to ensure it really sounds better for most people.
kornchild2002
QUOTE(niask @ Jul 16 2008, 02:31) *

QUOTE(twostar @ Jul 4 2008, 20:03) *
Thanks so much to the LAME devs!

Maybe it's time to update the recommended version here at HA as well.
Yeah, why in the Hydrogenaudio Knowledgebase the currently recommended LAME version is still 3.97?


Lame 3.97 is still the recommended version as 3.98 hasn't been through any public listening tests (or multiple individual tests). People are setting up a public listening test right now. They have narrowed down the list of encoders and settings to use (mainly 128kbps VBR with a variety of mp3 encoders including Lame 3.98) and are now working on the samples that will be used.

Edit: MedO beat me to it.
Raiden
I remember this discussion when 3.97 was new...

3.98 should be Hydrogenaudio's new recommended MP3 encoder. Every "stable" version should be automatically recommended. Why? Over two years there were many beta versions... all of which were (or at least should have been) tested for improvement and/or regression. A listening test now is nothing more than just a formality. I don't believe that 3.98 would turn out worse than 3.97... and if it did, it could mean just two things: either the developers didn't do a good job (which is of course extremely unlikely), or the community feedback wasn't good enough in those two years in which case any "Hydrogenaudio recommendation" would lose its authority completely.
john33
QUOTE(Raiden @ Jul 16 2008, 10:39) *

I remember this discussion when 3.97 was new...

3.98 should be Hydrogenaudio's new recommended MP3 encoder. Every "stable" version should be automatically recommended. Why? Over two years there were many beta versions... all of which were (or at least should have been) tested for improvement and/or regression. A listening test now is nothing more than just a formality. I don't believe that 3.98 would turn out worse than 3.97... and if it did, it could mean just two things: either the developers didn't do a good job (which is of course extremely unlikely), or the community feedback wasn't good enough in those two years in which case any "Hydrogenaudio recommendation" would lose its authority completely.

While the public listening tests are useful, on balance, I have to agree with Raiden. It is certainly true to say that considerable testing has been done via this board over the development period. The 'golden ears' have already done their job! wink.gif
halb27
QUOTE(Raiden @ Jul 16 2008, 11:39) *

... 3.98 should be Hydrogenaudio's new recommended MP3 encoder. Every "stable" version should be automatically recommended. ...

I totally agree, but in the end this means that there's no use in recommending a Lame version. The latest verison always is considered best. We never know something for sure, especially as we can't have encoder experience with the universe of music, but as long as there's no experience of serious regression (which hopefully would trigger further Lame improvement) just using the latest version is the most promising strategy.
Wombat
For me, i use 3.98 betas since beta 3 if i´m right. From there on the added noise i disliked from version 3.97 was much improved or gone at high bitrate V values.
One thing is that most 3.98 testing i read over here was done at relative high bitrates. I don´t know how 3.98 behaves on low bitrates. This may be the main unknown atm.
smok3
maybe it is time for some changes
a. i wouldn't recommend any particular version
b. just update the thread with recommended usage command line(s)/switches when there is a decently different/newer version out there
/mnt
I found a track that LAME 3.98 seems to perform better then 3.97 at V2.

CODE
foo_abx 1.3.3 report
foobar2000 v0.9.5.4
2008/07/17 11:22:55

File A: C:\Temp\2 Run To The Hills.wav
File B: C:\Music\Albums\Iron Maiden - The Number Of The Beast\06. Run To The Hills.mp3

11:22:55 : Test started.
11:23:45 : 01/01 50.0%
11:23:50 : 02/02 25.0%
11:23:59 : 03/03 12.5%
11:24:49 : 03/04 31.3%
11:25:15 : 04/05 18.8%
11:25:20 : 05/06 10.9%
11:25:26 : 06/07 6.3%
11:25:36 : 07/08 3.5%
11:25:45 : 08/09 2.0%
11:25:57 : 09/10 1.1%
11:26:29 : 10/11 0.6%
11:26:48 : 11/12 0.3%
11:27:07 : 12/13 0.2%
11:27:19 : 13/14 0.1%
11:27:37 : Test finished.

----------
Total: 13/14 (0.1%)


At around 0:47 - 0:48, there is a nasty smear on the drums. The track's bitrate is at 237kbps and its still not transparent, and my V0 encode was at 293 and managed to get a 8/10.

I have tested it on 3.98 at V2 (7/10), but sometimes I could hear a "psst" (precho) sound at the same area, but it was harder to notice unlike the 3.97 encode. The bitrate on the 3.98 encode was a tad lower at 234kbps (-3).

This track is a bad example of the sfb21 issue, such as being bloated and not transparent, and one of the main reasons I do not use V0.
Stevie
QUOTE(Gabriel @ Jul 9 2008, 02:09) *



Hey Gabriel,

thanks for the x64 build!



Best,

Stevie
gsa999
Hi
Could someone advise whether to get the very best mp3 quality I should be using -b 320 or v0 with Lame 3.98. Storage space is not an issue for me so the increased file size with CBR is fine, but I want the best quality.

TIA
cabbagerat
QUOTE(gsa999 @ Jul 19 2008, 07:11) *

Could someone advise whether to get the very best mp3 quality I should be using -b 320 or v0 with Lame 3.98. Storage space is not an issue for me so the increased file size with CBR is fine, but I want the best quality.
If space is not an issue, I would recommend going with lossless (FLAC, or similar). That way you can be sure you have no audible artifacts, and you can transcode (for an iPod, for example) at will. I'm not an MP3 hater, but lossy compression only makes sense in situations where space is an issue. Do you have any reason to prefer very large MP3s to lossless?
Lyx
QUOTE(smok3 @ Jul 16 2008, 17:45) *

maybe it is time for some changes
a. i wouldn't recommend any particular version
b. just update the thread with recommended usage command line(s)/switches when there is a decently different/newer version out there

Why not use a blacklist instead of a whitelist? That is, do not "recommend" a specific version, but instead "unrecommend" significantly suboptimal verions.
gsa999
QUOTE(cabbagerat @ Jul 19 2008, 17:25) *

If space is not an issue, I would recommend going with lossless (FLAC, or similar). That way you can be sure you have no audible artifacts, and you can transcode (for an iPod, for example) at will. I'm not an MP3 hater, but lossy compression only makes sense in situations where space is an issue. Do you have any reason to prefer very large MP3s to lossless?

Yes, sorry I did not make that clear in my initial post. I want to use the mp3's for my iPod. I already use flac to stream music within the home, but lossless files (flac or aac) are going to limit the amount of music I can get on the iPod.

Rgds
Bad Monkey
QUOTE(gsa999 @ Jul 20 2008, 05:53) *

Yes, sorry I did not make that clear in my initial post. I want to use the mp3's for my iPod. I already use flac to stream music within the home, but lossless files (flac or aac) are going to limit the amount of music I can get on the iPod.

Rgds

AAC is not lossless, you mean ALAC.

That said, if it's just for the iPod and you don't need the better general compatibility of MP3s, use AAC instead of MP3; for the same quality the files are smaller. Only drawback is the encoder is half the speed of LAME.
LANjackal
Thanks smile.gif
CiTay
QUOTE(smok3 @ Jul 16 2008, 17:45) *

maybe it is time for some changes
a. i wouldn't recommend any particular version
b. just update the thread with recommended usage command line(s)/switches when there is a decently different/newer version out there


This is a good idea, i thought about that as well. I updated the Wiki accordingly.
LoFiYo
QUOTE(john33 @ Jul 6 2008, 11:11) *

OK, I've updated the lame.exe download now compiled to use the libsndfile 1.0.18pre22a dll and I've also added a build of lamedropXPd that works with the same dll and both now accept FLAC files as input and process accordingly. smile.gif

(Both builds include the new dll.)

Hi John,
Whenever you get around to updating the "lame_enc.dll modified to use INI File" for 3.98, is there any way you can add more options to what you can specify in the INI file? for example, Mono/JStereo switch, CBR/ABR switch, CBR/ABR bitrate value (and these would be ignored when a LamePreset is used)? I think these additional switches would make the binary more useful to more people. I would appreciate it if you could consider implementing some or all of these switches. Thanks smile.gif
/mnt
I have uploaded a sample, that both LAME 3.97 and 3.98 struggle at -V3 and -V2. I got 10/10 with 3.97, since there's a smear at 0:13. The smear seems to have gone on 3.98, but there is a warbling noise on the distorted guitar riff at the start of the track.

Linchpin Sample

CODE
foo_abx 1.3.3 report
foobar2000 v0.9.5.5
2008/08/09 17:55:53

File A: C:\Temp\Linchpin3.98V2.mp3
File B: C:\Temp\Listen Tests\Linchpin.wav

17:55:53 : Test started.
17:56:12 : 01/01 50.0%
17:56:17 : 02/02 25.0%
17:56:33 : 03/03 12.5%
17:57:08 : 04/04 6.3%
17:57:31 : 05/05 3.1%
17:57:38 : 06/06 1.6%
17:58:05 : 07/07 0.8%
17:58:30 : 08/08 0.4%
17:58:36 : 09/09 0.2%
17:58:42 : 10/10 0.1%
17:58:50 : 11/11 0.0%
17:59:29 : 12/12 0.0%
17:59:31 : Test finished.

----------
Total: 12/12 (0.0%)

john33
QUOTE(LoFiYo @ Jul 26 2008, 20:25) *

QUOTE(john33 @ Jul 6 2008, 11:11) *

OK, I've updated the lame.exe download now compiled to use the libsndfile 1.0.18pre22a dll and I've also added a build of lamedropXPd that works with the same dll and both now accept FLAC files as input and process accordingly. smile.gif

(Both builds include the new dll.)

Hi John,
Whenever you get around to updating the "lame_enc.dll modified to use INI File" for 3.98, is there any way you can add more options to what you can specify in the INI file? for example, Mono/JStereo switch, CBR/ABR switch, CBR/ABR bitrate value (and these would be ignored when a LamePreset is used)? I think these additional switches would make the binary more useful to more people. I would appreciate it if you could consider implementing some or all of these switches. Thanks smile.gif

Sorry, I've not been ignoring this but I was away when you posted it! wink.gif I plan to take a look at this over the next week, or so.
john33
There is new version of the modified dll now at the Lame Libraries page at Rarewares. This is a 3.98 ICL10.1 compile and contains much more flexibility than previously. From the new .ini file:
CODE
[lame_enc]
LamePreset=V2.00
Stereo=JS
Scale=0.0
ExperimentalY=0

REM LamePreset is specified as follows:
REM  For VBR settings V0.00 to V9.00, specify LamePreset=Vn.nnn.
REM  The specified value will be chacked and defaulted to V2.0 if invalid.
REM
REM  For ABR settings, specify LamePreset=ABRnnn, where nnn = desired bitrate.
REM  The specified value will be checked and limited to within 8 - 320.
REM  
REM  Similarly, for CBR, specify LamePreset=CBRnnn, where nnn = desired bitrate.
REM  For CBR, the indicated bitrate will be checked and will be adjusted to
REM  the nearest valid CBR bitrate.
REM  
REM  If the 'LamePreset' line is invalid, it will default to 128kbps CBR, as normal.
REM
REM To specify Mono, specify Stereo=Mono
REM  Please Note: In order for downmixing to Mono to work correctly, you will
REM  need to select a setting on the CDex Settings page that allows you to
REM  select Mono. Failure to do this will result in incorrect encoding.
REM To specify Joint Stereo, specify Stereo=JS
REM The default is Joint Stereo.
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
REM NOTE: ONLY the FIRST 5 lines of this file are read and used.
smile.gif
k.eight.a
@ john33: Thanks a million! smile.gif
LoFiYo
QUOTE(john33 @ Aug 9 2008, 16:47) *

QUOTE(LoFiYo @ Jul 26 2008, 20:25) *

QUOTE(john33 @ Jul 6 2008, 11:11) *

OK, I've updated the lame.exe download now compiled to use the libsndfile 1.0.18pre22a dll and I've also added a build of lamedropXPd that works with the same dll and both now accept FLAC files as input and process accordingly. smile.gif

(Both builds include the new dll.)

Hi John,
Whenever you get around to updating the "lame_enc.dll modified to use INI File" for 3.98, is there any way you can add more options to what you can specify in the INI file? for example, Mono/JStereo switch, CBR/ABR switch, CBR/ABR bitrate value (and these would be ignored when a LamePreset is used)? I think these additional switches would make the binary more useful to more people. I would appreciate it if you could consider implementing some or all of these switches. Thanks smile.gif

Sorry, I've not been ignoring this but I was away when you posted it! wink.gif I plan to take a look at this over the next week, or so.

Thank you very much, John! I was away for a while also, and when I visited HA today, I was amazed how much work you have done for my request! Thank you again!!
vpa
QUOTE(krmathis @ Jul 4 2008, 15:23) *

Great news! biggrin.gif
Lame 3.98 for Mac OS X (universal binary) available on my website.


I've compiled it long time ago on my G5 myself, but I just tried your universal binary: I get a bus error on my iMac G5 unsure.gif Maybe it's not realy "universal"?
k.eight.a
I'm a Linux newbie.

Where and how I can get Lame 3.98 for Ubuntu Linux 8.04 LTS ? blink.gif

Now it's too early to puzzle with compiling my own stuff from the source code...
shadowking
You will have to :

- wait for a hardy backport
- wait for intrepid release
- use win32 binary through WINE
- backport source from intrepid , then build a .deb for your release.
- download build-essential & compile the old way ./configure [options] && make && sudo make install
k.eight.a
QUOTE(shadowking @ Sep 17 2008, 15:46) *

You will have to :

- wait for a hardy backport
- wait for intrepid release
- use win32 binary through WINE
- backport source from intrepid , then build a .deb for your release.
- download build-essential & compile the old way ./configure [options] && make && sudo make install
Friend of mine has suggested me to add a custom repository. I've added those mentioned there and there was Lame 3.98 available.

Unfortunately I don't have any idea if I would brake something by that or cause any problems...
shadowking
QUOTE(k.eight.a @ Sep 18 2008, 00:29) *

QUOTE(shadowking @ Sep 17 2008, 15:46) *

You will have to :

- wait for a hardy backport
- wait for intrepid release
- use win32 binary through WINE
- backport source from intrepid , then build a .deb for your release.
- download build-essential & compile the old way ./configure [options] && make && sudo make install
Friend of mine has suggested me to add a custom repository. I've added those mentioned there and there was Lame 3.98 available.

Unfortunately I don't have any idea if I would brake something by that or cause any problems...



Thats the debian repo i use but its not for ubuntu. I think the lame package is okay for you since it won't pull in harmfull stuff - if you want to be safe download the .deb only .
john33
For the benefit of those who have been after a 64 bit compile, I've just tested a 64 bit Intel compile against the standard 32 bit version, as posted on Rarewares. It is important to remember that the 64 bit compile is NOT using the nasm routines as they are incompatible, at least currently. This test was run under WindowsXP Pro x64, the system comprising: e6700 @ 3.2GHz, 4GB OCZ Reaper PC2 6400, Asus P5W-DH De Luxe.
CODE
F:\Testdir>lame -V 2 01.wav 01.mp3
LAME 3.98 64bits (http://www.mp3dev.org/)
CPU features: , SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 01.wav to 01.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III VBR(q=2)
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
  9211/9211  (100%)|    0:06/    0:06|    0:06/    0:06|   37.467x|    0:00
32 [  76] %*
40 [   1] %
48 [   0]
56 [   0]
64 [   3] %
80 [   4] %
96 [  11] %
112 [  17] %
128 [  46] %
160 [2183] %%%%%%%%%%%%%%%*****************
192 [4756] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%**************************
224 [1159] %%%%%%%**********
256 [ 412] %%%***
320 [ 543] %%%%%***
-------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  196.8       53.7  46.3        88.9   6.2   4.9
Writing LAME Tag...done
ReplayGain: -1.8dB

F:\Testdir>lame -V 2 01.wav 01.mp3
LAME 3.98 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding 01.wav to 01.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III VBR(q=2)
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
  9211/9211  (100%)|    0:06/    0:06|    0:06/    0:06|   39.896x|    0:00
32 [  76] %*
40 [   1] %
48 [   0]
56 [   0]
64 [   3] %
80 [   4] %
96 [  11] %
112 [  16] %
128 [  47] %
160 [2188] %%%%%%%%%%%%%%%*****************
192 [4748] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%**************************
224 [1161] %%%%%%%**********
256 [ 413] %%%***
320 [ 543] %%%%%***
-------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  196.8       53.7  46.3        88.9   6.2   4.9
Writing LAME Tag...done
ReplayGain: -1.8dB

F:\Testdir>

As you can see, although the 64 bit compile comes close, the standard 32 bit compile is still faster. The small encoding discrepancies are inaudible, to my ears at least! wink.gif

It's also important to bear in mind that the 64 bit compile is using compiler optimisations alone, no code changes have been made other than to exclude the nasm routines from the build.
ervin_s
LAME 3.98.2 source are available on SF.net, dated 2008-09-22.

The following notes are attached to the release:

QUOTE
The 3.98.2 release is a maintenance release over 3.98.
Changes do not affect audio quality, but operational bug fixes only:
- build system related: some fixes for mp3rtp and abx tools
- encoder padding values were not correct when resampling was involved
- frequency filtering API was broken; in case you want to use your own higher quality filtering method, it is now possible again to disable LAME buildin filters
- ID3 tagging:
--id3v1-only switch did not work anymore, fixed
--tg <genre> improved, now it matches more often one of the ID3v1 genres, even when small spelling errors are involved
--add-id3v2-size <n> is a new switch, it allows to define your own padding of n bytes.

NOTE: Version 3.98.1 contains a bug that will let it crash when encoding CBR/ABR or with old VBR at setting q0, q1 or q2!
john33
QUOTE(ervin_s @ Sep 23 2008, 08:23) *

LAME 3.98.2 source are available on SF.net, dated 2008-09-22.
.....

I've not been at home since late Friday, and I will not be back until later this evening so, sorry about the absence of new builds on Rarewares, but I'll attend to it on my return either later tonight, or tomorrow. wink.gif
Compact Dick
Thank you for your consistent dedication, John. It is much appreciated smile.gif
john33
A full set of compiles is now on Rarewares. smile.gif
hödyr
Thanks smile.gif
NetRanger
Thnx for the new complies john33 smile.gif
slimserver
Thank you Mr. John33 biggrin.gif
lvqcl
Good news!
But history.html (http://lame.cvs.sourceforge.net/*checkout*...RELEASE__3_98_2) still says "LAME 3.98.1 not yet released" blink.gif blink.gif
vpa
and 3.98.2 is somehow broken. It doesn't compile on OS X. Neither with gcc 3.3 nor with 4.0.1 :
CODE
(cd .libs/libmp3lame.lax/libmpgdecoder.a && ar x /Users/frankseyen/Desktop/Lame 3.98.2/lame-398-2/libmp3lame/../mpglib/.libs/libmpgdecoder.a)
ar: /Users/frankseyen/Desktop/Lame: Inappropriate file type or format
make[3]: *** [libmp3lame.la] Error 1

sad.gif



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.