Skip to content

Commit 2ce6e41

Browse files
committed
ffmpeg_opt: Set the video VBV parameters only for the video stream from -target
Signed-off-by: Michael Niedermayer <[email protected]>
1 parent bd46e78 commit 2ce6e41

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ffmpeg_opt.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -2341,9 +2341,9 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
23412341
opt_default(NULL, "g", norm == PAL ? "15" : "18");
23422342

23432343
opt_default(NULL, "b:v", "1150000");
2344-
opt_default(NULL, "maxrate", "1150000");
2345-
opt_default(NULL, "minrate", "1150000");
2346-
opt_default(NULL, "bufsize", "327680"); // 40*1024*8;
2344+
opt_default(NULL, "maxrate:v", "1150000");
2345+
opt_default(NULL, "minrate:v", "1150000");
2346+
opt_default(NULL, "bufsize:v", "327680"); // 40*1024*8;
23472347

23482348
opt_default(NULL, "b:a", "224000");
23492349
parse_option(o, "ar", "44100", options);
@@ -2370,9 +2370,9 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
23702370
opt_default(NULL, "g", norm == PAL ? "15" : "18");
23712371

23722372
opt_default(NULL, "b:v", "2040000");
2373-
opt_default(NULL, "maxrate", "2516000");
2374-
opt_default(NULL, "minrate", "0"); // 1145000;
2375-
opt_default(NULL, "bufsize", "1835008"); // 224*1024*8;
2373+
opt_default(NULL, "maxrate:v", "2516000");
2374+
opt_default(NULL, "minrate:v", "0"); // 1145000;
2375+
opt_default(NULL, "bufsize:v", "1835008"); // 224*1024*8;
23762376
opt_default(NULL, "scan_offset", "1");
23772377

23782378
opt_default(NULL, "b:a", "224000");
@@ -2392,9 +2392,9 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
23922392
opt_default(NULL, "g", norm == PAL ? "15" : "18");
23932393

23942394
opt_default(NULL, "b:v", "6000000");
2395-
opt_default(NULL, "maxrate", "9000000");
2396-
opt_default(NULL, "minrate", "0"); // 1500000;
2397-
opt_default(NULL, "bufsize", "1835008"); // 224*1024*8;
2395+
opt_default(NULL, "maxrate:v", "9000000");
2396+
opt_default(NULL, "minrate:v", "0"); // 1500000;
2397+
opt_default(NULL, "bufsize:v", "1835008"); // 224*1024*8;
23982398

23992399
opt_default(NULL, "packetsize", "2048"); // from www.mpucoder.com: DVD sectors contain 2048 bytes of data, this is also the size of one pack.
24002400
opt_default(NULL, "muxrate", "10080000"); // from mplex project: data_rate = 1260000. mux_rate = data_rate * 8

0 commit comments

Comments
 (0)