aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-08 12:38:39 +0000
committerGravatar iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-08 12:38:39 +0000
commit9f3bc811f40afb87cdec31001e4f6c84789ecc12 (patch)
tree69092d654204048347ab0d188b734153d8929cce /libmpcodecs
parent3f544ef6eda1ed4b477fb387c5287bb35b0e2f75 (diff)
Adds a parameter 'scenecut', to control the threshold for inserting extra I-frames.
patch by Loren Merritt git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13585 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_x264.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c
index a488073db4..7b3584cf00 100644
--- a/libmpcodecs/ve_x264.c
+++ b/libmpcodecs/ve_x264.c
@@ -63,6 +63,7 @@ static int qp_constant = 26;
static int frame_ref = 1;
static int iframe = 250;
static int idrframe = 2;
+static int scenecut_threshold = 40;
static int bframe = 0;
static int deblock = 1;
static int deblockalpha = 0;
@@ -92,6 +93,7 @@ m_option_t x264encopts_conf[] = {
{"frameref", &frame_ref, CONF_TYPE_INT, CONF_RANGE, 1, 15, NULL},
{"keyint", &iframe, CONF_TYPE_INT, CONF_RANGE, 1, 24000000, NULL},
{"idrint", &idrframe, CONF_TYPE_INT, CONF_RANGE, 1, 24000000, NULL},
+ {"scenecut", &scenecut_threshold, CONF_TYPE_INT, CONF_RANGE, -1, 100, NULL},
{"bframes", &bframe, CONF_TYPE_INT, CONF_RANGE, 0, 16, NULL},
{"deblock", &deblock, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nodeblock", &deblock, CONF_TYPE_FLAG, 0, 1, 0, NULL},
@@ -132,6 +134,7 @@ static int config(struct vf_instance_s* vf, int width, int height, int d_width,
mod->param.i_frame_reference = frame_ref;
mod->param.i_idrframe = idrframe;
mod->param.i_iframe = iframe;
+ mod->param.i_scenecut_threshold = scenecut_threshold;
mod->param.i_bframe = bframe;
mod->param.b_deblocking_filter = deblock;
mod->param.i_deblocking_filter_alphac0 = deblockalpha;