fix(win/qsv): skip unsupported 4:4:4 codecs (#3029)

This commit is contained in:
ns6089
2024-08-19 15:30:13 +03:00
committed by GitHub
parent 537e3e6935
commit 170f4dd181
3 changed files with 64 additions and 33 deletions

View File

@@ -1871,6 +1871,13 @@ namespace platf::dxgi {
if (!boost::algorithm::ends_with(name, "_qsv")) {
return false;
}
if (config.chromaSamplingType == 1) {
if (config.videoFormat == 0 || config.videoFormat == 2) {
// QSV doesn't support 4:4:4 in H.264 or AV1
return false;
}
// TODO: Blacklist HEVC 4:4:4 based on adapter model
}
}
else if (adapter_desc.VendorId == 0x10de) { // Nvidia
// If it's not an NVENC encoder, it's not compatible with an Nvidia GPU