个人工具

“64BitWin32VideoCodecs”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
=
指南: Win32视频解码器(针对AMD64和64位系统)
第107行: 第107行:
  
 
=======================================================
 
=======================================================
 +
 
-_-!说那么多看得人眼花。。。
 
-_-!说那么多看得人眼花。。。
 
总之64位的机器(比如AMD64)想看rmvb就要装w64codecs,这个不像其他系统装w32codecs
 
总之64位的机器(比如AMD64)想看rmvb就要装w64codecs,这个不像其他系统装w32codecs
第114行: 第115行:
 
要么用下述方法就很方便
 
要么用下述方法就很方便
 
先有运行下面的命令
 
先有运行下面的命令
 +
 
sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
 
sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
  
第129行: 第131行:
  
 
'''什么?你是一个懒人?  好  给你最后一个方法!deb安装法下载下面这个就行了  够简单吧
 
'''什么?你是一个懒人?  好  给你最后一个方法!deb安装法下载下面这个就行了  够简单吧
 +
 
http://www.debian-multimedia.org/pool/main/w/w64codecs/w64codecs_20071007-0.3_amd64.deb
 
http://www.debian-multimedia.org/pool/main/w/w64codecs/w64codecs_20071007-0.3_amd64.deb
 
'''
 
'''

2008年10月25日 (六) 12:45的版本

指南: Win32视频解码器(针对AMD64和64位系统)

原文出处:

原文作者:Alberto

授权许可:

翻译人员:lattice

校正人员:

贡献人员:

适用版本: 文章状态:等待校正


This HOWTO is mainly aimed at all the users of Ubuntu 64bit (although it would work also on a 32bit system) who can't (obviously) install these codecs using the repositories.

这篇HOWTO主要针对不能(显然)通过软件源来安装解码器的的64位Ubuntu(尽管32位系统也适用)的使用者。

If you want to watch your movies (avi and wmv) or listen to your music files (wma) which require Win32 codecs this is what you need:

如果你想看电影(avi和wmv格式)或是听音乐(wma格式),这些都需要win32解码器,以下就是你要做的了:

  • You have to OWN A LEGAL COPY of Windows, because these are proprietary codecs (somebody correct me if I'm wrong)
    你得拥有一份合法的Windows拷贝,因为以上这些都是有专利的解码器(如果我错了请纠正我);
  • Install “xine-ui” and “totem-xine” in Synaptic or type in the command line:
    适用新得利包管理器或者用命令行安装“xine-ui”和“totem-xine”:
sudo apt-get install xine-ui ; totem-xine
  • Download the codecs from this website:
    从下面这个网站下载解码器:
http://www.mplayerhq.hu/homepage/design7/dload.html
(just download the “essential codecs package” 只需要下载“essential codecs package”)
  • Open the command line(“Konsole” if you are using KDE, “Terminal” if you are using GNOME) and follow these steps:
    打开命令行终端(如果你用KDE就用“Konsole”,如果你用Gnome就用“Terminal”)并按照下列步骤来做:

a. Get to the directory where you have downloaded the file (/home/alberto/downloads in my case)
到你下载文件的目录去(我使用/home/alberto/downloads)

cd /home/alberto/downloads

a. Create the directory in which you are going to put the codecs (/usr/lib/win32 in my case)
创建一个目录用来存放解码器(我使用/usr/lib/win32

sudo mkdir /usr/lib/win32

a. Now, assuming the file you downloaded is “essential-20050412.tar.bz2”:
现在假设你下载的文件是“essential-20050412.tar.bz2”

sudo tar jxvf essential-20050412.tar.bz2 /usr/lib/win32

a. Then, if you are using KDE type: (alberto is my username and the name of my folder, so remember to put YOURS)
然后,如果你使用KDE桌面:(alberto是我的用户名和主目录名,记得换成你的用户名或主目录名)

kate /home/alberto/.xine/config


Otherwise if you are using GNOME type:
否则如果你使用Gnome桌面:

gedit /home/alberto/.xine/config


(please don't forget to put the dot “.” before the word “xine”)
(请不要忘记在"xine"之前加上".")

a. Get to the end of the document and add the following line:
到文件的最后加上下面这行:

decoder.external.win32_codecs_path:/usr/lib/win32


Here's an example (part of my config file):
下面是一个范例(我的配置文件中的部分):

# percentage of skipped frames to tolerate
# numeric, default: 10
#engine.performance.warn_skipped_threshold:10

# allow implicit changes to the configuration (e.g. by MRL)
# bool, default: 0
#misc.implicit_config:0

decoder.external.win32_codecs_path:/usr/lib/win32

a. Save the file (yes, overwrite it) and exit.
保存文件(没错,覆盖原来的文件)然后退出。

a. Now restart xine (if you were using it)
现在重启你的xine(如果你正在使用的话)。 Congratulations, now you can open wma, wmv, and avi files by using Totem and Xine!

恭喜你,你现在可以用totem和xine打开wma、wmv和avi文件了。

P.S.:Unfortunately I didn't get Amarok to play wma files although I installed its xine engine and I set it as its default engine.

PS:不幸的是,尽管我安装了相应的xine引擎、也将其设为默认引擎了,但是我还是没法用Amarok播放wma文件。

Well, better than nothing!

不过,总比没有好!

Alberto

Alberto提供

UPDATE: It seems wmv9 don't work with my HOWTO. I promise to find a way to make them work as soon as I have my computer back from Compaq.

更新:用我的HOWTO好像还是没法播放wmv9。我保证只要我从Compaq那里取回电脑之后,尽快找到解决的方法。

=======================================================

-_-!说那么多看得人眼花。。。 总之64位的机器(比如AMD64)想看rmvb就要装w64codecs,这个不像其他系统装w32codecs

要么自己下载w64codecs复制到对应地方,要么在源里面添加新源然后用新立德直接搜索

要么用下述方法就很方便 先有运行下面的命令

sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list

然后使用下面的命令添加KEY

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

之后就可以使用apt来安装:

sudo apt-get install w64codecs libdvdcss2

来源:http://www.bgevolution.com/blog/ubuntu-gutsy-w32codecs-and-w64codecs/


什么?你是一个懒人? 好 给你最后一个方法!deb安装法下载下面这个就行了 够简单吧

http://www.debian-multimedia.org/pool/main/w/w64codecs/w64codecs_20071007-0.3_amd64.deb