summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-17 17:09:04 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-17 17:09:04 +0000
commit07629da49394f2010f41d236c612988038942412 (patch)
treeccc5784e18518961d18954ded60a9e9dfbf8d85a /mencoder.c
parent4b7c5a1141d7b4f42478459a433cdfb5f5335619 (diff)
downloadmpv-07629da49394f2010f41d236c612988038942412.tar.bz2
mpv-07629da49394f2010f41d236c612988038942412.tar.xz
supporting ffmpegs "hopefully better bitrate control"
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5167 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index cdf724a9ba..688b08d143 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -74,9 +74,15 @@ static AVPicture lavc_venc_picture;
/* video options */
char *lavc_param_vcodec = NULL;
int lavc_param_vbitrate = -1;
+int lavc_param_vrate_tolerance = 1024*1024*8;
int lavc_param_vhq = 0; /* default is realtime encoding */
int lavc_param_vme = 3;
int lavc_param_vqscale = 0;
+int lavc_param_vqmin = 3;
+int lavc_param_vqmax = 15;
+int lavc_param_vqdiff = 3;
+float lavc_param_vqcompress = 0.5;
+float lavc_param_vqblur = 0.5;
int lavc_param_keyint = -1;
#endif
@@ -1086,7 +1092,13 @@ case VCODEC_LIBAVCODEC:
lavc_venc_context.bit_rate = lavc_param_vbitrate;
else
lavc_venc_context.bit_rate = 800000; /* default */
+ lavc_venc_context.bit_rate_tolerance= lavc_param_vrate_tolerance;
lavc_venc_context.frame_rate = (float)(force_ofps?force_ofps:sh_video->fps) * FRAME_RATE_BASE;
+ lavc_venc_context.qmin= lavc_param_vqmin;
+ lavc_venc_context.qmax= lavc_param_vqmax;
+ lavc_venc_context.max_qdiff= lavc_param_vqdiff;
+ lavc_venc_context.qcompress= lavc_param_vqcompress;
+ lavc_venc_context.qblur= lavc_param_vqblur;
/* keyframe interval */
if (lavc_param_keyint >= 0) /* != -1 */
lavc_venc_context.gop_size = lavc_param_keyint;