commit c3e9345888213165c135df8a1c60a4f297e15580
Author: Michael Cronenworth <mike(a)cchtml.com>
Date: Mon Sep 25 10:28:07 2023 -0500
Fix LiveTV with FFMPEG 6
jellyfin-vaapi-sei.patch | 37 +++++++++++++++++++++++++++++++++++++
jellyfin.spec | 8 +++++++-
2 files changed, 44 insertions(+), 1 deletion(-)
---
diff --git a/jellyfin-vaapi-sei.patch b/jellyfin-vaapi-sei.patch
new file mode 100644
index 0000000..1eeb33c
--- /dev/null
+++ b/jellyfin-vaapi-sei.patch
@@ -0,0 +1,37 @@
+From 99cc1ed13ac8ca3da4138500644515941f6390f6 Mon Sep 17 00:00:00 2001
+From: Nyanmisaka <nst799610810(a)gmail.com>
+Date: Mon, 25 Sep 2023 22:56:59 +0800
+Subject: [PATCH] Fix A53 CC SEI breaking H26x_VAAPI hardware encode
+
+Signed-off-by: nyanmisaka <nst799610810(a)gmail.com>
+---
+ MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
+index b6e680ab97e..c311d3b8ab9 100644
+--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
++++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
+@@ -44,6 +44,7 @@ public partial class EncodingHelper
+ private readonly Version _minFFmpegImplictHwaccel = new Version(6, 0);
+ private readonly Version _minFFmpegHwaUnsafeOutput = new Version(6, 0);
+ private readonly Version _minFFmpegOclCuTonemapMode = new Version(5, 1, 3);
++ private readonly Version _minFFmpegVaapiH26xEncA53CcSei = new Version(6, 0);
+
+ private static readonly string[] _videoProfilesH264 = new[]
+ {
+@@ -1763,6 +1764,14 @@ public string GetVideoQualityParam(EncodingJobInfo state, string
videoEncoder, E
+ param += " -x265-params:0 no-info=1";
+ }
+
++ /* Access unit too large: 8192 < 20880 error */
++ if ((string.Equals(videoEncoder, "h264_vaapi",
StringComparison.OrdinalIgnoreCase) ||
++ string.Equals(videoEncoder, "hevc_vaapi",
StringComparison.OrdinalIgnoreCase)) &&
++ _mediaEncoder.EncoderVersion >= _minFFmpegVaapiH26xEncA53CcSei)
++ {
++ param += " -sei -a53_cc";
++ }
++
+ return param;
+ }
+
diff --git a/jellyfin.spec b/jellyfin.spec
index 003f1f6..8dece26 100644
--- a/jellyfin.spec
+++ b/jellyfin.spec
@@ -9,7 +9,7 @@
Name: jellyfin
Version: 10.8.11
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: The Free Software Media System
License: GPL-2.0-only
URL:
https://jellyfin.org
@@ -32,6 +32,9 @@ Source16: %{name}-firewalld.xml
Source17: %{name}-server-lowports.conf
Source18: %{name}.sysusers
+#
https://github.com/jellyfin/jellyfin/pull/10275
+Patch0: %{name}-vaapi-sei.patch
+
# dotnet does not offer a runtime on ppc
ExcludeArch: %{power64} ppc64le %{arm}
@@ -292,6 +295,9 @@ fi
%changelog
+* Mon Sep 25 2023 Michael Cronenworth <mike(a)cchtml.com> - 10.8.11-2
+- Fix LiveTV with FFMPEG 6
+
* Sun Sep 24 2023 Michael Cronenworth <mike(a)cchtml.com> - 10.8.11-1
- Update to 10.8.11