MPlayer (简体中文)
From ArchWiki
i18n |
---|
English |
Italiano |
Ελληνικά |
简体中文 |
Русский |
MPlayer在Linux下是如此的流行的电影播放器。Mplayer支持大量的视频和音频格式,因此可以称为万能播放器。 甚至几乎大部分的人用它来观看视频。
Contents |
安装
以root身份,在shell中输入 pacman -S mplayer
。
附加的安装提示
更多的codecs
为了能得到播放更多的MPlayer支持的格式,你应该考虑安装codecs
软件包。
它支持播放Windows codecs, Real9 and QuickTime (.mov)。安装codecs:
pacman -S codecs
前端/GUIs
如果你真的想要使用MPlayer的GUI的话,MPlayer有不多的GUIs。
smplayer
软件包是其中的一个,smplayer-themes
软件包为
smplayer提供主题。
浏览器整合
如果你想在你喜爱的浏览器中通过MPlayer来观看视频,试试下面的方法吧:
Firefox
pacman -S mplayer-plugin
Konqueror
pacman -S kmplayer
(also provides a complete frontend to MPlayer.)
用法
配置
系统级的配置文件位于/usr/local/etc/mplayer/mplayer.conf
,
然而用户级的配置文件位于~/.mplayer/config
。
Translucent Video with radeon and Composite enabled
To get translucent video output in X you have to enable textured video in mplayer:
mplayer -vo xv:adaptor=1 <File>
Or add the following line to ~/.mplayer/config:
vo=xv:adaptor=1
You can use xvinfo
to check which video modes your graphic card supports.
观看流媒体
If you want to play a video stream (e.g *.asx link) use mplayer -playlist linktostream.asx
to play the stream as these are playlists of streams and won't be playable omitting the -playlist option.
快捷键
Keybindings
- 这是最常用的MPlayer的快捷键。
Key | Description |
---|---|
p | Toggle pause/play. |
Space | Toggle pause/play. |
Left | Seek backward ten seconds. |
Right | Seek forward ten seconds. |
Down | Seek backward one minute. |
Up | Seek forward one minute. |
< | Go back in the playlist. |
> | Go forward in the playlist. |
m | Mute the sound. |
0 | Volume up. |
9 | Volume down. |
f | Toggle fullscreen mode. |
o | Toggle OSD state. |
j | Toggle subtitle visibility. |
I
| Show filename. |
1, 2 | Adjust contrast. |
3, 4 | Adjust brightness. |
Mplayer fails to open files with spaces
If you try to open a file with spaces (The Movie) and mplayer fails, saying that it could not open the file (file:///The%20Movie), where all spaces are converted to %20, then open
/usr/share/applications/mplayer.desktop
and change the line
Exec=gmplayer %U
to
Exec=gmplayer %F