diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-25 16:43:59 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-25 16:43:59 +0000 |
commit | 1891a9a6f7ff6ebd4cc317dad43d784a688dc21f (patch) | |
tree | 9088d44ee3722d2fbf108e941e48fd31446b8eb3 /DOCS/xml | |
parent | 7a3909684e7198520089149775748b9d503b76be (diff) |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16597 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml')
-rw-r--r-- | DOCS/xml/en/encoding-guide.xml | 172 |
1 files changed, 147 insertions, 25 deletions
diff --git a/DOCS/xml/en/encoding-guide.xml b/DOCS/xml/en/encoding-guide.xml index c1d87eb17b..193283d5e9 100644 --- a/DOCS/xml/en/encoding-guide.xml +++ b/DOCS/xml/en/encoding-guide.xml @@ -2507,6 +2507,62 @@ An example with AC3 compression: </itemizedlist> </sect2> +<sect2 id="menc-feat-mpeg4-lavc-example-settings"> +<title>Encoding settings examples</title> + +<para> + The following settings are examples of different encoding + options combinations that affect the speed VS quality tradeoff + given the same target bitrate. +</para> + +<para> + All the encoding settings were tested on a 720x448 @30000/1001 fps + video sample, the target bitrate was 900kbps, and the machine was an + AMD-64 3400+ at 2400 Mhz in 64 bits mode. + Each encoding setting features the measured the encoding speed (in + frames per seconds) and the PSNR loss (in dB) compared to the "Very + high quality" setting. + Please understand that depending on your source, your machine type + and the development breakthrough, you may get very different results. +</para> + +<para> +<informaltable frame="all"> +<tgroup cols="4"> +<thead> +<row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row> +</thead> +<tbody> +<row> + <entry>Very high quality</entry> + <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> + <entry>6fps</entry> + <entry>0dB</entry> +</row> +<row> + <entry>High quality</entry> + <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> + <entry>15fps</entry> + <entry>-0.5dB</entry> +</row> +<row> + <entry>Fast</entry> + <entry><option>vcodec=mpeg4:mbd=2:trell:v4mv:turbo:psnr</option></entry> + <entry>42fps</entry> + <entry>-0.74dB</entry> +</row> +<row> + <entry>Realtime</entry> + <entry><option>vcodec=mpeg4:mbd=2:turbo:psnr</option></entry> + <entry>54fps</entry> + <entry>-1.21dB</entry> +</row> +</tbody> +</tgroup> +</informaltable> +</para> +</sect2> <sect2 id="custommatrices"><title>Custom inter/intra matrices</title> @@ -3186,6 +3242,64 @@ codec</title> </tgroup> </informaltable> </sect2> + +<sect2 id="menc-feat-xvid-example-settings"> +<title>Encoding settings examples</title> + +<para> + The following settings are examples of different encoding + options combinations that affect the speed VS quality tradeoff + given the same target bitrate. +</para> + +<para> + All the encoding settings were tested on a 720x448 @30000/1001 fps + video sample, the target bitrate was 900kbps, and the machine was an + AMD-64 3400+ at 2400 Mhz in 64 bits mode. + Each encoding setting features the measured the encoding speed (in + frames per seconds) and the PSNR loss (in dB) compared to the "Very + high quality" setting. + Please understand that depending on your source, your machine type + and the development breakthrough, you may get very different results. +</para> + +<para> +<informaltable frame="all"> +<tgroup cols="4"> +<thead> +<row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row> +</thead> +<tbody> +<row> + <entry>Very high quality</entry> + <entry><option>chroma_opt:vhq=4:bvhq=1:quant_type=mpeg</option></entry> + <entry>16fps</entry> + <entry>0dB</entry> +</row> +<row> + <entry>High quality</entry> + <entry><option>vhq=2:bvhq=1:psnr:chroma_opt:quant_type=mpeg:psnr</option></entry> + <entry>18fps</entry> + <entry>-0.1dB</entry> +</row> +<row> + <entry>Fast</entry> + <entry><option>turbo:vhq=0:psnr</option></entry> + <entry>28fps</entry> + <entry>-0.69dB</entry> +</row> +<row> + <entry>Realtime</entry> + <entry><option>turbo:nochroma_me:notrellis:max_bframes=0:vhq=0:psnr</option></entry> + <entry>38fps</entry> + <entry>-1.48dB</entry> +</row> +</tbody> +</tgroup> +</informaltable> +</para> +</sect2> + </sect1> <sect1 id="menc-feat-x264"> @@ -3658,40 +3772,48 @@ codec</title> The following settings are examples of different encoding options combinations that affect the speed VS quality tradeoff given the same target bitrate. - - If you are aiming at perfect quality without too much thinking and - no size limitation, a low constant quantizer encode (like with - <option>qp_constant=18</option>) with no B-frames - (<option>bframes=0</option>) will probably look very good, but - will needlessly spend lots of bits to encode details that could be - coded more wisely using some advanced settings. </para> <para> All the encoding settings were tested on a 720x448 @30000/1001 fps video sample, the target bitrate was 900kbps, and the machine was an AMD-64 3400+ at 2400 Mhz in 64 bits mode. - Each encoding setting is followed by the encoding speed (in frames - per seconds), the compression efficiency loss (in percent of bitrate) - compared to the "very high quality" setting, and the PSNR loss (in dB). - Please understand that depending on your source your machine type + Each encoding setting features the measured the encoding speed (in + frames per seconds) and the PSNR loss (in dB) compared to the "Very + high quality" setting. + Please understand that depending on your source, your machine type and the development breakthrough, you may get very different results. </para> -<itemizedlist> -<listitem><para><emphasis role="bold">Very high quality:</emphasis> -<option>subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b</option> -6fps, 0%, 0dB. -</para></listitem> -<listitem><para><emphasis role="bold">High quality:</emphasis> -<option>subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:psnr</option> -13fps, -13%, -0.89dB. -</para></listitem> -<listitem><para><emphasis role="bold">Fast:</emphasis> -<option>subq=4:bframes=2:b_pyramid:weight_b:psnr</option> -17fps, -20%, -1.48dB. -</para></listitem> -</itemizedlist> +<para> +<informaltable frame="all"> +<tgroup cols="4"> +<thead> +<row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row> +</thead> +<tbody> +<row> + <entry>Very high quality</entry> + <entry><option>subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b</option></entry> + <entry>6fps</entry> + <entry>0dB</entry> +</row> +<row> + <entry>High quality</entry> + <entry><option>subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:psnr</option></entry> + <entry>13fps</entry> + <entry>-0.89dB</entry> +</row> +<row> + <entry>Fast</entry> + <entry><option>subq=4:bframes=2:b_pyramid:weight_b:psnr</option></entry> + <entry>17fps</entry> + <entry>-1.48dB</entry> +</row> +</tbody> +</tgroup> +</informaltable> +</para> </sect2> </sect1> |