mp3 - sox 在其源代码重新编译为 mp3 支持后仍然不支持 mp3

标签 mp3 centos sox

我正在尝试在 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/

相关文章:

php - NGiNX 配置为子文件夹上的 PHP 应用程序和 Angular 应用程序提供服务

audio - 如何将AC3音频转换为Wav音频?

c - 使用lame编码音频: Converting 32bit float to mp3

audio - ALSA 缓冲区大小是否有硬件定义的上限?

compilation - 使用 --enable-pcntl 在 centos 上编译 php5

file - sox合并两个不同长度的文件

bash - 在启动时保持 bash 脚本在后台循环的最佳方法是什么 - Linux?

html - 某些 MP3 文件无法在 Chrome 中播放

ruby - 如何以编程方式将 mp3 转换为 itunes 可播放的 aac/m4a 文件?

linux - 替代 solaris 库?