LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 953|回复: 1

有关linux中播放mp3的问题

[复制链接]
发表于 2008-12-21 10:34:57 | 显示全部楼层 |阅读模式
CentOS听mp3……
我使用的平台是CentOS4.2,工作的时候也想听听mp3
先安装xmms播放器,虽然老了点
#yum install xmms
再装个皮肤包
#yum install xmms-skins
由于版权问题,该发行版已经去除了mp3插件,需要找个mp3插件装上
#yum search xmms-mpg123
找不到啊,好像FC的yum上有,直接找个链接下吧http://www.tanvy.com/download/xmms-mpg123-1.2.7-21.i386.rpm
#rpm -ivh xmms-mpg123-1.2.7-21.i386.rpm
安装好,在gnome下已经能听mp3了

在控制台下也想听mp3,我用mpg123
到它的主站http://www.mpg123.de/mpg123/mpg123-0.59r.tar.gz
下载这个最新的版本
我下回来放在这里
#cd /usr/local/src
#tar -zxvf mpg123-0.59r.tar.gz
#cd mpg123-0.59r
#make
You must specify the system which you want to compile for:

make linux-help Linux, more help
make freebsd-help FreeBSD more help
make solaris Solaris 2.x (tested: 2.5 and 2.5.1) using SparcWorks cc
make solaris-gcc Solaris 2.x using GNU cc (somewhat slower)

make solaris-gcc-esd Solaris 2.x using gnu cc and Esound as audio output
make solaris-x86-gcc-oss Solaris with (commercial) OSS
make solaris-gcc-nas Solaris with gcc and NAS
make sunos SunOS 4.x (tested: 4.1.4)
make hpux HP/UX 9/10, /7xx
make hpux-gcc HP/UX 9/10, /7xx using GCC cc
make hpux-alib HP/UX with ALIB audio
make sgi SGI running IRIX
make sgi-gcc SGI running IRIX using GCC cc
make dec DEC Unix (tested: 3.2 and 4.0), OSF/1
make ultrix DEC Ultrix (tested: 4.4)
make aix-gcc IBM AIX using gcc (tested: 4.2)
make aix-xlc IBM AIX using xlc (tested: 4.3)
make aix-tk3play IBM AIX
make os2 IBM OS/2
make netbsd NetBSD
make bsdos BSDI BSD/OS
make bsdos4 BSDI BSD/OS 4.0
make bsdos-nas BSDI BSD/OS with NAS support
make mint MiNT on Atari
make generic try

this one if your system isn't listed above

这是它支持的平台
#make linux-help
There are several Linux flavours. Choose one:

make linux Linux (i386, Pentium or unlisted platform)
make linux-i486 Linux (optimized for i486 ONLY)
make linux-3dnow Linux, output 3DNow!(TM) optimized code
(ie with 'as' from binutils-2.9.1.0.19a or later)
make linux-alpha make with minor changes for ALPHA-Linux
make linux-ppc

Article/Special/Linux/Index.htm'>LinuxPPC or MkLinux for the PowerPC
make linux-m68k Linux/m68k (Amiga, Atari) using OSS
make linux-nas Linux, output to Network Audio System
make linux-sparc Linux/Sparc
make linux-sajber Linux, build binary for Sajber Jukebox frontend
make linux-alsa Linux with ALSA sound driver
make linux-mips-alsa

Linux/MIPS with ALSA sound driver

make linux-esd Linux, output to EsounD
make linux-alpha-esd Linux/Alpha, output to EsounD
make linux-ppc-esd Linux/PPC, output to EsounD

这是支持的linux平台
于是我选
#make linux
开始编译,完了安装
#make install
好了,听歌
#/usr/local/bin/mpg123 /usr/local/mp3/xxx.mp3 2>/dev/null &
列表听歌,乱序播放
#/usr/local/bin/mpg123 *@***.lst -Z 2>/dev/null &
感觉还不错
 楼主| 发表于 2008-12-21 10:36:47 | 显示全部楼层
大家交流一下  还有在linux其他版本的播放问题 ~~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表