sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer"

29,194

Solution 1

Steps to using SOX to create MP3s:

  1. Download latest version of SOX and install.
  2. Download libmad-0.dll and libmp3lame-0.dll. The currently only known trustworthy source is ossbuild but this requires you to download a 1.5 GB archive. The selected two files are available here and here.
  3. Add libmad-0.dll and libmp3lame-0.dll to the folder where SOX was installed to.
  4. Use the command line to convert a file to .mp3:

    sox input.wav -c 2 -C 128 output.mp3
    

Note: -c 2 makes it stereo, -C 128 specifies output as 128 kbps MP3

Solution 2

You can download SoX binaries together with libmad.dll and libmp3lame.dll from http://www.videohelp.com/software/SoX

http://www.videohelp.com/download/sox-14.4.0-libmad-libmp3lame.zip

Solution 3

Compiling SOX with Lame and Libmad for Windows http://www.codeproject.com/KB/aspnet/Compiling_SOX_with_Lame.aspx

Solution 4

I have put together the original SoX binary and libmad and libmp3lame from http://code.google.com/p/ossbuild/source/browse/trunk/Shared/Build/Windows/Win32/bin/

SoX binary for Win32 together with libmad and libmp3lame

Solution 5

I have put together the original SoX binary and libmad and libmp3lame from http://code.google.com/p/ossbuild/source/browse/trunk/Shared/Build/Windows/Win32/bin/

SoX binary for Win32 together with libmad and libmp3lame

Thanks that was easy. Thanks for sharing this easy solution.

Share:
29,194
Admin
Author by

Admin

Updated on October 10, 2020

Comments

  • Admin
    Admin over 3 years

    I compiled libmad for sox. When I try to read an mp3 I get this message:

    sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer".

    Did I compile the project incorrectly?

  • adamcodes
    adamcodes about 13 years
    Useful article because the "finished" version (sox compiled with lame and libmad) is included.
  • AzizSM
    AzizSM over 11 years
  • Mr Griever
    Mr Griever over 8 years
    I spent an hour fussing with trying to install LAME manually before I happened across this. Thank you and OSSBuild!
  • Саша Черных
    Саша Черных over 7 years
    @bulltorious, I can not download libmad-0.dll and lbmp3lame-0.dll. If I press Download button in Box, I get error in Firebug: "NetworkError: 403 Forbidden - https://app.box.com/index.php?rm=box_download_shared_file&sh‌​ared_name=tzn5ohyh90‌​viedu3u90w2l2pmp2bl4‌​1t&file_id=f_6925695‌​2453". Thanks.
  • Maris B.
    Maris B. almost 7 years
    As of August 2017 .DLLs are still there in 1.5 GB archive. Thanks.
  • Matt
    Matt over 6 years
    the link for just the two files is dead.
  • Vlastimil Ovčáčík
    Vlastimil Ovčáčík almost 6 years
    Download mirror: libmad-0.dll and libmp3lame-0.dll.
  • C-lio Garcia
    C-lio Garcia over 5 years
    Working like a charm
  • 576i
    576i over 4 years
    Confirmed working on windows 10 pro, 64bit (the two "single file" links still work for me, I used the 7 zip version)
  • platinoob_
    platinoob_ over 3 years
    excuse me, can you check this question (stackoverflow.com/q/65915925/12690890)? It is about libmad