Commit 4e5adb87 authored by Henrik Gramner's avatar Henrik Gramner Committed by Anton Mitrofanov
Browse files

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).
parent 1e4fb55a
...@@ -221,7 +221,6 @@ static int x264_param_apply_preset( x264_param_t *param, const char *preset ) ...@@ -221,7 +221,6 @@ static int x264_param_apply_preset( x264_param_t *param, const char *preset )
} }
else if( !strcasecmp( preset, "veryfast" ) ) else if( !strcasecmp( preset, "veryfast" ) )
{ {
param->analyse.i_me_method = X264_ME_HEX;
param->analyse.i_subpel_refine = 2; param->analyse.i_subpel_refine = 2;
param->i_frame_reference = 1; param->i_frame_reference = 1;
param->analyse.b_mixed_references = 0; param->analyse.b_mixed_references = 0;
...@@ -250,11 +249,10 @@ static int x264_param_apply_preset( x264_param_t *param, const char *preset ) ...@@ -250,11 +249,10 @@ static int x264_param_apply_preset( x264_param_t *param, const char *preset )
} }
else if( !strcasecmp( preset, "slow" ) ) else if( !strcasecmp( preset, "slow" ) )
{ {
param->analyse.i_me_method = X264_ME_UMH;
param->analyse.i_subpel_refine = 8; param->analyse.i_subpel_refine = 8;
param->i_frame_reference = 5; 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_direct_mv_pred = X264_DIRECT_PRED_AUTO;
param->analyse.i_trellis = 2;
param->rc.i_lookahead = 50; param->rc.i_lookahead = 50;
} }
else if( !strcasecmp( preset, "slower" ) ) else if( !strcasecmp( preset, "slower" ) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment