📄 codec-importing.html
字号:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>7.3.聽Win32 codecs importing HOWTO</title><link rel="stylesheet" href="default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="codecs.html" title="Chapter聽7.聽Codecs"><link rel="prev" href="audio-codecs.html" title="7.2.聽Audio codecs"><link rel="next" href="video.html" title="Chapter聽8.聽Video output devices"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter聽1.聽Introduction"><link rel="chapter" href="install.html" title="Chapter聽2.聽Installation"><link rel="chapter" href="usage.html" title="Chapter聽3.聽Usage"><link rel="chapter" href="cd-dvd.html" title="Chapter聽4.聽CD/DVD usage"><link rel="chapter" href="faq.html" title="Chapter聽5.聽Frequently Asked Questions"><link rel="chapter" href="containers.html" title="Chapter聽6.聽Containers"><link rel="chapter" href="codecs.html" title="Chapter聽7.聽Codecs"><link rel="chapter" href="video.html" title="Chapter聽8.聽Video output devices"><link rel="chapter" href="audio.html" title="Chapter聽9.聽Audio output devices"><link rel="chapter" href="tv.html" title="Chapter聽10.聽TV"><link rel="chapter" href="radio.html" title="Chapter聽11.聽Radio"><link rel="chapter" href="ports.html" title="Chapter聽12.聽Ports"><link rel="chapter" href="mencoder.html" title="Chapter聽13.聽Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter聽14.聽Encoding with MEncoder"><link rel="appendix" href="bugreports.html" title="Appendix聽A.聽How to report bugs"><link rel="appendix" href="bugs.html" title="Appendix聽B.聽Known bugs"><link rel="appendix" href="skin.html" title="Appendix聽C.聽MPlayer skin format"><link rel="appendix" href="history.html" title="Appendix聽D.聽History"><link rel="subsection" href="codec-importing.html#vfw-codecs" title="7.3.1.聽VFW codecs"><link rel="subsection" href="codec-importing.html#dshow-codecs" title="7.3.2.聽DirectShow codecs"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">7.3.聽Win32 codecs importing HOWTO</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="audio-codecs.html">Prev</a>聽</td><th width="60%" align="center">Chapter聽7.聽Codecs</th><td width="20%" align="right">聽<a accesskey="n" href="video.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="codec-importing"></a>7.3.聽Win32 codecs importing HOWTO</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="vfw-codecs"></a>7.3.1.聽VFW codecs</h3></div></div></div><p>
VFW (Video for Windows) is the old Video API for Windows. Its codecs have
the <tt class="filename">.DLL</tt> or (rarely) <tt class="filename">.DRV</tt>
extension. If <span class="application">MPlayer</span> fails at playing your AVI
with this kind of message:
</p><pre class="screen">UNKNOWN video codec: HFYU (0x55594648)</pre><p>
It means your AVI is encoded with a codec which has the HFYU fourcc (HFYU =
HuffYUV codec, DIV3 = DivX Low Motion, etc.). Now that you know this, you
have to find out which DLL Windows loads in order to play this file. In our
case, the <tt class="filename">system.ini</tt> contains this information in a
line that reads:
</p><pre class="programlisting">VIDC.HFYU=huffyuv.dll</pre><p>
</p><p>
So you need the <tt class="filename">huffyuv.dll</tt> file. Note that the audio
codecs are specified by the MSACM prefix:
</p><pre class="programlisting">msacm.l3acm=L3codeca.acm</pre><p>
</p><p>
This is the MP3 codec. Now that you have all the necessary information
(fourcc, codec file, sample AVI), submit your codec support request by
mail, and upload these files to the FTP site:
<code class="systemitem">ftp://upload.mplayerhq.hu/MPlayer/incoming/<em class="replaceable"><code><codecname></code></em>/</code>
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
On Windows NT/2000/XP search for this info in the registry,
e.g. search for "VIDC.HFYU". To find out how to do this, look at
the old DirectShow method below.
</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="dshow-codecs"></a>7.3.2.聽DirectShow codecs</h3></div></div></div><p>
DirectShow is the newer Video API, which is even worse than its predecessor.
Things are harder with DirectShow, since
</p><div class="itemizedlist"><ul type="disc"><li><p>
<tt class="filename">system.ini</tt> does not contain the needed information,
instead it is stored in the registry and
</p></li><li><p>
we need the GUID of the codec.
</p></li></ul></div><p>
</p><div class="procedure"><a name="id2590155"></a><p class="title"><b>New Method:</b></p><p>
Using <span class="application">Microsoft GraphEdit</span> (fast)
</p><ol type="1"><li><p>
Get <span class="application">GraphEdit</span> from either DirectX SDK or
<a class="ulink" href="http://doom9.net" target="_top">doom9</a>.
</p></li><li><p>
Start <span class="command"><strong>graphedit.exe</strong></span>.
</p></li><li><p>
From the menu select
<span class="guimenu">Graph</span> 鈫
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -