Questions tagged [lame]

LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL. The name LAME is a recursive acronym for "LAME Ain't an MP3 Encoder". Use this tag for questions on LAME encoder. Also add mp3 tag.

LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL. The name LAME is a recursive acronym for "LAME Ain't an MP3 Encoder". Use this tag for questions on LAME encoder. Also add tag.

More information at

  1. Lame project page - https://lame.sourceforge.io/
  2. Lame wikipedia page - https://en.wikipedia.org/wiki/LAME
275 questions
26
votes
2 answers

Invoking JNI functions in Android package name containing underscore

I am trying to implement MP3 encoding in Android using the LAME library following these guides: Lame MP3 Encoder compile for Android http://developer.samsung.com/android/technical-docs/Porting-and-using-LAME-MP3-on-Android-with-JNI However I am…
Henry Ing-Simmons
  • 1,002
  • 3
  • 14
  • 22
22
votes
4 answers

Create a silent mp3 from the command line

I am trying to create a silent / empty mp3 file of (x) seconds using the command line. Quite a simple task I thought! It seems LAME is able to do something like this, but I am unable to find anything that leads to achieving this. Has anyone been…
Stephen
  • 3,237
  • 1
  • 22
  • 30
20
votes
2 answers

iOS Swift - Merge and convert .wav files to .mp3

I want to merge two or more .wav files to one and then convert it to .mp3 and this I would like to done in Swift (or at least to have option to include it to swift project). Merge two .wav files in swift isn't problem. Here is my example Now I don't…
Libor Zapletal
  • 12,142
  • 18
  • 79
  • 165
16
votes
4 answers

Is there any LAME C++ wrapper\simplifier (working on Linux Mac and Win from pure code)?

I want to create simple pcm to mp3 C++ project. I want it to use LAME. I love LAME but it's really big. so I need some kind of OpenSource working from pure code with pure lame code workflow simplifier. So to say I give it File with PCM and DEST…
Rella
  • 59,216
  • 102
  • 341
  • 614
14
votes
3 answers

How can I compile lame as static library(.a) for armv6 and armv7 of iPhone?

LAME(http://lame.sourceforge.net/) is a library written in c language. It can convert PCM sound files to MP3 files. I use it to convert sound files to MP3 files on iPhone. The source PCM sound files is recorded by microphone. In order to include the…
rexshi
  • 179
  • 1
  • 7
13
votes
1 answer

How to decode mp3 into wav using lame in C/C++?

I learned how to encode wav into an mp3 using lame_encode_buffer_interleaved from this question: Is there any LAME c++ wraper\simplifier (working on Linux Mac and Win from pure code)? Now I want to decode the mp3 back into wav. I know there's…
drowneath
  • 4,530
  • 9
  • 38
  • 56
12
votes
4 answers

Adding C++ DLL's to a C# project

I'm trying to use the lame_enc.dll file from LAME in a C# project, but adding the thing seems impossible. I keep getting an error that says that a reference could not be added and to please check if the is accessible, a valid assembly or COM…
KdgDev
  • 13,321
  • 45
  • 113
  • 147
10
votes
2 answers

sox for converting flac file to 320 bit mp3

I have installed sox with support for both mp3 and flac. The below command also successfully converts flac to mp3 sox /song_files/Daughter_of_Evil.flac /song_files/Daughter_of_Evil.mp3 My problem is that the "Daughter_of_Evil.mp3" is not 320 bit…
user1058797
  • 799
  • 3
  • 9
  • 18
9
votes
1 answer

Google Chrome no longer plays certain audio files

Since the update to v45, Chrome seems to no longer play select MP3 files. This is not across the board, and some other MP3 files still play. Chrome v44 displayed no issues and played all the files. This issue is common across many computers running…
Joshua Moon
  • 347
  • 2
  • 12
7
votes
4 answers

Where to get pure C++ Lame MP3 encoder - PCM to MP3 example?

So all I need is a simple function that sets it up (eating incoming PCM RATE (for example: rate near to 44100) It's channels (for example: 2) and -bits (for example: 16) and desirable 128 kb\s rate) and another one that takes PCM data and encodes it…
Rella
  • 59,216
  • 102
  • 341
  • 614
7
votes
1 answer

HTML5

As discussed in a previous question, I have built a prototype (using MVC Web API, NAudio and NAudio.Lame) that is streaming live low quality audio after converting it to mp3. The source stream is PCM: 8K, 16-bit, mono and I'm making use of html5's…
Tony
  • 1,776
  • 2
  • 19
  • 33
7
votes
3 answers

Click sound at the beginning when using LAME

I'm using LAME to convert a WAV file (extracted from Audio CD) into MP3. The conversion result is just fine except at the very beginning of the file there is one single "click" sound. The click takes almost 0.5 second prior to the song itself. char…
sancho21
  • 3,219
  • 33
  • 41
6
votes
2 answers

Add some sound data to existing mp3 file Android,lame encoder

So, this is how mp3 is encoded from mic to file in android : private void startBufferedWrite(final File file) { new Thread(new Runnable() { @Override public void run() { output = null; …
EAK TEAM
  • 1,545
  • 1
  • 21
  • 40
6
votes
4 answers

How do I capture command-line text that is not sent to stdout?

I am using the LAME command line mp3 encoder in a project. I want to be able to see what version someone is using. if I just execute LAME.exe with no paramaters i get, for example: C:\LAME>LAME.exe LAME 32-bits version 3.98.2…
Dave
  • 97
  • 5
6
votes
2 answers

Is Media Foundation supported on Windows 2012 64 bit server?

Is Media Foundation supported on Windows 2012 64 bit server? We can not have Windows 7 or Windows 8 as the server and that's the reason we are opting for Windows 2012 server. As NAudio 1.7 is released now, we would like to utilize the new…
sainath sagar
  • 469
  • 2
  • 7
  • 28
1
2 3
18 19