Browse Source

ffmpeg: fix cqp rate control on svtav1

global_quality does not get respected. Specifying via priv_data does
work however
Chris 3 years ago
parent
commit
a463326e37
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/obs-ffmpeg/obs-ffmpeg-av1.c

+ 2 - 0
plugins/obs-ffmpeg/obs-ffmpeg-av1.c

@@ -115,6 +115,8 @@ static bool av1_update(struct av1_encoder *enc, obs_data_t *settings)
 #else
 			av_opt_set(enc->ffve.context->priv_data, "rc", "cqp",
 				   0);
+			av_opt_set_int(enc->ffve.context->priv_data, "qp", cqp,
+				       0);
 #endif
 		}