SMPlayer - Linux下优秀多媒体播放器前端/mplayer/yum安装

MPlayer 是 Linux 下最受欢迎的影音播放器之一,SMPlayer 是 MPlayer 的一款前端界面,这两者都是免费的开源软件。

安装 SMPlayer 的方法至少有三种:使用 yum,使用 rpm,以及编译源文件。在 Fedora 下安装 SMPlayer,最简单的方式自然是使用 yum 安装。

Fedora 默认的软件包仓库中并不包含 SMPlayer,因此在使用 yum 安装 SMPlayer 之前,需要在系统中配置 RPM Fusion 或其它第三方软件包仓库,不然可能无法找到 SMPlayer 软件包。

有关 RPM Fusion 软件包仓库的配置,可参考rpmfusion.org - RPM 软件包仓库

在系统中安装好 RPM Fusion 或其它软件包仓库之后,可以使用以下命令查询是否可以找到 SMPlayer 软件包

~]$ yum list *smplayer*
已加载插件:presto, refresh-packagekit, security
可安装的软件包
smplayer.i586                    0.6.8-1.fc12                     rpmfusion-free

显示以上信息说明 yum 可以从软件包仓库中找到 smplayer 软件包 (注意软件包信息的最后一列为软件包所属于的软件包仓库的名称,上例中的显示说明 smplayer.i586 软件包来自于 rpmfusion-free 仓库)。

执行 yum install smplayer 命令即可开始安装 smplayer 软件包

~]# yum install smplayer
...
Installed size: 21 M
确定吗?[y/N]:y
...

yum 执行到安装进程时会询问用户是否确定下载并安装,输入 y 回车即可。安装完成之后,可以通过 “应用程序->影音->SMPlayer” ,或者在命令行下输入 smplayer,都可以打开 SMPlayer。

下图为 SMPlayer 的程序界面

SMPlayer 程序界面 [图]

linux音频播放器安装使用手记/fedora12 mp3播放器/xmms/xmms2/audacious

fedora12下安装audacious核心步骤

[root@localhost xmms-1.2.9]# yum install audacious
[root@localhost Input]# yum install audacious-plugin-fc audacious-plugins-freeworld-aac.i686 audacious-plugins-freeworld-alac audacious-plugins-freeworld-ffaudio audacious-plugins-freeworld-mms audacious-plugins-freeworld-mp3 audacious-plugins-freeworld-wma
修改 选项-播放列表 语言为“简体中文”

安装手记

笔记本默认引导系统改为linux(frdera12)好一段时间了,但目前还没有音频播放器,使用mplayer/SMplayer播放音乐实在有点不方便,于是考虑安装一个合适的音频播放器。

xmms

最初打算用xmms,从国内一家软件站下载的源码包安装,configure显示缺少GLIB 1.2.2以上版本,yum update 没有这样的包。到xmms官方网站,显示好几年都没有更新了,google一下,其后续版本为xmms2

xmms2

于是yum install xmms2,安装很快完成。终端里执行 xmms2,显示下面一堆提示

[root@localhost xmms-1.2.9]# xmms2
Available commands:
add - adds a URL to the playlist
addarg - adds one URL with arguments to the playlist
addid - adds a Medialib id to the playlist
insert - inserts one URL at a specific position
insertid - inserts one Medialib id at a specific position
radd - adds a directory recursively to the playlist
rinsert - inserts a directory recursively at a specific position
clear - clears the playlist
shuffle - shuffles the playlist
sort - sort the playlist; use a space delimiter for multiple properties
remove - removes something from the playlist
list - lists the playlist
addpls - Adds the contents of a playlist file to the playlist
play - starts playback
stop - stops playback
toggleplay - toggles playback status between play/pause
pause - pause playback
next - play next song
prev - play previous song
seek - seek to a specific place in current song
jump - take a leap in the playlist
move - move a entry in the playlist
volume - set volume for a channel
volume_list - list volume levels for each channel
mlib - medialib manipulation - type 'xmms2 mlib' for more extensive help
playlist - playlist manipulation - type 'xmms2 playlist' for more extensive help
coll - collection manipulation - type 'xmms2 coll' for more extensive help
browse - browse server file lists
status - go into status mode
info - information about current entry
current - formatted information about the current entry
config - set a config value
config_list - list all config values
plugin_list - list all plugins loaded in the server
stats - get statistics from server
quit - make the server quit
help - print help about a command

