centos下无法观看本地视频!!!!

mplayer  对flv格式的视频很不友好啊!!!

mpeg-4 aac decoder


----------------

先是mplayer

安装软件看视频!!!

软件主体,界面:yum install mplayer mplayer-gui

安装好后 使用   gmplayer



稍微介绍下使用yum细节


首先,yum clean all   清理之前缓存数据

再使用 yum makecache指令  将当前服务器上软件包相关信息存到本地以提高搜索速度。


然后: yum install xxxx

软件包名

查寻该软件是否已安装:yum list xxx

list指令还支持通配符  list gcc*

yum list installed

yum available  单前软件源

yum info xxxx   查看软件信息。

更新软件: yum update xxxx

yum update python

卸载软件包; yum remove xxx


普通用户只可以列出软件包。

=====

为yum配置第三方软件源:

软件源是啥??  centos 默认官方源   少!!!

所以要配置它!!!如我们要用的mplayer!!媒体播放器!

而第三方软件源有许多 例:

EPEL:

Remi:

ATrpms:

RPMFusion:

RepoForge: mplayer!!!!

ELRepo:

网易源:http://mirrors.163.com
搜狐源:http://mirrors.sohu.com/
中科大源:http://centos.ustc.edu.cn/
CentOS 源:http://mirror.centos.org

CentOS:http://www.centos.org/modules/tinycontent/index.php?id=13
Fedora: http://mirrors.fedoraproject.org/publiclist/

EPEL 源:https://fedoraproject.org/wiki/EPEL/zh-cn
RepoForge 源:http://repoforge.org/
RPMFusion 源:http://rpmfusion.org/
Remi 源:http://rpms.famillecollet.com/


打开网址,wget  用rpm -ivh ./......xxx.rpm   安装它

而yum的配置目录:/etc/yum.repos.d

就会看到好多源了!!

但是这时还不能使用它!!!!

得排个优先级!!!  先安装个优先级排序软件:yum-plugin-priorities

然后配置各个源。

打开 yum.repos.d/  的官方源  cetos-base.repo

[root@localhost ~]# ls -l /etc/yum.repos.d/
总用量 40
-rw-r--r--. 1 root root  179 7月  26 2007 adobe-linux-i386.repo
-rw-r--r--. 1 root root 1991 5月  19 2016 CentOS-Base.repo
-rw-r--r--. 1 root root  647 5月  19 2016 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  289 5月  19 2016 CentOS-fasttrack.repo
-rw-r--r--. 1 root root  630 5月  19 2016 CentOS-Media.repo
-rw-r--r--. 1 root root 6259 5月  19 2016 CentOS-Vault.repo
-rw-r--r--. 1 root root  656 12月 21 2013 chromium-el6.repo
-rw-r--r--. 1 root root  957 11月  5 2012 epel.repo
-rw-r--r--. 1 root root 1056 11月  5 2012 epel-testing.repo
[root@localhost ~]# 

在文件里有好几个仓库!!

都加一行priority=1

1表示最高!!!!

[base]


[updates]


[extras]


-----------------------


现在来解决 mpeg-4 的问题!!!!

也就是说:movie player 需要这个解码器


我加了个软件源  reforge 

所以直接搜索就行!!!  如果没有添加额外的软件源,只使用centos官方源是没有的!!!!

这样就可以使用GNOME默认的播放器了!!!!

ffmpeg是啥呢!!!!!





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值