Helpful ReplyTUTORIAL: Getting LAME MP3 Encoder to Work With SONAR

Page: 1234 > Showing page 1 of 4
Author
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
2007/12/29 19:22:29 (permalink)

TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR

I wrote this little tutorial, because I'm somewhat sick of seeing threads on how to get LAME to work with SONAR, so here it is.


Getting LAME MP3 Encoder To Work With SONAR


Heres what you do to make the LAME MP3 Encoder work with SONAR 6 and 7, as well as any other Cakewalk DAWs. (?)

First, press the windows key (usually left to the alt key), and R key together, type in the prompt that appears:

C:\Program Files\Cakewalk\Shared Utilities\EncoderConfig.exe


press enter. A new window should appear.

In the "Friendly Name" box, write: LAME MP3 Encoder
In the "Extension" box, replace .*** with .mp3.
In the "Description" box, write "LAME MP3 Encoder", though this is not a requirement. You can write whatever you wish.

Now, before we continue, I assume you've downloaded LAME: http://www.free-codecs.com/download_soft.php?d=2762&s=22. If not, follow these steps:

Press the Windows Key, and R together, and in the box that pops up type this
iexplore C:\Program Files\Cakewalk\Shared Utilities\

and hit enter. A new box should pop up. Right click in that box, and go to New > Folder. Enter "lame" (without quotes) into the folder name box, which by default should say New Folder. If you can't name it, then right click on it, and click rename, and type "lame" (without quotes).

Copy all the files from the .zip file (lame.exe, and everything else) into the lame folder you've created. Simply drag and drop the files from the .zip onto the lame folder which you've just created, or double click on the lame folder, and drag and drop the files from the .zip into there. Whichever you prefer.

Going back to where we left off:

In the "Path" box, type this in:
C:\Program Files\Cakewalk\Shared Utilities\lame

Now, under the "Command Line" box, type in the following:
lame -b 48 -m j %I %O


You can replace 48 with whatever bitrate you want. Hit save, and close, and you're done.

When you go to File > Export > Audio, you should see LAME MP3 Encoder under "Files of type:".
Please note that the Sample Rate in the exported does NOT apply. (?)
Also, please note that the Bit Depth DOES still apply. (?)

If you'd like to have multiple sample rates, without having to go into the EncoderConfig each time to edit it, follow the same steps, pressing new, and typing in "LAME MP3 Encoder - 48k". You can replace 48k with whatever sample rate you want. The extension box should be replaced with .mp3, description - put whatever you want, in path, type: C:\Program Files\Cakewalk\Shared Utilities\lame
In command line, write:
lame -b SAMPLE RATE HERE -m j %I %O

Replace SAMPLE RATE HERE with whatever sample rate you want. Make sure to use only the first two, or three numbers corresponding to the sample rate you want. Hit save, and close, then you're done!

Written by Adam Nobumoto

Adam

(P.S. I still need to confirm a few things, so whenever you see a "(?)", that means I'm not too sure, and need to make sure this is correct. Please tell me if it is, or if it isn't when you see it.)


You may post this tutorial at any site you wish, as long as you give credits to me.
post edited by AdamFH - 2007/12/29 19:39:07
#1
CJaysMusic
Max Output Level: 0 dBFS
  • Total Posts : 30423
  • Joined: 2006/10/28 01:51:41
  • Location: Miami - Fort Lauderdale - Davie
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/29 19:35:49 (permalink)
I dont like this new smart Adam. I wont the old Adam back..
Cj

www.audio-mastering-mixing.com - A Professional Worldwide Audio Mixing & Mastering Studio, Providing Online And Attended Sessions. We also do TV commercials, Radio spots & spoken word books
Audio Blog
#2
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/29 19:37:57 (permalink)
I've learned too much.

(Thank you homeschooling! )
#3
dbmusic
Max Output Level: -68 dBFS
  • Total Posts : 1150
  • Joined: 2005/07/04 12:52:46
  • Location: Illinois
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 00:26:54 (permalink)
TL, DR

If I want mp3's I just drop the .wav files into WaveLab 5. I love Sonar and doubt I'll ever use anything else...but at least some audio software developers realize having the ability to compile mp3's is a no brainer.


DB Music

SoundClick
OurStage
#4
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 00:28:44 (permalink)

ORIGINAL: dbmusic

TL, DR




I lol'd.