看来还没那么容易使用,于是上官方网站http://xmms2.org/wiki/Using_the_application,有这样一节
Quick Start

  1. Start the daemon: xmms2-launcher
  2. Add some music: nyxmms2 add /home/foo/music/awesome.ogg
  3. Play: nyxmms2 play

执行xmms2-launcher,出错:

[feng@localhost xmms-1.2.9]$ xmms2-launcher
Log output will be stored in /home/feng/.cache/xmms2/xmms2d.log
startup failed!

查错误log

[feng@localhost xmms-1.2.9]$ vi /home/feng/.cache/xmms2/xmms2d.log

--- Starting new xmms2d ---
INFO: ../src/xmms/log.c:49: Initialized logging system :)
INFO: ../src/xmms/config.c:778: No configfile specified, using default values.
ERROR: ../src/xmms/config.c:913: Couldn't open /home/feng/.config/xmms2/xmms2.conf for writing.
15:13:24 ERROR: ../src/xmms/config.c:913: Couldn't open /home/feng/.config/xmms2/xmms2.conf for writing.
15:13:24  INFO: ../src/xmms/ipc.c:795: IPC listening on 'unix:///tmp/xmms-ipc-feng'.
...........

看来也没有那么容易使用,而且上面那个官方网页里提到

The Daemon,   Configuring the daemon,  The clients

也还是比较复杂的。于是卸载 [root@localhost xmms-1.2.9]# yum erase xmms2

audacious

最后转向audacious,这个播放器网上评论还是不错的。

yum安装

[root@localhost xmms-1.2.9]# yum install Audacious
已加载插件:presto, refresh-packagekit
设置安装进程
No package Audacious available.
无须任何处理
[root@localhost xmms-1.2.9]# yum install audacious
已加载插件:presto, refresh-packagekit
设置安装进程
解决依赖关系
--> 执行事务检查
---> 软件包 audacious.i686 0:2.2-14.fc12 将被 升级
--> 处理依赖关系 audacious-libs = 2.2-14.fc12,它被软件包 audacious-2.2-14.fc12.i686 需要
--> 处理依赖关系 audacious-plugins >= 2.2,它被软件包 audacious-2.2-14.fc12.i686 需要
--> 处理依赖关系 libaudclient.so.2,它被软件包 audacious-2.2-14.fc12.i686 需要
--> 处理依赖关系 libmcs.so.1,它被软件包 audacious-2.2-14.fc12.i686 需要
--> 处理依赖关系 libSAD.so.2,它被软件包 audacious-2.2-14.fc12.i686 需要
--> 处理依赖关系 libmowgli.so.2,它被软件包 audacious-2.2-14.fc12.i686 需要
--> 处理依赖关系 libaudcore.so.1,它被软件包 audacious-2.2-14.fc12.i686 需要
--> 执行事务检查
---> 软件包 audacious-libs.i686 0:2.2-14.fc12 将被 升级
---> 软件包 audacious-plugins.i686 0:2.2-32.fc12 将被 升级
--> 处理依赖关系 libcddb.so.2,它被软件包 audacious-plugins-2.2-32.fc12.i686 需要
--> 处理依赖关系 libbinio.so.1,它被软件包 audacious-plugins-2.2-32.fc12.i686 需要
--> 处理依赖关系 libcue.so.1,它被软件包 audacious-plugins-2.2-32.fc12.i686 需要
---> 软件包 libmowgli.i686 0:0.7.0-2.fc12 将被 升级
---> 软件包 mcs-libs.i686 0:0.7.1-9.fc12 将被 升级
--> 执行事务检查
---> 软件包 libbinio.i686 0:1.4-12.fc12 将被 升级
---> 软件包 libcddb.i686 0:1.3.2-2.fc12 将被 升级
---> 软件包 libcue.i686 0:1.3.0-2.fc12 将被 升级
--> 完成依赖关系计算

