From 1260598e9e52c32c483743afa3b95a0d87c39a8c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 1 Dec 2023 11:17:29 +0100 Subject: Reconfigure quality for av1 and hevc vaapi --- src/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 8cc08c6..9567102 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -393,13 +393,13 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt, codec_context->global_quality = 180; break; case VideoQuality::HIGH: - codec_context->global_quality = 120; + codec_context->global_quality = 140; break; case VideoQuality::VERY_HIGH: - codec_context->global_quality = 100; + codec_context->global_quality = 120; break; case VideoQuality::ULTRA: - codec_context->global_quality = 70; + codec_context->global_quality = 100; break; } } @@ -720,16 +720,16 @@ static void open_video(AVCodecContext *codec_context, VideoQuality video_quality } else { switch(video_quality) { case VideoQuality::MEDIUM: - av_dict_set_int(&options, "qp", 40, 0); + av_dict_set_int(&options, "qp", 36, 0); break; case VideoQuality::HIGH: - av_dict_set_int(&options, "qp", 35, 0); + av_dict_set_int(&options, "qp", 32, 0); break; case VideoQuality::VERY_HIGH: - av_dict_set_int(&options, "qp", 30, 0); + av_dict_set_int(&options, "qp", 28, 0); break; case VideoQuality::ULTRA: - av_dict_set_int(&options, "qp", 24, 0); + av_dict_set_int(&options, "qp", 22, 0); break; } } -- cgit v1.2.3