]> git.sesse.net Git - nageru/commitdiff
Explicitly set VBR for AV1 (the default is CRF, seemingly).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 5 Aug 2023 16:07:02 +0000 (18:07 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 5 Aug 2023 16:07:02 +0000 (18:07 +0200)
nageru/av1_encoder.cpp

index ca9f7c3d4f34480727a238bfe2ad65dc7ebab7be..d29b467c48cf512562ec7213d59dec0ca72d75cd 100644 (file)
@@ -155,6 +155,7 @@ void AV1Encoder::init_av1()
        config.frame_rate_numerator = global_flags.av1_fps_num;
        config.frame_rate_denominator = global_flags.av1_fps_den;
        config.encoder_bit_depth = global_flags.bit_depth;
+       config.rate_control_mode = 1;  // VBR.
        config.target_bit_rate = global_flags.av1_bitrate * 1000;
 
        // NOTE: These should be in sync with the ones in quicksync_encoder.cpp (sps_rbsp()).