aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-05-11 02:07:15 +0200
committerdec05eba <dec05eba@protonmail.com>2024-05-11 02:07:15 +0200
commit952aa1bf51e479c23c11d12528ccd8409cf06f88 (patch)
treed83834228801ab90497b7aadbff694efc007a46c /src
parentcd7aa77bf5b0433644ee1ea8c5598fc1912258df (diff)
Change nvidia h264 quality options
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d31d4b0..f6ab23f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -667,16 +667,16 @@ static void open_video(AVCodecContext *codec_context, VideoQuality video_quality
} else if(codec_context->codec_id == AV_CODEC_ID_H264) {
switch(video_quality) {
case VideoQuality::MEDIUM:
- av_dict_set_int(&options, "qp", 37 * qp_multiply, 0);
+ av_dict_set_int(&options, "qp", 34 * qp_multiply, 0);
break;
case VideoQuality::HIGH:
- av_dict_set_int(&options, "qp", 32 * qp_multiply, 0);
+ av_dict_set_int(&options, "qp", 30 * qp_multiply, 0);
break;
case VideoQuality::VERY_HIGH:
- av_dict_set_int(&options, "qp", 27 * qp_multiply, 0);
+ av_dict_set_int(&options, "qp", 26 * qp_multiply, 0);
break;
case VideoQuality::ULTRA:
- av_dict_set_int(&options, "qp", 21 * qp_multiply, 0);
+ av_dict_set_int(&options, "qp", 22 * qp_multiply, 0);
break;
}
} else {