mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix QSV "static surface pool size exceeded" on Windows
d3d11va doesn't support dynamic pool size, use vpp filter ctx to relay to prevent encoder async and bframes from exhausting the decoder pool.
This commit is contained in:
parent
308707476d
commit
e8291fc856
@ -4442,6 +4442,13 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
var swapOutputWandH = doVppTranspose && swapWAndH;
|
var swapOutputWandH = doVppTranspose && swapWAndH;
|
||||||
var hwScaleFilter = GetHwScaleFilter("vpp", "qsv", outFormat, swapOutputWandH, swpInW, swpInH, reqW, reqH, reqMaxW, reqMaxH);
|
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)
|
if (!string.IsNullOrEmpty(hwScaleFilter) && doVppTranspose)
|
||||||
{
|
{
|
||||||
hwScaleFilter += $":transpose={transposeDir}";
|
hwScaleFilter += $":transpose={transposeDir}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user