Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 307
Anderson Avatar asked Aug 21 '10 09:08

Anderson


2 Answers

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

like image 140
bulltorious Avatar answered Sep 20 '22 04:09

bulltorious


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

like image 33
Roman Mishin Avatar answered Sep 18 '22 04:09

Roman Mishin