sox FAIL util:无法加载 MAD 解码器库 (libmad) 函数“mad_stream_buffer”
我为 sox 编译了 libmad。当我尝试读取 mp3 时,收到以下消息:
sox FAIL util: 无法加载 MAD 解码器库 (libmad) 函数“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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
使用 SOX 创建 MP3 的步骤:
libmad-0.dll
和libmp3lame-0.dll
。目前唯一已知的可信来源是 ossbuild 但这需要您下载 1.5 GB 存档。所选的两个文件可在此处和此处。libmad-0.dll
和libmp3lame-0.dll
添加到安装 SOX 的文件夹中。使用命令行将文件转换为
.mp3
:注意:
-c 2
使其成为立体声,- C 128
指定输出为 128 kbps MP3Steps to using SOX to create MP3s:
libmad-0.dll
andlibmp3lame-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.libmad-0.dll
andlibmp3lame-0.dll
to the folder where SOX was installed to.Use the command line to convert a file to
.mp3
:Note:
-c 2
makes it stereo,-C 128
specifies output as 128 kbps MP3您可以从 http://www.videohelp.com/ 下载 SoX 二进制文件以及 libmad.dll 和 libmp3lame.dll software/SoX
http://www.videohelp. com/download/sox-14.4.0-libmad-libmp3lame.zip
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
使用 Lame 和 Libmad 为 Windows 编译 SOX
http://www.codeproject.com/KB/aspnet/Compiling_SOX_with_Lame.aspx
Compiling SOX with Lame and Libmad for Windows
http://www.codeproject.com/KB/aspnet/Compiling_SOX_with_Lame.aspx
我已经将原始的 SoX 二进制文件以及 libmad 和 libmp3lame 来自 http://code.google.com/p/ossbuild/source/browse/trunk/Shared/Build/Windows/Win32/bin/
Win32 的 SoX 二进制文件以及 libmad 和 libmp3lame
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
我已经将原始的 SoX 二进制文件以及 libmad 和 libmp3lame 来自 http://code.google.com/p/ossbuild/source/browse/trunk/Shared/Build/Windows/Win32/bin/
Win32 的 SoX 二进制文件以及 libmad 和 libmp3lame
谢谢很容易。感谢您分享这个简单的解决方案。
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.
从源代码编译:
自教程 http://www.codeproject.com/KB /aspnet/Compiling_SOX_with_Lame.aspx 相当过时(并且不适用于更新的 VisualStudio 版本):
SOX 项目包含现成的 Visual Studio 项目,用于在 Windows 上编译 SOX 及其依赖项/库(例如使用 Visual Studio Community Edition)。
SOX 源代码SourceForge 的存储库包含一个目录
msvc10
(以及msvc9
),用于使用 VisualStudio 编译 SOX 及其依赖项。详细说明位于 Readme.txt。
因此,例如,仅编译
libmad.dll
:sox-code/
libmad
源代码 并解压到目录libmad/
(参见 SOX VisualStudio Readme.txt 的说明,请参阅上面的链接),即目录结构应类似于sox-code/ 中打开 VisualStudio 项目文件 (
(如果需要,请将构建配置表单*.sln
) msvc10Debug
更改为Release
)LibMad
并选择Build
(或在较旧的 VS 版本中Project Only
→Build Only LibMad
),sox-code/msvc10/Release
(或Debug
,具体取决于所选配置)使用 VisualStudio 2010 和 Visual Studio 2017 CE 进行测试
for compiling from source:
since the the tutorial http://www.codeproject.com/KB/aspnet/Compiling_SOX_with_Lame.aspx is rather dated (and did not work for me with more recent VisualStudio versions):
the SOX project contains ready-to-use Visual Studio projects for compiling SOX and its dependencies/libraries on Windows (e.g. using a Visual Studio Community Edition).
The SOX source code repository at SourceForge contains a directory
msvc10
(and alsomsvc9
) for compiling SOX and its dependencies with VisualStudio.Detailed instructions for that are in the Readme.txt.
So, for example, for only compiling
libmad.dll
:sox-code/
libmad
source code from SourceForge and decompress to directorylibmad/
(cf. instructions of the SOX VisualStudio Readme.txt, see link above), i.e. the directory structure should look like*.sln
) in directorysox-code/msvc10
(if needed, change build configuration formDebug
toRelease
)LibMad
and selectBuild
(or in older VS versionsProject Only
→Build Only LibMad
)sox-code/msvc10/Release
(orDebug
depending on the selected configuration)tested with VisualStudio 2010 and Visual Studio 2017 CE