Ubuntu 8.04 完美解决WMV9播放问题

这个问题对我来说很关键,因为我的很多视频教材都是WMV9的格式,但是通过网上的查找,很难找到一个完全解决此问题的教程。经过大量的查找及尝试,直到今天才真正解决了此问题。如果谁有问题,可以与我交流。此方法确认可用。

1.Download the version of mplayer32 for Edgy (it works fine) and place into temporary directory

mkdir mplayer32temp
cd mplayer32temp
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb

2.Extract the package you just downloaded, and install to the proper locations (hit ‘n’ when it asks to replace a file)

sudo dpkg -x mplayer32_20070130-1_amd64.deb ./
sudo mv -i usr/bin/* /usr/bin/
sudo mv -i usr/lib32/* /usr/lib32/

3.Get the latest win32 codecs from mplayerhq (link is current as of Nov 04, 2007), extract and install (again, hit ‘n’ when it asks to replace a file)

wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar jxfv essential-20071007.tar.bz2
sudo mv -i essential-20071007/* /usr/lib/win32/

4.替换库文件
sudo ln -s /usr/lib32/libldap_r-2.4.so.2 /usr/lib32/libldap_r.so.2
sudo ln -s /usr/lib32/liblber-2.4.so.2 /usr/lib32/liblber.so.2

5.播放文件
mplayer32 foobar.wmv

6.用gmplayer通过GUI控制mplayer32
由于gmplayer只是一个链接,可以通过“dir -l”来查看

root@frank-laptop:/usr/bin# dir -l |grep gmplayer
lrwxrwxrwx 1 root   root   9 2008-09-28 10:39 gmplayer -> mplayer

所以删除此链接,重新建一个链接指向mplayer32就可以了。
root@frank-laptop:/usr/bin#rm gmplayer
root@frank-laptop:/usr/bin#ln -s gmplayer mplayer32

但是现在还没有完,因为gmplayer用于mplayer32时skin的路径不一样

root@frank-laptop:/#gmplayer xxx.wmv
……
……
……
[skin] file ( /usr/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).

根据报错信息,建立路径
rank@frank-laptop:/usr/share/mplayer#mkdir Skin
rank@frank-laptop:/usr/share/mplayer#cp -a skins/* Skin

现在OK了,可以使用gmplayer播放WMV9了^_^

更新:如果用mplayer32播放文件,可能会遇到rmvb等一些文件播不了(在我这是如此),因此在播放这些文件时,我用了64bit的播放器,也许是因为最开始我装了一些别的编码器的原因,64bit的mplayer可以看rmvb,下次重装时,如果遇到什么问题,我会在此更新。

其实在系统中mplayer和mplayer32是共存的,只要建立2个gmplayer快捷键,一个指向mplayer32,另一个指向mplayer就可以了,播放文件时选择特定的播放器就可以了:

root@frank-laptop:/usr/bin#ln -s gmplayer32 mplayer32
root@frank-laptop:/usr/bin#ln -s gmplayer64 mplayer

参考文档:
http://ubuntuguide.org/wiki/Ubuntu:Gutsy_cn
http://ubuntuforums.org/archive/index.php/t-62685.html

本文出自 Frank's Blog

版权声明:


本文链接:Ubuntu 8.04 完美解决WMV9播放问题
版权声明:本文为原创文章,仅代表个人观点,版权归 Frank Zhao 所有,转载时请注明本文出处及文章链接
你可以留言,或者trackback 从你的网站

留言哦

blonde teen swallows load.xxx videos