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
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
  • 499
  • 2
  • 10
  • 28
6
votes
3 answers

How do can I use LAME to encode an wav to an mp3 c#

I am currently using NAudio to capture the sound and it only creates a wav file. I am looking for a way to encode it to an mp3 before saving the file. I found LAME but when ever i try to add the lame_enc.dll file it says "A reference could not be…
user2843871
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

What is the effect of the "quality" option in SoX mp3 compression?

I am converting audio files of several different formats to mp3 using SoX. According to the docs, you can use the -C argument to specify compression options like the bitrate and quality, the quality being after the decimal point, for example: sox…
Michael Brook
  • 380
  • 5
  • 10
6
votes
1 answer

How to loop an MP3?

How to loop an MP3? I use this to play an MP3, but it only plays once. I want to play the MP3 continuously. /*jslint node: true, vars: true, maxerr: 50, indent: 4 */ (function (console, require, alarm) { "use strict"; var fs =…
XP1
  • 6,910
  • 8
  • 54
  • 61
5
votes
0 answers

encoding pcm samples to mp3 in real time android, possible?

I used LAME to encode wav to mp3 in android 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…
gilush14
  • 485
  • 1
  • 9
  • 20
5
votes
0 answers

MP3 exact frame size calculation

I know there are already a few questions like this here on SO, however they do not fully explain the formulas presented in the answers. Im writing a parser that should be able to process MPEG-1,2,2.5 Audio Layer I,II,III frame headers. The goal is…
Frederik Hoeft
  • 1,177
  • 1
  • 13
  • 37
5
votes
1 answer

How to use LAME (lame_enc.dll) in my C# web site

I am trying to use the lame_enc.dll in my C# .NET website and I am stuck. I am working with: .NET Framework 3.5 / Visual Web Developer 2008 Express Edition / (Anything else you'd need to know?) The first thing I did was get the code from C# MP3…
Hewins
  • 111
  • 1
  • 7
5
votes
1 answer

sorting output of find before running the command in -exec

I have a series of directories containing multiple mp3 files with filenames 001.mp3, 002.mp3, ..., 030.mp3. What I want to do is to put them all together in order into a single mp3 file and add some meta data to that. Here's what I have at the…
yknivag
  • 85
  • 1
  • 8
5
votes
1 answer

Convert wav streamed over HTTP to mp3, in real-time

Background: I am consuming a service which returns data with a MIME type of audio/wav. I need to provide a playback mechanism for this audio (currently built as an MVC application). As an example, my endpoint looks something like…
LiquidPony
  • 2,188
  • 1
  • 17
  • 19
5
votes
1 answer

Extract audio from video in mp3 format

Objective: I want to extract an audio from video in mp3 format. Video can be in any iOS supported format I have tried the following technique to achieve the above objective and i am using lame library: Step 1: Create an AVURLAsset object by passing…
Muhammad Zeeshan
  • 2,441
  • 22
  • 33
5
votes
1 answer

Convert WAV to MP3 using LAME from PHP

I have WAV data that I'd like to convert to MP3 on the fly with a PHP script. The WAV file originates with the script, so it does not start out as a file. I can run something like this: exec( "lame --cbr -b 32k in.wav out.mp3" ); But this will…
Nick Coons
  • 3,682
  • 1
  • 19
  • 21
4
votes
2 answers

Deciphering Xuggle/ffmpeg errors (newbie)

I've recently started working with Xuggle to convert video files of various formats into corresponding FLVs (to be played on our site via jwplayer). The code I'm using is trivially simple; essentially what they show for the basic video conversion…
stpiker
  • 383
  • 1
  • 3
  • 13
4
votes
1 answer

Configure LAME MP3 encoder in DirectShow application using IAudioEncoderProperties

I'm writting a .NET DirectShow application which captures audio stream from any capture device, encodes it in mp3 using the LAME directshow filter and finally writes the stream into a file. This is my directshow graph: capture source -> LAME AUDIO…
Jerome Thievent
  • 295
  • 2
  • 8
4
votes
0 answers

Why does libmp3lame.js create garbled MP3?

I have forked Recorder.js to add support for MP3 encoding to reduce recorded data size. Repository here. The encoding is working to a point and I can play back the recorded audio that has been encoded into MP3. However, the audio quality is garbled.…
RajV
  • 6,860
  • 8
  • 44
  • 62
4
votes
2 answers

ruby - IO.popen not working lame stdin and stdout encoding

I've been working with pipes and IO.popen specifically in Ruby and have come across a problem that I can't figure out. I am trying to write binary data from the flac process to the lame process into a file. The code structure I am using is below. #…
Hans
  • 259
  • 6
  • 12
1
2
3
18 19