annotate DOCS/Chinese/codecs.html @ 8696:4e97f3c10edc

new options
author michael
date Wed, 01 Jan 2003 14:59:41 +0000
parents 363959276ef2
children e7aad3a3bb7c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
2 <HTML>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
3
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
4 <HEAD>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
5 <TITLE>编码格式 -- MPlayer -- Linux的电影播放器</TITLE>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
6 <LINK REL="stylesheet" TYPE="text/css" HREF="default.css">
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb_2312-80">
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
8 </HEAD>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
9
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
10 <BODY>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
11
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
12
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
13 <H2><A NAME="codecs">2.2 支持的编码格式 </A></H2>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
14
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
15
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
16 <H3><A NAME="video_codecs">2.2.1 视频编码格式</A></H3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
17
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
18 <P>看<A HREF="http://www.mplayerhq.hu/DOCS/codecs-status.html">编码格式状态表格</A>来了解完整的,每日更新的列表。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
19
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
20 <P>所有之中最重要的:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
21 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
22 <LI>MPEG1(VCD)和MPEG2(DVD)视频</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
23 <LI>DivX的本地的解码器;-),OpenDivX,DivX4,DivX5,M$ MPEG4 v1,v2和其它的MPEG4变种</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
24 <LI>Windows Media Video 7(WMV1)的本地的解码器,和Windows Media Video 8(WMV2)的Win32 DLL解码器,用于.wmv文件的他们两个都</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
25 <LI><B>本地的Sorenson(SVQ1)解码器</B></LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
26 <LI>3ivx解码器</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
27 <LI>Cinepak和Intel Indeo解码器(3.1,3.2,4.1,5.0)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
28 <LI>MJPEG,AVID,VCR2,ASV2和其它硬件格式</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
29 <LI>VIVO 1.0,2.0,I263和其它h263(+)的变种</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
30 <LI>FLI/FLC</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
31 <LI>libavcodec的RealVideo 1.0解码器,和使用RealPlayer库的RealVideo 2.0,3.0解码器</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
32 <LI>HuffYUV的本地的解码器</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
33 <LI>各种各样的老的简单的类似RLE的格式</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
34 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
35
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
36 <P>如果你有一个Win32解码器没有列出来而且目前没有被支持,请读取<A HREF="#importing">解码器导入HOWTO</A>并且帮助我们添加对它的支持。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
37
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
38
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
39 <H4><A NAME="divx">2.2.1.1 DivX4与DivX5</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
40
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
41 <P>这部分包含关于<A HREF="http://www.projectmayo.com">Mayo工程</A>的DivX4和DivX5编码格式的信息,他们的第一个可用的alpha版本是
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
42 OpenDivX 4.0 alpha 47和48。 对它们的支持以前包括仔<B>MPlayer</B>中,并且是默认编译的。 我们也使用其后处理代码来有选择地提高MPEG1/2电影的视觉质量。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
43 现在我们使用我们自己的,对于所有文件类型。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
44
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
45 <P>这个解码器的新一代产品称为DivX4,它甚至能解码以声名狼籍的DivX编码格式制作的电影! 此外,它比本地的Win32 DivX DLL快得多比但是比libavcodec慢。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
46 因此,<B>不鼓励</B>把它当解码器用。 然而,它对编码有用。 这个编码格式的缺点之一是它目前不开放源代码。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
47
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
48 <P>解码器可以从下列URLs之一下载:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
49
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
50 <P>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://avifile.sourceforge.net">http://avifile.sourceforge.net</A><BR>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
51 &nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://divx.com">http://divx.com</A></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
52
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
53 <P>解开它,然后以root身份运行<CODE>./install.sh</CODE>。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
54
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
55 <P><B>注意:</B>一定<B>不要</B>忘记在你的<CODE>/etc/ld.so.conf</CODE>里添加<CODE>/usr/local/lib</CODE>然后运行<CODE>ldconfig</CODE>!</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
56
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
57 <P>如果安装正确<B>MPlayer</B>会自动检测到DivX4/DivX5,然后按通常方法编译。如果没有找到,那么你没有正确地安装或配制它。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
58
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
59 <P>DivX4Linux有两种工作方式:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
60
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
61 <DL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
62 <DT><CODE>-vc odivx</CODE></DT>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
63 <DD>以OpenDivX方式使用解码器。在这种情况下,它在自己的缓冲中产生YV12图象,然后由<B>MPlayer</B>通过libvo做色彩空间转换。(<B>推荐,快!</B>)</DD>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
64
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
65 <DT><CODE>-vc divx4</CODE></DT>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
66 <DD>使用解码器的色彩空间转换。以这种方式你也能使用YUY2与UYVY。(<B>慢</B>)</DD>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
67 </DL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
68
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
69 <P><CODE>-vc odivx</CODE>方式通常更快,因为它以YV12(planar YUV 4:2:0)格式传输图象数据,这样占用少的多的总线带宽。对于packed YUV方式
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
70 (YUY2,UYVY)使用<CODE>-vc divx4</CODE>方式。对于RGB模式两者速度是相同的,差别最多是你当前的色彩深度。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
71
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
72 <P><B>注意:</B>如果你的<CODE>-vo</CODE>驱动支持直接渲染,那么<CODE>-vc divx4</CODE>可以是很快甚至最快的解决方案。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
73
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
74
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
75 <H4><A NAME="libavcodec">2.2.1.2 FFmpeg DivX/libavcodec</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
76
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
77 <P><A HREF="http://ffmpeg.sourceforge.net">FFmpeg</A>包括一组<B>开源的</B>解码器包,能够以兼容方式解码以
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
78 H263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1编码格式编码的视频流。它不仅能对其中一些进行编码,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
79 同时提供比Win32解码器或Mayo工程的DivX4/5库更高的速度!</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
80
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
81 <P>它包含很多不错的解码器,尤其重要的是MPEG4的几个变种:DivX 3,DivX 4,DivX 5,Windows Media Video 7 (WMV1)</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
82
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
83 <P>如果你使用<B>MPlayer</B>发行版,在你的源码包里就有libavcodec,正常编译。如果你使用CVS的<B>MPlayer</B>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
84 那么你必须从FFmpeg的CVS树中提取libavcodec因为FFmpeg 0.4.5<B>不能</B>用于<B>MPlayer</B>。你应该这样来完成:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
85
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
86 OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
87 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login</CODE></LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
88 <LI><CODE>cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg</CODE></LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
89 <LI>把<CODE>libavcodec</CODE>目录从FFmpeg的源代码里移到<B>MPlayer</B>的CVS树的根部。应该看起来象这样:
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
90 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>main/libavcodec</CODE></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
91 符号链接是<B>不</B>够的,你必须复制或移动它!</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
92 <LI>编译。Configure应该在编译之前发现可能的问题。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
93 </OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
94
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
95 <P><B>注意:</B>CVS的MPlayer确实有libavcodec子目录,但是它确实<B>没有</B>包含libavcodec的源代码!你必须按照上述的步骤来得到这个库的源代码。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
96
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
97 <P>用FFmpeg和我的Matrox G400,我甚至能在我的K6/2 500上无掉帧的观看最高分辨率的DivX电影。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
98
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
99
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
100 <H4><A NAME="xanim">2.2.1.3 XAnim解码器</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
101
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
102 <P>前言:<BR>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
103 XAnim的二进制的解码器包里面有一份关于合法捆绑软件许可的声明,除其它限制之外,禁止用户用除XAnim外的任何程序使用其解码器。然而,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
104 XAnim的作者到目前为止没有就解码器有关的问题对着任何人采取法律行动。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
105 </P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
106
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
107 <P><B>MPlayer</B>可以使用XAnim的解码器解码。按照下列指令来开启它:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
108
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
109 <OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
110 <LI>从<A HREF="http://xanim.va.pubnix.com">XAnim的站点</A>下载你想要的解码器。<B>3ivx</B>的解码器不在那里,在
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
111 <A HREF="http://www.3ivx.com">3ivx的站点</A>。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
112 <LI>使用<CODE>--with-xanimlibdir</CODE>选项来告诉configure在何处可以找到XAnim的解码器。缺省的话,它在
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
113 <CODE>/usr/local/lib/xanim/mods, /usr/lib/xanim/mods and /usr/lib/xanim</CODE>里寻找。或者你可以把<I>XANIM_MOD_DIR</I>环境变量
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
114 设置为XAnim解码器所在的目录。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
115 <LI>给文件改名/做符号链接,去掉代表平台构架之类的东西,让他们看起来像这样:<CODE>vid_cvid.xa, vid_h263.xa, vid_iv50.xa</CODE>。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
116 </OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
117
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
118 <P>XAnim的视频解码器族号码是10,因此你可以使用<CODE>-vfm 10</CODE>选项让<B>MPlayer</B>尽可能的使用他们。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
119
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
120 <P>测试过的解码器包括:<B>Indeo 3.2</B>,<B>4.1</B>,<B>5.0</B>,<B>CVID</B>,<B>3ivX</B>,<B>h263</B>。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
121
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
122
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
123 <H4><A NAME="vivo_video">2.2.1.4 VIVO视频</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
124
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
125 <P><B>MPlayer</B>能播放Vivo(1.0和2.0)视频。对于1.0的文件最适合的解码器是FFmpeg的H263解码器,你可以用<CODE>-vc ffh263</CODE>选项
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
126 (默认的)来使用它(需要最新的libavcodec)。对于2.0个文件,使用<A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/ivvideo.dll">
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
127 ivvideo.dll</A>这个Win32 DLL文件,将它安装在<CODE>/usr/lib/win32</CODE>或者你放Win32解码器的那个什么地方。后面这个解码器不支持YV12或YUY2,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
128 只使用BGR,只能限定在X11和OpenGL输出方式。希望ffh263将来支持VIVO 2.0的文件。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
129
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
130
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
131 <H4><A NAME="mpeg">2.2.1.5 MPEG 1/2视频</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
132
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
133 <P>MPEG1和MPEG2用本地的多平台的<B>libmpeg2</B>库解码,其源代码被包括在<B>MPlayer</B>中。对于buggy的MPEG 1/2视频文件我们通过截获sig11
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
134 (segmentation fault),然后迅速再次初始化解码器,从失败的地方继续。这种恢复技术会带来无法估量的速度损失。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
135
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
136
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
137 <H4><A NAME="ms_video1">2.2.1.6 MS Video1</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
138
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
139 <P>这是微软的又旧又差的编码格式。过去它用<CODE>msvidc32.dll</CODE>的Win32解码器解码,现在我们有我们自己的开源的实现(由
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
140 <A HREF="mailto:melanson@pcisys.net">Mike Melanson</A>提供)。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
141
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
142
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
143 <H4><A NAME="cinepak">2.2.1.7 Cinepak CVID</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
144
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
145 <P><B>MPlayer</B>默认将使用自己的开源的,多平台的Cinepak解码器。它支持YUV输出,所以只要硬件驱动允许它将使用硬件缩放。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
146
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
147
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
148 <H4><A NAME="realvideo">2.2.1.8 RealVideo</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
149
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
150 <B>MPlayer</B>支持所有版本的RealVideo的解码:
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
151
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
152 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
153 <LI>RealVideo 1.0 (fourcc RV10) -- 编/解码由<B>libavcodec</B>支持</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
154 <LI>RealVideo 2.0,3.0,4.0(fourcc RV20,RV30,RV40) -- 解码由<B>RealPlayer库</B>支持</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
155 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
156
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
157 <P>推荐下载并安装RealPlayer8或者RealONE,因为<B>MPlayer</B>能使用他们的库来解码RealVideo 2.0或者RealVideo 3.0的视频文件。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
158 <B>MPlayer</B>的配置脚本应该在一个完全安装的RealPlayer的标准位置找到它的库。如果它没找到,用<CODE>--with-reallibdir</CODE>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
159 选项告诉configure到哪里去找。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
160
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
161 <P><B>注意:</B>RealPlayer库目前<B>只能用于x86平台上的Linux,FreeBSD,NetBSD和Cygwin。</B></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
162
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
163 <P><B>注意:</B>我们不能分发RealPlayer库,它的许可证不允许这样。你必须自己搞到他们。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
164
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
165
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
166 <H4><A NAME="xvid">2.2.1.9 XViD</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
167
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
168 <P><B>XViD</B>OpenDivX编码格式的开发分支。故事发生在Mayo工程把OpenDivX变成封闭源码的DivX4的时候,那些从事于OpenDivX的非Mayo工程
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
169 的人们感到愤怒,于是开始了XViD。所以两个项目有相同的起源。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
170
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
171 <H4>优点:</H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
172
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
173 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
174 <LI>开放源码</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
175 <LI>它的API与DivX4相同,所以加入对它的支持很容易</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
176 <LI>支持2-pass编码</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
177 <LI>不错的编码质量,DivX4更快的速度(编译时你能针对你的机器优化它)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
178 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
179
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
180 <H4>缺点:</H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
181
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
182 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
183 <LI>目前还不能正确的<B>解码</B>所有的DivX与DivX4文件(没问题因为libavcodec能播放他们)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
184 <LI>编译时你必须选择支持DivX4<B>或者</B>支持XViD</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
185 <LI>还在开发中</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
186 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
187
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
188 <P>XViD目前只能从CVS中得到。这是下载和安装的指令:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
189
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
190 <OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
191 <LI><CODE>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid login</CODE></LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
192 <LI><CODE>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid co xvidcore</CODE></LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
193 <LI><CODE>cd xvidcore/build/generic</CODE></LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
194 <LI>按照你的需要编辑<CODE>Makefile.linux</CODE>。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
195 <LI><CODE>make -f Makefile.linux</CODE></LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
196 <LI>从DivX4Linux包中找出<CODE>encore2.h </CODE>和<CODE>decore.h </CODE>,把它们复制到<CODE>/usr/local/include/</CODE>。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
197 <LI>加上<CODE>--with-xvidcore=/path/to/libcore.a</CODE>选项重新编译<B>MPlayer </B>。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
198 </OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
199
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
200
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
201 <H4><A NAME="sorenson">2.2.1.10 Sorenson </A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
202
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
203 <P><B>Sorenson </B>是苹果开发的视频编码格式。目前我们能用本地解码器解码第一个版本(SVQ1)。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
204
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
205 <H4>优点:</H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
206
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
207 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
208 <LI>快,甚至很老的Macintosh机器也能够解码它。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
209 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
210
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
211 <H4>缺点:</H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
212
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
213 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
214 <LI>SVQ3仍然没有完成逆向工程。</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
215 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
216
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
217 <P>Sorenson解码器是默认编译使用的。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
218
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
219
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
220 <H3><A NAME="audio_codecs">2.2.2 音频编码格式 </A></H3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
221
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
222 <P>所有音频编码中最重要的是:<BR></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
223
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
224 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
225 <LI>MPEG layer 2, 和layer 3(MP3)(<B>本地</B>代码,经过MMX/SSE/3DNow!优化)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
226 <LI>MPEG layer 1音频(<B>本地</B>代码,使用libavcodec)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
227 <LI>AC3杜比音频(<B>本地</B>代码,经过MMX/SSE/3DNow!优化)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
228 <LI>Ogg Vorbis音频编码格式(<B>本地</B>库)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
229 <LI>Voxware音频(使用DirectShow DLL)</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
230 <LI>alaw,msgsm,pcm和其它简单的老的音频格式</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
231 <LI>VIVO音频(g723,Vivo Siren)的</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
232 <LI>RealAudio:DNET(低比特率的AC3),Cook</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
233 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
234
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
235
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
236 <H4><A NAME="software_ac3">2.2.2.1 软件AC3解码</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
237
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
238 <P>这是含有AC3音频的文件的默认解码器。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
239
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
240 <P>AC3解码器能为了2,4或者6个扬声器创建音频混合输出。当配置为6个扬声器时,这个解码器向声卡驱动提供所有AC3通道的单独的输出,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
241 允许彻底的“环绕立体声”感受而不需要使用需要hwac3解码器的外部AC3解码器。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
242
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
243 <P>使用<CODE>-channels</CODE>选项可以选择输出的通道数。使用<CODE>-channels 2</CODE>获得立体声的降混频。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
244 对于4通道的降混频(左前,右前,左环绕和右环绕),使用<CODE>-channels 4</CODE>。在这种情况下,中心通道的任何输出将与前通道均匀混合。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
245 <CODE>-channels 6</CODE>将按照编码时的形式输出所有AC3通道-- 依次为左,右,左环绕,右环绕,中间和低频效果。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
246
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
247 <P>默认的输出通道数是2。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
248
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
249 <P>为使用超过2个通道的输出,你需要使用OSS,和一块能通过SNDCTL_DSP_CHANNELS ioctl支持适当输出通道数的声卡。合适的驱动的一个例子是
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
250 2001年8月的或者更新的emu10k1(用于Soundblaster Live!卡)(ALSA的CVS应该也能工作)。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
251
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
252
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
253 <H4><A NAME="hardware_ac3">2.2.2.2 硬件AC3解码</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
254
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
255 <P>你需要一个AC3兼容声卡,加上数字输出(SP/DIF)。声卡的驱动必须正确地支持AFMT_AC3格式(C-Media就支持)。把你的AC3解码器连接到SP/DIF输出,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
256 然后使用<CODE>-ac hwac3</CODE>选项。这还在试验阶段但已经知道能用于C-Media声卡,使用ALSA驱动(但不能是OSS)的Soundblaster Live!
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
257 还有DXR3/Hollywood+ MPEG译码卡。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
258
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
259
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
260 <H4><A NAME="libmad">2.2.2.3 libmad支持</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
261
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
262 <P><A HREF="http://mad.sourceforge.net">libmad</A>是多平台的MPEG音频解码库。它不能很好的处理损坏的文件,而且有时候搜索也有问题。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
263
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
264 <P>为了支持它,加上<CODE>--enable-mad</CODE>配置选项编译。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
265
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
266
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
267 <H4><A NAME="vivo_audio">2.2.2.4 VIVO音频</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
268
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
269 <P>VIVO文件的使用的音频编码取决于它是VIVO/1.0还是VIVO/2.0。VIVO/1.0文件使用<B>g.723</B>音频,而VIVO/2.0文件使用<B>Vivo Siren</B>音频。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
270 他们两个都支持。你能从MPlayer站点下载<A HREF="http://www.mplayerhq.hu/MPlayer/samples/drivers32/vivog723.acm">g.723/Siren</A>的Win32 DLL,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
271 然后把它复制到<CODE>/usr/lib/win32</CODE>目录下。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
272
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
273
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
274 <H4><A NAME="realaudio">2.2.2.5 RealAudio</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
275
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
276 <B>MPlayer</B>支持解码几乎所有版本的RealAudio:
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
277
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
278 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
279 <LI>RealAudio DNET -- 解码由<B>liba52</B>支持</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
280 <LI>RealAudioCook/Sipro -- 解码由<B>RealPlayer库</B>支持</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
281 <LI>RealAudio atrc -- 解码尚未支持</LI>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
282 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
283
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
284 <P>至于如何安装RealPlayer库,参见<A HREF="formats.html#real">RealMedia文件格式</A>部分。</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
285
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
286
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
287 <H3><A NAME="importing">2.2.3 Win32解码器导入HOWTO</A></H3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
288
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
289
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
290 <H4><A NAME="importing_vfw">2.2.3.1 VFW codecs</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
291
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
292 <P>VFW(Video for Windows)是Windows的老的视频API。它的解码器以.DLL或者(很少的).DRV为扩展名。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
293 如果<B>MPlayer</B>无法播放你的AVI并显示这种信息:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
294
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
295 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>UNKNOWN video codec: HFYU (0x55594648)</CODE></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
296
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
297 <P>它意味着你的AVI在编码时使用了HFYU fourcc(HFYU = HuffYUV codec,DIV3 = DivX Low Motion,等等...)
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
298 的编码格式。现在你知道了,你必须查明Windows为了播放这个文件装载了哪一个DLL。在我们的情况下,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
299 <CODE>system.ini</CODE>在这样的一行上包含这个信息:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
300
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
301 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>VIDC.HFYU=huffyuv.dll</CODE></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
302
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
303 <P>因此,你需要<CODE>huffyuv.dll</CODE>文件。注意,音频解码器通过MSACM前缀指定:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
304
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
305 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>msacm.l3acm=L3codeca.acm</CODE></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
306
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
307
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
308 <P>这是MP3编码格式。现在你有了所有必要的信息(fourcc,解码器文件,AVI样本),把你的解码器支持要求通过邮件提交,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
309 并把相关文件上载到我们的FTP站点:</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
310
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
311 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/</CODE></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
312
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
313
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
314 <H4><A NAME="importing_directshow">2.2.3.2 DirectShow codecs</A></H4>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
315
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
316 <P>DirectShow是较新的视频API,比它的前辈更恶劣。对于DirectShow事情变的困难了,</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
317
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
318 <UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
319 <LI><CODE>system.ini</CODE>不再包含需要的信息,它们被储存在注册表里,此外
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
320 <LI>我们需要解码器的的GUID。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
321 </UL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
322
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
323 <P><B>新方法:</B>使用微软的GraphEdit(快速)</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
324 <OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
325 <LI>从DirecX SDK或者<A HREF="http://doom9.org">Doom9</A>中取得GraphEdit
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
326 <LI>运行<CODE>graphedit.exe</CODE>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
327 <LI>从菜单中选择Graph -&gt; Insert Filters
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
328 <LI>展开<CODE>DirectShow Filters</CODE>项目
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
329 <LI>选择正确的解码器名称然后展开项目
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
330 <LI>在<CODE>DisplayName</CODE>一项中看反斜杠后面花括号里面的文字并把它记下来(小短横分隔开的五块,就是GUID)
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
331 <LI>解码器的二进制文件是<CODE>Filename</CODE>项里指定的文件
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
332 </OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
333
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
334 <P><B>注意:</B>如果没有<CODE>Filename</CODE>项而<CODE>DisplayName</CODE>中包含类似<CODE>device:dmo</CODE>的东西,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
335 那么这是一个DMO-Codec,MPlayer目前不支持</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
336 <P><B>老方法:</B>做个深呼吸然后开始搜索注册表...</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
337
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
338 <OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
339 <LI>运行<CODE>regedit</CODE>。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
340 <LI>按<CODE>Ctrl-f</CODE>,禁用头两个复选框,填写解码器的fourcc(例如TM20)。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
341 <LI>你应该看见一个包含路径和文件名的域(例如<CODE>C:\WINDOWS\SYSTEM\TM20DEC.AX</CODE>)。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
342 <LI>现在你找到了文件,我们需要GUID。尝试再次搜索,但现在搜索解码器的名称,fourcc。用媒体播放器播放文件时,
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
343 察看File -&gt; Properties -&gt; Advanced可以获得解码器名。如果没有,你真不走运。猜猜看吧(例如搜索TrueMotion)。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
344 <LI>如果找到GUID你将看见FriendlyName和CLSID域。写出16字节CLSID,这就是我们需要的GUID。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
345 </OL>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
346
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
347 <P><B>注意:</B>如果搜索失败,试试选上所有的复选框。你可能找到错误的内容,不过说不定你会走运...</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
348
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
349 <P>现在你有所有必要的信息(fourcc,GUID,解码器文件,AVI样本),把你的解码器支持要求通过邮件提交,并把相关文件上载到我们的FTP站点</P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
350
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
351 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>ftp://ftp.mplayerhq.hu/MPlayer/incoming/[codecname]/</CODE></P>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
352
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
353 </BODY>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
354 </HTML>