[已解决]mplayer的正确安装方法

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
ems_yao
帖子: 3
注册时间: 2008-06-15 15:51

[已解决]mplayer的正确安装方法

#1

帖子 ems_yao » 2008-06-15 16:20

尝试了很多次以后安装成功了,按照网站的很多方法加上自己的总结方法如下:
一 安装mplayer
有以下几种方法:
方法1
sudo apt-get install mplayer mplayer-fonts
方法2
Ubuntu的最左上方的应用程序- >添加删除程序-》Sound and Video-》Mplayer Moive Player
方法3
系统-》系统管理-》新得立软件包管理器-》mplayer和mplayer fonts和mplayer skins
二安装解码器
到网站下载http://www.mplayerhq.hu/design7/dload.html#binary_codecs
在Binary Codec Packages下面选择适合自己机子的解码器。一般是Linux x86 200XXXXX
解压下载的文件essentialXXXXXXXX.tar.bz2
改解压后的文件名为codecs,切记不要为win32。mplayer官网的改为为win32方法不妥
移动该文件夹至/usr/lib下,切记不要移动至/usr/local目录下
三更改设置
sudo gedit /etc/mplayer/mplayer.conf
参考方法如下:http://www.simplehelp.net/2007/07/27/ho ... in-ubuntu/
然后设置mplayer的preferece,分别设置video标签和codecs&demuxer
方法按照上面网页的方法
总结起来关键点有以下:
1下载下来的解码器解压后命名的文件名为codecs而不是win32
2解码器放置的位置是/usr/lib下即所有解码文件都在/usr/lib/codecs下
3更改/etc/mplayer/mplayer.conf里vo=xv为vo=x11
4更改preferences的video和codecs&demuxer
只要遵照以上步骤应该就可以了,希望大家能少走点弯路。
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

#2

帖子 HuntXu » 2008-06-15 16:48

哈哈~昨晚自己编译完~ :lol:

都rc2了还一堆warning...有够郁闷~而且用了--enable-gui之后开gmplayer竟然还挂...逼我用命令行...

补充你的,可以去sf找mplayer for MACOS的reallib,解压后把里面的东东拷进codec目录,可杀rmvb 8)

代码: 全选

hunt@bubble:~$ ls /usr/local/lib/codecs/
acelpdec.ax          jpgrender.bundle             sipr.bundle
alf2cd.acm           LCMW2.dll                    sipr.so.6.0
aslcodec_dshow.dll   LCODCCMW2E.dll               smlfformat.bundle
atrc.bundle          lhacm.acm                    smlrender.bundle
AvidQTAVUICodec.qtx  lsvxdec.dll                  smmrender.bundle
BeHereiVideo.qtx     m3jp2k32.dll                 smplfsys.bundle
clntcore.bundle      mi-sc4.acm                   splay.app
clntxres.bundle      mp3fformat.bundle            tokf.so.6.0
CLRVIDDC.DLL         mp3render.bundle             tokr.so.6.0
clrviddd.dll         mp4arender.bundle            tvqdec.dll
colorcvt.bundle      mp4fformat.bundle            VDODEC32.dll
cook.bundle          msh261.drv                   vdowave.drv
cook.so              msms001.vwp                  vid_3ivX.xa
coreres.bundle       msscds32.ax                  vidsite.bundle
CtWbJpg.DLL          nsrt2432.acm                 ViVD2.dll
cvt1.bundle          pngfformat.bundle            vivog723.acm
DECVW_32.DLL         pngrender.bundle             voxmsdec.ax
drv2.bundle          qpeg32.dll                   vp4vfw.dll
drvc.bundle          qtmlClient.dll               vp6vfw.dll
drvc.so              QuickTimeEssentials.qtx      vp7vfw.dll
dspr.so.6.0          QuickTimeInternetExtras.qtx  vssh264core.dll
giffformat.bundle    QuickTime.qts                vssh264dec.dll
gifrender.bundle     ramfformat.bundle            vssh264.dll
h263render.bundle    ramrender.bundle             vsshdsd.dll
helixplay.app        rarender.bundle              vsslight.dll
httpfsys.bundle      rmfformat.bundle             vsswlt.dll
hxltcolor.bundle     rpfformat.bundle             wma9dmod.dll
hxsdp.bundle         rpgifplin.bundle             wmadmod.dll
hxxml.bundle         rpjpgplin.bundle             wmsdmod.dll
iac25_32.ax          rppngplin.bundle             wmspdmod.dll
icmw_32.dll          rprender.bundle              wmv9dmod.dll
ir41_32.dll          rt32dcmp.dll                 wmvadvd.dll
ir50_32.dll          rv20.bundle                  wmvdmod.dll
ivvideo.dll          rv30.bundle                  wnvwinx.dll
jp2avi.dll           rv40.bundle                  wvc1dmod.dll
jpgfformat.bundle    rvxrender.bundle             xanlib.dll
hunt@bubble:~$ 
codecs目录的内容,用的mplayer官网的codec+reallib~codecs目录不同记得自己修改~
HUNT Unfortunately No Talent...
头像
lhw828
帖子: 2797
注册时间: 2007-03-15 16:58
来自: 湖北武汉
联系:

#3

帖子 lhw828 » 2008-06-15 17:18

总结的很好,编译很慢。我都怕了。
zhangchi100
帖子: 212
注册时间: 2006-11-17 9:53

#4

帖子 zhangchi100 » 2008-06-18 17:23

帖子很好 ,正好也解决了我的问题
huangpeihua
帖子: 12
注册时间: 2008-06-14 10:14

#5

帖子 huangpeihua » 2008-06-19 9:52

谢谢楼主,我的mplayer的问题终于解决了!
bigblock
帖子: 8
注册时间: 2008-06-18 11:08

#6

帖子 bigblock » 2008-06-19 9:53

mplayer播rmvb跟rm格式不 好。还不如用realplayer呢。容易黑屏。
回复