【问题标题】:sox still doesn't support mp3 after its source is recompiled with mp3 supportsox 在其源重新编译并支持 mp3 后仍然不支持 mp3
【发布时间】:2012-05-30 22:11:43
【问题描述】:

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

我在这里缺少什么?谢谢。

【问题讨论】:

  • 这应该可以帮助你.. 在 CentOS 5.x 上安装带 MP3 支持的 SoX techblog.netwater.com/?p=4 :)
  • 我知道这是旧的,但问题是 make install 没有将 sox 安装到您的 PATH 上的目录中,所以您仍在使用版本 12 而不是版本 14。

标签: mp3 centos sox


【解决方案1】:

我遇到了同样的问题。

确保服务器上没有安装其他 Sox:

yum remove sox

下一步:

make uninstall
make clean
./configure
make
make install

【讨论】:

  • 如果原始配置命令不包含 mp3 将不起作用
猜你喜欢
  • 1970-01-01
  • 2023-01-27
  • 1970-01-01
  • 2019-07-12
  • 2012-09-13
  • 2011-12-23
  • 2016-02-20
  • 2015-08-12
  • 1970-01-01
相关资源
最近更新 更多