aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-09-18 09:08:03 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-18 09:08:03 +0000
commit946c8a128185a60f8a594b26e76735b64f1a2a3a (patch)
tree3b0465894533331631eab4a193db1e5b4082bb34 /ffmpeg.c
parentff78c596396f6fa2b1633f84faf486e5c1062047 (diff)
downloadffmpeg-946c8a128185a60f8a594b26e76735b64f1a2a3a.tar.gz
fixing
fixing max_rate/min_rate Originally committed as revision 951 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 40369b8374..59e19bf205 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1369,6 +1369,11 @@ void opt_video_bitrate_min(const char *arg)
video_rc_min_rate = atoi(arg) * 1000;
}
+void opt_video_buffer_size(const char *arg)
+{
+ video_rc_buffer_size = atoi(arg) * 1000;
+}
+
void opt_video_rc_eq(char *arg)
{
video_rc_eq = arg;
@@ -1900,6 +1905,7 @@ void opt_output_file(const char *filename)
video_enc->rc_max_rate = video_rc_max_rate;
video_enc->rc_min_rate = video_rc_min_rate;
video_enc->rc_buffer_size = video_rc_buffer_size;
+ video_enc->rc_buffer_aggressivity= video_rc_buffer_aggressivity;
video_enc->i_quant_factor = video_i_qfactor;
video_enc->b_quant_factor = video_b_qfactor;
video_enc->i_quant_offset = video_i_qoffset;
@@ -2260,6 +2266,7 @@ const OptionDef options[] = {
{ "bt", HAS_ARG, {(void*)opt_video_bitrate_tolerance}, "set video bitrate tolerance (in kbit/s)", "tolerance" },
{ "maxrate", HAS_ARG, {(void*)opt_video_bitrate_max}, "set max video bitrate tolerance (in kbit/s)", "bitrate" },
{ "minrate", HAS_ARG, {(void*)opt_video_bitrate_min}, "set min video bitrate tolerance (in kbit/s)", "bitrate" },
+ { "bufsize", HAS_ARG, {(void*)opt_video_buffer_size}, "set ratecontrol buffere size (in kbit)", "size" },
{ "vd", HAS_ARG | OPT_EXPERT, {(void*)opt_video_device}, "set video grab device", "device" },
{ "vcodec", HAS_ARG | OPT_EXPERT, {(void*)opt_video_codec}, "force video codec", "codec" },
{ "me", HAS_ARG | OPT_EXPERT, {(void*)opt_motion_estimation}, "set motion estimation method",