依赖关系解决

================================================================================
软件包                   架构        版本                 仓库            大小
================================================================================
正在安装:
audacious                i686        2.2-14.fc12          updates        371 k
为依赖而安装:
audacious-libs           i686        2.2-14.fc12          updates        111 k
audacious-plugins        i686        2.2-32.fc12          updates        1.5 M
libbinio                 i686        1.4-12.fc12          fedora          37 k
libcddb                  i686        1.3.2-2.fc12         fedora          63 k
libcue                   i686        1.3.0-2.fc12         updates         28 k
libmowgli                i686        0.7.0-2.fc12         fedora          28 k
mcs-libs                 i686        0.7.1-9.fc12         updates         21 k

事务概要
================================================================================
安装       8 软件包
更新       0 软件包

总下载量:2.2 M
Installed size: 6.8 M
确定吗?[y/N]:y
下载软件包:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 2.2 M
(1/8): audacious-2.2-14.fc12.i686.rpm                    | 371 kB     00:03
(2/8): audacious-libs-2.2-14.fc12.i686.rpm               | 111 kB     00:00
(3/8): audacious-plugins-2.2-32.fc12.i686.rpm            | 1.5 MB     00:13
(4/8): libbinio-1.4-12.fc12.i686.rpm                     |  37 kB     00:02
(5/8): libcddb-1.3.2-2.fc12.i686.rpm                     |  63 kB     00:02
(6/8): libcue-1.3.0-2.fc12.i686.rpm                      |  28 kB     00:00
(7/8): libmowgli-0.7.0-2.fc12.i686.rpm                   |  28 kB     00:01
(8/8): mcs-libs-0.7.1-9.fc12.i686.rpm                    |  21 kB     00:00
--------------------------------------------------------------------------------
总计                                             82 kB/s | 2.2 MB     00:27
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装       : libmowgli-0.7.0-2.fc12.i686                              1/8
正在安装       : mcs-libs-0.7.1-9.fc12.i686                               2/8
正在安装       : audacious-libs-2.2-14.fc12.i686                          3/8
正在安装       : libcddb-1.3.2-2.fc12.i686                                4/8
正在安装       : libcue-1.3.0-2.fc12.i686                                 5/8
正在安装       : libbinio-1.4-12.fc12.i686                                6/8
正在安装       : audacious-plugins-2.2-32.fc12.i686                       7/8
正在安装       : audacious-2.2-14.fc12.i686                               8/8

已安装:
audacious.i686 0:2.2-14.fc12

作为依赖被安装:
audacious-libs.i686 0:2.2-14.fc12     audacious-plugins.i686 0:2.2-32.fc12
libbinio.i686 0:1.4-12.fc12           libcddb.i686 0:1.3.2-2.fc12
libcue.i686 0:1.3.0-2.fc12            libmowgli.i686 0:0.7.0-2.fc12
mcs-libs.i686 0:0.7.1-9.fc12

