Mercurial > mplayer.hg
comparison DOCS/xml/en/encoding-guide.xml @ 21914:88ab6170fb69
update and factorize information about x264's multi-threading mode
author | gpoirier |
---|---|
date | Mon, 15 Jan 2007 07:23:28 +0000 |
parents | 94a6b690e595 |
children | 17e8429c3a57 |
comparison
equal
deleted
inserted
replaced
21913:94a6b690e595 | 21914:88ab6170fb69 |
---|---|
1470 <systemitem class="library">Xvid</systemitem>'s multi-threaded encoding, | 1470 <systemitem class="library">Xvid</systemitem>'s multi-threaded encoding, |
1471 activated by the <option>threads</option> option, can be used to | 1471 activated by the <option>threads</option> option, can be used to |
1472 boost encoding speed — by about 40-60% in typical cases — | 1472 boost encoding speed — by about 40-60% in typical cases — |
1473 with little if any picture degradation. | 1473 with little if any picture degradation. |
1474 <systemitem class="library">x264</systemitem> also allows multi-threaded | 1474 <systemitem class="library">x264</systemitem> also allows multi-threaded |
1475 encoding, which currently speeds up encoding by 15-30% (depending on | 1475 encoding, which currently speeds up encoding by 94% per CPU core while |
1476 the encoding settings) while lowering PSNR by about 0.05dB. | 1476 lowering PSNR between 0.005dB and 0.01dB on a typical setup. |
1477 </para> | 1477 </para> |
1478 </listitem> | 1478 </listitem> |
1479 | 1479 |
1480 <listitem> | 1480 <listitem> |
1481 <para> | 1481 <para> |
3846 <option>nob_adapt</option> to your x264encopts, if you expect | 3846 <option>nob_adapt</option> to your x264encopts, if you expect |
3847 fades to have a large effect in your particular video | 3847 fades to have a large effect in your particular video |
3848 clip. | 3848 clip. |
3849 </para> | 3849 </para> |
3850 </listitem> | 3850 </listitem> |
3851 <listitem id="menc-feat-x264-encoding-options-speedvquality-threads"> | |
3852 <para> | |
3853 <emphasis role="bold">threads</emphasis>: | |
3854 This option allows to spawn threads to encode in parallel on multiple CPUs. | |
3855 You can manually select the number of threads to be created or, better, set | |
3856 <option>threads=auto</option> and let | |
3857 <systemitem class="library">x264</systemitem> detect how many CPUs are | |
3858 available and pick an appropriate number of threads. | |
3859 If you have a multi-processor machine, you should really consider using it | |
3860 as it can to increase encoding speed linearly with the number of CPU cores | |
3861 (about 94% per CPU core), with very little quality reduction (about 0.005dB | |
3862 for dual processor, about 0.01dB for a quad processor machine). | |
3863 </para> | |
3864 </listitem> | |
3851 </itemizedlist> | 3865 </itemizedlist> |
3852 </sect3> | 3866 </sect3> |
3853 | 3867 |
3854 | 3868 |
3855 <sect3 id="menc-feat-x264-encoding-options-misc-preferences"> | 3869 <sect3 id="menc-feat-x264-encoding-options-misc-preferences"> |
4285 me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 \ | 4299 me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 \ |
4286 -vf crop=720:352:0:62,scale=-10:-1,harddup \ | 4300 -vf crop=720:352:0:62,scale=-10:-1,harddup \ |
4287 -oac faac -faacopts br=192:mpeg=4:object=1 -channels 2 -srate 48000 \ | 4301 -oac faac -faacopts br=192:mpeg=4:object=1 -channels 2 -srate 48000 \ |
4288 -ofps 24000/1001</screen> | 4302 -ofps 24000/1001</screen> |
4289 | 4303 |
4290 If you have multi-processor machine, you can add | 4304 If you have a multi-processor machine, don't miss the opportunity to |
4291 <option>threads=auto</option>. This increases encoding speed by about | 4305 dramatically speed-up encoding by enabling |
4292 94% per CPU core, with very little quality penalty (about 0.005dB for | 4306 <link linkend="menc-feat-x264-encoding-options-speedvquality-threads"> |
4293 dual processor, about 0.01dB for a quad processor machine). | 4307 <systemitem class="library">x264</systemitem>'s multi-threading mode</link> |
4308 by adding <option>threads=auto</option> to your <option>x264encopts</option> | |
4309 command-line. | |
4294 </para> | 4310 </para> |
4295 | 4311 |
4296 <para> | 4312 <para> |
4297 The second pass is the same, except that you specify the output file | 4313 The second pass is the same, except that you specify the output file |
4298 and set <option>pass=2</option>. | 4314 and set <option>pass=2</option>. |