And why not take the faster route, than exporting to .wav, and such?
#5
...wicked
Max Output Level: -1.5 dBFS
  • Total Posts : 7360
  • Joined: 2003/12/18 01:00:56
  • Location: Seattle
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 01:01:05 (permalink) ☄ Helpfulby penumbra33 2015/01/01 12:18:50
Agreed. The reason I went ahead and finally got LAME working was because I hated opening SoundForge and doing the conversion as a second step.

I think most people have a problem getting LAME to work because they don't download the proper component. The default for searches is the uncompiled version. Plus, most people don't realize LAME by itself (even compiled) is a command line proggie and that you need one of the UIs to make it work. It's odd for something so popular there isn't a more detailed FAQ about that.

Thx for the tutorial though, it's even better than the one in Sound on Sound (plus, they use Monkey's Audio instead of LAME)

===========
The Fog People
===========

Intel i7-4790 
16GB RAM
ASUS Z97 
Roland OctaCapture
Win10/64   

SONAR Platinum 64-bit    
billions VSTs, some of which work    
#6
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 01:14:54 (permalink)
You're welcome.
#7
My Favorites
Max Output Level: -76 dBFS
  • Total Posts : 744
  • Joined: 2006/04/22 05:45:05
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 04:29:38 (permalink)
So much effort, thank you..! I've been looking for this


click image
#8
Desperate Dan
Max Output Level: -59.5 dBFS
  • Total Posts : 1554
  • Joined: 2003/11/08 12:56:17
  • Location: Lysithea
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 04:41:50 (permalink)
I wrote this little tutorial, because I'm somewhat sick of seeing threads on how to get LAME to work with SONAR, so here it is.


Adam you've gone to all this trouble (Which is admirable of course) but did you know that the Pro Audio 9 came with a Frauenhof (SP?) MP3 Encoder which doesn't need all this confusing command line stuff (Not that I dont love Command line things but in the right places) and works with Sonar 7 out of the box ?

Windows 7 Professional  64 bit - Intel Q-9550 2.83 CPU, 8Gb DDR800, Gigabyte EP35-DS3R, M-Audio Delta 44, Yamaha HS-80M Monitors, UAD-1 Ultra Pack

I'm reading a book about anti-gravity at the moment and I just can't put it down
#9
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 11:00:33 (permalink)
For those who don't have it though, and don't really want to spend anymore money, that's a problem. And I don't think the Cakers sell PA9 anymore.
#10
techead
Max Output Level: -31.5 dBFS
  • Total Posts : 4353
  • Joined: 2004/01/24 08:40:20
  • Location: Macomb, IL, USA
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 11:48:12 (permalink)
I took the liberty of adding your instructions to the already existing instructions on the SONAR User's Wiki online. They are linked here at the bottom of the page: SONAR MP3 Export.
#11
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 22:28:26 (permalink)
Thank you for doing this, I really appreciate it!
#12
Honest_Al
Max Output Level: -39 dBFS
  • Total Posts : 3642
  • Joined: 2005/12/09 00:07:27
  • Location: just below the cloud on the left
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2007/12/30 23:04:24 (permalink)
Sorry but I wouldn't add it so quickly to the SONAR User's Wiki online, techead.

lame -b 48 -m j %I %O

You can replace 48 with whatever bitrate you want. Hit save, and close, and you're done.


48 as an example for a BITRATE is very bad..really confusing..48 is usually associated with the SAMPLE RATE of 48Khz so why using that as an example there?

then also using the same command line ( with the -b option) but this time calling it "sample rate"..

lame -b SAMPLE RATE HERE -m j %I %O
Replace SAMPLE RATE HERE with whatever sample rate you want


I think there are some terms and options you got to learn better, Adam..
still, thanks for trying and i'm sure you will improve it later.
#13
Surealtime
Max Output Level: -89 dBFS
  • Total Posts : 97
  • Joined: 2005/01/26 01:27:37
  • Location: PB California
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/02 18:12:48 (permalink)
I tried this out, but when I hit save in EncoderConfig.exe the friendly name disappears and is not on the list. And it doesn't appear in the audio export options when I restart Sonar. I tried different names, but they just dissappear every time I hit save. Any ideas?
#14
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/02 21:31:38 (permalink)
Which version of SONAR? I'm not too sure about this.
#15
Surealtime
Max Output Level: -89 dBFS
  • Total Posts : 97
  • Joined: 2005/01/26 01:27:37
  • Location: PB California
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/02 22:48:07 (permalink)
I'm using Sonar 7 Producer on Vista.

