aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/en/mplayer.114
-rw-r--r--libmpcodecs/ve_lavc.c3
2 files changed, 17 insertions, 0 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
index 292c30a371..47e4cd3315 100644
--- a/DOCS/man/en/mplayer.1
+++ b/DOCS/man/en/mplayer.1
@@ -6811,6 +6811,20 @@ Speed should increase by a factor of 4 every time brd_scale is increased
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.
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 88e2e367e1..9e10f10975 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -157,6 +157,7 @@ static int lavc_param_dc_precision = 8;
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 @@ m_option_t lavcopts_conf[]={
{"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 @@ static int config(struct vf_instance_s* vf,
#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: