comparison DOCS/xml/it/encoding-guide.xml @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents 01466cb526ce
children 1eb76f19daae
comparison
equal deleted inserted replaced
29262:7d545a6b8aff 29263:0f1b5b68af32
1396 Tuttavia, i codec più recenti che sono sotto pesante sviluppo possono avere 1396 Tuttavia, i codec più recenti che sono sotto pesante sviluppo possono avere
1397 problemi che non sono ancora stati scoperti, e che possono rovinare una 1397 problemi che non sono ancora stati scoperti, e che possono rovinare una
1398 codifica. 1398 codifica.
1399 Questo è semplicemente il contrappasso per usare la tecnologia di punta. 1399 Questo è semplicemente il contrappasso per usare la tecnologia di punta.
1400 </para> 1400 </para>
1401 1401
1402 <para> 1402 <para>
1403 Inoltre iniziare ad utilizzare un codec nuovo richiede l'utilizzo di un po' 1403 Inoltre iniziare ad utilizzare un codec nuovo richiede l'utilizzo di un po'
1404 di tempo per familiarizzare con le sue opzioni, affinché tu sappia cosa 1404 di tempo per familiarizzare con le sue opzioni, affinché tu sappia cosa
1405 impostare per ottenere la qualità dell'immagine voluta. 1405 impostare per ottenere la qualità dell'immagine voluta.
1406 </para> 1406 </para>
1429 con ogni tipo di algoritmo furbo e codice SIMD in assembly. 1429 con ogni tipo di algoritmo furbo e codice SIMD in assembly.
1430 Per questo tendono a fornire il miglior rapporto tra qualità e tempo di 1430 Per questo tendono a fornire il miglior rapporto tra qualità e tempo di
1431 codifica. Tuttavia, possono avere delle opzioni avanzate che, quando 1431 codifica. Tuttavia, possono avere delle opzioni avanzate che, quando
1432 abilitate, rendono la codifica molto lenta fornendo poco guadagno. 1432 abilitate, rendono la codifica molto lenta fornendo poco guadagno.
1433 </para> 1433 </para>
1434 1434
1435 <para> 1435 <para>
1436 Se stai cercando di incrementare la velocità dovresti cercare di non 1436 Se stai cercando di incrementare la velocità dovresti cercare di non
1437 modificare troppo le impostazioni di default del codec video (anche se 1437 modificare troppo le impostazioni di default del codec video (anche se
1438 dovresti comunque provare le altre opzioni che sono citate in altre sezioni 1438 dovresti comunque provare le altre opzioni che sono citate in altre sezioni
1439 di questa guida). 1439 di questa guida).
1440 </para> 1440 </para>
1441 1441
1442 <para> 1442 <para>
1443 Puoi tenere in considerazione anche la scelta di un codec che possa eseguire 1443 Puoi tenere in considerazione anche la scelta di un codec che possa eseguire
1444 elaborazioni multi-thread, anche se ciò è utile solo per utenti di macchine 1444 elaborazioni multi-thread, anche se ciò è utile solo per utenti di macchine
1445 con più di una CPU. 1445 con più di una CPU.
1446 MPEG-4 di <systemitem class="library">libavcodec</systemitem> lo permette, 1446 MPEG-4 di <systemitem class="library">libavcodec</systemitem> lo permette,
1882 relativa categoria di video. Come fare buoni rip di DVD o configurare bene 1882 relativa categoria di video. Come fare buoni rip di DVD o configurare bene
1883 <systemitem class="library">libavcodec</systemitem> per la massima qualità 1883 <systemitem class="library">libavcodec</systemitem> per la massima qualità
1884 non è lo scopo di questa documentazione. 1884 non è lo scopo di questa documentazione.
1885 </para></listitem> 1885 </para></listitem>
1886 <listitem><para> 1886 <listitem><para>
1887 Ci sono alcune note a piè di pagina specifiche di questa guida, così 1887 Ci sono alcune note a piè di pagina specifiche di questa guida, così
1888 indicate: 1888 indicate:
1889 <link linkend="menc-feat-telecine-footnotes">[1]</link> 1889 <link linkend="menc-feat-telecine-footnotes">[1]</link>
1890 </para></listitem> 1890 </para></listitem>
1891 </itemizedlist> 1891 </itemizedlist>
1892 </sect2> 1892 </sect2>
2087 </para> 2087 </para>
2088 2088
2089 <para> 2089 <para>
2090 Spesso e volentieri capita che un video che sembra progressivo contenga anche 2090 Spesso e volentieri capita che un video che sembra progressivo contenga anche
2091 alcune brevi parti di telecine mescolate. A meno che tu non sia sicuro, 2091 alcune brevi parti di telecine mescolate. A meno che tu non sia sicuro,
2092 conviene trattare il video come 2092 conviene trattare il video come
2093 <link linkend="menc-feat-telecine-encode-mixedpt">progressivo e telecine mescolati</link>. 2093 <link linkend="menc-feat-telecine-encode-mixedpt">progressivo e telecine mescolati</link>.
2094 Il calo di prestazioni è piccolo 2094 Il calo di prestazioni è piccolo
2095 <link linkend="menc-feat-telecine-footnotes">[3]</link>. 2095 <link linkend="menc-feat-telecine-footnotes">[3]</link>.
2096 </para> 2096 </para>
2097 </sect3> 2097 </sect3>
2215 essere seguita dal filtro <option>softskip</option> altrimenti 2215 essere seguita dal filtro <option>softskip</option> altrimenti
2216 <application>MEncoder</application> andrà in crash. 2216 <application>MEncoder</application> andrà in crash.
2217 <option>pullup</option> è tuttavia il modo migliore e più preciso disponibile 2217 <option>pullup</option> è tuttavia il modo migliore e più preciso disponibile
2218 per codificare sia telecine che "progressivo e telecine mescolati". 2218 per codificare sia telecine che "progressivo e telecine mescolati".
2219 <screen> 2219 <screen>
2220 mencoder dvd://1 -oac copy -vf pullup,softskip 2220 mencoder dvd://1 -oac copy -vf pullup,softskip
2221 -ovc lavc -ofps 24000/1001<!-- 2221 -ovc lavc -ofps 24000/1001<!--
2222 --></screen> 2222 --></screen>
2223 </para></listitem> 2223 </para></listitem>
2224 <listitem><para> 2224 <listitem><para>
2225 Un metodo più vecchio, invece di togliere il telecine dove c'è, è portare 2225 Un metodo più vecchio, invece di togliere il telecine dove c'è, è portare
3767 <para> 3767 <para>
3768 <emphasis role="bold">me</emphasis>: 3768 <emphasis role="bold">me</emphasis>:
3769 This option is for choosing the motion estimation search method. 3769 This option is for choosing the motion estimation search method.
3770 Altering this option provides a straightforward quality-vs-speed 3770 Altering this option provides a straightforward quality-vs-speed
3771 tradeoff. <option>me=dia</option> is only a few percent faster than 3771 tradeoff. <option>me=dia</option> is only a few percent faster than
3772 the default search, at a cost of under 0.1dB global PSNR. The 3772 the default search, at a cost of under 0.1dB global PSNR. The
3773 default setting (<option>me=hex</option>) is a reasonable tradeoff 3773 default setting (<option>me=hex</option>) is a reasonable tradeoff
3774 between speed and quality. <option>me=umh</option> gains a little under 3774 between speed and quality. <option>me=umh</option> gains a little under
3775 0.1dB global PSNR, with a speed penalty that varies depending on 3775 0.1dB global PSNR, with a speed penalty that varies depending on
3776 <option>frameref</option>. At high values of 3776 <option>frameref</option>. At high values of
3777 <option>frameref</option> (e.g. 12 or so), <option>me=umh</option> 3777 <option>frameref</option> (e.g. 12 or so), <option>me=umh</option>
3996 this will hurt quality/bitrate slightly. If you care only about quality 3996 this will hurt quality/bitrate slightly. If you care only about quality
3997 and not about seekability, you can set it to much higher values 3997 and not about seekability, you can set it to much higher values
3998 (understanding that there are diminishing returns which may become 3998 (understanding that there are diminishing returns which may become
3999 vanishingly low, or even zero). The video stream will still have seekable 3999 vanishingly low, or even zero). The video stream will still have seekable
4000 points as long as there are some scene changes. 4000 points as long as there are some scene changes.
4001 </para></listitem> 4001 </para></listitem>
4002 <listitem> 4002 <listitem>
4003 <para> 4003 <para>
4004 <emphasis role="bold">deblock</emphasis>: 4004 <emphasis role="bold">deblock</emphasis>:
4005 This topic is going to be a bit controversial. 4005 This topic is going to be a bit controversial.
4006 </para> 4006 </para>
4312 To encode with the Video for Windows codecs, you will need to set bitrate 4312 To encode with the Video for Windows codecs, you will need to set bitrate
4313 and other options. This is known to work on x86 on both *NIX and Windows. 4313 and other options. This is known to work on x86 on both *NIX and Windows.
4314 </para> 4314 </para>
4315 <para> 4315 <para>
4316 First you must build the <application>vfw2menc</application> program. 4316 First you must build the <application>vfw2menc</application> program.
4317 It is located in the <filename class="directory">TOOLS</filename> subdirectory 4317 It is located in the <filename class="directory">TOOLS</filename> subdirectory
4318 of the MPlayer source tree. 4318 of the MPlayer source tree.
4319 To build on Linux, this can be done using <application>Wine</application>: 4319 To build on Linux, this can be done using <application>Wine</application>:
4320 <screen>winegcc vfw2menc.c -o vfw2menc -lwinmm -lole32</screen> 4320 <screen>winegcc vfw2menc.c -o vfw2menc -lwinmm -lole32</screen>
4321 4321
4322 To build on Windows in <application>MinGW</application> or 4322 To build on Windows in <application>MinGW</application> or
4323 <application>Cygwin</application> use: 4323 <application>Cygwin</application> use:
4324 <screen>gcc vfw2menc.c -o vfw2menc.exe -lwinmm -lole32</screen> 4324 <screen>gcc vfw2menc.c -o vfw2menc.exe -lwinmm -lole32</screen>
4325 4325
4326 To build on <application>MSVC</application> you will need getopt. 4326 To build on <application>MSVC</application> you will need getopt.
4327 Getopt can be found in the original <application>vfw2menc</application> 4327 Getopt can be found in the original <application>vfw2menc</application>
4328 archive available at: 4328 archive available at:
4329 The <ulink url="http://oss.netfarm.it/mplayer-win32.php">MPlayer on win32</ulink> project. 4329 The <ulink url="http://oss.netfarm.it/mplayer-win32.php">MPlayer on win32</ulink> project.
4330 </para> 4330 </para>
4331 <informalexample> 4331 <informalexample>
4332 <para> 4332 <para>
4333 Below is an example with the VP6 codec. 4333 Below is an example with the VP6 codec.
4334 <screen> 4334 <screen>
4335 vfw2menc -f VP62 -d vp6vfw.dll -s firstpass.mcf 4335 vfw2menc -f VP62 -d vp6vfw.dll -s firstpass.mcf
4336 </screen> 4336 </screen>
4337 This will open the VP6 codec dialog window. 4337 This will open the VP6 codec dialog window.
4338 Repeat this step for the second pass 4338 Repeat this step for the second pass
4339 and use <option>-s <replaceable>secondpass.mcf</replaceable></option>. 4339 and use <option>-s <replaceable>secondpass.mcf</replaceable></option>.
4340 </para> 4340 </para>
4341 </informalexample> 4341 </informalexample>
4342 <para> 4342 <para>
4343 Windows users can use 4343 Windows users can use
4344 <option>-xvfwopts codec=vp6vfw.dll:compdata=dialog</option> to have 4344 <option>-xvfwopts codec=vp6vfw.dll:compdata=dialog</option> to have
4345 the codec dialog display before encoding starts. 4345 the codec dialog display before encoding starts.
4346 </para> 4346 </para>
4347 </sect2> 4347 </sect2>
4348 </sect1> 4348 </sect1>
4643 <title>Adding metadata tags</title> 4643 <title>Adding metadata tags</title>
4644 4644
4645 <para> 4645 <para>
4646 If you want to add tags to your video that show up in iTunes, you can use 4646 If you want to add tags to your video that show up in iTunes, you can use
4647 <ulink url="http://atomicparsley.sourceforge.net/">AtomicParsley</ulink>. 4647 <ulink url="http://atomicparsley.sourceforge.net/">AtomicParsley</ulink>.
4648 4648
4649 <screen>AtomicParsley narnia.mp4 --metaEnema --title "The Chronicles of Narnia" --year 2005 --stik Movie --freefree --overWrite</screen> 4649 <screen>AtomicParsley narnia.mp4 --metaEnema --title "The Chronicles of Narnia" --year 2005 --stik Movie --freefree --overWrite</screen>
4650 4650
4651 The <option>--metaEnema</option> option removes any existing metadata 4651 The <option>--metaEnema</option> option removes any existing metadata
4652 (<application>mp4creator</application> inserts its name in the 4652 (<application>mp4creator</application> inserts its name in the
4653 "encoding tool" tag), and <option>--freefree</option> reclaims the 4653 "encoding tool" tag), and <option>--freefree</option> reclaims the
4654 space from the deleted metadata. 4654 space from the deleted metadata.
4655 The <option>--stik</option> option sets the type of video (such as Movie 4655 The <option>--stik</option> option sets the type of video (such as Movie
4656 or TV Show), which iTunes uses to group related video files. 4656 or TV Show), which iTunes uses to group related video files.
4657 The <option>--overWrite</option> option overwrites the original file; 4657 The <option>--overWrite</option> option overwrites the original file;
4715 </row> 4715 </row>
4716 </thead> 4716 </thead>
4717 <tbody> 4717 <tbody>
4718 <row> 4718 <row>
4719 <entry>NTSC DVD</entry> 4719 <entry>NTSC DVD</entry>
4720 <entry>720x480, 704x480, 352x480, 352x240</entry> 4720 <entry>720x480, 704x480, 352x480, 352x240</entry>
4721 <entry>MPEG-2</entry> 4721 <entry>MPEG-2</entry>
4722 <entry>9800 kbps</entry> 4722 <entry>9800 kbps</entry>
4723 <entry>48000 Hz</entry> 4723 <entry>48000 Hz</entry>
4724 <entry>AC-3,PCM</entry> 4724 <entry>AC-3,PCM</entry>
4725 <entry>1536 kbps (max)</entry> 4725 <entry>1536 kbps (max)</entry>
4728 </row> 4728 </row>
4729 <row> 4729 <row>
4730 <entry>NTSC DVD</entry> 4730 <entry>NTSC DVD</entry>
4731 <entry>352x240<footnote id='fn-rare-resolutions'><para> 4731 <entry>352x240<footnote id='fn-rare-resolutions'><para>
4732 These resolutions are rarely used for DVDs because 4732 These resolutions are rarely used for DVDs because
4733 they are fairly low quality.</para></footnote></entry> 4733 they are fairly low quality.</para></footnote></entry>
4734 <entry>MPEG-1</entry> 4734 <entry>MPEG-1</entry>
4735 <entry>1856 kbps</entry> 4735 <entry>1856 kbps</entry>
4736 <entry>48000 Hz</entry> 4736 <entry>48000 Hz</entry>
4737 <entry>AC-3,PCM</entry> 4737 <entry>AC-3,PCM</entry>
4738 <entry>1536 kbps (max)</entry> 4738 <entry>1536 kbps (max)</entry>
4823 4823
4824 <sect3 id="menc-feat-vcd-dvd-constraints-gop"> 4824 <sect3 id="menc-feat-vcd-dvd-constraints-gop">
4825 <title>GOP Size Constraints</title> 4825 <title>GOP Size Constraints</title>
4826 4826
4827 <para> 4827 <para>
4828 DVD, VCD, and SVCD also constrain you to relatively low 4828 DVD, VCD, and SVCD also constrain you to relatively low
4829 GOP (Group of Pictures) sizes. 4829 GOP (Group of Pictures) sizes.
4830 For 30 fps material the largest allowed GOP size is 18. 4830 For 30 fps material the largest allowed GOP size is 18.
4831 For 25 or 24 fps, the maximum is 15. 4831 For 25 or 24 fps, the maximum is 15.
4832 The GOP size is set using the <option>keyint</option> option. 4832 The GOP size is set using the <option>keyint</option> option.
4833 </para> 4833 </para>
4839 4839
4840 <para> 4840 <para>
4841 VCD video is required to be CBR at 1152 kbps. 4841 VCD video is required to be CBR at 1152 kbps.
4842 This highly limiting constraint also comes along with an extremly low vbv 4842 This highly limiting constraint also comes along with an extremly low vbv
4843 buffer size of 327 kilobits. 4843 buffer size of 327 kilobits.
4844 SVCD allows varying video bitrates up to 2500 kbps, and a somewhat less 4844 SVCD allows varying video bitrates up to 2500 kbps, and a somewhat less
4845 restrictive vbv buffer size of 917 kilobits is allowed. 4845 restrictive vbv buffer size of 917 kilobits is allowed.
4846 DVD video bitrates may range anywhere up to 9800 kbps (though typical 4846 DVD video bitrates may range anywhere up to 9800 kbps (though typical
4847 bitrates are about half that), and the vbv buffer size is 1835 kilobits. 4847 bitrates are about half that), and the vbv buffer size is 1835 kilobits.
4848 </para> 4848 </para>
4849 </sect3> 4849 </sect3>
4886 </para> 4886 </para>
4887 4887
4888 <para> 4888 <para>
4889 DVD with NTSC Pullup: 4889 DVD with NTSC Pullup:
4890 <screen>-of mpeg -mpegopts format=dvd:tsaf:telecine -ofps 24000/1001</screen> 4890 <screen>-of mpeg -mpegopts format=dvd:tsaf:telecine -ofps 24000/1001</screen>
4891 This allows 24000/1001 fps progressive content to be encoded at 30000/1001 4891 This allows 24000/1001 fps progressive content to be encoded at 30000/1001
4892 fps whilst maintaing DVD-compliance. 4892 fps whilst maintaing DVD-compliance.
4893 </para> 4893 </para>
4894 4894
4895 4895
4896 <sect3 id="menc-feat-vcd-dvd-output-aspect"> 4896 <sect3 id="menc-feat-vcd-dvd-output-aspect">
4952 <title>Sample Rate Conversion</title> 4952 <title>Sample Rate Conversion</title>
4953 4953
4954 <para> 4954 <para>
4955 If the audio sample rate in the original file is not the same as 4955 If the audio sample rate in the original file is not the same as
4956 required by the target format, sample rate conversion is required. 4956 required by the target format, sample rate conversion is required.
4957 This is achieved using the <option>-srate</option> option and 4957 This is achieved using the <option>-srate</option> option and
4958 the <option>-af lavcresample</option> audio filter together. 4958 the <option>-af lavcresample</option> audio filter together.
4959 </para> 4959 </para>
4960 4960
4961 <para> 4961 <para>
4962 DVD: 4962 DVD:
5020 <listitem><para> 5020 <listitem><para>
5021 <emphasis role="bold">keyint</emphasis>: 5021 <emphasis role="bold">keyint</emphasis>:
5022 Used to set the GOP size. 5022 Used to set the GOP size.
5023 18 for 30fps material, or 15 for 25/24 fps material. 5023 18 for 30fps material, or 15 for 25/24 fps material.
5024 Commercial producers seem to prefer keyframe intervals of 12. 5024 Commercial producers seem to prefer keyframe intervals of 12.
5025 It is possible to make this much larger and still retain compatibility 5025 It is possible to make this much larger and still retain compatibility
5026 with most players. 5026 with most players.
5027 A <option>keyint</option> of 25 should never cause any problems. 5027 A <option>keyint</option> of 25 should never cause any problems.
5028 </para></listitem> 5028 </para></listitem>
5029 <listitem><para> 5029 <listitem><para>
5030 <emphasis role="bold">vrc_buf_size</emphasis>: 5030 <emphasis role="bold">vrc_buf_size</emphasis>: