Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
81 views

Why is this AudioWorklet to MP3 code producing different results on Chromium and Firefox?

I'm running the same code on Firefox 125 and Chromium 124. The code run on Firefox produces a Blob that is an encoded MP3 file - after chopping up whatever audio is being played in Firefox while the ...
guest271314's user avatar
0 votes
1 answer
450 views

Lamejs exports mp3 compressed audio file with no sound

I have to export an AudioBuffer object to mp3 compressed file, in javascript, but the output has no sound. lamejs is not outputting any audible sound: this is a duplicate, but no answer and I can't ...
Marco86's user avatar
  • 31
1 vote
0 answers
144 views

lamejs is not outputting any audible sound

I'm trying to encode my audio buffer into mp3, but, when I download the blob and try to play it I don't hear anything (pkg: https://www.npmjs.com/package/lamejs ) const encodeAudioBufferLame = ({ ...
Rohil's user avatar
  • 75
0 votes
1 answer
45 views

how and when to use LAME's id3tag_set_albumart()

liblame has a function which accepts a rather small LAME_MAXALBUMART sized image id3tag_set_albumart(m_lame, imageData, imageSize) ) calling this before lame_init_params(m_lame) causes something to ...
teknopaul's user avatar
  • 6,732
0 votes
0 answers
232 views

ffmpeg built on mac 10.13 fails when ran on other computer (dyld: Library not loaded libmp3lame.0.dylib)

I have a shell script called buildffmpeg.sh which I call with the command $ sh buildffmpeg.sh on my mac os high sierra 10.13 machine: #!/bin/bash # If you get error `c compiler failed` run `sudo apt ...
Martin's user avatar
  • 1,618
0 votes
0 answers
223 views

How to decode mp3 to pcm using lame?

I'm looking for an example of how to decode mp3 to pcm using c++ I found an example that shows how to encode! And it works fine for me! How about decode? Thanks!!! Encoding function: #include <...
Edson Magombe's user avatar
2 votes
1 answer
235 views

Is it possible to stitch MP3 frames together?

I'm working with CBR, no bit reservoir, 192k bitrate, and 48k sample rate MP3 files. CBR + 192k bitrate + 48k sample rate gives a clean 576 bytes per frame. No bit reservoir is to make each frame ...
Maxime Dupré's user avatar
1 vote
0 answers
207 views

Issue installing pysox with support for mp3 on Mac

In the pysox documentation it states entering: brew install sox --with-lame --with-flac --with-libvorbis into the command line will install pysox with support for mp3, flac and ogg files. Source: ...
David's user avatar
  • 11
0 votes
1 answer
515 views

ffmpeg mp3 encoder: how to set exactly 8.00 kbps bitrate

I want to produce constant-bitrate mp3 with bitrate 8.00kbps. I use this: ffmpeg -i q.wav -b:a 8k q.mp3 But,instead of creating 8.00 kbps mp3, it creates 8.40 kbps file (or 8.41 or like that), as soxi ...
al.zatv's user avatar
  • 193
0 votes
1 answer
163 views

Changes to linked library code not showing up when Juce program is built in Xcode

I am trying to include a library (LAME) in my Juce audio plugin, but want to be able to make some changes to the library code. However, when I make changes to the LAME library source code and make it, ...
margalo's user avatar
  • 138
-1 votes
1 answer
177 views

shell Automator script to re-encode MP3 using LAME and overwriting original files

I'm looking to run through a parent folder that has many sub folders of MP3 files and re-encode at a lower sample and bit rate. I'm doing this in Automator on my Mac using a Run Shell Script workflow ...
awvickers's user avatar
0 votes
1 answer
162 views

MP3 sound volume with a bash script

I succeeded to turn up the volume of the sound on mp3 files recursively. First in my music directory I did ls > ls.txt Then I use this script : while IFS= read -r line; do find /your/directory/...
Sten's user avatar
  • 1
0 votes
0 answers
685 views

In a golang project building with gcc, how to statically link a library on macos?

I am making a very small application in golang that happens to encode mp3's. For that I am using the go-lame package that is a go binding to libmp3lame. I want to distribute this small piece of app to ...
olup otilapan's user avatar
5 votes
1 answer
1k views

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 ...
Frederik Hoeft's user avatar
-1 votes
1 answer
41 views

How do I use an Ubuntu packgage with software running insde docker?

I have a node.JS app with a MYSQL database inside a docker container to make it scale easily but I've ran into an issue. I am using a packgage called node-lame. It uses the lame software in order to ...
Janez Kranjski's user avatar
0 votes
1 answer
631 views

C/C++: Streaming MP3

In a C++ program, I get multiple chunks of PCM data and I am currently using libmp3lame to encode this data into MP3 files. The PCM chunks are produced one after another. However, instead of waiting ...
Green grün 绿色 vert зеленый's user avatar
1 vote
1 answer
324 views

Trying to use LAME on mp3- getting MPEG-2.5 is supported by Layer3 only