完毕!
[root@localhost xmms-1.2.9]# yum list|grep audacious
audacious.i686                             2.2-14.fc12                  @updates
audacious-libs.i686                        2.2-14.fc12                  @updates
audacious-plugins.i686                     2.2-32.fc12                  @updates
audacious-devel.i686                       2.2-14.fc12                  updates
audacious-plugin-fc.i686                   0.4-1.fc12.2                 updates
audacious-plugin-xmp.i686                  3.1.0-1.fc12                 updates
audacious-plugins-amidi.i686               2.2-32.fc12                  updates
audacious-plugins-esd.i686                 2.2-32.fc12                  updates
audacious-plugins-freeworld.i686           2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-aac.i686       2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-alac.i686      2.1-1.fc12                   rpmfusion-free
audacious-plugins-freeworld-ffaudio.i686   2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-mms.i686       2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-mp3.i686       2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-tta.i686       2.1-1.fc12                   rpmfusion-free
audacious-plugins-freeworld-wma.i686       2.1-1.fc12                   rpmfusion-free
audacious-plugins-jack.i686                2.2-32.fc12                  updates
audacious-plugins-metronome.i686           2.1-10.fc12                  fedora
audacious-plugins-sid.i686                 2.2-32.fc12                  updates
audacious-plugins-uade.i586                2.09-5.fc11                  rpmfusion-nonfree
audacious-plugins-vortex.i686              2.2-32.fc12                  updates
audacious-plugins-wavpack.i686             2.2-32.fc12                  updates

主菜单-影音里自动加入了 Audacious 两项,Audacious (GTKui),运行,可以看到播放器界面,很简单

打开一个mp3文件,果然不能播放,还要安装插件

[root@localhost xmms-1.2.9]# yum list|grep audacious
audacious.i686                             2.2-14.fc12                  @updates
audacious-libs.i686                        2.2-14.fc12                  @updates
audacious-plugins.i686                     2.2-32.fc12                  @updates
audacious-devel.i686                       2.2-14.fc12                  updates
audacious-plugin-fc.i686                   0.4-1.fc12.2                 updates
audacious-plugin-xmp.i686                  3.1.0-1.fc12                 updates
audacious-plugins-amidi.i686               2.2-32.fc12                  updates
audacious-plugins-esd.i686                 2.2-32.fc12                  updates
audacious-plugins-freeworld.i686           2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-aac.i686       2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-alac.i686      2.1-1.fc12                   rpmfusion-free
audacious-plugins-freeworld-ffaudio.i686   2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-mms.i686       2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-mp3.i686       2.2-3.fc12                   rpmfusion-free-updates
audacious-plugins-freeworld-tta.i686       2.1-1.fc12                   rpmfusion-free
audacious-plugins-freeworld-wma.i686       2.1-1.fc12                   rpmfusion-free
audacious-plugins-jack.i686                2.2-32.fc12                  updates
audacious-plugins-metronome.i686           2.1-10.fc12                  fedora
audacious-plugins-sid.i686                 2.2-32.fc12                  updates
audacious-plugins-uade.i586                2.09-5.fc11                  rpmfusion-nonfree
audacious-plugins-vortex.i686              2.2-32.fc12                  updates
audacious-plugins-wavpack.i686             2.2-32.fc12                  updates

插件还挺多,选择其中的几个安装,带mp3字样的当然一定要安装的,

注意:这里这插件在fedora官方的rpm源里并不存在的,需要安装

参看这里:fedora安装启用rpmfusion.org RPM源  www.path8.net/tn/archives/1210

[root@localhost Input]# yum install audacious-plugin-fc
[root@localhost Input]# yum install audacious-plugins-freeworld-aac.i686
[太多了,列在一起让yum自己安装吧]
[root@localhost Input]# yum install audacious-plugins-freeworld-alac audacious-plugins-freeworld-ffaudio audacious-plugins-freeworld-mms audacious-plugins-freeworld-mp3 audacious-plugins-freeworld-wma

重新从主菜单打开,播放,搞定。

只是目前还不能显示歌词,据说有国人搞的歌词显示插件,对歌词要求不高,有时间再说

使用原始的简单界面换,对皮肤不感兴趣。

中文乱码问题

linux下程序一般都以utf-8作为默认编码,而windows下一般都使用本地编码,所以很多mp3在播放列表里显示为乱码,所以要修改为“简体中文”。改完播放列表里可能还是乱码的,重启程序也还是乱码,这是程序没有自动重新读取播放列表,双击乱码曲目播放一下就正常了。

