Fedora

Fedora15播放mp3|rmvb|avi|flash等格式

fedora15硬盘安装请见:http://www.linuxsight.com/blog/1953

安装完fedora15之后,默认的fedora是不能播放mp3,rmvb等视频格式的。因为这些都是闭源或者有版权保护或者授权方式跟GPL有冲突的软件。

我们需要以下步骤来完成fedora15多媒体播放:

1、先安装快速选择源(这一步不是必要的,主要是可以节省时间)

[root@linuxsight linuxsight]# yum install yum-fastestmirror

已加载插件:langpacks, presto, refresh-packagekit

设置安装进程
解决依赖关系
--> 执行事务检查
---> Package yum-plugin-fastestmirror.noarch 0:1.1.30-2.fc15 will be 安装
--> 完成依赖关系计算

依赖关系解决

================================================================================
软件包                        架构        版本               仓库         大小
================================================================================
正在安装:
yum-plugin-fastestmirror      noarch      1.1.30-2.fc15      fedora       24 k

事务概要
================================================================================
Install       1 Package(s)

总下载量:24 k
Installed size: 53 k
确定吗?[y/N]:y

2、去 http://rpmfusion.org/Configuration 添加源

安装官方提示,fedora15只需:

[root@linuxsight linuxsight]# yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm
已加载插件:fastestmirror, langpacks, presto, refresh-packagekit

设置本地安装进程
rpmfusion-free-release-rawhide.noarch.rpm                |  13 kB     00:01
诊断 /var/tmp/yum-root-X52set/rpmfusion-free-release-rawhide.noarch.rpm: rpmfusion-free-release-15-0.1.noarch
/var/tmp/yum-root-X52set/rpmfusion-free-release-rawhide.noarch.rpm 将被安装
Determining fastest mirrors
* fedora: mirror.lupaworld.com
* updates: ubuntu.cn99.com
rpmfusion-nonfree-release-rawhide.noarch.rpm             |  13 kB     00:01
诊断 /var/tmp/yum-root-X52set/rpmfusion-nonfree-release-rawhide.noarch.rpm: rpmfusion-nonfree-release-15-0.1.noarch
/var/tmp/yum-root-X52set/rpmfusion-nonfree-release-rawhide.noarch.rpm 将被安装
解决依赖关系
--> 执行事务检查
---> Package rpmfusion-free-release.noarch 0:15-0.1 will be 安装
---> Package rpmfusion-nonfree-release.noarch 0:15-0.1 will be 安装
--> 完成依赖关系计算

依赖关系解决

================================================================================
软件包           架构   版本   仓库                                       大小
================================================================================
正在安装:
rpmfusion-free-release
noarch 15-0.1 /rpmfusion-free-release-rawhide.noarch    8.2 k
rpmfusion-nonfree-release
noarch 15-0.1 /rpmfusion-nonfree-release-rawhide.noarch 8.4 k

事务概要
================================================================================
Install       2 Package(s)

总文件大小:17 k
Installed size: 17 k
确定吗?[y/N]:y
下载软件包:
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装   : rpmfusion-free-release-15-0.1.noarch                         1/2
正在安装   : rpmfusion-nonfree-release-15-0.1.noarch                      2/2

已安装:
rpmfusion-free-release.noarch 0:15-0.1
rpmfusion-nonfree-release.noarch 0:15-0.1

完毕!

3、播放MP3

[root@linuxsight linuxsight]# yum install gstreamer-plugins-bad gstreamer-plugins-ugly

依赖关系解决

