environment: mplayer in ubuntu in vmware
the following will give the details of
[command line mode of Mplayer]
in command line mode ,you can use :
mplayer -vo help
to see which video output driver you have installed in mplayer
————————————————————————————————————————–
crifan@crifan-ubuntu7:/mnt/hgfs/vm_share$ mplayer -vo help
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Available video output drivers:
xmga Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)
mga Matrox G200/G4x0/G550 overlay (/dev/mga_vid)
tdfxfb 3Dfx Banshee/Voodoo3/Voodoo5
3dfx 3dfx (/dev/3dfx)
xv X11/Xv
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
gl X11 (OpenGL)
gl2 X11 (OpenGL) – multiple textures version
dga DGA ( Direct Graphic Access V2.0 )
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
ggi General Graphics Interface (GGI) output
fbdev Framebuffer Device
fbdev2 Framebuffer Device
svga SVGAlib
aa AAlib
caca libcaca
dxr3 DXR3/H+ video out
v4l2 V4L2 MPEG Video Decoder Output
xvidix X11 (VIDIX)
cvidix console VIDIX
null Null video output
xvmc XVideo Motion Compensation
mpegpes Mpeg-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
png PNG file
jpeg JPEG file
gif89a animated GIF output
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
————————————————————————————————————————–
then you can choose a suitable one to use to display the video,otherwise ,you can’t play or display the video.
mplayer jay.avi -vo x11
in my case, I use the x11, in many other cases, you may use xv or gl/gl2:
if you can’t play the rmvb file you should :
————————————————————————————————————————–
安装 w32codecs解码器(用于播放wmv、rmvb等常见windows平台下的多媒体文件;假设你已经添加了ubuntu-cn源)。
sudo apt-get install w32codecs
配置中文字幕显示(可选)
mkdir ~/.mplayer ln -sf /usr/share/fonts/truetype/arphic/uming.ttc ~/.mplayer/subfont.ttf gedit ~/.mplayer/gui.conf
安装浏览器插件
sudo apt-get install mozilla-mplayer
———————————————————————————–
[shortcut keys useful in both command line mode and GUI mode]
< 和 > and UP/DOWN and LEFT/RIGHT
在播放列表中前进/后退
HOME 和 END
跳转到上级播放列表中的下一个/上一个播放项
INS 和 DEL
跳转到下一个/上一个供选择的源(仅用于asx播放列表)
p / SPACE
暂停电影(按任意键继续)
q / ESC
停止播放并退出
+ 和 −
调整音频延迟+/− 0.1秒
9 and 0
降低/升高音量
m
静音
f
触发全屏
w 和 e
降低/升高panscan范围
o
触发不同OSD状态: 无/搜索/搜索+计时器
d
触发掉帧
v
减小字幕尺寸
j
切换字幕语言
a
切换字幕对齐: 上/中/下
z 和 x
调整字幕延迟+/− 0.1秒
r 和 t
调整字幕位置
i
设置EDL标记
(下列键只对−vo xv或者−vo [vesa|fbdev]:vidix或者−vo xvidix (下列键只能用于使用硬件 加速的视频输出(xv, (x)vidix, (x)mga等等), 或者软件均衡滤镜(-vf eq或者-vf eq2)).
1 and 2
调整对比度
3 and 4
调整亮度
5 and 6
调整色相
7 and 8
调整饱和度
GUI键盘控制
ENTER
开始播放
s
截图
l
加载文件
c
增大字幕尺寸
p
触发播放列表
右ctrl+1~9
全屏时调整画面尺寸 放大 缩小
左ctrl+1~9
全屏时调整画面尺寸 上下移动
F6 正常播放速度
F7 减速播放
F8 加速播放
[configure the mplayer]
you can go and edit the configure file of the mplayer in:<br /><font color="#0000ff"><strong>sudo gedit /etc/mplayer/mplayer.conf
and you wiil see many configure option which you can customise it as you want.<br />here list <strong>some useful</strong> config option:
————————————————————————————————————————–
#
# MPlayer configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mplayer.conf
# and per user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
# The configuration file settings are the same as the command line
# options without the preceding ‘-‘.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
##################
# video settings #
##################
# Specify default video driver (see -vo help for a list).
#in my case the xv video output is not useful, so change it to the aviable one -> x11
#vo=xv
vo=x11
# Start in fullscreen mode by default.
#fs=yes
# Enable software scaling (powerful CPU needed) for video output
# drivers that do not support hardware scaling.
# you can use this to solve the problem when fullscreen ,the video content not fullscreen !!!
zoom=yes
# Use this for a widescreen monitor, non-square pixels.
# my LCD is widescreen, so enable this
monitoraspect=16:9
# Keep the player window on top of all other windows.
# you can enable this, if you want to always let the video on the top
#ontop=yes
##################
# audio settings #
##################
# Specify default audio codec (see -ac help for a list).
ac=mad,
##################
# other settings #
##################
# Drop frames to preserve audio/video sync.
# also, you can use the D on keyboard to disable/enable it
#framedrop = yes
# Specify your preferred skin here (skins are searched for in
# /usr/local/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
#skin = Abyss
#in my case, I download the skins: blue ,mini,…,so I choose the available one:blue
skin = blue
————————————————————————————–
[GUI mode of Mplayer]
for the GUI mode, you can right click the video file, choose the
Open with "mplayer movie player"
to play the video file.
[can’t play the video]
if you can’t playe the video, probably you the default video output driver is not correct for your system.
in my case the default is xv, in not work, so
right click the mplayer -> Preferences -> Video -> aviable driver, choose a correct one,
in my case, the x11 is OK.
then you can use the mplayer to play the video file !
after open the mplayer, then you can right click the mplayer, to configure it,
such as use the different skins.
[skins]
for more mplayer skins,you can download them by :
sudo apt-get install mplayer-skin
and the installed skins locate in
/usr/share/mplayer/skins, not the discribed :
"
# Specify your preferred skin here (skins are searched for in
# /usr/local/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
"
right click the mplayer -> Skin browser, to choose the skin you want.
转载请注明:在路上 » Usage + Configuration + QA of Mplayer in ubuntu in VMware