[FFmpeg-cvslog] avconv: fix the muxrate values for -target
Anton Khirnov
git at videolan.org
Sat Aug 30 21:08:02 CEST 2014
ffmpeg | branch: release/1.1 | Anton Khirnov <anton at khirnov.net> | Mon Aug 25 21:24:35 2014 +0000| [8d7839fc7c52574dfc22db0181b1cef9cb929910] | committer: Anton Khirnov
avconv: fix the muxrate values for -target
The mpegenc private option values are in 50-byte units.
CC: libav-stable at libav.org
(cherry picked from commit 1688eef25385089026aba55da1885f70a57815ab)
Signed-off-by: Anton Khirnov <anton at khirnov.net>
(cherry picked from commit 7bc37641e3e6c24d472ae06fcbecaba4c863829b)
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8d7839fc7c52574dfc22db0181b1cef9cb929910
---
avconv_opt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/avconv_opt.c b/avconv_opt.c
index 17ec0d9..8f7fb3a 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -1566,7 +1566,7 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
parse_option(o, "ac", "2", options);
opt_default(NULL, "packetsize", "2324");
- opt_default(NULL, "muxrate", "1411200"); // 2352 * 75 * 8;
+ opt_default(NULL, "muxrate", "3528"); // 2352 * 75 / 50;
/* We have to offset the PTS, so that it is consistent with the SCR.
SCR starts at 36000, but the first two packs contain only padding
@@ -1612,7 +1612,7 @@ static int opt_target(void *optctx, const char *opt, const char *arg)
opt_default(NULL, "bufsize", "1835008"); // 224*1024*8;
opt_default(NULL, "packetsize", "2048"); // from www.mpucoder.com: DVD sectors contain 2048 bytes of data, this is also the size of one pack.
- opt_default(NULL, "muxrate", "10080000"); // from mplex project: data_rate = 1260000. mux_rate = data_rate * 8
+ opt_default(NULL, "muxrate", "25200"); // from mplex project: data_rate = 1260000. mux_rate = data_rate / 50
opt_default(NULL, "b:a", "448000");
parse_option(o, "ar", "48000", options);
More information about the ffmpeg-cvslog
mailing list