Skip to content

Commit 3157d75

Browse files
committed
Leave the values for qmin and qmax at their default values except
for mpeg2. Changing them for the other codecs resultet in exporting with the wrong bitrate.
1 parent f660109 commit 3157d75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/FFmpegWriter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,8 +1202,10 @@ AVStream *FFmpegWriter::add_video_stream() {
12021202
) {
12031203
c->bit_rate = info.video_bit_rate;
12041204
if (info.video_bit_rate >= 1500000) {
1205-
c->qmin = 2;
1206-
c->qmax = 30;
1205+
if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
1206+
c->qmin = 3;
1207+
c->qmax = 30;
1208+
}
12071209
}
12081210
// Here should be the setting for low fixed bitrate
12091211
// Defaults are used because mpeg2 otherwise had problems

0 commit comments

Comments
 (0)