When using the LAME interface through a node application (I am writing a JavaScript program running on node, with LAME installed), I am now getting this error on a semi-regular basis: "MPEG-2.5 ...
Kim Gentes's user avatar
  • 1,628
1 vote
1 answer
1k views

Why doesn't node-lame encode properly (nodeJS library)?

I've been trying to use the node-lame library to encode a file from the uploaded bitrate to 32 kbps to save space the same way I do it with sharp to compress my images. My code first checks if the ...
Nik's user avatar
  • 106
0 votes
0 answers
897 views

MP3 stream (ytdl-core) to PCM with fluent-ffmpeg

So basically im trying to convert a MP3 stream, coming in from an NodeJS readable, to the PCM format so i can play it back via the Speaker Package. I tried many things including: node-lame, lame, ...
Schwieriiiiig's user avatar
1 vote
0 answers
886 views

How to decode using lame (mp3->wav) in c++

Thank you so much for answering this question. I use lame and I want to decode mp3 file to wav. I succeeded in decoding mp3 files into wav files through several searches. However, the size of the wav ...
Jungwon's user avatar
  • 978
0 votes
1 answer
2k views

How to remove "Writing library" from .mp3?

I am trying to encode .mp3 without encoder information ("Writing library"), but it fails. I already try: ffmpeg -i test.wav -map_metadata -1 -map_chapters -1 test.mp3 ffmpeg -i test.wav -...
WarNight's user avatar
2 votes
0 answers
1k views

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(); ...
rbaleksandar's user avatar
  • 9,581
0 votes
0 answers
2k views

Uncaught RangeError: byte length of Int16Array should be a multiple of 2

I'm trying to fetch some audio files using a custom chrome extension. At the moment I have this code that will start fetching the data when a certain page is opened using webRequest API // let ...
newbiedev's user avatar
  • 3,540
1 vote
1 answer
722 views

How convert audio aiff to MP3 using Memory stream, NAudio and LameMP3

I try to convert aiff audio file from IFormFile to MP3 and upload it to Azure Storage. I don't understand how works memory streams with NAudio... I don't want to copy file in a temp file but only ...
Pigale's user avatar
  • 25
0 votes
1 answer
905 views

LAME.framework for Apple Silicon / M1

I found this for IOS, but I need help getting LAME.framework to build for MacOS intel AND arm64. https://github.com/Superbil/build-lame-for-iOS/blob/master/build_ios.sh Can anyone point me to a build ...
Ian H Stewart's user avatar
1 vote
1 answer
939 views

Ffmpeg Android - Minimum binary size to convert WAV to MP3

The only thing I want to do is convert wav files to mp3 inside my Android application. I am currently using https://github.com/tanersener/mobile-ffmpeg and with audio-release everything is working ...
timson's user avatar
  • 43
0 votes
1 answer
309 views

Azure Speech javascript SDK: Output audio in mp3

I use the sdk.connection methods to capture audio from the speech to text recognizer. It creates PCM audio that I want to convert into MP3. This is how connection is initialised: const con = SpeechSDK....
MadeInLagny's user avatar
1 vote
0 answers
681 views

angular web audio recorder - problem with importing libraries

What I want to achive: I am trying to build an angular app, where I can record audio from the browser. Some of the libraries I tried work ok, but I am getting .wav files which are too big. I want to ...
szark's user avatar
  • 87
0 votes
1 answer
442 views

Transfer-encoding: chunked and MP3/Lame

I have a PHP webservice that returns an mp3 HTTP response. It works, but when I turn on Chrome's network throttling in DevTools, it returns only part of the response: $stream_start1 = Psr7\...
xdhmoore's user avatar
  • 9,806
3 votes
1 answer
2k views

lamejs not working with angular 8 -- Uncaught ReferenceError: Lame is not defined

I added "lamejs": "^1.2.0", in package.json , and then in app.component.ts i added these lines : var lamejs = require("lamejs"); let channels = 1; //1 for mono or 2 ...
khan's user avatar
  • 137
3 votes
1 answer
3k views

Convert PyAudio microphone input stream to mp3

I am looking for ways to directly encode mp3 files from the microphone without saving to an intermediate wav file. There are tons of examples for saving to a wav file out there and a ton of examples ...
chrismec's user avatar
  • 103
1 vote
0 answers
862 views

FFmpeg / libmp3lame crash while converting from .wav to .mp3 with vibrato

I have integrated mobile-ffmpeg-full-gpl:4.3.1.LTS library in my android app. And trying to convert .wav file to .mp3 format with vibrato option and libmp3lame encoder. ffmpegCommand = "-i input....
Chitrang's user avatar
  • 5,097
3 votes
1 answer
758 views

Is there any way to use NAudio.Lame with Xamarin (Android/iOS) applications?

I'm trying to use NAudio.Lame to convert recorded audio from wav to mp3. I have installed the nugget package(v 1.1.1) with NAudio(1.1.0) but when I try to compile the application it shows this message:...
Éder Rocha's user avatar
  • 1,558