(update)
I just answered my own question. It's Vista so I went to C:\Program Files\Cakewalk\Shared Utilities\EncoderConfig.exe right clicked and ran it as an administrator.
post edited by Surealtime - 2008/01/02 23:12:24
#16
fsunolesfan11
Max Output Level: -90 dBFS
  • Total Posts : 43
  • Joined: 2007/06/12 23:35:52
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/12 16:57:46 (permalink)
so i followed the steps and got the file exported. i first exported it at 32 bit depth. It sounded like aliens were coming down from mars. So i tried it again at a 16 bit depth, but it sounded crappy compared to the 32 bit depth wave file i had already exported. but the wave file was 114 MB and the mp3 was only 1.93 MB. So how can i get a smaller file that still sounds decent. I really have no idea what i am doing so any help would be appreciated. I am trying to make it smaller so i can send it to my friends. So how do i do that without damaging the quality? And what size files do professionals use on albums and what kind of files are they? thanks for the help.
#17
RodC
Max Output Level: -84 dBFS
  • Total Posts : 302
  • Joined: 2005/11/10 08:37:11
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/15 21:23:20 (permalink)
Cool tutorial.

Keep in mind they are some example settings in .reg files that you can load. Check the Cake install DVD: \\Utilities\External Encoder Profiles

You should see some .reg files you can import:

LAME MP3 320 CBR.reg
LAME MP3 High Quality Stereo.reg
LAME MP3 Low Quality Mono Voice.reg
LAME MP3 Medium Quality Joint Stereo.reg
LAME MP3 Very High Quality Stereo.reg

Importing these will fill in all the blanks, along with some switch options you may not think of.

There are some in there for FLAC, Monkey's and Ogg Vorbis as well. I assume these are some settings the Cake folks came up with.



post edited by RodC - 2008/01/15 21:38:04

http://www.beyondsanityproductions.com/

'sorta like a peace rally fist fight'

SPE X1c  MOTU 24 i/o,  AMD Phenom II X6 3.3 GHz 8G RAM, SSD OS HD
#18
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 12:23:18 (permalink)

ORIGINAL: fsunolesfan11

so i followed the steps and got the file exported. i first exported it at 32 bit depth. It sounded like aliens were coming down from mars. So i tried it again at a 16 bit depth, but it sounded crappy compared to the 32 bit depth wave file i had already exported. but the wave file was 114 MB and the mp3 was only 1.93 MB. So how can i get a smaller file that still sounds decent. I really have no idea what i am doing so any help would be appreciated. I am trying to make it smaller so i can send it to my friends. So how do i do that without damaging the quality? And what size files do professionals use on albums and what kind of files are they? thanks for the help.


When you export, select the export preset you made with EncoderConfig.exe. The bit/sample rate must have the exact same value or you'll get an alien coming down from mars sound. Export a .mp3 at 192k, in both sample, and bitrate, and (what I do), set it to 16 bit. I think it means that your audio card can't support 32 bit though. Mine can, it just takes forever to export.
#19
Sixfinger
Max Output Level: -73 dBFS
  • Total Posts : 890
  • Joined: 2007/09/22 07:55:26
  • Location: Branson MO
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 18:37:28 (permalink)
Excellent! This tutorial made setting it up quick and painless. I notice there are some command live variables for Title, Author etc., How does one implement those exactly?

I might also like to remove the export option of MP3 since Lame works just fine and I'll not be puchashing the key. Anyone know how to remove it from the export list?
#20
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 19:09:42 (permalink)
You can't remove it from the list. And yeah, for the author, title, and such, you just have to add after all the gibberish before %A Whatever you want here %T Whatever you want here too.



#21
Richard Brian
Max Output Level: -40 dBFS
  • Total Posts : 3519
  • Joined: 2004/02/09 11:16:38
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 19:17:57 (permalink)
Hey Al, when I opened this thread, your dog was on the middle of my screen for a second I was like..?!@#. Ain't you got a leash?
#22
SH
Max Output Level: -72 dBFS
  • Total Posts : 942
  • Joined: 2005/06/23 10:23:06
  • Location: Metro Detroit
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 19:20:49 (permalink)
how to get LAME to work with SONAR


This looks helpful Adam. Like you said, a lot of people are asking about LAME.
I've been using the MP3 encoder that came with Cakewalk ProAudio 9.

Any differences between that and LAME? or are they the same thing?
I'd make the change in a heartbeat if any advantage.

I'm actually tired of changing all the defaults every time I want to export something.
#23
tdye
Max Output Level: -56 dBFS
  • Total Posts : 1926
  • Joined: 2007/04/21 12:13:37
  • Location: Oklahoma, USA
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 19:36:22 (permalink)
Or you could just spring for the $20 and download the activation, or $30 and download the encoder...
but then I've got $30, easy come, easy go.

