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
281 questions
2
votes
1 answer

A Commercial MP3 Encoder/Decoder to use with Sox/Audacity

In recent days i've been looking into a way to mix together MP3 files at the point of upload to a website, which is hosted on a linux machine. So far, thanks to the community, i've learned that using SoX over the command line is probably the most…
Codecraft
  • 8,291
  • 4
  • 28
  • 45
2
votes
0 answers

How to record mp3 with raspberry pi from mic input

I'm trying to record an MP3 of the mic input of my raspberry pi. I'm using the npm module mic. When I run it on my mac I have no problem and it records my line in from my usb sound card as an MP3. When I take that same code and put it on the…
Bill
  • 5,478
  • 17
  • 62
  • 95
2
votes
0 answers

How to convert audio float array to AudioBufferList iOS?

I want to convert Audio float array to AudioBufferList Below code i use for converting - (AudioBufferList *)writeList:(int)numFrames fromArray:(float**)data{ if (!data) return nil; if (!numFrames) return nil; AudioBufferList *abl =…
yogesh
  • 138
  • 1
  • 8
2
votes
1 answer

ffmpeg: remove lame replaygain tag from mp3

lame is writing a replaygain tag if the option --noreplaygain is not set: ffmpeg -i testgain_0.mp3 Input #0, mp3, from 'testgain_0.mp3': Duration: 00:01:00.42, start: 0.025057, bitrate: 192 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192…
fexplorer
  • 43
  • 1
  • 7
2
votes
4 answers

How to use lame.exe in my application?

I capture audio files in the wave format in my Microsoft Surface application. Now for file size reasons, I'd like to convert the wave file into a mp3 file. I read in the Internet that a good possibility to do that is using lame. But how can I call…
anon
2
votes
0 answers

Android - AudioRecord: How to separate left and right channels in stereo recording mode

I am using AudioRecord class of android sdk to record raw audio and then I am encoding it with lame mp3 encoder. For this I have to separate the left and right chaanels in stereo recording mode like this. bytesEncoded = Lame.encode(left, isMono ?…
Ali
  • 839
  • 11
  • 21
2
votes
1 answer

build static sox with lame and flac support for AWS lambda

I'm trying to use sox in a AWS lambda function for conversion of FLAC file to MP3, but I cannot seem to build a version of sox with FLAC support. I have found this great solution that I have been using but it doesn't support FLAC. I've searched the…
2
votes
0 answers

Lame tags in mp3 frame

It's known that mp3 frame has a strict structure. Mp3 header - tags - audio data. There is a problem with LAME tag. It may be in the end or further from a header than it should be(not after VBR tag or not after the header for e.g). My queston is…
newbee
  • 31
  • 4
2
votes
2 answers

Converting MIDI byte array to MP3 byte array

Does someone know how to convert a MIDI file (average playback time of 30 seconds) which is represented in a byte array to an MP3 byte array? So, ideally I need to have a C# function which accepts a MIDI byte array and returns a MP3 byte array. The…
vijaysylvester
  • 4,750
  • 7
  • 29
  • 41
2
votes
3 answers

Converting a 32 bit wave form to a 16 bit wave form

I've been capturing audio using the loopback capture mode. The captured waveform is a 32 bit waveform. I'm struggling with converting this to a 16 bit waveform so encoders like lame can deal with it (it says Unsupported data format: 0x0003). I've…
hreinn1000
  • 255
  • 1
  • 7
  • 18
2
votes
1 answer

BASS/LAME Enc: How to properly continue MP3 recording / encoding?

I've got an app which records audio from microphone and uses BASSenc to encode the recording as MP3 utilizing LAME. If you exit the app and restart it later, you can load and continue the (recording) session. Everything is working fine so far.…
Mario Werner
  • 1,771
  • 14
  • 24
2
votes
1 answer

OfflineAudioContext.startRendering() promise based function not working in safari

OfflineAudioContext.startRendering() is working but for exporting the audiocontext object i am using lame js , so for the input for the export OfflineAudioContext.startRendering().then(function(AudioBuffer){ …
Niyaz
  • 2,677
  • 3
  • 21
  • 40
2
votes
1 answer

Encoding pcm samples to mp3 in real time iOS, possible?

I used LAME to encode aac to mp3 in iOS succesfuly. now i want to encode it in real time during the caputure of the pcm sample (meaning to pass the buffer insted of the file), is it possible using LAME to do it or i need to write new function for…
gstream
  • 525
  • 6
  • 18
2
votes
1 answer

Lame - increase bitrate to 320

First I want to show my method for converting source .wav files to .mp3 by Lame library: - (void)convertFromWav:(NSString *)sourceFilePath ToMp3:(NSString *)resultName { NSString *mp3FileName = [resultName stringByAppendingString:@".mp3"]; …
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
2
votes
1 answer

Compressing Voice with MP3

I'm looking to compress some lectures which are in MP3 format. Currently, they're each about 75MB and I'm looking to compress them a lot. Can anyone suggest some good encoding options for LAME to get decent quality and small filesize? I think the…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411