Limit decoder thread count on AMD AMF to save VRAM (#14943)

This commit is contained in:
Nyanmisaka
2025-10-04 22:04:25 +08:00
committed by GitHub
parent 056b92dbd5
commit badf22fcc2

View File

@@ -6552,7 +6552,7 @@ namespace MediaBrowser.Controller.MediaEncoding
if (isD3d11Supported && isCodecAvailable)
{
return " -hwaccel d3d11va" + (outputHwSurface ? " -hwaccel_output_format d3d11 -noautorotate" + stripRotationDataArgs : string.Empty)
+ (profileMismatch ? " -hwaccel_flags +allow_profile_mismatch" : string.Empty) + (isAv1 ? " -c:v av1" : string.Empty);
+ (profileMismatch ? " -hwaccel_flags +allow_profile_mismatch" : string.Empty) + " -threads 2" + (isAv1 ? " -c:v av1" : string.Empty);
}
}