From: Steinar H. Gunderson Date: Sat, 5 Aug 2023 16:07:02 +0000 (+0200) Subject: Explicitly set VBR for AV1 (the default is CRF, seemingly). X-Git-Tag: 2.3.0~27 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=ecbf6f98414cc2aab099ef1cde1f66524fa3c0b1 Explicitly set VBR for AV1 (the default is CRF, seemingly). --- diff --git a/nageru/av1_encoder.cpp b/nageru/av1_encoder.cpp index ca9f7c3..d29b467 100644 --- a/nageru/av1_encoder.cpp +++ b/nageru/av1_encoder.cpp @@ -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()).