From d85347cfe378412c15f54134b8d7f1dd615363c3 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 9 Jul 2022 17:19:44 +0000 Subject: [PATCH] h264-encoder: Set quality This is to get libav to stop complaining about quality not being set --- src/h264-encoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/h264-encoder.c b/src/h264-encoder.c index 5c69041..1954334 100644 --- a/src/h264-encoder.c +++ b/src/h264-encoder.c @@ -312,6 +312,7 @@ static int h264_encoder__init_codec_context(struct h264_encoder* self, c->pix_fmt = AV_PIX_FMT_VAAPI; c->gop_size = INT32_MAX; /* We'll select key frames manually */ c->max_b_frames = 0; /* B-frames are bad for latency */ + c->global_quality = 20; /* open-h264 requires baseline profile, so we use constrained * baseline.