我正在尝试在 CentOS 5 上重新编译支持 mp3 的 sox 源代码。注意 sox-12.18.1-1.el5_5.1 已经在我的 CentOS 机器上安装了一段时间。
正在关注 http://techblog.netwater.com/?p=4 ,我使用 yum 安装了以下软件包。
yum install gcc-c++ libmad libmad-devel libid3tag libid3tag-devel lame lame-devel flac-devel libvorbis-devel make
./configure 显示以下内容。
BUILD OPTIONS
Debugging build............no
Distro name ...............not specified!
Dynamic loading support....no
Pkg-config location........$(libdir)/pkgconfig
Play and rec symlinks......yes
Symlinks enabled...........yes
OPTIONAL DEVICE DRIVERS
ao (Xiph)..................no
alsa (Linux)...............no
coreaudio (Mac OS X).......no
sndio (OpenBSD)............no
oss........................yes
pulseaudio.................no
sunaudio...................no
OPTIONAL FILE FORMATS
amrnb......................no
amrwb......................no
ffmpeg.....................no
flac.......................yes
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp3........................yes
id3tag....................yes
lame......................yes
dlopen lame...............no
mad.......................yes
dlopen mad................no
oggvorbis..................yes
sndfile....................no
wavpack....................no
OTHER OPTIONS
ladspa effects.............no
magic support..............yes
png support................no
GOMP support...............yes
但是执行“make && make install”后,发出
sox test.mp3 tmp1.mp3 reverse
返回
sox: Failed reading test.mp3: Do not understand format type: mp3
我在这里错过了什么?谢谢。
最佳答案
我遇到了同样的问题。
确保服务器上没有安装其他 Sox:
yum remove sox
下一步:
make uninstall
make clean
./configure
make
make install
关于mp3 - sox 在其源代码重新编译为 mp3 支持后仍然不支持 mp3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10824990/