[wiki]HOWTO: Win32 Video Codecs (AMD64 and 64bit systems)

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

[wiki]HOWTO: Win32 Video Codecs (AMD64 and 64bit systems)

#1

帖子 oneleaf » 2005-08-12 11:00

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.

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:

1)You have to OWN A LEGAL COPY of Windows, because these are proprietary codecs (somebody correct me if I'm wrong)

2)Install “xine-ui” and “totem-xine” in Synaptic or type in the command line:
sudo apt-get install xine-ui ; totem-xine


3) Download the codecs from this website:
http://www.mplayerhq.hu/homepage/design7/dload.html
(just download the “essential codecs package”)

4)Open the command line(“Konsole” if you are using KDE, “Terminal” if you are using GNOME) and follow these steps:

a) Get to the directory where you have downloaded the file (/home/alberto/downloads in my case)

cd /home/alberto/downloads

b) Create the directory in which you are going to put the codecs (/usr/lib/win32 in my case)

sudo mkdir /usr/lib/win32

c) Now, assuming the file you downloaded is “essential-20050412.tar.bz2”:

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

d) Then, if you are using KDE type: (alberto is my username and the name of my folder, so remember to put YOURS)

kate /home/alberto/.xine/config

Otherwise if you are using GNOME type:

gedit /home/alberto/.xine/config

(please don't forget to put the dot “.” before the word “xine”)

e) 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

f) Save the file (yes, overwrite it) and exit.

g) Now restart xine (if you were using it)

Congratulations, now you can open wma, wmv, and avi files by using Totem and Xine!


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.
Well, better than nothing!

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.
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
lattice
帖子: 36
注册时间: 2005-07-06 18:01

#2

帖子 lattice » 2005-08-12 11:02

认领先,今天中午把它完成
lattice
帖子: 36
注册时间: 2005-07-06 18:01

#3

帖子 lattice » 2005-08-12 14:04

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

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

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

1)你得拥有一份合法的Windows拷贝,因为以上这些都是有专利的解码器(如果我错了请纠正我);

2)适用新得利包管理器或者用命令行安装“xine-ui”和“totem-xine”:

代码: 全选

sudo apt-get install xine-ui  totem-xine 
3)从下面这个网站下载解码器:
http://www.mplayerhq.hu/homepage/design7/dload.html
(只需要下载“essential codecs package”)

4)打开命令行终端(如果你用KDE就用“Konsole”,如果你用Gnome就用“Terminal”)并按照下列步骤来做:
a)到你下载文件的目录去(我使用/home/alberto/downloads)

代码: 全选

cd /home/alberto/downloads 
b)创建一个目录用来存放解码器(我使用/usr/lib/win32)

代码: 全选

sudo mkdir /usr/lib/win32 
c)现在假设你下载的文件是“essential-20050412.tar.bz2”

代码: 全选

sudo tar jxvf essential-20050412.tar.bz2 /usr/lib/win32 
d)然后,如果你使用KDE桌面:(alberto是我的用户名和主目录名,记得换成你的用户名或主目录名)

代码: 全选

kate /home/alberto/.xine/config 
否则如果你使用Gnome桌面:

代码: 全选

gedit /home/alberto/.xine/config 
(请不要忘记在"xine"之前加上".")
e)到文件的最后加上下面这行:

代码: 全选

decoder.external.win32_codecs_path:/usr/lib/win32 
下面是一个范例(我的配置文件中的部分):

代码: 全选

# 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 
f)保存文件(没错,覆盖原来的文件)然后退出。
g)现在重启你的xine(如果你正在使用的话)。

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


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

Alberto提供

更新:用我的HOWTO好像还是没法播放wmv9。我保证只要我从Compaq那里取回电脑之后,尽快找到解决的方法。
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#4

帖子 oneleaf » 2005-08-22 20:10

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
vvlaw
帖子: 27
注册时间: 2005-11-05 14:00

#5

帖子 vvlaw » 2005-11-11 0:09

不支持rmvb~~ :(
Jeremy
帖子: 224
注册时间: 2005-11-08 10:12

#6

帖子 Jeremy » 2005-11-29 14:34

还是不支持rmvb,不知道Realplayer什么时候出64位的版本!
freecode
帖子: 118
注册时间: 2005-05-11 8:56

#7

帖子 freecode » 2005-11-29 15:28

我关心的是amd64下如何听ape
Jeremy
帖子: 224
注册时间: 2005-11-08 10:12

#8

帖子 Jeremy » 2005-11-29 16:52

总之64Bit的问题多!
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#9

帖子 millenniumdark » 2006-07-29 19:57

回复