1 Answer. Each sample is only 1 byte, so instead of reading in sizeof (short) bytes, you should read in 1 byte. You have to convert the unsigned 8-bit PCM samples into signed 16-bit PCM samples ( reference ). Since the input is mono, use lame_encode_buffer () instead of lame_encode_buffer_interleaved (), and set the buffer_r parameter to NULL Bounce and dither your source from 24-bit to 16-bit to start, if it's not already there. I'd keep it WAV format still. Then, it depends on your DAW. I can bounce out from Logic to a 64 stereo/32k mono and if I set the Stereo out to Mono I get that 32kbps file. Audacity can *export* to fixed rate mono that low, and it's free. Output of the decoder are pcm samples. if your input is 16-bit stereo 44100Hz, then each frame is 16 bit*2 channels = 4 bytes, each second is 44100 * 4 bytes. Skip as many output bytes as you need until start of the desired part, then dump 44100 * 4 * 40 bytes for 40 your seconds. You can even do mixing to mono and then cutting to 8-bit as you go. Minimal example: transcode from MP3 to WMA: ffmpeg -i input.mp3 output.wma. You can get the list of supported formats with: ffmpeg -formats. Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz: ffmpeg -i input.wav -ac 1 -ab 64000 -ar 22050 output.mp3. Convert any MP3 file to WAV 16khz With AudioTrimmer, converting your audio or video files to WAV format is pretty straightforward: Select the local media file you want to convert from your device and click Next. Edit optional settings such as bitrate, bit depth, and channels on the next screen and click Convert. Click Download and download your new WAV file! Choose the AUDIO file you want to convert. Change quality or size (optional) Click on "Start conversion" to convert your file from AUDIO to WAV. Download your WAV file. To convert in the opposite direction, click here to convert from WAV to AUDIO: WAV to AUDIO converter. Try the WAV conversion with a AUDIO test file. You can also convert other audio files to WAV and vice versa. To create a Wav file, simply open the audio in any program that supports the format and save. Recording tools and apps also render in WAV. Virtually all players that support MP3s also support WAV, so opening a WAV audio file should be effortless. Windows and Mac users can open WAV I have a folder consisting of many subfolders, each with other subfolders and therein wav files. I want to convert all of the files like this: ffmpeg -i BmBmGG-BmBmBmBm.wav -acodec pcm_s16le -ar 44100 BmBmGG-BmBmBmBm.wav BUT, I want the directory structures and names preserved. Either overwritten or in a parallel directory. .

convert mp3 to wav mono 16 bit