================================================================================
软件包                 架构 版本                  仓库                    大小
================================================================================
正在安装:
gstreamer-plugins-bad  i686 0.10.21-3.fc15        rpmfusion-free-rawhide 147 k
gstreamer-plugins-ugly i686 0.10.17-3.fc15        rpmfusion-free-rawhide 301 k
为依赖而安装:
a52dec                 i586 0.7.4-15.fc11         rpmfusion-free-rawhide  51 k
faad2-libs             i586 1:2.7-1.fc11          rpmfusion-free-rawhide 169 k
ffmpeg-libs            i686 0.6.90-0.2.rc0.fc15   rpmfusion-free-rawhide 2.8 M
lame-libs              i686 3.98.4-1.fc14         rpmfusion-free-rawhide 245 k
libdca                 i686 0.0.5-5.fc12          rpmfusion-free-rawhide 101 k
libid3tag              i686 0.15.1b-11.fc15       fedora                  41 k
libmad                 i586 0.15.1b-13.fc12       rpmfusion-free-rawhide  86 k
libmimic               i686 1.0.4-4.fc12          rpmfusion-free-rawhide  28 k
libmms                 i686 0.6.2-1.fc15          rpmfusion-free-rawhide  47 k
libmpeg2               i686 0.5.1-8.fc12          rpmfusion-free-rawhide  66 k
libquicktime           i686 1.2.2-2.fc15          rpmfusion-free-rawhide 288 k
librtmp                i686 2.3-2.fc14            rpmfusion-free-rawhide  55 k
libsidplay             i686 1.36.60-2.fc15        fedora                  69 k
libva                  i686 1.0.12-1.fc15         fedora                  51 k
mjpegtools-libs        i686 1.9.0-2.fc14          rpmfusion-free-rawhide 232 k
opencore-amr           i686 0.1.2-1.fc12          rpmfusion-free-rawhide 167 k
twolame-libs           i586 0.3.12-4.fc11         rpmfusion-free-rawhide  55 k
x264-libs              i686 0.0.0-0.29.20110227.fc15
rpmfusion-free-rawhide 345 k
xvidcore               i686 1.3.0-0.1.rc1.fc15    rpmfusion-free-rawhide 243 k

事务概要
================================================================================
Install      21 Package(s)

总下载量:5.5 M
Installed size: 15 M
确定吗?[y/N]:y

会看到系统会自动把依赖的包全部安装完成,这时候打开MP3,已经可以播放了。此时MPG也可以。

4、播放RMVB,AVI (因为这个时候许多许多包如xvidcore已经安装完毕了,只需要多一个包gstreamer-ffmpeg)

[root@linuxsight linuxsight]# yum install gstreamer-ffmpeg
已加载插件:fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: mirror.lupaworld.com
* rpmfusion-free-rawhide: mirrors.163.com
* rpmfusion-nonfree-rawhide: mirrors.163.com
* updates: ubuntu.cn99.com
设置安装进程
解决依赖关系
--> 执行事务检查
---> Package gstreamer-ffmpeg.i686 0:0.10.11-2.fc15 will be 安装
--> 完成依赖关系计算

依赖关系解决

================================================================================
软件包              架构    版本               仓库                       大小
================================================================================
正在安装:
gstreamer-ffmpeg    i686    0.10.11-2.fc15     rpmfusion-free-rawhide    186 k

事务概要
================================================================================
Install       1 Package(s)

总下载量:186 k
Installed size: 492 k
确定吗?[y/N]:y
下载软件包:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 186 k
gstreamer-ffmpeg-0.10.11-2.fc15.i686.rpm                 | 186 kB     00:01
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装   : gstreamer-ffmpeg-0.10.11-2.fc15.i686                         1/1

已安装:
gstreamer-ffmpeg.i686 0:0.10.11-2.fc15

完毕!

5.播放FLASH

http://get.adobe.com/flashplayer/ 下载rpm包

[root@linuxsight 下载]# rpm -ivh flash-plugin-10.3.181.14-release.i386.rpm
warning: flash-plugin-10.3.181.14-release.i386.rpm: Header V3 DSA/SHA1 Signature, key ID f6777c67: NOKEY
Preparing...                ########################################### [100%]
1:flash-plugin           ########################################### [100%]

重启firefox即可生效。

(0)

本文由 Linux视野 作者:fantlam 发表,转载请注明来源!

热评文章

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注