The Free Software Media System - Server Backend & API
Backport pull request #8061 from jellyfin/release-10.8.z
Joshua Boniface3e24b8943da6
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.csindex 15afde601d..f1f79a8633 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs@@ -4506,7 +4506,9 @@ namespace MediaBrowser.Controller.MediaEncodingif (isD3d11Supported && isCodecAvailable){- return " -hwaccel d3d11va" + (outputHwSurface ? " -hwaccel_output_format d3d11" : string.Empty) + (isAv1 ? " -c:v av1" : string.Empty);+ // set -threads 3 to intel d3d11va decoder explicitly. Lower threads may result in dead lock.+ // on newer devices such as Xe, the larger the init_pool_size, the longer the initialization time for opencl to derive from d3d11.+ return " -hwaccel d3d11va" + (outputHwSurface ? " -hwaccel_output_format d3d11" : string.Empty) + " -threads 3" + (isAv1 ? " -c:v av1" : string.Empty);}}else