[FFmpeg-devel] [PATCH] ffmpeg.c use b:v for video bitrates using a target
Jean First
jeanfirst at gmail.com
Tue Nov 29 17:48:59 CET 2011
it's more consistent to use -b:v instead of just -b
---
ffmpeg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 577425b..0dbe1b9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4418,7 +4418,7 @@ static int opt_target(OptionsContext *o, const char *opt, const char *arg)
parse_option(o, "r", frame_rates[norm], options);
opt_default("g", norm == PAL ? "15" : "18");
- opt_default("b", "1150000");
+ opt_default("b:v", "1150000");
opt_default("maxrate", "1150000");
opt_default("minrate", "1150000");
opt_default("bufsize", "327680"); // 40*1024*8;
@@ -4447,7 +4447,7 @@ static int opt_target(OptionsContext *o, const char *opt, const char *arg)
parse_option(o, "pix_fmt", "yuv420p", options);
opt_default("g", norm == PAL ? "15" : "18");
- opt_default("b", "2040000");
+ opt_default("b:v", "2040000");
opt_default("maxrate", "2516000");
opt_default("minrate", "0"); //1145000;
opt_default("bufsize", "1835008"); //224*1024*8;
@@ -4470,7 +4470,7 @@ static int opt_target(OptionsContext *o, const char *opt, const char *arg)
parse_option(o, "pix_fmt", "yuv420p", options);
opt_default("g", norm == PAL ? "15" : "18");
- opt_default("b", "6000000");
+ opt_default("b:v", "6000000");
opt_default("maxrate", "9000000");
opt_default("minrate", "0"); //1500000;
opt_default("bufsize", "1835008"); //224*1024*8;
--
1.7.7.3
More information about the ffmpeg-devel
mailing list