You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Adjust the q values for low quality crf settings
This commit is contained in:
@@ -1140,8 +1140,14 @@ AVStream* FFmpegWriter::add_video_stream()
|
||||
// Defaults are used because mpeg2 otherwise had problems
|
||||
}
|
||||
else {
|
||||
c->qmin = 0;
|
||||
c->qmax = 63;
|
||||
if (info.video_bit_rate < 40) {
|
||||
c->qmin = 0;
|
||||
c->qmax = 63;
|
||||
}
|
||||
else {
|
||||
c->qmin = info.video_bit_rate - 5;
|
||||
c->qmax = 63;
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: Implement variable bitrate feature (which actually works). This implementation throws
|
||||
|
||||
Reference in New Issue
Block a user