My real question thought, is how do you get LAME not to sound like cr4p at any bitrate less than 192. I use a different(*1) encoder than LAME I want to encode at 128.


*1 - CJ will slap me for saying so but I use the Creative converter for 128 with much better results than LAME. The opposite is true at higher bitrate where LAME seems to shine.

Tom
http://www.soundclick.com/tomdye
http://www.ourstage.com/profile/tomdye
http://twitter.com/tom_dye

Dell Dimension 8400 Pentium 4 w/HyperThreading 3.2GHz, 3 GB Ram, Creative SB Audigy 2 ZS (WDM)
Sonar 8 Producer Edition, Rapture, Project5
#24
SH
Max Output Level: -72 dBFS
  • Total Posts : 942
  • Joined: 2005/06/23 10:23:06
  • Location: Metro Detroit
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 19:55:33 (permalink)
Or you could just spring for the $20 and download the activation, or $30 and download the encoder...
but then I've got $30, easy come, easy go.

My real question thought, is how do you get LAME not to sound like cr4p at any bitrate less than 192. I use a different(*1) encoder than LAME I want to encode at 128.


I do have the activation for it on my ProAudio 9 disk (if you were talking to me).
I always bump the bitrate to 160 and slide the quality to "highest" everytime manually. Sounds like you recomend at least 192 for LAME. If others agree I might as well stay where I am. Anyway to change the defaults?
#25
dreamkeeper
Max Output Level: -54 dBFS
  • Total Posts : 2141
  • Joined: 2004/12/05 15:51:13
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 20:13:28 (permalink)
Export a .mp3 at 192k, in both sample, and bitrate,

You're kidding, right? 192kHz sample rate for an MP3???

I think it means that your audio card can't support 32 bit though

What does the sound card have to do with export? And it sure as hell won't be 32bit.

werner

"... must've been another of my dreams ..."
#26
dreamkeeper
Max Output Level: -54 dBFS
  • Total Posts : 2141
  • Joined: 2004/12/05 15:51:13
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 20:17:00 (permalink)
but I use the Creative converter for 128 with much better results than LAME

Creative makes an MP3 encoder?

"... must've been another of my dreams ..."
#27
tdye
Max Output Level: -56 dBFS
  • Total Posts : 1926
  • Joined: 2007/04/21 12:13:37
  • Location: Oklahoma, USA
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 21:02:58 (permalink)

ORIGINAL: dreamkeeper

but I use the Creative converter for 128 with much better results than LAME

Creative makes an MP3 encoder?

Yes, scary isn’t it? It comes with their Media Source software.

Tom
http://www.soundclick.com/tomdye
http://www.ourstage.com/profile/tomdye
http://twitter.com/tom_dye

Dell Dimension 8400 Pentium 4 w/HyperThreading 3.2GHz, 3 GB Ram, Creative SB Audigy 2 ZS (WDM)
Sonar 8 Producer Edition, Rapture, Project5
#28
punkin
Max Output Level: -85 dBFS
  • Total Posts : 256
  • Joined: 2003/12/29 18:46:32
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/18 23:27:54 (permalink)
I've been lurking and poking at this, on again, off again for years. I never really put a lot of effort into the understanding because I could always find another way of doing it. I really sat down and tried to get this to work but evidently, I'm made of inferrior materials.

I'm running 7.x pro and I have managed to export audio using the "Lame" configuration but my play back is strictly a hiss/white noise sound. Nothing intelligible what so ever.

Windows 7 64 BIT
Intel I7
8 GB RAM
SONAR X1 Pro
M-Audio Profire 2626
#29
AdamFH
Max Output Level: -72 dBFS
  • Total Posts : 930
  • Joined: 2007/02/12 03:25:01
  • Status: offline
RE: TUTORIAL: Getting LAME MP3 Encoder to Work With SONAR 2008/01/19 11:10:17 (permalink)

ORIGINAL: dreamkeeper

Export a .mp3 at 192k, in both sample, and bitrate,

You're kidding, right? 192kHz sample rate for an MP3???

I think it means that your audio card can't support 32 bit though

What does the sound card have to do with export? And it sure as hell won't be 32bit.

werner


I'm not too good with these technicaly terms. Excuse this. I can do simple things like set it up, but not much more than that. I hardly if at all know the difference between bit and sample rate.
#30
Page: 1234 > Showing page 1 of 4
Jump to:
© 2024 APG vNext Commercial Version 5.1