Better amd/intel quality tuning

This commit is contained in:
dec05eba 2023-04-08 02:03:50 +02:00
parent 6a92aaba7f
commit de72b93b0d

View File

@ -602,16 +602,16 @@ static void open_video(AVCodecContext *codec_context, VideoQuality video_quality
} else { } else {
switch(video_quality) { switch(video_quality) {
case VideoQuality::MEDIUM: case VideoQuality::MEDIUM:
av_dict_set_int(&options, "qp", 37, 0);
break;
case VideoQuality::HIGH:
av_dict_set_int(&options, "qp", 32, 0); av_dict_set_int(&options, "qp", 32, 0);
break; break;
case VideoQuality::HIGH:
av_dict_set_int(&options, "qp", 28, 0);
break;
case VideoQuality::VERY_HIGH: case VideoQuality::VERY_HIGH:
av_dict_set_int(&options, "qp", 27, 0); av_dict_set_int(&options, "qp", 24, 0);
break; break;
case VideoQuality::ULTRA: case VideoQuality::ULTRA:
av_dict_set_int(&options, "qp", 21, 0); av_dict_set_int(&options, "qp", 18, 0);
break; break;
} }