comparison DOCS/xml/en/encoding-guide.xml @ 16596:0e73f31bfc6a

Adds encoding setting examples for lavc and XviD. Remove the references to constant quant in x264 section (Jeff did not like that :-) ). Put all examples in a table so that it they are easier to read.
author gpoirier
date Sun, 25 Sep 2005 16:43:59 +0000
parents 1d524afe2f9c
children ec3b4dcfc5f9
comparison
equal deleted inserted replaced
16595:b3a9fb41f475 16596:0e73f31bfc6a
2505 artifacts, but postprocessing is better. 2505 artifacts, but postprocessing is better.
2506 </para></listitem> 2506 </para></listitem>
2507 </itemizedlist> 2507 </itemizedlist>
2508 </sect2> 2508 </sect2>
2509 2509
2510 <sect2 id="menc-feat-mpeg4-lavc-example-settings">
2511 <title>Encoding settings examples</title>
2512
2513 <para>
2514 The following settings are examples of different encoding
2515 options combinations that affect the speed VS quality tradeoff
2516 given the same target bitrate.
2517 </para>
2518
2519 <para>
2520 All the encoding settings were tested on a 720x448 @30000/1001 fps
2521 video sample, the target bitrate was 900kbps, and the machine was an
2522 AMD-64 3400+ at 2400 Mhz in 64 bits mode.
2523 Each encoding setting features the measured the encoding speed (in
2524 frames per seconds) and the PSNR loss (in dB) compared to the "Very
2525 high quality" setting.
2526 Please understand that depending on your source, your machine type
2527 and the development breakthrough, you may get very different results.
2528 </para>
2529
2530 <para>
2531 <informaltable frame="all">
2532 <tgroup cols="4">
2533 <thead>
2534 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row>
2535 </thead>
2536 <tbody>
2537 <row>
2538 <entry>Very high quality</entry>
2539 <entry><option>vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:vme=5:naq:qns=2</option></entry>
2540 <entry>6fps</entry>
2541 <entry>0dB</entry>
2542 </row>
2543 <row>
2544 <entry>High quality</entry>
2545 <entry><option>vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo:psnr</option></entry>
2546 <entry>15fps</entry>
2547 <entry>-0.5dB</entry>
2548 </row>
2549 <row>
2550 <entry>Fast</entry>
2551 <entry><option>vcodec=mpeg4:mbd=2:trell:v4mv:turbo:psnr</option></entry>
2552 <entry>42fps</entry>
2553 <entry>-0.74dB</entry>
2554 </row>
2555 <row>
2556 <entry>Realtime</entry>
2557 <entry><option>vcodec=mpeg4:mbd=2:turbo:psnr</option></entry>
2558 <entry>54fps</entry>
2559 <entry>-1.21dB</entry>
2560 </row>
2561 </tbody>
2562 </tgroup>
2563 </informaltable>
2564 </para>
2565 </sect2>
2510 2566
2511 <sect2 id="custommatrices"><title>Custom inter/intra matrices</title> 2567 <sect2 id="custommatrices"><title>Custom inter/intra matrices</title>
2512 2568
2513 <para> 2569 <para>
2514 With this feature of 2570 With this feature of
3184 </row> 3240 </row>
3185 </tbody> 3241 </tbody>
3186 </tgroup> 3242 </tgroup>
3187 </informaltable> 3243 </informaltable>
3188 </sect2> 3244 </sect2>
3245
3246 <sect2 id="menc-feat-xvid-example-settings">
3247 <title>Encoding settings examples</title>
3248
3249 <para>
3250 The following settings are examples of different encoding
3251 options combinations that affect the speed VS quality tradeoff
3252 given the same target bitrate.
3253 </para>
3254
3255 <para>
3256 All the encoding settings were tested on a 720x448 @30000/1001 fps
3257 video sample, the target bitrate was 900kbps, and the machine was an
3258 AMD-64 3400+ at 2400 Mhz in 64 bits mode.
3259 Each encoding setting features the measured the encoding speed (in
3260 frames per seconds) and the PSNR loss (in dB) compared to the "Very
3261 high quality" setting.
3262 Please understand that depending on your source, your machine type
3263 and the development breakthrough, you may get very different results.
3264 </para>
3265
3266 <para>
3267 <informaltable frame="all">
3268 <tgroup cols="4">
3269 <thead>
3270 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row>
3271 </thead>
3272 <tbody>
3273 <row>
3274 <entry>Very high quality</entry>
3275 <entry><option>chroma_opt:vhq=4:bvhq=1:quant_type=mpeg</option></entry>
3276 <entry>16fps</entry>
3277 <entry>0dB</entry>
3278 </row>
3279 <row>
3280 <entry>High quality</entry>
3281 <entry><option>vhq=2:bvhq=1:psnr:chroma_opt:quant_type=mpeg:psnr</option></entry>
3282 <entry>18fps</entry>
3283 <entry>-0.1dB</entry>
3284 </row>
3285 <row>
3286 <entry>Fast</entry>
3287 <entry><option>turbo:vhq=0:psnr</option></entry>
3288 <entry>28fps</entry>
3289 <entry>-0.69dB</entry>
3290 </row>
3291 <row>
3292 <entry>Realtime</entry>
3293 <entry><option>turbo:nochroma_me:notrellis:max_bframes=0:vhq=0:psnr</option></entry>
3294 <entry>38fps</entry>
3295 <entry>-1.48dB</entry>
3296 </row>
3297 </tbody>
3298 </tgroup>
3299 </informaltable>
3300 </para>
3301 </sect2>
3302
3189 </sect1> 3303 </sect1>
3190 3304
3191 <sect1 id="menc-feat-x264"> 3305 <sect1 id="menc-feat-x264">
3192 <title>Encoding with the <systemitem class="library">x264</systemitem> codec</title> 3306 <title>Encoding with the <systemitem class="library">x264</systemitem> codec</title>
3193 <para> 3307 <para>
3656 3770
3657 <para> 3771 <para>
3658 The following settings are examples of different encoding 3772 The following settings are examples of different encoding
3659 options combinations that affect the speed VS quality tradeoff 3773 options combinations that affect the speed VS quality tradeoff
3660 given the same target bitrate. 3774 given the same target bitrate.
3661
3662 If you are aiming at perfect quality without too much thinking and
3663 no size limitation, a low constant quantizer encode (like with
3664 <option>qp_constant=18</option>) with no B-frames
3665 (<option>bframes=0</option>) will probably look very good, but
3666 will needlessly spend lots of bits to encode details that could be
3667 coded more wisely using some advanced settings.
3668 </para> 3775 </para>
3669 3776
3670 <para> 3777 <para>
3671 All the encoding settings were tested on a 720x448 @30000/1001 fps 3778 All the encoding settings were tested on a 720x448 @30000/1001 fps
3672 video sample, the target bitrate was 900kbps, and the machine was an 3779 video sample, the target bitrate was 900kbps, and the machine was an
3673 AMD-64 3400+ at 2400 Mhz in 64 bits mode. 3780 AMD-64 3400+ at 2400 Mhz in 64 bits mode.
3674 Each encoding setting is followed by the encoding speed (in frames 3781 Each encoding setting features the measured the encoding speed (in
3675 per seconds), the compression efficiency loss (in percent of bitrate) 3782 frames per seconds) and the PSNR loss (in dB) compared to the "Very
3676 compared to the "very high quality" setting, and the PSNR loss (in dB). 3783 high quality" setting.
3677 Please understand that depending on your source your machine type 3784 Please understand that depending on your source, your machine type
3678 and the development breakthrough, you may get very different results. 3785 and the development breakthrough, you may get very different results.
3679 </para> 3786 </para>
3680 3787
3681 <itemizedlist> 3788 <para>
3682 <listitem><para><emphasis role="bold">Very high quality:</emphasis> 3789 <informaltable frame="all">
3683 <option>subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b</option> 3790 <tgroup cols="4">
3684 6fps, 0%, 0dB. 3791 <thead>
3685 </para></listitem> 3792 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row>
3686 <listitem><para><emphasis role="bold">High quality:</emphasis> 3793 </thead>
3687 <option>subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:psnr</option> 3794 <tbody>
3688 13fps, -13%, -0.89dB. 3795 <row>
3689 </para></listitem> 3796 <entry>Very high quality</entry>
3690 <listitem><para><emphasis role="bold">Fast:</emphasis> 3797 <entry><option>subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b</option></entry>
3691 <option>subq=4:bframes=2:b_pyramid:weight_b:psnr</option> 3798 <entry>6fps</entry>
3692 17fps, -20%, -1.48dB. 3799 <entry>0dB</entry>
3693 </para></listitem> 3800 </row>
3694 </itemizedlist> 3801 <row>
3802 <entry>High quality</entry>
3803 <entry><option>subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:psnr</option></entry>
3804 <entry>13fps</entry>
3805 <entry>-0.89dB</entry>
3806 </row>
3807 <row>
3808 <entry>Fast</entry>
3809 <entry><option>subq=4:bframes=2:b_pyramid:weight_b:psnr</option></entry>
3810 <entry>17fps</entry>
3811 <entry>-1.48dB</entry>
3812 </row>
3813 </tbody>
3814 </tgroup>
3815 </informaltable>
3816 </para>
3695 </sect2> 3817 </sect2>
3696 3818
3697 </sect1> 3819 </sect1>
3698 3820
3699 <sect1 id="menc-feat-vcd-dvd"> 3821 <sect1 id="menc-feat-vcd-dvd">