• SONAR
  • [Solved] LAME mp3 encoder, again
2014/12/26 15:46:16
Paul P
I'm attempting to get the LAME mp3 encoder to work withing X3e Producer.
 
I put both lame.exe and lame_enc.dll in a folder under Shared Utitilities.  This is version 3.99.5 (64 bit).
If I run the encoder directly within the folder using a command prompt it works fine.
 
I used the Cakewalk External Audio Encoder Setup program which looks like this :
 

 
I have a project with one audio track containing 2 minutes of audio.  I select <File/Export/Audio> :
 

 
I click Export, see "Mixing Down Audio" then a brief flash of a window probably from lame.
 
The mp3 file is produced, it's only 2k in size and it contains .026 seconds of nothing.
 
Any ideas as to what I'm doing wrong ?  I've read most of the threads on setting up this encoder and thought I did everything right.
 
2014/12/26 15:51:50
Teds_Studio
Did you select "all"....CTRL+A ?  I have ran into this before by accident.  If you only have a small portion of the audio "selected"....that is all that will render.
2014/12/26 16:15:27
Paul P
Teds_Studio
Did you select "all"....CTRL+A ?  I have ran into this before by accident.  If you only have a small portion of the audio "selected"....that is all that will render.



I believe if you have nothing selected, you get the whole track ?
 
I just tried with the entire audio selected and there's no difference.  Sure wish I could see what lame is telling me, but the window just flashes and is gone before I can read anything.  There is some text in the window.
 
 
2014/12/26 16:23:52
scook
Create a wav file and run it a the command line. Not sure why dithering is being applied to a 64bit file. I know the integrated mp3 encoder expects a 16bit file. The command line lame can encode 24bit files. I have not tried 64bit files.
2014/12/26 16:33:25
Paul P
scook
Create a wav file and run it a the command line. Not sure why dithering is being applied to a 64bit file. I know the integrated mp3 encoder expects a 16bit file. The command line lame can encode 24bit files. I have not tried 64bit files.



Thanks scook/Steve !!  As usual, your sharp eye saves the day.
 
The threads I read didn't say anything about the Channel Format / Sample Rate / Bit Depth / Dithering part of the export dialogue.  So I didn't touch them.  I don't know why it was set to 64 Bit Depth but changing it to 16 solved everything.
 
Cheers !
 
 
2014/12/26 16:38:43
scook
External encoders and the integrated mp3 encoder use a temporary wave file, the %I in the command line. This interim wave file is created like any other exported wave file.
2014/12/26 16:46:40
Paul P
scook
External encoders and the integrated mp3 encoder use a temporary wave file, the %I in the command line. This interim wave file is created like any other exported wave file.



Ah, that explains why I was getting both a wav file and a broken mp3 before I unselected the "Keep Source File" option.  I sure wondered where the wav file was coming from.  I didn't know what that option in the dialogue did, but one post mentioned deselecting it.
 
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account