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
3
votes
1 answer

increasing the volume of several mp3 files via lame

it's already known that lame --scale N song.mp3 loud_song.mp3 where N is the scale number. well, I want to apply in every mp3 file in a folder, and preserve the name of files.
mao2047
  • 91
  • 1
  • 8
3
votes
2 answers

Can't compile LAME for iOS

I'm trying to compile lame mp3 encoder as static library for iOS. I'd like to support all architectures including i686, armv6, armv7, armv7s and arm64. Here is my build script: #!/bin/bash DEVELOPER=`xcode-select -print-path` SDK_VERSION="7.1" mkdir…
Ivan Kozlov
  • 561
  • 2
  • 8
  • 19
3
votes
0 answers

FFMPEG on Android with libmp3lame

I' build an app for android to convert videos to audio. Im using ffmpeg for the process. (Im using the precompiled version from here) At the moment its only possible to convert to *.wav and not to *.mp3. So im asking u if anybody can provide me a…
M4tho
  • 116
  • 2
  • 13
3
votes
0 answers

Basic LAME encoding changes pitch

I am following this example for a basic use of libmp3lame, using a 30sec long 440Hz sine wave PCM at 44.1kHz (generated with Audacity) as the input. The output produced was 15 seconds of a higher pitched tone. I also tried a 48kHz PCM of human…
jsj
  • 9,019
  • 17
  • 58
  • 103
3
votes
1 answer

Can I use native C libraries from Vala?

I'm building a frontend for a LAME encoder in order to do a proof-of-concept in Gtk/Vala. I've installed libmp3lame-dev and would like to simply encode a WAV file using a few given encoding parameters and graphically display the progress using a Gtk…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
3
votes
2 answers

Batch convert all subfolders and files of wav to mp3 using lame

I'd like to convert all WAV files in a specified folder into MP3 and store in the same directory structure, We have a several list of folders and subfolders named by date where these WAV recordings are stored. I got up until the point thanks to…
Srini
  • 33
  • 1
  • 3
3
votes
2 answers

Convert audio linear pcm to mp3 ( using LAME ) with the help of AudioQueueServices example in iOS

I am new in ios developement.I am encoding a LinearPCM to MP3 in iOS.I'm trying to encode the raw PCM data from microphone to MP3 using AudioToolbox framework and Lame.And although everything seems to run fine if i record .caf format . i am getting…
Ravindhiran
  • 5,304
  • 9
  • 50
  • 82
3
votes
2 answers

Audio speed changes on converting WAV to MP3

I create a WAV (PCM) to MP3 converter. But the output is too fast. This is the code, that converts the encoding. FILE *pcm = fopen(in_path, "rb"); FILE *mp3 = fopen(out_path, "wb"); int read, write; const int PCM_SIZE = 8192; const int…
Victor
  • 8,309
  • 14
  • 80
  • 129
3
votes
1 answer

Clicks while using LAME to encode from PCM to MP3 in iOS

I am not the first to have this type of issue, however, I have no been able to solve it. I am encoding a LinearPCM to MP3 in iOS. It is working though I am experiencing clicks between each buffer. memset(&mEncodedBuffer, 0,…
JonathanC
  • 967
  • 11
  • 30
2
votes
2 answers

lame.exe on all wavs in a folder with .bat

I would like to write a batch file that runs the cmd line " lame.exe [options] [infile] [outfile]" on a folder of .wav files. something like FOR %%f IN (dir *.wav) DO (lame.exe -V0 -h %%f.wav %%f.mp3) of course that's wrong but...how do I generate …
Mambo4
  • 182
  • 7
  • 17
2
votes
2 answers

Boost mp3 volume on iOS

I was looking for information on http://developer.apple.com/library/ios as well as on https://stackoverflow.com/, but could not find a simple and elegant solution. I will describe the key problems: it takes to get MP3 file from your media library…
WINSergey
  • 1,977
  • 27
  • 39
2
votes
1 answer

How do I extract Xing/LAME frames using ffmpeg?

Using a program which already makes use of ffmpeg for audio processing, I would like to extract and parse Xing/LAME style mp3 frames. (unlike other mp3 metadata, xing/lame metadata is stored in dummy mp3 files in the stream) Unfortunately for me,…
Jeff
  • 81
  • 2
  • 5
2
votes
0 answers

How to retrieve ID3 tag information from PCM (WAV) file using the LAME encoder library?

I have a problem retrieving tag information from a test WAV file (no sound, just empty WAV file). Here is how I initialize LAME: lame_global_flags* lame = NULL; lame = lame_init(); lame_set_in_samplerate(lame, 44100); lame_set_VBR(lame,…
rbaleksandar
  • 8,713
  • 7
  • 76
  • 161
2
votes
2 answers

How to read an MP3 file, separating metadata from audio?

I understand that the MP3 file format essentially consists of two segments, id3 metadata+audio frames. How can I read in binary form, all of the id3 segment and all of the audio frames as two binary blobs? I'm looking to simply perform a hash…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
2
votes
0 answers

How does PCM files converts to MP3 using lame encoder

I am converting the wave file into mp3 using lame encoder. I have reached this answer (Mike Seymour) which does the work very nicely. I am looking to convert this into a c++ equivalent code. This answer (trodevel) Does the c++ equivalent…
Codeme
  • 137
  • 2
  • 10