关于Audacious

[来源于ubuntu中文wiki]
一款音乐播放器软件,是 beep-media-player 0.9.7.1的衍生软件。由于BMP停止开发,并且存在很多问题,Audacious的开发团队就自己动手开发了这个软件。 Audacious 兼容Winamp 2.x 或者 "Classic" ,和 XMMS 的皮肤。 这里访问它的站点 http://audacious-media-player.org

xmms全称是X Multimedia System,这个经典的播放器可能是每个linux的使用者或多或少都接触过的播放器,不过由于采用的是 GTK1界面,对非英语环境支持相当不好,于是到了1.2.10后xmms就没有再更新了,不过并不意味着开发停止了,而是移植到了对语言环境支持更好的 GTK2上,于是有了bmp(全称beep media player)。在bmp的开发组把注意力转到开发bmpx后,bmp更名为 audacious。比起bmp,audacious自带了更多的解码器,默认安装下,己可以支持mp3、aac、wma格式,不用到处找插件了。

linux 下媒体播放器mplayer+kmplayer

在fedora12下安装mplayer总是有很多问题,好几年前就用Linux,但仅仅是安装一下,草草用用,并没真正深入学习,很多地方都是一知半解,最近在fedora12下安装了官方svn最新的mplayer,但总是出一些这样那样的问题,装了kmplayer,设置播放核心为mplayer,很多问题都没有了,而且kmplayer在很多操作方面更容易上手一点,不你mplayer那样让人感觉到怪怪的。

linux 下mplayer unable to find simple control 'pcm' 0 解决备忘

系统环境:
intel core1 T2250 1.73GHz/ i945 /3GRAM
fedora linux 12 (以下软件环境都为FC12自带)
gnome2.28.0
gcc 4.4.2

2010/01/07 从mplayer官方SVN下载最新的mplayer源码,手工编译,使用默认配置,仅加入GUI界面
./configure --enable-gui
根据源码中reademe文档中的步骤,
STEP1: Installing Binary Codecs
STEP2: Configuring MPlayer
STEP3: Compiling MPlayer
...

先把codecs解压到/usr/local/lib/codecs/
编译安装都正常,但播放视频文件时,总是出现mplayer unable to find simple control 'pcm' 0的警示框错误提示,而且持续的快速弹出、自动关闭,再弹出、关闭。虽然播放画面正常,声音也没什么差错,感觉却是很是不爽,决心解决这一问题:
多方搜索,都没能找到有效的解决方案。
网上说得最多的解决方法是:“把audio输出设置为pulse audio”

但audio设置里没有这样的选项,如图:
ubuntuforums.org上有人说(http://ubuntuforums.org/showthread.php?t=523735)
I had this problem too, which i solved, after searching for ages on the internet, by simply enabling "Enable Software Mixer" under the audio tab in Mplayer preferences.

结果错误提示没有了,可是声音也没有了,还出这样的错误警示框:
could not open initialize audio device。
有人说是因为音频设备被其它程序占用了,所以出现这样的错误,设置mplayer不使用default device、而是手工指定一个就可以解决这个问题结果还是不行,要么照样错误提示,要么没有声音;

“在 linux下,mplayer可以說是你不二的多媒體選擇,當然realplayer也相當的不錯。出現Could not open/initialize audio device -> no sound這種錯誤大多數情況下都是由於其它應用程序啟動了audio device造成的,最簡單的方式就是為你的audio選擇一個不同的driver.
“具體操作方法為去到達mplayer->preferences->audio,然後一個一個的試哪個能讓你的mplayer發音,然後這個問題就解決了,在舊版中有時與權限有關,如果是root身份的話就不會有問題。”
于是胡乱换用别的audio选项,当月选用
“sdl  SDLlib audio outpug”
再点Configure driver 选用 alsa 再试播放,好了,声音画面都正常了。
谨以些献给与我一样的linux初级玩家。