Skip to content

Commit 4ed575f

Browse files
authored
Merge pull request #539 from eisneinechse/bitratecorrect
Bitratecorrect
2 parents a0cfe2e + 6114be5 commit 4ed575f

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 = 2;
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)