Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

windows - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...