Ubuntu 8.04 64位 完美解决WMV9播放问题
-
- 帖子: 25
- 注册时间: 2008-09-16 15:10
Ubuntu 8.04 64位 完美解决WMV9播放问题
此文章转自我的Blog,如果有兴趣的人可以去我的Blog上查看:http://www.zhaocs.info
这个问题对我来说很关键,因为我的很多视频教材都是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/mplaye ... _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/releas ... 07.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了^_^
参考文档:
http://ubuntuguide.org/wiki/Ubuntu:Gutsy_cn
http://ubuntuforums.org/archive/index.php/t-62685.html
转载原创文章请注明,转载自:『无题』[http://www.zhaocs.info]
本文链接: http://www.zhaocs.info/linux-ubuntu-175.html
2008.10.3 更新:如果用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
这个问题对我来说很关键,因为我的很多视频教材都是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/mplaye ... _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/releas ... 07.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了^_^
参考文档:
http://ubuntuguide.org/wiki/Ubuntu:Gutsy_cn
http://ubuntuforums.org/archive/index.php/t-62685.html
转载原创文章请注明,转载自:『无题』[http://www.zhaocs.info]
本文链接: http://www.zhaocs.info/linux-ubuntu-175.html
2008.10.3 更新:如果用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
上次由 zhaocs 在 2008-10-03 11:26,总共编辑 1 次。
- qkthomas
- 帖子: 503
- 注册时间: 2006-12-16 22:05
- 来自: 肇庆
-
- 帖子: 25
- 注册时间: 2008-09-16 15:10
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
楼上的哥们,看好了!
前面一段是出自
http://ubuntuguide.org/wiki/Ubuntu:Gutsy_cn
文档,但是如果单纯跟这个文档操作,是不能用gmplayer正常播放的!
需要再根据
http://ubuntuforums.org/archive/index.php/t-62685.html
文档中的解决方法来解决这个问题。
我只是当一个问题解决后,把过程贴出来,不想让其他人走弯路,找这些资料不容易,我可以坦诚的告诉你,这里面有些命令我不明白是很么意思!但是我通过自己的努力,把问题解决了!当我在论坛发了不止一个帖字来问这个问题时,有谁能给出一个完完整整的解决方法?!
难道我把解决问题的整个过程共享出来,分享给大家,只能招来讥讽么?!
前面一段是出自
http://ubuntuguide.org/wiki/Ubuntu:Gutsy_cn
文档,但是如果单纯跟这个文档操作,是不能用gmplayer正常播放的!
需要再根据
http://ubuntuforums.org/archive/index.php/t-62685.html
文档中的解决方法来解决这个问题。
我只是当一个问题解决后,把过程贴出来,不想让其他人走弯路,找这些资料不容易,我可以坦诚的告诉你,这里面有些命令我不明白是很么意思!但是我通过自己的努力,把问题解决了!当我在论坛发了不止一个帖字来问这个问题时,有谁能给出一个完完整整的解决方法?!
难道我把解决问题的整个过程共享出来,分享给大家,只能招来讥讽么?!
-
- 帖子: 7
- 注册时间: 2007-03-11 13:02
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
支持楼主,总结也是一种创新。
- qkthomas
- 帖子: 503
- 注册时间: 2006-12-16 22:05
- 来自: 肇庆
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
如果你认为我有讥讽的意思,我在这里说声对不起:em06
但你这文章我认为并不是原创。
但你这文章我认为并不是原创。
-
- 帖子: 25
- 注册时间: 2008-09-16 15:10
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
我想请教一下,什么是原创?
我想问问我们初学者能写出怎样的原创?
代码级的还是核心级的?
难道只有完全出自自己的思想才算是原创?!
我想问问你文章里的东西难道不是跟别人学的?!或是跟书本学的?!
那么你的文章也不算原创了?!原创应该是编写核心的那些工程师及他们写的书?!
我想问问我们初学者能写出怎样的原创?
代码级的还是核心级的?
难道只有完全出自自己的思想才算是原创?!
我想问问你文章里的东西难道不是跟别人学的?!或是跟书本学的?!
那么你的文章也不算原创了?!原创应该是编写核心的那些工程师及他们写的书?!
-
- 帖子: 700
- 注册时间: 2006-10-18 15:48
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
管他原创不原创
何必那么认真呢
只要不是灌纯水的 帖子我就顶顶顶
何必那么认真呢
只要不是灌纯水的 帖子我就顶顶顶
-
- 帖子: 7
- 注册时间: 2007-06-14 13:01
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
好贴!
支持所有能解决问题的贴!
支持所有能解决问题的贴!
-
- 帖子: 227
- 注册时间: 2007-10-20 22:48
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
能解决问题就是好贴嘛
-
- 帖子: 38
- 注册时间: 2007-06-04 15:46
Re: Ubuntu 8.04 64位 完美解决WMV9播放问题
好贴,谢谢楼主!!!