lame

[.NET] Configure LAME MP3 encoder in DirectShow application using IAudioEncoderProperties

Hi, 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 ENCODER (Audio compressor) -> WAV DEST (Wave muxer, compiled from SDK sourcres) -> Fil...

How to convert 24-bit wav to mp3 with Lame using C++

Hello all, I am using the Lame library in a C++ application to encode wav files to mp3 files. It works ok for 16-bit wavs, but now I need to convert some 24-bit wavs and I cannot seem to find the way. In particular, I cannot find a function for setting the "bitwidth" parameter taken as a switch by the lame command line. (The command l...

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 tutorial: IMediaReader reader = ToolFactory.makeReader(file.getPath()); reader.addListene...

PHP Lame stream filter

I have a task to make an mp3 player embedded on a page that will play some voice messages stored in database. Some of messages are stored in WAV-format, so they must be converted to mp3. The conversion should be done "on fly". Because of not all messages have to be converted, I desided that it will be a good idea to use a stream filter t...

skipping the converting step

So i have a script in my php file that takes a .wav file and converts it to a .mp3 exec( "lame ".SOMELOCATION."/".$file.".wav ".LOCATION."/{$Sub}/".$file.".mp3 "); I now need to take the file from the url and save it to the location listed above For example: it will come in like this http://someurl.com/audio/something.mp3 an...

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 tried shifting the bits (not my strong point) in the wave stream itself from 32 bit to 16...

Converting MIDI byte array to MP3 byte array

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 conversion should not take more than 2 - ...

SOX LAME and php fire done signal?

Hi I am using SOX in the following manner with php. $thesong = 67; $theString = "1.wav 2.wav 2.wav 1.wav"; exec("./sox $theString $thesong.wav"); It seems to be be working very good.Then I do the following. exec("./lame $thesong.wav $thesong.mp3"); Again this works fine,but is there any way to tell when both SOX and LAME have complete...