打算在fedora 26上安装一个mplayer用于播放视频,网上查找资料大多是说用tarball安装,可行但是不好。rpmfusion中已经存在有mplayer了,所以没必要用源码安装。[关于添加rpmfusion源可以看我的另一篇博客:解决fedora26下firefox无法播放网页音乐,自带视频播放器缺少解码器等问题]
1.先搜索相关的安装包:
yum search mplayer
可以看到如下结果:
======================== Name Exactly Matched: mplayer =========================
mplayer.x86_64 : Movie player playing most video formats and DVDs
======================= Summary & Name Matched: mplayer ========================
mplayer-gui.x86_64 : GUI for MPlayer
vdr-mplayer.x86_64 : MPlayer plugin for VDR
mplayer-common.x86_64 : MPlayer common files
xmms-mplayer.x86_64 : MPlayer plugin for XMMS
mplayer-tools.x86_64 : Useful scripts for MPlayer
smplayer-themes.x86_64 : Themes and Skins for SMPlayer
smplayer.x86_64 : A graphical frontend for mplayer and mpv
kmplayer.x86_64 : A simple front-end for MPlayer/FFMpeg/Phonon
mplayer-doc.x86_64 : MPlayer documentation in various languages
=========================== Summary Matched: mplayer ===========================
mencoder.x86_64 : MPlayer movie encoder
smtube.x86_64 : YouTube browser for SMPlayer
kplayer.x86_64 : A media player based on MPlayer
2.所以我们可以下mplayer 和smplayer(A graphical frontend for mplayer and mpv,即mplayer和mpv的一个图形前端的意思),也可以选择mplayer和kplayer,当然也可以三个都下载安装
只需执行以下命令即可
yum install mplayer smplayer kplayer
3.现在就可以打开视频了。当然mplayer可以在命令行进行操作,执行以下命令就可以。
mplayer filename
快捷键什么的自己百度就好了,这是我一般查看快捷键的网址
http://www.mplayer.org.cn/02.html