Skip to content

Commit

Permalink
Merge pull request #539 from eisneinechse/bitratecorrect
Browse files Browse the repository at this point in the history
Bitratecorrect
  • Loading branch information
jonoomph committed Jul 8, 2020
2 parents a0cfe2e + 6114be5 commit 4ed575f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/FFmpegWriter.cpp
Expand Up @@ -1202,8 +1202,10 @@ AVStream *FFmpegWriter::add_video_stream() {
) {
c->bit_rate = info.video_bit_rate;
if (info.video_bit_rate >= 1500000) {
c->qmin = 2;
c->qmax = 30;
if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
c->qmin = 2;
c->qmax = 30;
}
}
// Here should be the setting for low fixed bitrate
// Defaults are used because mpeg2 otherwise had problems
Expand Down

0 comments on commit 4ed575f

Please sign in to comment.