mirror of https://github.com/mpv-player/mpv
672 lines
24 KiB
XML
672 lines
24 KiB
XML
<?xml version="1.0" encoding="koi8-r"?>
|
||
<!-- synced with r20361 -->
|
||
<chapter id="codecs">
|
||
<title>ðÏÄÄÅÒÖÉ×ÁÅÍÙÅ ËÏÄÅËÉ</title>
|
||
|
||
<sect1 id="video-codecs">
|
||
<title>÷ÉÄÅÏ ËÏÄÅËÉ</title>
|
||
|
||
<para>
|
||
<ulink url="../../codecs-status.html">ôÁÂÌÉÃÁ ÓÔÁÔÕÓÁ ËÏÄÅËÏ×</ulink> ÓÏÄÅÒÖÉÔ
|
||
ÐÏÌÎÙÊ, ÅÖÅÄÎÅ×ÎÏ ÏÂÎÏ×ÌÑÀÝÉÊÓÑ ÓÐÉÓÏË ×ÓÅÈ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ËÏÄÅËÏ×. îÅËÏÔÏÒÙÅ
|
||
ÂÉÎÁÒÎÙÅ ËÏÄÅËÉ, ËÏÔÏÒÙÅ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ × MPlayer, ÄÏÓÔÕÐÎÙ
|
||
× <ulink url="http://www.mplayerhq.hu/design7/dload.html#binary_codecs">ÒÁÚÄÅÌÅ ÚÁËÁÞËÉ</ulink>
|
||
ÎÁÛÅÇÏ ÓÁÊÔÁ.
|
||
</para>
|
||
|
||
<para>
|
||
îÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ËÏÄÅËÉ:
|
||
</para>
|
||
|
||
<itemizedlist>
|
||
<listitem><simpara>
|
||
<emphasis role="bold">MPEG1</emphasis> (<emphasis role="bold">VCD</emphasis>) É
|
||
<emphasis role="bold">MPEG2</emphasis> (<emphasis role="bold">DVD</emphasis>) ×ÉÄÅÏ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
"ÒÏÄÎÙÅ" ÄÅËÏÄÅÒÙ ÄÌÑ <emphasis role="bold">×ÓÅÈ ×ÁÒÉÁÎÔÏ× DivX,
|
||
3ivX, M$ MPEG-4</emphasis> v1, v2 É ÄÒÕÇÉÈ ×ÁÒÉÁÎÔÏ× MPEG-4.
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
"ÒÏÄÎÏÊ" ÄÅËÏÄÅÒ ÄÌÑ <emphasis role="bold">Windows Media Video 7/8</emphasis>
|
||
(<emphasis role="bold">WMV1/WMV2</emphasis>), É Win32 DLL ÄÅËÏÄÅÒ
|
||
ÄÌÑ <emphasis role="bold">Windows Media Video 9</emphasis>
|
||
(<emphasis role="bold">WMV3</emphasis>), ÏÂÁ ÉÓÐÏÌØÚÕÀÔÓÑ × <filename>.wmv
|
||
</filename> ÆÁÊÌÁÈ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
"ÒÏÄÎÏÊ" <emphasis role="bold">Sorenson 1 (SVQ1)</emphasis> ÄÅËÏÄÅÒ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
"ÒÏÄÎÏÊ" <emphasis role="bold">Sorenson 3 (SVQ3)</emphasis> ÄÅËÏÄÅÒ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
<emphasis role="bold">3ivx</emphasis> v1, v2 ÄÅËÏÄÅÒ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
Cinepak É <emphasis role="bold">Intel Indeo</emphasis> ËÏÄÅËÉ (3.1,3.2,4.1,5.0)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
<emphasis role="bold">MJPEG</emphasis>, AVID, VCR2, ASV2 É ÄÒÕÇÉÅ ÁÐÐÁÒÁÔÎÙÅ
|
||
ÆÏÒÍÁÔÙ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
VIVO 1.0, 2.0, I263 É ÄÒÕÇÉÅ <emphasis role="bold">h263(+)</emphasis> ×ÁÒÉÁÎÔÙ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
FLI/FLC
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
<emphasis role="bold">RealVideo 1.0 & 2.0 </emphasis> ÉÚ
|
||
<systemitem class="library">libavcodec</systemitem>, É
|
||
<emphasis role="bold">RealVideo 3.0 & 4.0</emphasis> ËÏÄÅËÉ, ÉÓÐÏÌØÚÕÑ
|
||
ÂÉÂÌÉÏÔÅËÉ RealPlayer
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
"ÒÏÄÎÏÊ" ÄÅËÏÄÅÒ ÄÌÑ HuffYUV
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
òÁÚÌÉÞÎÙÅ ÓÔÁÒÙÅ, ÐÒÏÓÔÙÅ, ÐÏÈÏÖÉÅ ÎÁ RLE ÆÏÒÍÁÔÙ
|
||
</simpara></listitem>
|
||
</itemizedlist>
|
||
|
||
<para>
|
||
åÓÌÉ Õ ÷ÁÓ ÅÓÔØ ÎÅ ÕÐÏÍÑÎÕÔÙÊ ÚÄÅÓØ Win32 ËÏÄÅË, ËÏÔÏÒÙÊ ÅÝ£ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ,
|
||
ÐÏÖÁÌÕÊÓÔÁ, ÐÒÏÞÔÉÔÅ <link linkend="codec-importing">ëÁË ÄÏÂÁ×ÉÔØ ËÏÄÅË</link>
|
||
É ÐÏÍÏÇÉÔÅ ÎÁÍ ÄÏÂÁ×ÉÔØ ÄÌÑ ÎÅÇÏ ÐÏÄÄÅÒÖËÕ.
|
||
</para>
|
||
|
||
|
||
<sect2 id="ffmpeg" xreflabel="FFmpeg/libavcodec">
|
||
<title>FFmpeg/libavcodec</title>
|
||
|
||
<para>
|
||
<ulink url="http://ffmpeg.sourceforge.net">FFmpeg</ulink> ÓÏÄÅÒÖÉÔ
|
||
<systemitem class="library">libavcodec</systemitem> - ×ÅÄÕÝÕÀ ÂÉÂÌÉÏÔÅËÕ ÁÕÄÉÏ
|
||
É ×ÉÄÅÏ ËÏÄÅËÏ× Ó ÏÔËÒÙÔÙÍ ÉÓÈÏÄÎÙÍ ËÏÄÏÍ. ïÎÁ ÓÐÏÓÏÂÎÁ ÄÅËÏÄÉÒÏ×ÁÔØ
|
||
ÂÏÌØÛÉÎÓÔ×Ï ÍÕÌØÔÉÍÅÄÉÁ ÆÏÒÍÁÔÏ×, ÏÂÙÞÎÏ ÂÙÓÔÒÅÅ ÁÌØÔÅÒÎÁÔÉ×, and aim support for the rest
|
||
of them eventually. üÔÏ ÄÅËÏÄÅÒ ÐÏ-ÕÍÏÌÞÁÎÉÀ ÄÌÑ ÂÏÌØÛÉÎÓÔ×Á ËÏÄÅËÏ×, ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ
|
||
<application>MPlayer</application>. ëÏÄÉÒÏ×ÁÎÉÅ ÔÁËÖÅ ×ÏÚÍÏÖÎÏ ÄÌÑ ÎÅËÏÔÏÒÙÈ ÆÏÒÍÁÔÏ× É
|
||
ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ × <application>Mencoder</application>.
|
||
</para>
|
||
|
||
<para>
|
||
ðÏÌÎÙÊ ÓÐÉÓÏË ÄÏÓÔÕÐÎÙÈ ËÏÄÅËÏ× ÄÏÓÔÕÐÅÎ ÎÁ ÓÔÒÁÎÉÃÅ FFmpeg.
|
||
ðÏÄÄÅÒÖÉ×ÁÅÍÙÅ <ulink url="http://www.ffmpeg.org/ffmpeg-doc.html#SEC19">×ÉÄÅÏ</ulink>
|
||
É <ulink url="http://www.ffmpeg.org/ffmpeg-doc.html#SEC20">ÁÕÄÉÏ</ulink> ËÏÄÅËÉ.
|
||
</para>
|
||
|
||
<para>
|
||
<application>MPlayer</application>
|
||
ÓÏÄÅÒÖÉÔ <systemitem class="library">libavcodec</systemitem>.
|
||
ðÒÏÓÔÏ ÚÁÐÕÓÔÉÔÅ <filename>configure</filename> É ËÏÍÐÉÌÉÒÕÊÔÅ ËÁË ÏÂÙÞÎÏ.
|
||
</para>
|
||
|
||
</sect2>
|
||
|
||
|
||
<sect2 id="xvid">
|
||
<title>XviD</title>
|
||
|
||
<para>
|
||
<ulink url="http://www.xvid.org">XviD</ulink> Ó×ÏÂÏÄÎÙÊ, MPEG-4 ASP ÓÏ×ÍÅÓÔÉÍÙÊ
|
||
×ÉÄÅÏ ËÏÄÅË, ÏÓÏÂÅÎÎÏÓÔÑÍÉ ËÏÔÏÒÏÇÏ Ñ×ÌÑÀÔÓÑ Ä×ÕÈÐÒÏÈÏÄÎÏÅ ËÏÄÉÒÏ×ÁÎÉÅ É
|
||
ÐÏÌÎÁÑ ÐÏÄÄÅÒÖËÁ MPEG-4 ASP, ÄÅÌÁÀÝÁÑ ÅÇÏ ÎÁÍÎÏÇÏ ÂÏÌÅÅ ÜÅÆÆÅËÔÉ×ÎÙÍ, ÞÅÍ
|
||
ÈÏÒÏÛÏ ÉÚ×ÅÓÔÎÙÊ DivX. ïÎ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ×ÉÄÅÏ ÏÔÍÅÎÎÏÇÏ ËÁÞÅÓÔ×Á É ÈÏÒÏÛÕÀ
|
||
ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ, × ÓÉÌÕ ÏÐÔÉÍÉÚÁÃÉÊ ÐÏÄ ÂÏÌØÛÉÎÓÔ×Ï ÓÏ×ÒÅÍÅÎÎÙÈ ÐÒÏÃÅÓÓÏÒÏ×.
|
||
</para>
|
||
|
||
<para>
|
||
ïÎ ÎÁÞÁÌÓÑ ËÁË ÏÔ×ÅÔ×ÌÅÎÉÅ OpenDivX ËÏÄÅËÁ. üÔÏ ÐÒÏÉÚÏÛÌÏ, ËÏÇÄÁ ProjectMayo
|
||
ÓÄÅÌÁÌ ÉÓÈÏÄÎÙÊ ËÏÄ OpenDivX
|
||
ÚÁËÒÙÔÙÍ DivX4, É ÒÁÚÒÁÂÏÔÞÉËÉ OpenDivX ÎÅ ÉÚ ProjectMayo
|
||
ÒÁÚÏÚÌÉÌÉÓØ, É ×ÚÑÌÉÓØ ÚÁ XviD. ðÏÜÔÏÍÕ Õ ÏÂÏÉÈ ÐÒÏÅËÔÏ× ÏÂÝÉÅ ËÏÒÎÉ.
|
||
</para>
|
||
|
||
<para>
|
||
éÍÅÊÔÅ × ×ÉÄÕ, ÞÔÏ XviD ÎÅ ÎÕÖÅÎ ÄÌÑ ÄÅËÏÄÉÒÏ×ÁÎÉÑ XviD-ËÏÄÉÒÏ×ÁÎÎÏÇÏ ×ÉÄÅÏ.
|
||
<systemitem class="library">libavcodec</systemitem> ÉÓÐÏÌØÚÕÅÔÓÑ ÐÏ-ÕÍÏÌÞÁÎÉÀ,
|
||
Ô.Ë. ÏÂÅÓÐÅÞÉ×ÁÅÔ ÂÏÌÅÅ ×ÙÓÏËÕÀ ÓËÏÒÏÓÔØ.
|
||
</para>
|
||
|
||
<procedure>
|
||
<title>õÓÔÁÎÏ×ËÁ <systemitem class="library">XviD</systemitem></title>
|
||
|
||
<para>
|
||
ëÁË É ÂÏÌØÛÉÎÓÔ×Ï ðï Ó ÏÔËÒÙÔÙÍ ÉÓÈÏÄÎÙÍ ËÏÄÏÍ, ÏÎ ÄÏÓÔÕÐÅÎ ËÁË × ×ÉÄÅ
|
||
<ulink url="http://www.xvid.org/downloads.html">ÏÆÉÃÉÁÌØÎÙÈ ÒÅÌÉÚÏ×</ulink>,
|
||
ÔÁË É × ×ÉÄÅ CVS ×ÅÒÓÉÉ.
|
||
ëÁË ÐÒÁ×ÉÌÏ, CVS ×ÅÒÓÉÑ ÄÏÓÔÁÔÏÞÎÏ ÓÔÁÂÉÌØÎÁ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ, Ô.Ë. × ÂÏÌØÛÉÎÓÔ×Å
|
||
ÓÌÕÞÁÅ× ÅÅ ÏÓÏÂÅÎÎÏÓÔØÀ Ñ×ÌÑÅÔÓÑ ÏÔÓÕÔÓÔ×ÉÅ ÏÛÉÂÏË, ÐÒÉÓÕÔÓÔ×ÕÀÝÉÈ × ÒÅÌÉÚÁÈ.
|
||
äÁÌÅÅ ÏÐÉÓÙ×ÁÅÔÓÑ ËÁË ÚÁÓÔÁ×ÉÔØ ÒÁÂÏÔÁÔØ
|
||
<systemitem class="library">XviD</systemitem> CVS Ó <application>MEncoder</application>'ÏÍ
|
||
(ÎÅÏÂÈÏÄÉÍÙ, ËÁË ÍÉÎÉÍÕÍ,
|
||
<application>autoconf</application> 2.50,
|
||
<application>automake</application> É <application>libtool</application>):
|
||
</para>
|
||
<step><para>
|
||
<screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid login</screen>
|
||
</para></step>
|
||
<step><para>
|
||
<screen>cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid co xvidcore</screen>
|
||
</para></step>
|
||
<step><para>
|
||
<screen>cd xvidcore/build/generic</screen>
|
||
</para></step>
|
||
<step><para>
|
||
<screen>./bootstrap.sh</screen>
|
||
</para></step>
|
||
<step><para>
|
||
<screen>./configure</screen>
|
||
÷ÁÍ ÍÏÖÅÔ ÐÏÔÒÅÂÏ×ÁÔØÓÑ ÄÏÂÁ×ÉÔØ ÎÅËÏÔÏÒÙÅ ÏÐÃÉÉ (ÐÏÓÍÏÔÒÉÔÅ ×Ù×ÏÄ
|
||
<command>./configure --help</command>).
|
||
</para></step>
|
||
<step><para>
|
||
<screen>make && make install</screen>
|
||
</para></step>
|
||
<step><para>
|
||
åÓÌÉ ÷Ù ÕËÁÚÁÌÉ <option>--enable-divxcompat</option>,
|
||
ÓËÏÐÉÒÕÊÔÅ <filename>../../src/divx4.h</filename> ×
|
||
<filename class="directory">/usr/local/include/</filename>.
|
||
</para></step>
|
||
<step><para>
|
||
ðÅÒÅËÏÍÐÉÌÉÒÕÊÔÅ <application>MPlayer</application> Ó
|
||
<option>--with-xvidlibdir=<replaceable>/path/to/</replaceable>libxvidcore.a</option>
|
||
<option>--with-xvidincdir=<replaceable>/path/to/</replaceable>xvid.h</option>.
|
||
</para></step>
|
||
</procedure>
|
||
</sect2>
|
||
|
||
|
||
<sect2 id="codec-x264">
|
||
<title>x264</title>
|
||
|
||
<sect3 id="codec-x264-whatis">
|
||
<title>þÔÏ ÔÁËÏÅ x264?</title>
|
||
<para>
|
||
<ulink url="http://developers.videolan.org/x264.html"><systemitem class="library">x264</systemitem></ulink> -
|
||
ÜÔÏ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÓÏÚÄÁÎÉÑ
|
||
×ÉÄÅÏÐÏÔÏËÏ× H.264. ïÎÁ ÎÅ ÚÁ×ÅÒÛÅÎÁ ÎÁ 100%, ÎÏ, ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ, ÉÍÅÅÔ
|
||
ÐÏÄÄÅÒÖËÕ ÂÏÌØÛÉÎÓÔ×Á ×ÏÚÍÏÖÎÏÓÔÅÊ H.264, ×ÌÉÑÀÝÉÈ ÎÁ ËÁÞÅÓÔ×Ï.
|
||
÷ ÓÐÅÃÉÆÉËÁÃÉÉ H.264 ÐÒÉÓÕÔÓÔ×ÕÅÔ ÍÎÏÖÅÓÔ×Ï ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ,
|
||
ËÏÔÏÒÙÅ ÓÁÍÉ ÐÏ ÓÅÂÅ ÎÉËÁË ÎÅ ×ÌÉÑÀÔ ÎÁ ËÁÞÅÓÔ×Ï ×ÉÄÅÏ É ÄÏ ÓÉÈ ×
|
||
<systemitem class="library">x264</systemitem> ÎÅ ÒÅÁÌÉÚÏ×ÁÎÙ.
|
||
</para>
|
||
|
||
<itemizedlist>
|
||
<title>×ÏÚÍÏÖÎÏÓÔÉ ËÏÄÅÒÁ</title>
|
||
<listitem><para>CAVLC/CABAC (ëÏÎÔÅËÓÔÎÏÚÁ×ÉÓÉÍÏÅ ÁÄÁÐÔÉ×ÎÏÅ ÂÉÎÁÒÎÏÅ ÁÒÉÆÍÅÔÉÞÅÓËÏÅ
|
||
ËÏÄÉÒÏ×ÁÎÉÅ / ëÏÎÔÅÓÔÎÏÚÁ×ÉÓÉÍÏÅ ÁÄÁÐÔÉ×ÎÏÅ ËÏÄÉÒÏ×ÁÎÉÅ Ó ÐÅÒÅÍÅÎÎÏÊ ÄÌÉÎÏÊ)</para></listitem>
|
||
<listitem><para>ëÁÄÒÙ Ó ÎÅÓËÏÌØËÉÍÉ ÓÓÙÌËÁÍÉ</para></listitem>
|
||
<listitem><para>âÁÚÏ×ÙÅ (I-) ËÁÄÒÙ: ×ÓÅ ÔÉÐÙ ÍÁËÒÏÂÌÏËÏ× (16x16, 8x8 É 4x4 ÓÏ ×ÓÅÍÉ
|
||
×ÉÄÁÍÉ ÐÒÅÄÓËÁÚÁÎÉÑ)</para></listitem>
|
||
<listitem><para>ðÒÅÄÓËÁÚÕÅÍÙÅ (P-) ËÁÄÒÙ: ×ÓÅ ÄÒÏÂÌÅÎÉÑ (ÏÔ 16x16 ÄÏ 4x4)</para></listitem>
|
||
<listitem><para>ä×ÕÎÁÐÒÁ×ÌÅÎÎÙÅ (B-) ËÁÄÒÙ: ÄÒÏÂÌÅÎÉÑ ÏÔ 16x16 ÄÏ 8x8
|
||
(×ËÌÀÞÁÑ SKIP/DIRECT)</para></listitem>
|
||
<listitem><para>õÐÒÁ×ÌÅÎÉÅ ÐÏÔÏËÏÍ: ÐÏÓÔÏÑÎÎÙÊ Ë×ÁÎÔÏ×ÁÔÅÌØ, ÐÏÓÔÏÑÎÎÙÊ ÂÉÔÐÏÔÏË,
|
||
ÏÄÉÎÁÒÎÙÊ ÉÌÉ ÍÎÏÇÏÐÒÏÈÏÄÎÙÊ ABR, ÏÐÃÉÏÎÁÌØÎÙÊ VBV</para></listitem>
|
||
<listitem><para>ïÂÎÁÒÕÖÅÎÉÅ ÕÓÅÞÅÎÉÑ ÉÚÏÂÒÁÖÅÎÉÑ</para></listitem>
|
||
<listitem><para>áÄÁÐÔÉ×ÎÏÅ ÒÁÓÐÏÌÏÖÅÎÉÅ B-ËÁÄÒÏ×</para></listitem>
|
||
<listitem><para>B-ËÁÄÒÙ ËÁË ÓÓÙÌËÉ ÉÌÉ × ÐÒÏÉÚ×ÏÌØÎÏÍ ÒÁÓÐÏÌÏÖÅÎÉÉ ËÁÄÒÏ×</para></listitem>
|
||
<listitem><para>áÄÁÐÔÉ×ÎÙÅ ÐÒÏÓÔÒÁÎÓÔ×ÅÎÎÙÅ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÑ 8x8 É 4x4</para></listitem>
|
||
<listitem><para>òÅÖÉÍ ËÏÄÉÒÏ×ÁÎÉÑ ÂÅÚ ÐÏÔÅÒØ</para></listitem>
|
||
<listitem><para>÷ÏÚÍÏÖÎÏÓÔØ ÚÁÄÁÎÉÑ ÐÏÌØÚÏ×ÁÔÅÌØÓËÉÈ ÍÁÔÒÉà Ë×ÁÎÔÏ×ÁÎÉÑ</para></listitem>
|
||
<listitem><para>ðÁÒÁÌÌÅÌØÎÏÅ ËÏÄÉÒÏ×ÁÎÉÅ ÒÁÚÎÙÈ ÂÌÏËÏ×</para></listitem>
|
||
</itemizedlist>
|
||
|
||
</sect3>
|
||
|
||
<sect3 id="codec-h264-whatis">
|
||
<title>þÔÏ ÔÁËÏÅ H.264?</title>
|
||
<para>
|
||
|
||
H.264 - ÜÔÏ ÏÄÎÏ ÉÚ ÎÁÚ×ÁÎÉÊ ÎÏ×ÏÇÏ ÃÉÆÒÏ×ÏÇÏ ËÏÄÅËÁ, ÓÏ×ÍÅÓÔÎÏ
|
||
ÒÁÚÒÁÂÁÔÙ×ÁÅÍÏÇÏ ITU É MPEG. îÁÚ×ÁÎÉÑ "ISO/IEC 14496-10" ÉÌÉ
|
||
"MPEG-4 Part 10" ÔÏÖÅ Ñ×ÌÑÀÔÓÑ ËÏÒÒÅËÔÎÙÍÉ, ÎÏ ÞÁÝÅ ÅÇÏ
|
||
ÎÁÚÙ×ÁÀÔ "MPEG-4 AVC" ÉÌÉ ÐÒÏÓÔÏ "AVC".
|
||
</para>
|
||
<para>
|
||
ëÁË ÅÇÏ ÎÉ ÎÁÚÙ×ÁÊ, ÎÏ H.264 ÓÔÏÉÔ ÐÏÐÒÏÂÏ×ÁÔØ, ÐÏÓËÏÌØËÕ ÏÎ
|
||
ÄÁÅÔ ÔÏ ÖÅ ËÁÞÅÓÔ×Ï, ÞÔÏ É MPEG-4 ASP, ÎÏ ÐÒÉ ÂÉÔÒÅÊÔÅ ÍÅÎØÛÅÍ
|
||
ÎÁ 5%-30%. ëÏÎËÒÅÔÎÙÊ ÒÅÚÕÌØÔÁÔ ÚÁ×ÉÓÉÔ ËÁË ÏÔ ÉÓÈÏÄÎÏÇÏ
|
||
ÍÁÔÅÒÉÁÌÁ, ÔÁË É ÏÔ ËÏÄÉÒÏ×ÝÉËÁ. ÷ÙÉÇÒÙÛ ÎÅ ÄÁÅÔÓÑ ÐÒÏÓÔÏ ÔÁË:
|
||
ÄÅËÏÄÉÒÏ×ÁÎÉÅ ÐÏÔÏËÁ H.264, ÐÏÈÏÖÅ, ÉÍÅÅÔ ÓÕÝÅÓÔ×ÅÎÎÏ ÐÏ×ÙÛÅÎÎÙÅ ÔÒÅÂÏ×ÁÎÉÑ
|
||
Ë CPU É ÐÁÍÑÔÉ. ÷ ÞÁÓÔÎÏÓÔÉ, ÎÁ 1733 MHz Athlon ÄÅËÏÄÉÒÏ×ÁÎÉÅ
|
||
H.264 ÐÏÔÏËÁ × 1500ËÂÉÔ/Ó Ó DVD-ÒÁÚÒÅÛÅÎÉÅÍ ÉÓÐÏÌØÚÕÅÔ ÏËÏÌÏ 35% CPU.
|
||
äÌÑ ÓÒÁ×ÎÅÎÉÑ, ÄÅËÏÄÉÒÏ×ÁÎÉÅ 1500ËÂÉÔ/Ó ÐÏÔÏËÁ MPEG4-ASP Ó
|
||
DVD-ÒÁÚÒÅÛÅÎÉÅÍ ÔÒÅÂÕÅÔ ÏËÏÌÏ 10% CPU. üÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ ÄÌÑ
|
||
ÂÏÌØÛÉÎÓÔ×Á ÐÏÌØÚÏ×ÁÔÅÌÅÊ ÐÒÁËÔÉÞÅÓËÉ ÎÅ ÍÏÖÅÔ ÂÙÔØ É ÒÅÞÉ Ï ÄÅËÏÄÉÒÏ×ÁÎÉÉ
|
||
ÐÏÔÏËÏ× ×ÙÓÏËÏÇÏ ÒÁÚÒÅÛÅÎÉÑ.
|
||
ôÁËÖÅ ÜÔÏ ÚÎÁÞÉÔ, ÞÔÏ ÄÁÖÅ ÓËÒÏÍÎÙÊ DVD ÒÉÐ ÍÏÖÅÔ ×ÒÅÍÑ ÏÔ ×ÒÅÍÅÎÉ
|
||
ÚÁÉËÁÔØÓÑ ÎÁ ÐÒÏÃÅÓÓÏÒÁÈ ÓÌÁÂÅÅ 2.0 GHz ÉÌÉ ÏËÏÌÏ ÔÏÇÏ.
|
||
</para>
|
||
<para>
|
||
ðÏ ËÒÁÊÎÅÊ ÍÅÒÅ, Ó <systemitem class="library">x264</systemitem>
|
||
ÔÒÅÂÏ×ÁÎÉÑ ÄÌÑ ËÏÄÉÒÏ×ÁÎÉÑ ÎÅ ÓÌÉÛËÏÍ ×ÅÌÉËÉ ÐÏ ÓÒÁ×ÎÅÎÉÀ Ó MPEG4-ASP.
|
||
÷ ÞÁÓÔÎÏÓÔÉ, ÎÁ 1733 MHz Athlon ËÏÄÉÒÏ×ÁÎÉÅ ÏÂÉÞÎÏÇÏ DVD ÂÕÄÅÔ ÉÄÔÉ ÓÏ
|
||
ÓËÏÒÏÓÔØÀ 5-15 fps.
|
||
</para>
|
||
<para>
|
||
ïÂßÑÓÎÑÔØ ×ÓÅ ÔÏÎËÏÓÔÉ H.264 ÎÅ Ñ×ÌÑÅÔÓÑ ÃÅÌØÀ ÜÔÏÇÏ ÄÏËÕÍÅÎÔÁ, ÎÏ ÅÓÌÉ
|
||
×ÁÓ ÉÎÔÅÒÅÓÕÅÔ ËÒÁÔËÉÊ ÏÂÚÏÒ, ×Ù ÍÏÖÅÔÅ ÐÒÏÞÅÓÔØ
|
||
<ulink url="http://www.cdt.luth.se/~peppar/kurs/smd151/spie04-h264OverviewPaper.pdf">The H.264/AVC Advanced Video Coding Standard: Overview and Introduction to the Fidelity Range Extensions</ulink>.
|
||
</para>
|
||
</sect3>
|
||
|
||
<sect3 id="codec-x264-playback">
|
||
<title>ëÁË ÍÎÅ ÐÏÓÍÏÔÒÅÔØ H.264 ÐÒÉ ÐÏÍÏÝÉ <application>MPlayer</application>?</title>
|
||
<para>
|
||
<application>MPlayer</application> ÉÓÐÏÌØÚÕÅÔ H.264 ÄÅËÏÄÅÒ ÂÉÂÌÉÏÔÅËÉ
|
||
<systemitem class="library">libavcodec</systemitem>.
|
||
<systemitem class="library">libavcodec</systemitem> ÐÏÌÕÞÉÌÁ ÍÁÌÏ-ÍÁÌØÓËÉ
|
||
ÐÒÉÇÏÄÎÕÀ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ×ÏÚÍÏÖÎÏÓÔØ ÄÅËÏÄÉÒÏ×ÁÎÉÑ H.264 ÇÄÅ-ÔÏ × ÉÀÌÅ 2004,
|
||
ÏÄÎÁËÏ, Ó ÔÏÇÏ ×ÒÅÍÅÎÉ ÂÙÌÏ ×ÎÅÓÅÎÏ ÍÏÖÅÓÔ×Ï ÓÅÒßÅÚÎÙÈ ÉÚÍÅÎÅÎÉÊ É ÕÌÕÞÛÅÎÉÊ,
|
||
ËÁË Ó ÔÏÞËÉ ÚÒÅÎÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÆÕÎËÃÉÏÎÁÌØÎÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ, ÔÁË É ÕÌÕÞÛÅÎÎÏÇÏ
|
||
ÉÓÐÏÌØÚÏ×ÁÎÉÑ CPU.
|
||
äÌÑ ÏÐÒÅÄÅÌÅÎÎÏÓÔÉ: ÉÓÐÏÌØÚÏ×ÁÎÉÅ Ó×ÅÖÅÊ ×ÅÒÓÉÉ Subversion - ×ÓÅÇÄÁ ÈÏÒÏÛÁÑ ÉÄÅÑ.
|
||
</para>
|
||
<para>
|
||
åÓÌÉ ÎÕÖÅÎ ÂÙÓÔÒÙÊ É ÐÒÏÓÔÏÊ ÓÐÏÓÏ ÕÚÎÁÔØ ËÁËÉÅ Ó×ÅÖÉÅ ÉÚÍÅÎÅÎÉÑ, ÏÔÎÏÓÑÝÉÅÓÑ Ë H.264,
|
||
ÂÙÌÉ ÓÄÅÌÁÎÙ × <systemitem class="library">libavcodec</systemitem>, ÷ÁÍ ÓÌÅÄÕÅÔ
|
||
ÉÍÅÔØ ××ÉÄÕ
|
||
<ulink url="http://mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/libavcodec/h264.c?cvsroot=FFMpeg">÷ÅÂ-ÉÎÔÅÒÆÅÊÓ Ë ÒÅÐÏÚÉÔÏÒÉÀ FFmpeg Subversion</ulink>.
|
||
</para>
|
||
</sect3>
|
||
|
||
<sect3 id="codec-x264-encode">
|
||
<title>ëÁË ËÏÄÉÒÏ×ÁÔØ ×ÉÄÅÏ, ÉÓÐÏÌØÚÕÑ <application>MEncoder</application> É <systemitem class="library">x264</systemitem>?</title>
|
||
<para>
|
||
åÓÌÉ Õ ×ÁÓ ÕÓÔÁÎÏ×ÌÅÎ ËÌÉÅÎÔ subversion, ÐÏÓÌÅÄÎÀÀ ×ÅÒÓÉÀ x264
|
||
ÍÏÖÎÏ ÚÁÇÒÕÚÉÔØ ÓÌÅÄÕÀÝÅÊ ËÏÍÁÎÄÏÊ:
|
||
<screen>
|
||
svn co svn://svn.videolan.org/x264/trunk x264<!--
|
||
--></screen>
|
||
éÓÈÏÄÎÙÊ ËÏÄ <application>MPlayer</application> ÏÂÎÏ×ÌÑÅÔÓÑ
|
||
×ÓÑËÉÊ ÒÁÚ ÐÒÉ ÉÚÍÅÎÅÎÉÉ API <systemitem class="library">x264</systemitem>,
|
||
ÔÁË ÞÔÏ ÐÒÅÄÌÁÇÁÅÔÓÑ ÉÓÐÏÌØÚÏ×ÁÔØ Subversion ×ÅÒÓÉÀ
|
||
<application>MPlayer</application>'Á.
|
||
×ÏÚÍÏÖÎÏ, ÓÉÔÕÁÃÉÑ ÉÚÍÅÎÉÔÓÑ Ó ×ÙÈÏÄÏÍ "ÒÅÌÉÚÁ"
|
||
<systemitem class="library">x264</systemitem> (ÅÓÌÉ ÏÎ ÂÕÄÅÔ).
|
||
÷ ÄÁÎÎÙÊ ÍÏÍÅÎÔ <systemitem class="library">x264</systemitem> ÓÌÅÄÕÅÔ
|
||
ÒÁÓÓÍÁÔÒÉ×ÁÔØ ËÁË ÏÞÅÎØ ÎÅÓÔÁÂÉÌØÎÙÊ, × Ó×ÅÔÅ ÐÏÓÔÏÑÎÎÏÇÏ ÉÚÍÅÎÅÎÉÑ
|
||
ÉÎÔÅÒÆÅÊÓÁ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ.
|
||
</para>
|
||
<para>
|
||
<systemitem class="library">x264</systemitem> ÓÏÂÉÒÁÅÔÓÑ É ÕÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ
|
||
ËÁË ÏÂÙÞÎÏ:
|
||
<screen>
|
||
./configure && make && sudo make install
|
||
</screen>
|
||
üÔÏ ÕÓÔÁÎÏ×ÉÔ libx264.a × /usr/local/lib, Á x264.h - × /usr/local/include.
|
||
óÂÏÒËÁ <application>MPlayer</application> ÐÒÉ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ × ÓÔÁÎÄÁÒÔÎÙÅ
|
||
ËÁÔÁÌÏÇÉ ÂÉÂÌÉÏÔÅËÅ É ÚÁÇÏÌÏ×ÏÞÎÏÍ ÆÁÊÌÅ <systemitem class="library">x264</systemitem>
|
||
ÏÞÅÎØ ÐÒÏÓÔÁ.
|
||
ðÒÏÓÔÏ ÚÁÐÕÓÔÉÔÅ ÓÔÁÎÁÒÔÎÏÅ:
|
||
<screen>./configure && make && sudo make install</screen>
|
||
óËÒÉÐÔ configure ÓÁÍ ÏÐÒÅÄÅÌÉÔ, ×ÙÐÏÌÎÅÎÙ ÌÉ ÎÅÏÂÈÏÄÉÍÙÅ ÔÒÅÂÏ×ÁÎÉÑ ÄÌÑ
|
||
<systemitem class="library">x264</systemitem>.
|
||
</para>
|
||
</sect3>
|
||
</sect2>
|
||
</sect1>
|
||
|
||
<!-- ********** -->
|
||
|
||
<sect1 id="audio-codecs">
|
||
<title>áÕÄÉÏ ËÏÄÅËÉ</title>
|
||
|
||
<itemizedlist>
|
||
<title>îÁÉÂÏÌÅÅ ×ÁÖÎÙÍÉ ÁÕÄÉÏ ËÏÄÅËÁÍÉ ÓÒÅÄÉ ×ÓÅÈ Ñ×ÌÑÀÔÓÑ:</title>
|
||
<listitem><simpara>
|
||
MPEG layer 1/2/3 (MP1/2/3) ÁÕÄÉÏ (<emphasis role="bold">ÒÏÄÎÏÊ</emphasis>
|
||
ËÏÄ, Ó MMX/SSE/3DNow! ÏÐÔÉÍÉÚÁÃÉÅÊ)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
Windows Media Audio 7 É 8 (ÏÎÉ ÖÅ WMAv1 É WMAv2) (<emphasis role="bold">ÒÏÄÎÏÊ</emphasis> ËÏÄ, Ó
|
||
<link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
Windows Media Audio 9 (WMAv3) (ÉÓÐÏÌØÚÕÑ DMO DLL)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
AC3 Dolby ÁÕÄÉÏ (<emphasis role="bold">ÒÏÄÎÏÊ</emphasis> ËÏÄ, Ó
|
||
MMX/SSE/3DNow! ÏÐÔÉÍÉÚÁÃÉÅÊ)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
AC3 ÐÒÏÐÕÓËÁÅÍÙÊ ÞÅÒÅÚ Ú×ÕËÏ×ÏÅ ÏÂÏÒÕÄÏ×ÁÎÉÅ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
AAC
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
Ogg Vorbis ÁÕÄÉÏ ËÏÄÅË (<emphasis role="bold">ÒÏÄÎÁÑ</emphasis> ÂÉÂÌÉÏÔÅËÁ)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
RealAudio: DNET (AC3 Ó ÎÉÚËÉÍ ÂÉÔÐÏÔÏËÏÍ), Cook, Sipro É ATRAC3
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
QuickTime: Qualcomm É QDesign ÁÕÄÉÏ ËÏÄÅËÉ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
VIVO ÁÕÄÉÏ (g723, Vivo Siren)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
Voxware ÁÕÄÉÏ (ÉÓÐÏÌØÚÕÑ DirectShow DLL)
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
alaw É ulaw, ÒÁÚÌÉÞÎÙÅ gsm, adpcm É pcm ÆÏÒÍÁÔÙ É ÄÒÕÇÉÅ ÐÒÏÓÔÙÅ ÓÔÁÒÙÅ ÁÕÄÉÏ
|
||
ËÏÄÅËÉ
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
Adaptive Multi-Rate (AMR) ÒÅÞÅ×ÙÅ ËÏÄÅËÉ
|
||
</simpara></listitem>
|
||
</itemizedlist>
|
||
|
||
|
||
<sect2 id="swac3">
|
||
<title>ðÒÏÇÒÁÍÍÎÏÅ ÄÅËÏÄÉÒÏ×ÁÎÉÅ AC3</title>
|
||
|
||
<para>
|
||
üÔÏ ÄÅËÏÄÅÒ, ÉÓÐÏÌØÚÕÅÍÙÊ, ÐÏ ÕÍÏÌÞÁÎÉÀ, ÄÌÑ ÆÁÊÌÏ× Ó AC3 ÁÕÄÉÏ
|
||
</para>
|
||
|
||
<para>
|
||
äÅËÏÄÅÒ AC3 ÍÏÖÅÔ ÓÏÚÄÁ×ÁÔØ ÁÕÄÉÏ ×Ù×ÏÄ ÍÉËÛÉÒÏ×ÁÎÎÙÊ ÄÌÑ 2, 4 ÉÌÉ 6 ËÏÌÏÎÏË.
|
||
âÕÄÕÞÉ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎÎÙÍ ÄÌÑ 6 ËÏÌÏÎÏË, ÜÔÏÔ ÄÅËÏÄÅÒ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÒÁÚÄÅÌØÎÙÊ
|
||
×Ù×ÏÄ ×ÓÅÈ AC3 ËÁÎÁÌÏ× Ú×ÕËÏ×ÏÍÕ ÄÒÁÊ×ÅÒÕ, ÐÏÚ×ÏÌÑÑ ÐÏÌÕÞÉÔØ "Ú×ÕË ×ÏËÒÕÇ"
|
||
ÂÅÚ ×ÎÅÛÎÅÇÏ AC3 ÄÅËÏÄÅÒÁ, ÎÅÏÂÈÏÄÉÍÏÇÏ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ hwac3 ËÏÄÅËÁ.
|
||
</para>
|
||
|
||
<para>
|
||
éÓÐÏÌØÚÕÊÔÅ ÏÐÃÉÀ <option>-channels</option>, ÞÔÏÂÙ ×ÙÂÒÁÔØ ËÏÌÉÞÅÓÔ×Ï ËÁÎÁÌÏ×
|
||
ÐÒÉ ×Ù×ÏÄÅ. éÓÐÏÌØÚÕÊÔÅ <option>-channels 2</option> ÄÌÑ ÍÉËÛÉÒÏ×ÁÎÉÑ ÄÏ ÓÔÅÒÅÏ.
|
||
äÌÑ ÍÉËÛÉÒÏ×ÁÎÉÑ ÄÏ 4 ËÁÎÁÌÏ× (ìÅ×ÙÊ ðÅÒÅÄÎÉÊ, ðÒÁ×ÙÊ ðÅÒÅÄÎÉÊ, ìÅ×ÙÊ úÁÄÎÉÊ É
|
||
ðÒÁ×ÙÊ úÁÄÎÉÊ ×Ù×ÏÄÙ),
|
||
ÉÓÐÏÌØÚÕÊÔÅ <option>-channels 4</option>. ÷ ÜÔÏÍ ÓÌÕÞÁÅ ×ÓÅ ÃÅÎÔÒÁÌØÎÙÅ ËÁÎÁÌÙ
|
||
ÂÕÄÕÔ ÒÁ×ÎÏÍÅÒÎÏ ÓÍÉËÛÉÒÏ×ÁÎÙ ÄÏ ÕÒÏ×ÎÑ ÐÅÒÅÄÎÉÈ ËÁÎÁÌÏ×. <option>-channels 6</option> ÂÕÄÅÔ
|
||
×Ù×ÏÄÉÔØ ×ÓÅ AC3 ËÁÎÁÌÙ ÔÁË, ËÁË ÏÎÉ ÚÁËÏÄÉÒÏ×ÁÎÙ - ÐÏ ÐÏÒÑÄËÕ:
|
||
ìÅ×ÙÊ, ðÒÁ×ÙÊ, ìÅ×ÙÊ úÁÄÎÉÊ, ðÒÁ×ÙÊ úÁÄÎÉÊ, ãÅÎÔÒÁÌØÎÙÊ É óÁÂ×ÕÆÅÒ.
|
||
</para>
|
||
|
||
<para>
|
||
ëÏÌÉÞÅÓÔ×Ï ËÁÎÁÌÏ× ÐÏ ÕÍÏÌÞÁÎÉÀ - 2.
|
||
</para>
|
||
|
||
<para>
|
||
þÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÂÏÌÅÅ 2 ËÁÎÁÌÏ×, ÷ÁÍ ÎÕÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ OSS, É ÏÂÌÁÄÁÔØ
|
||
ËÁÒÔÏÞËÏÊ, ÐÏÄÄÅÒÖÉ×ÁÀÝÅÊ ÎÅÏÂÈÏÄÉÍÏÅ ËÏÌÉÞÅÓÔ×Ï ËÁÎÁÌÏ× ÞÅÒÅÚ ioctl
|
||
SNDCTL_DSP_CHANNELS. ðÒÉÍÅÒÏÍ ÐÏÄÈÏÄÑÝÅÇÏ ÄÒÁÊ×ÅÒÁ Ñ×ÌÑÅÔÓÑ emu10k1
|
||
(ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ Soundblaster Live! ËÁÒÔÏÞÅË) Á×ÇÕÓÔÁ 2001'ÇÏ ÉÌÉ ÎÏ×ÅÅ
|
||
(ALSA CVS ÔÏÖÅ ÄÏÌÖÅÎ ÒÁÂÏÔÁÔØ).
|
||
</para>
|
||
</sect2>
|
||
|
||
|
||
<sect2 id="hwac3">
|
||
<title>áÐÐÁÒÁÔÎÏÅ ÄÅËÏÄÉÒÏ×ÁÎÉÅ AC3</title>
|
||
<para>
|
||
÷ÁÍ ÎÕÖÎÁ AC3-ÓÏ×ÍÅÓÔÉÍÁÑ ËÁÒÔÁ Ó ÃÉÆÒÏ×ÙÍ (S/PDIF) ×Ù×ÏÄÏÍ. äÒÁÊ×ÅÒ ËÁÒÔÙ
|
||
ÄÏÌÖÅÎ ÄÏÌÖÎÙÍ ÏÂÒÁÚÏÍ ÐÏÄÄÅÒÖÉ×ÁÔØ AFMT_AC3 ÆÏÒÍÁÔ (ÎÁÐÒÉÍÅÒ C-Media).
|
||
ðÏÄÓÏÅÄÉÎÉÔÅ AC3 ÄÅËÏÄÅÒ Ë S/PDIF ×Ù×ÏÄÕ É ÉÓÐÏÌØÚÕÊÔÅ ÏÐÃÉÀ <option>-ac
|
||
hwac3</option>. üÔÏ ÜËÓÐÅÒÉÍÅÎÔÁÌØÎÁÑ ×ÏÚÍÏÖÎÏÓÔØ, ÎÏ ÉÚ×ÅÓÔÎÏ, ÞÔÏ ÜÔÏ ÒÁÂÏÔÁÅÔ Ó
|
||
C-Media ËÁÒÔÁÍÉ É Soundblaster Live! + ALSA (ÎÏ ÎÅ OSS) ÄÒÁÊ×ÅÒÁÍÉ É
|
||
ËÁÒÔÁÍÉ MPEG ÄÅËÏÄÉÒÏ×ÁÎÉÑ DXR3/Hollywood+.
|
||
</para>
|
||
</sect2>
|
||
|
||
|
||
<sect2 id="libmad">
|
||
<title>ðÏÄÄÅÒÖËÁ libmad</title>
|
||
|
||
<para>
|
||
<ulink url="http://mad.sourceforge.net">libmad</ulink> - ÜÔÏ ÍÎÏÇÏÐÌÁÔÆÏÒÍÅÎÎÁÑ,
|
||
ÃÅÌÏÞÉÓÌÅÎÎÁÑ (×ÎÕÔÒÅÎÎÅ 24'ÂÉÔÎÙÊ PCM)
|
||
ÂÉÂÌÉÏÔÅËÁ ÄÅËÏÄÉÒÏ×ÁÎÉÑ MPEG ÁÕÄÉÏ. ïÎÁ ÎÅ ÏÞÅÎØ ÈÏÒÏÛÏ ÏÂÒÁÂÁÔÙ×ÁÅÔ ÂÉÔÙÅ
|
||
ÆÁÊÌÙ É ÉÎÏÇÄÁ Õ ÎÅ£ ÂÙ×ÁÀÔ ÐÒÏÂÌÅÍÙ Ó ÐÅÒÅÍÅÝÅÎÉÅÍ ÐÏ ÆÁÊÌÕ, ÎÏ ÏÎÁ
|
||
ÍÏÖÅÔ ÂÙÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÅÅ mp3lib ÎÁ ÐÌÁÔÆÏÒÍÁÈ ÂÅÚ FPU
|
||
(ÔÁËÉÈ ËÁË <link linkend="arm">ARM</link>).
|
||
</para>
|
||
|
||
<para>
|
||
åÓÌÉ libmad Õ ×ÁÓ ÕÓÔÁÎÏ×ÌÅÎÁ, <filename>configure</filename> ÓÏÏÂÝÉÔ Ï ÜÔÏÍ,
|
||
É ÐÏÄÄÅÒÖËÁ ÄÅËÏÄÉÒÏ×ÁÎÉÑ MPEG ÁÕÄÉÏ Ó ÐÏÍÏÝØÀ <systemitem class="library">libmad</systemitem>
|
||
ÂÕÄÅÔ ×ËÌÀÞÅÎÁ Á×ÔÏÍÁÔÉÞÅÓËÉ.
|
||
</para>
|
||
</sect2>
|
||
|
||
|
||
<sect2 id="hwmpa">
|
||
<title>áÐÐÁÒÁÔÎÙÊ MPEG ÁÕÄÉÏ ËÏÄÅË</title>
|
||
|
||
<para>
|
||
üÔÏÔ ËÏÄÅË (×ÙÂÉÒÁÅÍÙÊ ÐÏ -ac hwmpa) ÐÅÒÅÄÁÅÔ ×ÓÅ ÁÕÄÉÏ ÐÁËÅÔÙ MPEG ÁÐÐÁÒÁÔÎÙÍ
|
||
ÄÅËÏÄÅÒÁÍ, ÔÁËÉÍ ËÁË ÕÓÔÁÎÏ×ÌÅÎÎÙÅ × ÐÏÌÎÏÆÕÎËÃÉÏÎÁÌØÎÙÈ DVB ËÁÒÔÁÈ É DXR2 ÁÄÁÐÔÅÒÁÈ.
|
||
îÅ ÉÓÐÏÌØÚÕÊÔÅ ÅÇÏ Ó ÄÒÕÇÉÍÉ ÄÒÁÊ×ÅÒÁÍÉ ×Ù×ÏÄÁ Ú×ÕËÁ (ÔÁËÉÍÉ ËÁË OSS É ALSA), ËÏÔÏÒÙÅ
|
||
ÎÅ ÓÐÏÓÏÂÎÙ ÁÐÐÁÒÁÔÎÏ ÄÅËÏÄÉÒÏ×ÁÔØ (×Ù ÕÓÙÛÉÔÅ ÔÏÌØËÏ ÂÅÌÙÊ ÛÕÍ).
|
||
</para>
|
||
</sect2>
|
||
|
||
<sect2 id="aac">
|
||
<title>AAC ËÏÄÅË</title>
|
||
<para>
|
||
AAC (Advanced Audio Coding) - ÜÔÏ ËÏÄÅË, ÉÎÏÇÄÁ ÏÂÎÁÒÕÖÉ×ÁÅÍÙÊ × MOV É MP4
|
||
ÆÁÊÌÁÈ. äÅËÏÄÅÒ Ó ÏÔËÒÙÔÙÍ ÉÓÈÏÄÎÙÍ ËÏÄÏÍ, ÎÁÚÙ×ÁÅÍÙÊ FAAD, ÄÏÓÔÕÐÅÎ Ó
|
||
<ulink url="http://www.audiocoding.com"/>.
|
||
<application>MPlayer</application> ×ËÌÀÞÁÅÔ × ÓÅÂÑ CVS ×ÅÒÓÉÀ libfaad 2.1 beta, ÐÏÜÔÏÍÕ
|
||
÷ÁÍ ÎÉÞÅÇÏ ÎÅ ÎÕÖÎÏ ÄÏÐÏÌÎÉÔÅÌØÎÏ ÓËÁÞÉ×ÁÔØ.
|
||
</para>
|
||
|
||
<para>
|
||
åÓÌÉ ÷Ù ÉÓÐÏÌØÚÕÅÔÅ gcc 3.2, ËÏÔÏÒÙÊ ÎÅ ÍÏÖÅÔ ÓËÏÍÐÉÌÉÒÏ×ÁÔØ ×ÓÔÒÏÅÎÎÙÊ FAAD,
|
||
ÉÌÉ ÐÒÏÓÔÏ ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ×ÎÅÛÎÀÀ ÂÉÂÌÉÏÔÅËÕ, ÓËÁÞÁÅÔŠţ Ó
|
||
<ulink url="http://www.audiocoding.com/download.php">ÓÔÒÁÎÉÃÙ ÚÁÇÒÕÚÏË</ulink>
|
||
É ÕËÁÖÉÔÅ <filename>configure</filename> <option>--enable-faad-external</option>.
|
||
÷ÁÍ ÎÅ ÎÕÖÅÎ ×ÅÓØ faad2, ÞÔÏÂÙ ÄÅËÏÄÉÒÏ×ÁÔØ AAC ÆÁÊÌÙ, ÄÏÓÔÁÔÏÞÎÏ libfaad.
|
||
÷ÏÔ ËÁË ÷Ù ÍÏÖÅÔŠţ ÓÏÂÒÁÔØ:
|
||
<screen>
|
||
cd faad2/
|
||
sh bootstrap
|
||
./configure
|
||
cd libfaad
|
||
make
|
||
make install
|
||
</screen>
|
||
âÉÎÁÒÎÉËÉ ÏÔÓÕÔÓÔ×ÕÀÔ ÎÁ audiocoding.com, ÎÏ ×Ù ÍÏÖÅÔÅ ÓËÁÞÁÔØ (apt-get) Debian
|
||
ÐÁËÅÔÙ Ó <ulink url="http://marillat.free.fr">ÄÏÍÁÛÎÅÊ ÓÔÒÁÎÉÃÙ Christian Marillat</ulink>,
|
||
Mandrake RPM'ÎÉËÉ Ó <ulink url="http://plf.zarb.org">P.L.F</ulink> É RedHat RPM'ÎÉËÉ
|
||
Ó <ulink url="http://greysector.rangers.eu.org/">Grey Sector</ulink>.
|
||
</para>
|
||
</sect2>
|
||
|
||
<sect2 id="amr">
|
||
<title>AMR ËÏÄÅËÉ</title>
|
||
<para>
|
||
òÅÞÅ×ÏÊ ËÏÄÅË Adaptive Multi-Rate ÉÓÐÏÌØÚÕÅÔÓÑ × ÍÏÂÉÌØÎÙÈ ÔÅÌÅÆÏÎÁÈ ÔÒÅÔØÅÇÏ ÐÏËÏÌÅÎÉÑ (3G).
|
||
|
||
éÓÈÏÄÎÁÑ ÒÅÁÌÉÚÁÃÉÑ ÄÏÓÔÕÐÎÁ Ó
|
||
<ulink url="http://www.3gpp.org">The 3rd Generation Partnership Project</ulink>
|
||
(ÂÅÓÐÌÁÔÎÁ ÄÌÑ ÌÉÞÎÏÇÏ ÉÓÐÏÌØÚÏ×ÁÎÉÑ).
|
||
</para>
|
||
<para>
|
||
þÔÏÂÙ ×ËÌÀÞÉÔØ ÐÏÄÄÅÒÖËÕ, ÓËÁÞÁÊÔÅ ÉÓÈÏÄÎÉËÉ ÄÌÑ
|
||
<ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-6/26_series/26104-610.zip">AMR-NB</ulink>
|
||
É
|
||
<ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-6/26_series/26204-600.zip">AMR-WB</ulink>
|
||
ËÏÄÅËÏ×, ÐÏÍÅÓÔÉÔÅ ÉÈ × ËÁÔÁÌÏÇ, ÇÄÅ ÒÁÓÐÁËÏ×ÁÎÙ ÉÓÈÏÄÎÉËÉ
|
||
<application>MPlayer</application> É ×ÙÐÏÌÎÉÔÅ ÓÌÅÄÕÀÝÉÅ ËÏÍÁÎÄÙ:
|
||
<screen>
|
||
unzip 26104-610.zip
|
||
unzip 26104-610_ANSI_C_source_code.zip
|
||
mv c-code libavcodec/amr_float
|
||
unzip 26204-600.zip
|
||
unzip 26204-600_ANSI-C_source_code.zip
|
||
mv c-code libavcodec/amrwb_float
|
||
</screen>
|
||
ðÏÓÌÅ ÜÔÏÇÏ ÓÌÅÄÕÊÔÅ ÏÂÙÞÎÏÊ <link linkend="features">ÐÒÏÃÅÄÕÒÅ ÓÂÏÒËÉ</link>
|
||
<application>MPlayer</application>.
|
||
|
||
</para>
|
||
|
||
</sect2>
|
||
|
||
</sect1>
|
||
<!-- ********** -->
|
||
|
||
<sect1 id="codec-importing">
|
||
<title>ëáë ÉÚ×ÌÅÞØ ËÏÄÅË ÉÚ Win32</title>
|
||
|
||
<!-- TODO: a short paragraph of text would be nice here... -->
|
||
|
||
<sect2 id="vfw-codecs">
|
||
<title>VFW ËÏÄÅËÉ</title>
|
||
|
||
<para>
|
||
VFW (Video for Windows[÷ÉÄÅÏ ÄÌÑ Windows]) - ÜÔÏ ÓÔÁÒÙÅ ÷ÉÄÅÏ API ÄÌÑ Windows.
|
||
õ ÜÔÉÈ ËÏÄÅËÏ× ÒÁÓÛÉÒÅÎÉÑ <filename>.DLL</filename> ÉÌÉ (ÒÅÖÅ) <filename>.DRV</filename>.
|
||
åÓÌÉ <application>MPlayer</application> ÎÅ ÍÏÖÅÔ ÐÒÏÉÇÒÙ×ÁÔØ ÷ÁÛ
|
||
AVI Ó ÔÁËÏÇÏ ÒÏÄÁ ÓÏÏÂÝÅÎÉÅÍ:
|
||
<screen>UNKNOWN video codec: HFYU (0x55594648)</screen>
|
||
</para>
|
||
|
||
<para>
|
||
üÔÏ ÚÎÁÞÉÔ, ÞÔÏ ÷ÁÛ AVI ÚÁËÏÄÉÒÏ×ÁÎ ËÏÄÅËÏÍ Ó fourcc HFYU
|
||
(HFYU = HuffYUV ËÏÄÅË, DIV3 = DivX Low Motion, É Ô.Ð.). ôÅÐÅÒØ, ËÏÇÄÁ ÷Ù ÜÔÏ
|
||
ÚÎÁÅÔÅ, ÷Ù ÄÏÌÖÎÙ ÎÁÊÔÉ DLL, ËÏÔÏÒÕÀ Windows ÚÁÇÒÕÖÁÅÔ ÄÌÑ ÐÒÏÉÇÒÙ×ÁÎÉÑ ÜÔÏÇÏ
|
||
ÆÁÊÌÁ. ÷ ÎÁÛÅÍ ÓÌÕÞÁÅ, × ÆÁÊÌÅ <filename>system.ini</filename> ÅÓÔØ ÜÔÁ
|
||
ÉÎÆÏÒÍÁÃÉÑ, × ÜÔÏÊ ÓÔÒÏËÅ:
|
||
<programlisting>VIDC.HFYU=huffyuv.dll</programlisting>
|
||
</para>
|
||
|
||
<para>
|
||
úÎÁÞÉÔ, ÷ÁÍ ÎÕÖÅÎ ÆÁÊÌ <filename>huffyuv.dll</filename>. úÁÍÅÔØÔÅ, ÞÔÏ ÁÕÄÉÏ
|
||
ËÏÄÅËÉ ÉÓÐÏÌØÚÕÀÔ ÐÒÅÆÉËÓ MSACM:
|
||
<programlisting>msacm.l3acm=L3codeca.acm</programlisting>
|
||
</para>
|
||
|
||
<para>
|
||
üÔÏ MP3 ËÏÄÅË. ôÅÐÅÒØ Õ ÷ÁÓ ÅÓÔØ ×ÓÑ ÎÅÏÂÈÏÄÉÍÁÑ ÉÎÆÏÒÍÁÃÉÑ (fourcc, ÆÁÊÌ Ó
|
||
ËÏÄÅËÏÍ, ÐÒÉÍÅÒ AVI), ÐÒÅÄÓÔÁ×ØÔÅ ÎÁ ÒÁÓÓÍÏÔÒÅÎÉÅ ÚÁÐÒÏÓ Ï ÐÏÄÄÅÒÖËÅ ÷ÁÛÅÇÏ
|
||
ËÏÄÅËÁ ÐÏ ÐÏÞÔÅ É ÚÁÇÒÕÚÉÔÅ ÜÔÉ ÆÁÊÌÙ ÎÁ FTP ÓÁÊÔ:
|
||
<systemitem role="url">
|
||
ftp://upload.mplayerhq.hu/MPlayer/incoming/[codecname]/
|
||
</systemitem>
|
||
</para>
|
||
|
||
<note><para>ðÏÄ Windows NT/2000/XP ÉÝÉÔÅ ÜÔÕ ÉÎÆÏÒÍÁÃÉÀ × ÒÅÅÓÔÒÅ, ÎÁÐÒÉÍÅÒ,
|
||
ÉÝÉÔÅ "VIDC.HFYU". þÔÏÂÙ ÕÚÎÁÔØ, ËÁË ÜÔÏ ÄÅÌÁÔØ, ÓÍ. ÎÉÖÅ ÓÔÁÒÙÊ
|
||
ÍÅÔÏÄ DirectShow.
|
||
</para></note>
|
||
</sect2>
|
||
|
||
|
||
<sect2 id="dshow-codecs">
|
||
<title>DirectShow ËÏÄÅËÉ</title>
|
||
|
||
<para>
|
||
DirectShow - ÜÔÏ ÂÏÌÅÅ ÎÏ×ÙÊ Video API, ËÏÔÏÒÙÅ ÄÁÖÅ ÈÕÖÅ, ÞÅÍ ÅÇÏ ÐÒÅÄÛÅÓÔ×ÅÎÎÉË.
|
||
÷ÓÅ ÓÌÏÖÎÅÅ Ó DirectShow, ÐÏÓËÏÌØËÕ
|
||
<itemizedlist>
|
||
<listitem><simpara>
|
||
<filename>system.ini</filename> ÎÅ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÕÀ ÉÎÆÏÒÍÁÃÉÀ, ×ÍÅÓÔÏ
|
||
ÜÔÏÇÏ ÏÎÁ ÈÒÁÎÉÔÓÑ × ÒÅÅÓÔÒÅ É
|
||
</simpara></listitem>
|
||
<listitem><simpara>
|
||
ÎÁÍ ÎÕÖÅÎ GUID ÜÔÏÇÏ ËÏÄÅËÁ.
|
||
</simpara></listitem>
|
||
</itemizedlist>
|
||
</para>
|
||
|
||
<procedure>
|
||
<title>îÏ×ÙÊ íÅÔÏÄ:</title>
|
||
<para>
|
||
éÓÐÏÌØÚÕÑ <application>Microsoft GraphEdit</application> (ÂÙÓÔÒÏ)
|
||
</para>
|
||
<step><para>
|
||
ðÏÌÕÞÉÔÅ <application>GraphEdit</application> ÉÌÉ ÉÚ DirectX SDK ÉÌÉ
|
||
<ulink url="http://doom9.net">doom9</ulink>.
|
||
</para></step>
|
||
<step><para>
|
||
úÁÐÕÓÔÉÔÅ <command>graphedit.exe</command>.
|
||
</para></step>
|
||
<step><para>
|
||
÷ ÍÅÎÀ ×ÙÂÅÒÉÔÅ Graph -> Insert Filters.
|
||
</para></step>
|
||
<step><para>
|
||
ý£ÌËÎÉÔÅ <systemitem>DirectShow Filters</systemitem>.
|
||
</para></step>
|
||
<step><para>
|
||
÷ÙÂÅÒÉÔÅ ÎÕÖÎÏÅ ÉÍÑ ËÏÄÅËÁ É Ý£ÌËÎÉÔÅ ÐÏ ÎÅÍÕ.
|
||
</para></step>
|
||
<step><para>
|
||
÷ ÐÏÌÅ <systemitem>DisplayName</systemitem> ÏÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÅËÓÔ ×
|
||
ÆÉÇÕÒÎÙÈ ÓËÏÂËÁÈ ÐÏÓÌÅ ÏÂÒÁÔÎÏÇÏ ÓÌÜÛÁ É ×ÙÐÉÛÅÔÅ ÉÈ (ÐÑÔØ ÒÁÚÄÅÌ£ÎÎÙÈ
|
||
ÄÅÆÉÓÁÍÉ ÂÌÏËÏ×, GUID).
|
||
</para></step>
|
||
<step><para>
|
||
âÉÎÁÒÎÙÊ ÆÁÊÌ ËÏÄÅËÁ - ÜÔÏ ÆÁÊÌ, ÕËÁÚÁÎÎÙÊ × ÐÏÌÅ <systemitem>Filename</systemitem>.
|
||
</para></step>
|
||
</procedure>
|
||
|
||
<note>
|
||
<para>
|
||
åÓÌÉ ÔÁÍ ÎÅÔ <systemitem>Filename</systemitem> É
|
||
<systemitem>DisplayName</systemitem> ÓÏÄÅÒÖÉÔ ÞÔÏ-ÔÏ × ÄÕÈÅ
|
||
<systemitem>device:dmo</systemitem>, ÔÏ ÜÔÏ - DMO-ëÏÄÅË.
|
||
</para>
|
||
</note>
|
||
|
||
<procedure>
|
||
<title>óÔÁÒÙÊ ÍÅÔÏÄ:</title>
|
||
<para>
|
||
óÄÅÌÁÊÔÅ ÇÌÕÂÏËÉÊ ×ÄÏÈ É ÎÁÞÎÉÔÅ ÉÓËÁÔØ × ÒÅÅÓÔÒÅ...
|
||
</para>
|
||
<step><para>
|
||
úÁÐÕÓÔÉÔÅ <command>regedit</command>.
|
||
</para></step>
|
||
<step><para>
|
||
îÁÖÍÉÔÅ <keycap>Ctrl</keycap>+<keycap>F</keycap>, ÏÔËÌÀÞÉÔÅ ÐÅÒ×ÙÅ Ä×Å ÇÁÌÏÞËÉ
|
||
É ×ËÌÀÞÉÔÅ ÔÒÅÔØÀ. îÁÂÅÒÉÔÅ fourcc ÷ÁÛÅÇÏ ËÏÄÅËÁ (ÎÁÐÒÉÍÅÒ,
|
||
<userinput>TM20</userinput>).
|
||
</para></step>
|
||
<step><para>
|
||
÷Ù ÄÏÌÖÎÙ Õ×ÉÄÅÔØ ÐÏÌÅ, ÓÏÄÅÒÖÁÝÅÅ ÐÕÔØ É ÉÍÑ ÆÁÊÌÁ (ÎÁÐÒÉÍÅÒ,
|
||
<filename>C:\WINDOWS\SYSTEM\TM20DEC.AX</filename>).
|
||
</para></step>
|
||
<step><para>
|
||
ôÅÐÅÒØ, ËÏÇÄÁ Õ ÷ÁÓ ÅÓÔØ ÆÁÊÌ, ÎÁÍ ÎÕÖÅÎ GUID. ðÏÐÒÏÂÕÊÔÅ ÐÏÉÓËÁÔØ ÓÎÏ×Á,
|
||
ÎÏ ÔÅÐÅÒØ ÉÝÉÔÅ ÉÍÑ ËÏÄÅËÁ, Á ÎÅ fourcc. üÔÏ ÉÍÑ ÍÏÖÅÔ ÂÙÔØ ÐÏÌÕÞÅÎÏ,
|
||
ËÏÇÄÁ Media Player ÐÒÏÉÇÒÙ×ÁÅÔ ÆÁÊÌ, ÐÒÏ×ÅÒÉ×
|
||
<guimenu>File</guimenu> -> <guisubmenu>Properties</guisubmenu> ->
|
||
<guimenuitem>Advanced</guimenuitem>.
|
||
åÓÌÉ ÎÅÔ, ÷ÁÍ ÎÅ ÐÏ×ÅÚÌÏ. ðÏÐÒÏÂÕÊÔÅ ÕÇÁÄÁÔØ (ÎÁÐÒÉÍÅÒ, ÉÝÉÔÅ TrueMotion).
|
||
</para></step>
|
||
<step><para>
|
||
åÓÌÉ GUID ÎÁÊÄÅÎ, ÷Ù ÄÏÌÖÎÙ ×ÉÄÅÔØ ÐÏÌÑ <guilabel>FriendlyName</guilabel>
|
||
É <guilabel>CLSID</guilabel>. ÷ÙÐÉÛÉÔÅ 16-ÔÉ ÂÁÊÔÏ×ÙÊ CLSID, ÜÔÏ GUID, ËÏÔÏÒÙÊ
|
||
ÎÁÍ ÎÕÖÅÎ.
|
||
</para></step>
|
||
</procedure>
|
||
|
||
<note>
|
||
<para>
|
||
åÓÌÉ ÐÏÉÓË ÎÅ ÕÄÁ£ÔÓÑ, ÐÏÐÒÏÂÕÊÔÅ ×ËÌÀÞÉÔØ ×ÓÅ ÇÁÌÏÞËÉ. ÷Ù ÍÏÖÅÔÅ ÐÏÌÕÞÉÔØ
|
||
ÌÏÖÎÙÅ ÚÎÁÞÅÎÉÑ, ÎÏ ÷ÁÍ ÍÏÖÅÔ ÐÏ×ÅÓÔÉ...
|
||
</para>
|
||
</note>
|
||
|
||
<para>
|
||
ôÅÐÅÒØ Õ ÷ÁÓ ÅÓÔØ ×ÓÑ ÎÅÏÂÈÏÄÉÍÁÑ ÉÎÆÏÒÍÁÃÉÑ (fourcc, GUID, ÆÁÊÌ Ó ËÏÄÅËÏÍ,
|
||
ÐÒÉÍÅÒ AVI), ÐÒÅÄÓÔÁ×ØÔÅ ÎÁ ÒÁÓÓÍÏÔÒÅÎÉÅ ÚÁÐÒÏÓ Ï ÐÏÄÄÅÒÖËÅ ÷ÁÛÅÇÏ ËÏÄÅËÁ ÐÏ
|
||
ÐÏÞÔÅ É ÚÁÇÒÕÚÉÔÅ ÜÔÉ ÆÁÊÌÙ ÎÁ FTP ÓÁÊÔ:
|
||
<systemitem
|
||
role="url">ftp://upload.mplayerhq.hu/MPlayer/incoming/[codecname]/
|
||
</systemitem>
|
||
</para>
|
||
<para>
|
||
åÓÌÉ ×Ù ÈÏÔÉÔÅ ÄÏÂÁ×ÉÔØ ËÏÄÅË ÓÁÍÏÓÔÏÑÔÅÌØÎÏ, ÐÒÏÞÔÉÔÅ
|
||
<ulink url="http://www.mplayerhq.hu/MPlayer/DOCS/tech/codecs.conf.txt">DOCS/tech/codecs.conf.txt</ulink>.
|
||
</para>
|
||
</sect2>
|
||
</sect1>
|
||
</chapter>
|