0 votes
0 answers
662 views

Build Lame on new macOS to be compatible with older macOS

I wish to use Lame to mp3 encode audio on macOS from El Capitan (10.11) forward. My development machine runs Catalina (10.15). On macOS Catalina, I built libmp3lame.a v3.100 using the following: ./...
fractor's user avatar
  • 1,638
0 votes
0 answers
83 views

Vscode extension not running after importing lame

I am trying to make a vscode extension which requires lame but every time I try to test the extension with lame imported it gives the error: Activating extension 'undefined_publisher.extension' ...
Gus's user avatar
  • 171
2 votes
1 answer
2k views

How to include library header when building with Emscripten?

I am trying to build codecbox.js on Ubuntu 18.04, which involves building FFmpeg with emcc. I have been stuck with the misleading libmp3lame >= 3.98.3 not found error. In my case, there is no ...
Christophe Fuzier's user avatar
0 votes
1 answer
1k views

When creating a Xing or Info tag in an MP3, may I use any MP3 header or does it have to match other frames?

I have a set of bare MP3 files. Bare as in I removed all tags (no ID3, no Xing, no Info) from those files. Just before sending one of these files to the client, I want to add an Info tag. All of my ...
Alexis Wilke's user avatar
  • 20.6k
1 vote
1 answer
326 views

Does ffmpeg offer an option to prevent the creation of the Info tag in an MP3 file?

I have various MP3 files which I need to process. The processing includes quite a few steps, but one important one is to remove the Info/Xing tag from the file. I successfully do so by running lame -...
Alexis Wilke's user avatar
  • 20.6k
0 votes
0 answers
263 views

decode mp3 from streaming URL

I am trying to decode mp3 from icecast server but i am getting hip: bitstream problem, resyncing skipping 164 bytes... error. I am decoding using lame decoder. hip_t hipVal; hipVal = hip_decode_init(...
Preenu P's user avatar
0 votes
0 answers
298 views

Why is ALSA playing too fast?

I am decoding an mp3 file using lame . MP3 is being played through ALSA but the audio is playing too fast. I am writing code in C language. I tried changing the size of frames given to snd_pcm_writei ...
Preenu P's user avatar
-1 votes
1 answer
71 views

Is there a size constraint to consider to make sure that the LAME tag is valid?

I want to manipulate the MP3 Xing/Info/LAME tags. I found some documentation which has various definitions, but it does not really mention that one piece of information: how do you determine that the ...
Alexis Wilke's user avatar
  • 20.6k
2 votes
0 answers
586 views

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 ...
Codeme's user avatar
  • 147
1 vote
0 answers
346 views

Start playback on given millisecond with node-lame and speaker

I'm trying to use node-lame and speaker to play mp3 files on my pc using node (no browser), I'm trying to choose a certain millisecond to begin playback: My code (similar to given examples): ...
angrykoala's user avatar
  • 4,024
0 votes
0 answers
1k views

Send Icecast live audio stream using NAudio BufferedWaveProvider

I want to send read bytes from NAudio BufferedWaveProvider to Icecast server. I have already done, but I´m facing problems with audio chunks and silence. The sound is not being send continuously. I´...
Wilson Faustino's user avatar
0 votes
1 answer
378 views

What does "hip: Can't rewind stream by 74 bits", outputted by mpglib, really means?

I'm getting a couple of error messages while using the mpglib to decode MP3 data using the libmp3lame library environment. error(#1): hip: Can't rewind stream by 74 bits! error(#2): hip: ...
Alexis Wilke's user avatar
  • 20.6k
1 vote
0 answers
78 views

How to use preset_mode from lame.h?

I want to use presets from lame.h but don't know which function to use with preset_mode constants? Constants: /*presets*/ typedef enum preset_mode_e { /*values from 8 to 320 should be reserved ...
serg.dudk's user avatar
0 votes
1 answer
905 views

How to manipulate bytes with C# NAudio?

I am currently able to: record data from audio input, generate wav file with that data on the disk, play the wav from the disk. What I want to accomplish: take the raw bytes read through NAudio, ...
Marko's user avatar
  • 417
1 vote
1 answer
333 views

Crash trying to convert PCM to MP3 using AudioKit

I am trying to convert in real time the audio from my iPhone mic to MP3. I have it setup as such: let format = AVAudioFormat(commonFormat: AVAudioCommonFormat.pcmFormatInt16, ...
George L's user avatar
  • 1,738
1 vote
1 answer
168 views

Compiling LAME for QNX

I'm trying to compile LAME to work on a QNX host. I've tried running the following commands. $ ./configure --host=i386-pc-qnx $ make As you can see, it produces a 64-bit ELF file which obviously won'...
snek_case's user avatar
  • 339
2 votes
0 answers
888 views

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. ...
Bill's user avatar
  • 5,668

1
2 3 4 5 6