diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-12-01 11:17:29 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-12-01 11:17:29 +0100 |
commit | 1260598e9e52c32c483743afa3b95a0d87c39a8c (patch) | |
tree | 4c089028bd9717fe2a489fd06262be2369738f02 /src/main.cpp | |
parent | 8e66363352eed29b70cab5817810881719d7cd76 (diff) |
Reconfigure quality for av1 and hevc vaapi
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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; } } |