mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
-lavcopts vme= option to set motion estimation method - patch by Rich Felker <dalias@aerifal.cx>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4208 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1b601664e5
commit
46674e633c
@ -51,6 +51,7 @@ struct config lavcopts_conf[]={
|
|||||||
{"vcodec", &lavc_param_vcodec, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
{"vcodec", &lavc_param_vcodec, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||||
{"vbitrate", &lavc_param_vbitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000, NULL},
|
{"vbitrate", &lavc_param_vbitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000, NULL},
|
||||||
{"vhq", &lavc_param_vhq, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
{"vhq", &lavc_param_vhq, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||||
|
{"vme", &lavc_param_vme, CONF_TYPE_FLAG, CONF_RANGE, 0, 3, NULL},
|
||||||
{"keyint", &lavc_param_keyint, CONF_TYPE_INT, 0, 0, 0, NULL},
|
{"keyint", &lavc_param_keyint, CONF_TYPE_INT, 0, 0, 0, NULL},
|
||||||
{NULL, NULL, 0, 0, 0, 0, NULL}
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
||||||
};
|
};
|
||||||
|
@ -67,6 +67,7 @@ extern int avcodec_inited;
|
|||||||
char *lavc_param_vcodec = NULL;
|
char *lavc_param_vcodec = NULL;
|
||||||
int lavc_param_vbitrate = -1;
|
int lavc_param_vbitrate = -1;
|
||||||
int lavc_param_vhq = 0; /* default is realtime encoding */
|
int lavc_param_vhq = 0; /* default is realtime encoding */
|
||||||
|
int lavc_param_vme = 3;
|
||||||
int lavc_param_keyint = -1;
|
int lavc_param_keyint = -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -905,6 +906,11 @@ case VCODEC_LIBAVCODEC:
|
|||||||
else
|
else
|
||||||
lavc_venc_context.flags = 0;
|
lavc_venc_context.flags = 0;
|
||||||
|
|
||||||
|
/* motion estimation (0 = none ... 3 = high quality but slow) */
|
||||||
|
/* this is just an extern from libavcodec but it should be in the
|
||||||
|
encoder context - FIXME */
|
||||||
|
motion_estimation_method = lavc_param_vme;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* fixed qscale :p */
|
/* fixed qscale :p */
|
||||||
lavc_venc_context.flags |= CODEC_FLAG_QSCALE;
|
lavc_venc_context.flags |= CODEC_FLAG_QSCALE;
|
||||||
|
Loading…
Reference in New Issue
Block a user