[x264-devel] Adjust --preset slow
Henrik Gramner
git at videolan.org
Tue Sep 20 20:57:51 CEST 2016
x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Thu Jul 28 19:34:04 2016 +0200| [4e5adb87070c82b937c03e0cc030eae3578c251d] | committer: Anton Mitrofanov
Adjust --preset slow
* Swap --me umh for --trellis 2. They have a similar effect on performance
but the latter gives slightly better results in most cases.
* Change --b-adapt from 2 to 1. Negligible difference in quality since the
b-adapt 1 improvements, but it's significantly faster.
Also remove a redundant assignment from veryfast (--me hex is set by default).
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=4e5adb87070c82b937c03e0cc030eae3578c251d
---
common/common.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/common/common.c b/common/common.c
index 607aefd..029f7b3 100644
--- a/common/common.c
+++ b/common/common.c
@@ -221,7 +221,6 @@ static int x264_param_apply_preset( x264_param_t *param, const char *preset )
}
else if( !strcasecmp( preset, "veryfast" ) )
{
- param->analyse.i_me_method = X264_ME_HEX;
param->analyse.i_subpel_refine = 2;
param->i_frame_reference = 1;
param->analyse.b_mixed_references = 0;
@@ -250,11 +249,10 @@ static int x264_param_apply_preset( x264_param_t *param, const char *preset )
}
else if( !strcasecmp( preset, "slow" ) )
{
- param->analyse.i_me_method = X264_ME_UMH;
param->analyse.i_subpel_refine = 8;
param->i_frame_reference = 5;
- param->i_bframe_adaptive = X264_B_ADAPT_TRELLIS;
param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_AUTO;
+ param->analyse.i_trellis = 2;
param->rc.i_lookahead = 50;
}
else if( !strcasecmp( preset, "slower" ) )
More information about the x264-devel
mailing list