[x264-devel] commit: Add more detailed help for presets/tunes/profiles (Alex Jurkiewicz )

git version control git at videolan.org
Wed Dec 9 13:57:27 CET 2009


x264 | branch: master | Alex Jurkiewicz <alex at bluebottle.net.au> | Mon Dec  7 18:17:29 2009 -0800| [a8f670b66ac89d75ef09ff87c940cfe3b328ad2d] | committer: Jason Garrett-Glaser 

Add more detailed help for presets/tunes/profiles
Shows what options they represent.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=a8f670b66ac89d75ef09ff87c940cfe3b328ad2d
---

 x264.c |   83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 74 insertions(+), 9 deletions(-)

diff --git a/x264.c b/x264.c
index 5dc7003..a290100 100644
--- a/x264.c
+++ b/x264.c
@@ -175,17 +175,82 @@ static void Help( x264_param_t *defaults, int longhelp )
     H0( "Presets:\n" );
     H0( "\n" );
     H0( "      --profile               Force H.264 profile [high]\n" );
-    H0( "                                  Overrides all settings\n");
-    H0( "                                  - baseline,main,high\n" );
+    H0( "                                  Overrides all settings\n" );
+    H2( "                                  - baseline:\n"
+        "                                    --no-8x8dct --bframes 0 --no-cabac\n"
+        "                                    --cqm flat --weightp 0 No interlaced\n"
+        "                                    No lossless\n"
+        "                                  - main:\n"
+        "                                    --no-8x8dct --cqm flat No lossless\n"
+        "                                  - high:\n"
+        "                                    No lossless\n" );
+        else H0( "                                  - baseline,main,high\n" );
     H0( "      --preset                Use a preset to select encoding settings [medium]\n" );
-    H0( "                                  Overridden by user settings\n");
-    H0( "                                  - ultrafast,veryfast,faster,fast,medium\n"
-        "                                  - slow,slower,veryslow,placebo\n" );
+    H0( "                                  Overridden by user settings\n" );
+    H2( "                                  - ultrafast:\n"
+        "                                    --no-8x8dct --aq-mode 0 --no-b-adapt\n"
+        "                                    --bframes 0 --no-cabac --no-deblock\n"
+        "                                    --no-mbtree --me dia --no-mixed-refs\n"
+        "                                    --partitions none --ref 1 --scenecut 0\n"
+        "                                    --subme 0 --trellis 0 --weightp 0\n"
+        "                                  - veryfast:\n"
+        "                                    --no-mbtree --me dia --no-mixed-refs\n"
+        "                                    --partitions i8x8i4x4 --ref 1\n"
+        "                                    --subme 1 --trellis 0 --weightp 0\n"
+        "                                  - faster:\n"
+        "                                    --no-mbtree --no-mixed-refs --refs 2\n"
+        "                                    --subme 4 --weightp 1\n"
+        "                                  - fast\n"
+        "                                    --rc-lookahead 30 --ref 2 --subme 6\n"
+        "                                  - medium\n"
+        "                                    Default settings apply.\n"
+        "                                  - slow\n"
+        "                                    --b-adapt 2 --direct auto --me umh\n"
+        "                                    --rc-lookahead 50 --ref 5 --subme 8\n"
+        "                                  - slower\n"
+        "                                    --b-adapt 2 --direct auto --me umh\n"
+        "                                    --partitions all --rc-lookahead 60\n"
+        "                                    --ref 8 --subme 9 --trellis 2\n"
+        "                                  - veryslow\n"
+        "                                    --b-adapt 2 --bframes 8 --direct auto\n"
+        "                                    --me umh --me-range 24 --partitions all\n"
+        "                                    --ref 16 --subme 10 --trellis 2\n"
+        "                                    --rc-lookahead 60\n"
+        "                                  - placebo\n"
+        "                                    --bframes 16 --b-adapt 2 --direct auto\n"
+        "                                    --slow-firstpass --no-fast-pskip\n"
+        "                                    --me tesa --me-range 24 --partitions all\n"
+        "                                    --rc-lookahead 60 --ref 16 --subme 10\n"
+        "                                    --trellis 2\n" );
+    else H0( "                                  - ultrafast,veryfast,faster,fast,medium\n"
+             "                                  - slow,slower,veryslow,placebo\n" );
     H0( "      --tune                  Tune the settings for a particular type of source\n" );
-    H0( "                                  Overridden by user settings\n");
-    H2( "                                  - film,animation,grain,psnr,ssim\n"
-        "                                  - fastdecode,touhou\n");
-    else H0( "                                  - film,animation,grain,psnr,ssim,fastdecode\n");
+    H0( "                                  Overridden by user settings\n" );
+    H2( "                                  - film:\n"
+        "                                    --deblock -1:-1 --psy-rd <unset>:0.15\n"
+        "                                  - animation:\n"
+        "                                    --bframes {+2} --deblock 1:1\n"
+        "                                    --psy-rd 0.4:<unset> --aq-strength 0\n"
+        "                                    --ref {Double if >1 else 1}\n"
+        "                                  - grain:\n"
+        "                                    --aq-strength 0.5 --no-dct-decimate\n"
+        "                                    --deadzone inter 6 --deadzone-intra 6\n"
+        "                                    --deblock -2:-2 --ipratio 1.1 \n"
+        "                                    --pbratio 1.1 --psy-rd <unset>:0.25\n"
+        "                                    --qcomp 0.8\n"
+        "                                  - psnr:\n"
+        "                                    --aq-mode 0 --no-psy\n"
+        "                                  - ssim:\n"
+        "                                    --aq-mode 2 --no-psy\n"
+        "                                  - fastdecode:\n"
+        "                                    --no-cabac --no-deblock --no-weightb\n"
+        "                                    --weightp 0\n"
+        "                                  - touhou:\n"
+        "                                    --aq-strength 1.3 --deblock -1:-1\n"
+        "                                    --partitions {p4x4 if p8x8 set}\n"
+        "                                    --psy-rd <unset>:0.2\n"
+        "                                    --ref {Double if >1 else 1}\n" );
+    else H0( "                                  - film,animation,grain,psnr,ssim,fastdecode\n" );
     H1( "      --slow-firstpass        Don't use faster settings with --pass 1\n" );
     H0( "\n" );
     H0( "Frame-type options:\n" );



More information about the x264-devel mailing list