From 945cb3a11685fa3313ef2259cf13d52aa2ea2110 Mon Sep 17 00:00:00 2001 From: mani Date: Thu, 26 Feb 2026 00:11:46 +0100 Subject: [PATCH] Fix CRT shader: remove build_opts (not supported by jellyfin-ffmpeg) program_opencl in this jellyfin-ffmpeg version does not have a build_opts option. This caused FFmpeg to exit with code 8 before even running. The shader already has #ifndef SHADOW_MASK / #define SHADOW_MASK 2 / #endif as defaults, so removing build_opts keeps the same Aperture Grille mask. Co-Authored-By: Claude Sonnet 4.6 --- MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index 3f70d79f54..e1611081d8 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -3768,7 +3768,7 @@ namespace MediaBrowser.Controller.MediaEncoding [ "scale_opencl=format=rgba", FormattableString.Invariant( - $"program_opencl=source={escapedPath}:kernel=crt_lottes:build_opts='{buildOpts}'"), + $"program_opencl=source={escapedPath}:kernel=crt_lottes"), "scale_opencl=format=nv12" ]; } @@ -3790,7 +3790,7 @@ namespace MediaBrowser.Controller.MediaEncoding var buildOpts = GetCrtBuildOpts(state); return FormattableString.Invariant( - $"format=rgba,hwupload=derive_device=opencl,program_opencl=source={escapedPath}:kernel=crt_lottes:build_opts='{buildOpts}',hwdownload,format=yuv420p"); + $"format=rgba,hwupload=derive_device=opencl,program_opencl=source={escapedPath}:kernel=crt_lottes,hwdownload,format=yuv420p"); } ///