Index: DOCS/man/en/mplayer.1 =================================================================== RCS file: /cvsroot/mplayer/main/DOCS/man/en/mplayer.1,v retrieving revision 1.1186 diff -u -r1.1186 mplayer.1 --- DOCS/man/en/mplayer.1 26 Dec 2005 06:27:56 -0000 1.1186 +++ DOCS/man/en/mplayer.1 28 Dec 2005 01:12:22 -0000 @@ -6811,6 +6811,20 @@ by 1. . .TP +.B bidir_refine=<0\-4> +Refine the two motion vectors used in bidirectional macroblocks, +rather than re-using vectors from the forward and backward searches. +This option has no effect without B-frames. +.PD 0 +.RSs +.IPs 0 +Disabled (default). +.IPs 1\-4 +Use a wider search (larger values are slower). +.RE +.PD 1 +. +.TP .B vpass=<1\-3> Activates internal two (or more) pass mode, only specify if you wish to use two (or more) pass encoding. Index: libmpcodecs/ve_lavc.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v retrieving revision 1.122 diff -u -r1.122 ve_lavc.c --- libmpcodecs/ve_lavc.c 25 Dec 2005 21:29:18 -0000 1.122 +++ libmpcodecs/ve_lavc.c 28 Dec 2005 01:12:28 -0000 @@ -157,6 +157,7 @@ static int lavc_param_threads= 1; static int lavc_param_turbo = 0; static int lavc_param_brd_scale = 0; +static int lavc_param_bidir_refine = 0; char *lavc_param_acodec = "mp2"; @@ -312,6 +313,7 @@ {"threads", &lavc_param_threads, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL}, {"turbo", &lavc_param_turbo, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"brd_scale", &lavc_param_brd_scale, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL}, + {"bidir_refine", &lavc_param_bidir_refine, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -625,6 +627,7 @@ #endif lavc_venc_context->prediction_method= lavc_param_prediction_method; lavc_venc_context->brd_scale = lavc_param_brd_scale; + lavc_venc_context->bidir_refine = lavc_param_bidir_refine; switch(lavc_param_format) { case IMGFMT_YV12: