CentOS安装mplayer
据说mplayer相当于windows下的暴风影音,那么今天就来安装上mplayer。
- 安装的大体步骤:
安装mplayer需要安装,解码器,mplayer,皮肤。
这三个包你都可以在mplayer官方获取到。
不要认为三个包都有了就可以顺利安装了,mplayer会依赖很多包。稍后你会体会到。
- 准备
三个包的下载地址:
http://www.mplayerhq.hu/design7/dload.html
source snapshot【mplayer】:http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
Linux AMD64 20071007【解码的二进制包】:http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2
KDE【皮肤】:http://www.mplayerhq.hu/MPlayer/skins/KDE-0.3.tar.bz2
- 安装
下载好三个包以后,来进行正是安装。
解压【解码的二进制包】放到/usr/local/lib/codecs/目录,mplayer会到这目录找插件。
解压 mplayer
#。/configure --enable-gui //有很多配置项,你感兴趣可以--help,但是gui必须配置才可以有界面
#make
#make install
当然,你中间会遇到很多问题。因为mplayer需要以下这些包。
POSIX system - You need a POSIX-compatible shell and POSIX-compatible system tools like grep, sed, awk, etc. in your path.
GNU make 3.81 or later
binutils - GNU binutils 2.11 or later is known to work.
compiler - We mostly use gcc, the recommended versions on x86 are 2.95 and 3.4+. On PowerPC, use .x+. icc 10.1+ is also known to work.
Xorg/XFree86 - recommended version is 4.3 or later. Make sure the development packages are installed, too, otherwise it won't work. You don't absolutely need X, some video output drivers work without it.
FreeType - 2.0. or later is required for the OSD and subtitles
ALSA - optional, for ALSA audio output support. At least 0.9.0rc4 is required.
libjpeg - required for the optional JPEG video output driver
libpng - required for the optional PNG video output driver
directfb - optional, 0.9. or later required for the directfb/dfbmga video output drivers
lame - 3.98. or later, necessary for encoding MP3 audio with MEncoder
zlib - recommended, many codecs use it.
LIVE555 Streaming Media - optional, needed for some RTSP/RTP streams
cdparanoia - optional, for CDDA support
libxmms - optional, for XMMS input plugin support. At least 1.2. is required.
libsmb - optional, for SMB networking support
libmad - optional, for fast integer-only MP3 decoding on FPU-less platforms
你可以不去管,硬着头皮安装,中间遇到问题再一个个解决。
我遇到的问题是 x11,GTK2-devel
#yum install *x11*
#yum install *gtk2*
还有可能需要yasm:
下载地址:http://yasm.tortall.net/Download.html
假设你经过千辛万苦终于完成mplayer的install,那接下来安装皮肤。很简单:解压后
#mv KDE /usr/local/share/mplayer/skins/default
安装完成。
- 可能遇到的问题以及解决方法
不要高兴的太早,你现在打开视频文件,还有可能遇到 只有画面没有声音的情况。我遇到了。
解决方法1:
网上有人说,下载all****.tar.bz2,放到/usr/local/lib/codecs/目录
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
ls -hs
tar jxvf all-.tar.bz2
cp -r ./all-/* /usr/local/lib/codecs/
275 ls
276 cd mplayer-checkout-2014-12-22/
277 ./configure --enable-gui
278 make
279 make install
解决方法2:
yum install *stream* --skip-broken
第二种肯定可以使用。第一种不太肯定。如果你实验有准确结果,可以给我留言。谢谢。
- 参照
官方的英文指导:http://www.mplayerhq.hu/DOCS/README
http://www.mplayerhq.hu/DOCS/HTML/en/install.html 【这个我没有看,也顺手贴过来把】
http://www.linuxidc.com/Linux/2013-12/93726.htm
CentOS安装mplayer的更多相关文章
- CentOS 下安装Mplayer播放器(转载)
一.准备工作 需要的安装包及下载地址:1.mplayer源代码包(MPlayer-1.0rc4.tar.bz2)下载:http://www.mplayerhq.hu/MPlayer/releases/ ...
- Linux(CentOS 6.4)系统中安装mplayer
整了一个上午终于把mplayer安装上了,我的系统是centos 6.4,真是不容易啊! 一.准备工作 需要的安装包及下载地址:1.mplayer源代码包(MPlayer-1.0rc4.tar.bz2 ...
- CentOS下源码安装mplayer播放器
http://www.mplayerhq.hu/MPlayer/releases/ [root@ok MPlayer-1.2.1]# pwd /root/MPlayer-1.2.1 http://ww ...
- CentOS安装视频播放器SMPlayer
首先下载rpmforg,下载对应的版本,就是对应CentOS版本,还有32位与64位也要对应上.地址如下: http://wiki.centos.org/AdditionalResources/Rep ...
- 14_RHEL7安装mplayer
这里用nux-dextop仓库来配置 Nux Dextop桌面对CentOS和RHEL 6/7可用.它是一个面对CentOS.RHEL.ScientificLinux的含有许多流行的桌面和多媒体相关的 ...
- CentOS6.4安装mplayer
1.准备软件 mplayer官网:http://www.mplayerhq.hu/design7/news.html RPM Fusion网址:http://rpmfusion.org/ EPEL网址 ...
- CentOS7 安装 mplayer
我google找到这个方法可以简单快速安装 mplayer 和 vlc,centos 7 only. Please google the latest release for the followin ...
- CentOS安装gitlab,gerrit,jenkins并配置ci流程
CentOS安装gitlab,gerrit,jenkins并配置ci流程 By Wenbin juandx@163.com 2016/4/9 这是我参考了网上很多的文档,配置了这三个软件在一个机器上, ...
- 【推荐】CentOS安装Subversion-1.8.11+HTTP协议支持配置
注:以下所有操作均在CentOS 6.5 x86_64位系统下完成. 我们需要搭建一个自己的SVN服务器. 此外,搭建好的SVN服务器除了需要支持svn协议外,最好还需要支持HTTP协议和HTTPS协 ...
随机推荐
- sphinx配置文件继承
# # Minimal Sphinx configuration sample (clean, simple, functional) # source mysql { type = mysql #数 ...
- valgrind 生成mysqld调用图之 select now()跟踪
1.mysqld起动方式: 1.mysqld以root用户运行 valgrind --tool=callgrind --separate-threads=yes --trace-children=y ...
- 文件和目录之chown、fchown和lchown函数
下面几个chown函数可用于更改文件的用户ID和组ID. #include <unistd.h> int chown( const char *pathname, uid_t owner, ...
- What Influences Method Call Performance in Java?--reference
reference from:https://www.voxxed.com/blog/2015/02/too-fast-too-megamorphic-what-influences-method-c ...
- qt-vs-addin-版本支持
qt-vs-addin-1.2.0-opensource.exe VS200X qt-vs-addin-1.2.1-opensource.exe VS200X qt-v ...
- 查看Oracle SQL执行计划的常用方式
在查看SQL执行计划的时候有很多方式 我常用的方式有三种 SQL> explain plan for 2 select * from scott.emp where ename='KING'; ...
- PowerShell 批量增加ACL
$serviceName="云服务名称"$vmName="虚拟机名称"$endPoint="终结点名称"$acl=New-AzureAclC ...
- (转)STL
C++容器类 C++中的容器类包括“顺序存储结构”和“关联存储结构”,前者包括vector,list,deque等:后者包括set,map,multiset,multimap等. 若需要存储的元素数在 ...
- 昨天冲动的搬到外面住了,oh yeah
昨天我纠结了一天,我是否应该搬到外面去住.我骑着我的自行车,在外面闲逛,我心里想的是,我现在没有钱,可以节约一些生活费,租房的日子,我以后始终都是需要面对的,在目前没有那么多钱的情况下,可以不出去外面 ...
- 读jQuery官方文档:遍历
遍历 jQuery的快捷遍历方法可以快速定位到想要的元素.查找祖先元素 html<div class="grandparent"> <div class=&quo ...