The Free Software Media System - Server Backend & API
Fix QSV "static surface pool size exceeded" on Windows
Nyanmisakae8291fc856bc
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.csindex 26d4c4fcf1..a1fafb0243 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs@@ -4442,6 +4442,13 @@ namespace MediaBrowser.Controller.MediaEncodingvar swapOutputWandH = doVppTranspose && swapWAndH;var hwScaleFilter = GetHwScaleFilter("vpp", "qsv", outFormat, swapOutputWandH, swpInW, swpInH, reqW, reqH, reqMaxW, reqMaxH);+ // d3d11va doesn't support dynamic pool size, use vpp filter ctx to relay+ // to prevent encoder async and bframes from exhausting the decoder pool.+ if (!string.IsNullOrEmpty(hwScaleFilter) && isD3d11vaDecoder)+ {+ hwScaleFilter += ":passthrough=0";+ }+if (!string.IsNullOrEmpty(hwScaleFilter) && doVppTranspose){hwScaleFilter += $":transpose={transposeDir}";