Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ffmpeg fails to transcode HDR content #213

Closed
1 task done
totaltentigers opened this issue Aug 27, 2023 · 19 comments
Closed
1 task done

[BUG] ffmpeg fails to transcode HDR content #213

totaltentigers opened this issue Aug 27, 2023 · 19 comments

Comments

@totaltentigers
Copy link

totaltentigers commented Aug 27, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When trying to play transcoded HDR content, ffmpeg fails due to an error:
image

Expected Behavior

The HDR content should be transcoded and tone mapped properly and play.

Steps To Reproduce

  1. Enable Intel QuickSync hardware decoding
  2. Install OpenCL Intel docker mod
  3. Enable tone mapping
  4. Try to play content

Environment

- OS: Linux (Synology NAS)
- How docker service was installed: built into NAS
- OpenCL Intel Docker mod added
- J4125 Celeron processor with QuickSync
- latest jellyfin image

CPU architecture

x86-64

Docker creation

version: "2.1"
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    mem_limit: 10240M
    mem_reservation: 8192M
    environment:
      - PUID=<user-id>
      - PGID=<group-id>
      - JELLYFIN_PublishedServerUrl=<removed> #optional
      - DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel
    volumes:
      - <path>/jellyfincfg:/config
      - /volume1/Media/Movies:/data/movies
    ports:
      - 8096:8096
      - 7359:7359/udp #optional
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped

Container logs

[mod-init] Attempting to run Docker Modification Logic
[mod-init] Adding linuxserver/mods:jellyfin-opencl-intel to container
[mod-init] Downloading linuxserver/mods:jellyfin-opencl-intel from lscr.io
[mod-init] Installing linuxserver/mods:jellyfin-opencl-intel
[mod-init] linuxserver/mods:jellyfin-opencl-intel applied to container
[migrations] started
[migrations] no migrations found
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 
   Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Jellyfin: https://opencollective.com/jellyfin
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    <user-id>
User GID:    <group-id>
───────────────────────────────────────
**** Installing/updating opencl-intel debs and adding clinfo to package install list ****
Selecting previously unselected package intel-igc-core.
(Reading database ... 11079 files and directories currently installed.)
Preparing to unpack .../intel-igc-core_1.0.13822.6_amd64.deb ...
Unpacking intel-igc-core (1.0.13822.6) ...
Selecting previously unselected package intel-igc-opencl.
Preparing to unpack .../intel-igc-opencl_1.0.13822.6_amd64.deb ...
Unpacking intel-igc-opencl (1.0.13822.6) ...
Selecting previously unselected package intel-level-zero-gpu.
Preparing to unpack .../intel-level-zero-gpu_1.3.26241.22_amd64.deb ...
Unpacking intel-level-zero-gpu (1.3.26241.22) ...
Selecting previously unselected package intel-opencl-icd.
Preparing to unpack .../intel-opencl-icd_23.17.26241.22_amd64.deb ...
Unpacking intel-opencl-icd (23.17.26241.22) ...
Selecting previously unselected package libigdgmm12:amd64.
Preparing to unpack .../libigdgmm12_22.3.0_amd64.deb ...
Unpacking libigdgmm12:amd64 (22.3.0) ...
Setting up intel-igc-core (1.0.13822.6) ...
Setting up intel-igc-opencl (1.0.13822.6) ...
Setting up libigdgmm12:amd64 (22.3.0) ...
Setting up intel-level-zero-gpu (1.3.26241.22) ...
Setting up intel-opencl-icd (23.17.26241.22) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
[mod-init] **** Installing all mod packages ****
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 https://repo.jellyfin.org/ubuntu jammy InRelease [6,636 B]
Get:4 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/multiverse Sources [361 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/universe Sources [22.0 MB]
Get:7 https://nyc1.mirror.jellyfin.org/ubuntu jammy/main amd64 Packages [2,234 B]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main Sources [1,668 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/restricted Sources [28.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1,792 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Sources [55.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Sources [21.0 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/universe Sources [348 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main Sources [531 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,136 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [923 kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [49.8 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,247 kB]
Get:22 http://archive.ubuntu.com/ubuntu jammy-security/universe Sources [202 kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy-security/restricted Sources [53.1 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy-security/main Sources [269 kB]
Get:25 http://archive.ubuntu.com/ubuntu jammy-security/multiverse Sources [11.3 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.0 kB]
Get:27 http://archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [897 kB]
Get:28 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [860 kB]
Get:29 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [983 kB]
Fetched 51.9 MB in 12s (4,154 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  clinfo
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 53.7 kB of archives.
After this operation, 174 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 clinfo amd64 3.0.21.02.21-1 [53.7 kB]
W: https://repo.jellyfin.org/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Fetched 53.7 kB in 0s (541 kB/s)
Selecting previously unselected package clinfo.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 11115 files and directories currently installed.)
Preparing to unpack .../clinfo_3.0.21.02.21-1_amd64.deb ...
Unpacking clinfo (3.0.21.02.21-1) ...
Setting up clinfo (3.0.21.02.21-1) ...
[custom-init] No custom files found, skipping...
[23:29:47] [INF] [1] Main: Jellyfin version: 10.8.10
[23:29:48] [INF] [1] Main: Environment Variables: ["[JELLYFIN_PublishedServerUrl, <local-ip>]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_DATA_DIR, /config/data]"]
[23:29:48] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[23:29:48] [INF] [1] Main: Operating system: Linux
[23:29:48] [INF] [1] Main: Architecture: X64
[23:29:48] [INF] [1] Main: 64-Bit Process: True
[23:29:48] [INF] [1] Main: User Interactive: True
[23:29:48] [INF] [1] Main: Processor count: 4
[23:29:48] [INF] [1] Main: Program data path: /config/data
[23:29:48] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
[23:29:48] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[23:29:51] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /config/cache
[23:29:52] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[23:29:52] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly InfuseSync, Version=1.4.2.0, Culture=neutral, PublicKeyToken=null from /config/data/plugins/InfuseSync_1.4.2.0/InfuseSync.dll
[23:29:52] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.PlaybackReporting, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null from /config/data/plugins/Playback Reporting_13.0.0.0/Jellyfin.Plugin.PlaybackReporting.dll
[23:29:54] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[23:29:54] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[23:29:54] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[23:29:54] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: []
[23:29:54] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: []
[23:30:09] [INF] [1] InfuseSync.Plugin: InfuseSync is starting.
[23:30:09] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: InfuseSync 1.4.2.0
[23:30:09] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Playback Reporting 13.0.0.0
[23:30:09] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TMDb 10.8.10.0
[23:30:09] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Studio Images 10.8.10.0
[23:30:09] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.8.10.0
[23:30:09] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.8.10.0
[23:30:09] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.8.10.0
[23:30:09] [INF] [1] Main: Kestrel listening on Any IP4 Address
[23:30:11] [WRN] [1] Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository: Using an in-memory repository. Keys will not be persisted to storage.
[23:30:11] [WRN] [1] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.
[23:30:11] [WRN] [1] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: No XML encryptor configured. Key {2530ee85-ec17-46fa-a030-6b3e81ea53e1} may be persisted to storage in unencrypted form.
[23:30:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[23:30:11] [INF] [1] InfuseSync.ScheduledTasks.HousekeepingTask: Infuse housekeeping task scheduled.
[23:30:11] [INF] [1] Jellyfin.Plugin.PlaybackReporting.TaskCleanDb: TaskCleanDb Loaded
[23:30:11] [INF] [1] Jellyfin.Plugin.PlaybackReporting.TaskRunBackup: TaskRunBackup Loaded
[23:30:11] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Remove Old Cached Data set to fire at 2023-08-27 00:01:00.000 -04:00, which is 00:30:48.0997614 from now.
[23:30:11] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Playback Reporting Trim Db set to fire at 2023-08-27 00:00:00.000 -04:00, which is 00:29:48.0983725 from now.
[23:30:11] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Extract Chapter Images set to fire at 2023-08-27 02:00:00.000 -04:00, which is 02:29:48.0699417 from now.
[23:30:13] [WRN] [18] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/web/<local-ip>/system/info/public to <client-ip>.1 in 0:00:01.3347384 with Status Code 503
[23:30:13] [WRN] [17] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/web/<local-ip>/system/info/public to <client-ip>.1 in 0:00:00.7658416 with Status Code 503
[23:30:13] [WRN] [10] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/web/<local-ip>/system/info/public to <client-ip>.1 in 0:00:01.3349359 with Status Code 503
[23:30:13] [WRN] [8] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/web/<local-ip>/system/info/public to <client-ip>.1 in 0:00:01.3349745 with Status Code 503
[23:30:13] [WRN] [14] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/web/<local-ip>/system/info/public to <client-ip>.1 in 0:00:01.3349425 with Status Code 503
[23:30:13] [WRN] [11] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/web/<local-ip>/system/info/public to <client-ip>.1 in 0:00:01.3349542 with Status Code 503
[23:30:14] [INF] [17] Emby.Server.Implementations.ScheduledTasks.TaskManager: StartupTrigger fired for task: Update Plugins
[23:30:14] [INF] [17] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task PluginUpdateTask
[23:30:14] [INF] [18] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Update Plugins
[23:30:15] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version 5.1.3
[23:30:15] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[23:30:15] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[23:30:15] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available filters: ["deinterlace_qsv", "deinterlace_vaapi", "hwupload_cuda", "hwupload_vaapi", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[23:30:15] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[23:30:15] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: /usr/lib/jellyfin-ffmpeg/ffmpeg
[23:30:15] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: 7c49088487ca45d2832788ee7da4ffb0
[23:30:16] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.3286631
[23:30:16] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: EventMonitorEntryPoint Running
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Sqlite version: 3.38.3
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Sqlite compiler options: ATOMIC_INTRINSICS=1,COMPILER=gcc-7.5.0,DEFAULT_AUTOVACUUM,DEFAULT_CACHE_SIZE=-2000,DEFAULT_FILE_FORMAT=4,DEFAULT_FOREIGN_KEYS,DEFAULT_JOURNAL_SIZE_LIMIT=-1,DEFAULT_MMAP_SIZE=0,DEFAULT_PAGE_SIZE=4096,DEFAULT_PCACHE_INITSZ=20,DEFAULT_RECURSIVE_TRIGGERS,DEFAULT_SECTOR_SIZE=4096,DEFAULT_SYNCHRONOUS=2,DEFAULT_WAL_AUTOCHECKPOINT=1000,DEFAULT_WAL_SYNCHRONOUS=2,DEFAULT_WORKER_THREADS=0,ENABLE_COLUMN_METADATA,ENABLE_FTS3,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS4,ENABLE_FTS5,ENABLE_RTREE,ENABLE_SNAPSHOT,MALLOC_SOFT_LIMIT=1024,MAX_ATTACHED=10,MAX_COLUMN=2000,MAX_COMPOUND_SELECT=500,MAX_DEFAULT_PAGE_SIZE=8192,MAX_EXPR_DEPTH=1000,MAX_FUNCTION_ARG=127,MAX_LENGTH=1000000000,MAX_LIKE_PATTERN_LENGTH=50000,MAX_MMAP_SIZE=0x7fff0000,MAX_PAGE_COUNT=1073741823,MAX_PAGE_SIZE=65536,MAX_SQL_LENGTH=1000000000,MAX_TRIGGER_DEPTH=1000,MAX_VARIABLE_NUMBER=32766,MAX_VDBE_OP=250000000,MAX_WORKER_THREADS=8,MUTEX_PTHREADS,SYSTEM_MALLOC,TEMP_STORE=1,THREADSAFE=1
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Default journal_mode for /config/data/data/playback_reporting.db is delete
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Initialize PlaybackActivity Repository
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: PlaybackActivity table schema OK
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Expected : datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int
[23:30:16] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Received : datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int
[23:30:16] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all post-startup entry points in 0:00:00.43583
[23:30:16] [INF] [1] Main: Startup complete 0:00:36.6977797
[23:30:17] [WRN] [10] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/ScheduledTasks?IsEnabled=true to <client-ip>.1 in 0:00:00.7738576 with Status Code 200
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'AccessSchedule' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ActivityLog' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'CustomItemDisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'DisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'HomeSection' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ImageInfo' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ItemDisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Permission' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Preference' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ApiKey' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Device' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'DeviceOptions' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[23:30:17] [WRN] [8] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'User' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[ls.io-init] done.
[23:30:20] [INF] [8] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 5 seconds
[23:30:20] [INF] [8] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[23:30:42] [INF] [10] Emby.Server.Implementations.HttpServer.WebSocketManager: WS <client-ip>.1 request
[23:30:43] [INF] [18] Emby.Server.Implementations.HttpServer.WebSocketManager: WS <client-ip>.1 closed
[23:30:44] [INF] [8] Emby.Server.Implementations.HttpServer.WebSocketManager: WS <client-ip>.1 request
[23:30:45] [WRN] [14] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/DisplayPreferences/usersettings?userId=c863214337f2401abd2941e734822bce&client=emby to <client-ip>.1 in 0:00:00.5515005 with Status Code 200
[23:31:05] [WRN] [18] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Users/c863214337f2401abd2941e734822bce/Items/Latest?Limit=16&Fields=PrimaryImageAspectRatio%2CBasicSyncInfo%2CPath&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&ParentId=abebc196cc1b8bbf6f8bb5ca7b5ad6f1 to <client-ip>.1 in 0:00:00.5253427 with Status Code 200
[23:31:06] [WRN] [11] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Users/c863214337f2401abd2941e734822bce/Items/Latest?Limit=16&Fields=PrimaryImageAspectRatio%2CBasicSyncInfo%2CPath&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&ParentId=0637a4b668c36d2c27cee343f32df7d1 to <client-ip>.1 in 0:00:00.6621584 with Status Code 200
[23:31:06] [WRN] [17] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Shows/NextUp?Limit=24&Fields=PrimaryImageAspectRatio%2CDateCreated%2CBasicSyncInfo%2CPath%2CMediaSourceCount&UserId=c863214337f2401abd2941e734822bce&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb&EnableTotalRecordCount=false&DisableFirstEpisode=false&NextUpDateCutoff=2022-08-27T03%3A31%3A05.117Z&EnableRewatching=false to <client-ip>.1 in 0:00:01.5760508 with Status Code 200
[23:31:08] [WRN] [11] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Items/2a30af5e73d62e4f61640114d56b3c4c/Images/Primary?fillHeight=764&fillWidth=520&quality=96&tag=8adc763dcb52423a599ee981e4b9f105 to <client-ip>.1 in 0:00:02.043505 with Status Code 200
[23:31:08] [WRN] [11] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Items/765c78bdb7604fb68f0829d0eb96686e/Images/Primary?fillHeight=780&fillWidth=520&quality=96&tag=fbeaff2a68a889194b3575b4751c8841 to <client-ip>.1 in 0:00:02.2423569 with Status Code 200
[23:31:10] [WRN] [17] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Items/71efd7e58f31ccab4e41c0a4b45b4b0b/Images/Primary?fillHeight=780&fillWidth=520&quality=96&tag=ae03804caea7c6fce744e0a1e3233ce0 to <client-ip>.1 in 0:00:00.7836889 with Status Code 200
[23:31:10] [WRN] [10] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Items/852abb092c510e739709c36ec24f2e94/Images/Primary?fillHeight=780&fillWidth=520&quality=96&tag=102c130ac7420cd7f1e3dfe96d5d53c0 to <client-ip>.1 in 0:00:00.8314424 with Status Code 200
[23:31:10] [WRN] [10] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Items/b44fe1231aed98e8a524f817d760ad02/Images/Primary?fillHeight=440&fillWidth=782&quality=96&tag=4c87df6bc1cc8aa32c9f041db613e97f to <client-ip>.1 in 0:00:00.5481603 with Status Code 200
[23:31:17] [WRN] [22] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://<local-ip>:8096/Users/c863214337f2401abd2941e734822bce/Items/71efd7e58f31ccab4e41c0a4b45b4b0b to <client-ip>.1 in 0:00:00.9103898 with Status Code 200
[23:31:18] [INF] [24] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for <user>. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[23:31:18] [INF] [24] Jellyfin.Api.Helpers.MediaInfoHelper: RemoteClientBitrateLimit: 8000000, RemoteIp: <client-ip>.1, IsInLocalNetwork: True
[23:31:18] [INF] [24] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=Anonymous Profile, Path=/data/movies/Once Upon a Time in the West (1968)/Once Upon a Time in the West (1968).mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=ContainerBitrateExceedsLimit ) media:/videos/71efd7e5-8f31-ccab-4e41-c0a4b45b4b0b/master.m3u8?MediaSourceId=71efd7e58f31ccab4e41c0a4b45b4b0b&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=4&VideoBitrate=1116000&AudioBitrate=384000&MaxFramerate=23.976025&api_key=<token>&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=5392b9a59e0163fee5f1be0246d84b53&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&hevc-level=150&hevc-videobitdepth=10&hevc-profile=main10&TranscodeReasons=ContainerBitrateExceedsLimit
[23:31:20] [INF] [17] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[23:31:20] [INF] [17] Jellyfin.Api.Helpers.TranscodingJobHelper: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/data/movies/Once Upon a Time in the West (1968)/Once Upon a Time in the West (1968).mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:4 -map -0:s -codec:v:0 h264_qsv -preset 7 -look_ahead 0 -b:v 1116000 -maxrate 1116000 -bufsize 2232000 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale_vaapi=w=720:h=404:extra_hw_frames=24,hwmap=derive_device=opencl,tonemap_opencl=format=nv12:p=bt709:t=bt709:m=bt709:tonemap=bt2390:peak=100:desat=0,hwmap=derive_device=qsv:reverse=1:extra_hw_frames=16,format=qsv" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/data/transcodes/6d4caed8c3b06e78016f49bc9d442a64%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcodes/6d4caed8c3b06e78016f49bc9d442a64.m3u8"
[23:31:26] [ERR] [25] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 1
[23:31:26] [ERR] [17] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL GET /videos/71efd7e5-8f31-ccab-4e41-c0a4b45b4b0b/hls1/main/0.ts.
MediaBrowser.Common.FfmpegException: FFmpeg exited with code 1
   at Jellyfin.Api.Helpers.TranscodingJobHelper.StartFfMpeg(StreamState state, String outputPath, String commandLineArguments, HttpRequest request, TranscodingJobType transcodingJobType, CancellationTokenSource cancellationTokenSource, String workingDirectory)
   at Jellyfin.Api.Controllers.DynamicHlsController.GetDynamicSegment(StreamingRequestDto streamingRequest, Int32 segmentId)
   at Jellyfin.Api.Controllers.DynamicHlsController.GetHlsVideoSegment(Guid itemId, String playlistId, Int32 segmentId, String container, Int64 runtimeTicks, Int64 actualSegmentLengthTicks, Nullable`1 static, String params, String tag, String deviceProfileId, String playSessionId, String segmentContainer, Nullable`1 segmentLength, Nullable`1 minSegments, String mediaSourceId, String deviceId, String audioCodec, Nullable`1 enableAutoStreamCopy, Nullable`1 allowVideoStreamCopy, Nullable`1 allowAudioStreamCopy, Nullable`1 breakOnNonKeyFrames, Nullable`1 audioSampleRate, Nullable`1 maxAudioBitDepth, Nullable`1 audioBitRate, Nullable`1 audioChannels, Nullable`1 maxAudioChannels, String profile, String level, Nullable`1 framerate, Nullable`1 maxFramerate, Nullable`1 copyTimestamps, Nullable`1 startTimeTicks, Nullable`1 width, Nullable`1 height, Nullable`1 maxWidth, Nullable`1 maxHeight, Nullable`1 videoBitRate, Nullable`1 subtitleStreamIndex, Nullable`1 subtitleMethod, Nullable`1 maxRefFrames, Nullable`1 maxVideoBitDepth, Nullable`1 requireAvc, Nullable`1 deInterlace, Nullable`1 requireNonAnamorphic, Nullable`1 transcodingMaxAudioChannels, Nullable`1 cpuCoreLimit, String liveStreamId, Nullable`1 enableMpegtsM2TsMode, String videoCodec, String subtitleCodec, String transcodeReasons, Nullable`1 audioStreamIndex, Nullable`1 videoStreamIndex, Nullable`1 context, Dictionary`2 streamOptions)
   at lambda_method1122(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Server.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)

ffmpeg logs

/videos/71efd7e5-8f31-ccab-4e41-c0a4b45b4b0b/hls1/main/0.ts

{"Protocol":0,"Id":"71efd7e58f31ccab4e41c0a4b45b4b0b","Path":"/data/movies/Once Upon a Time in the West (1968)/Once Upon a Time in the West (1968).mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":19438782464,"Name":"Once Upon a Time in the West (1968)","IsRemote":false,"ETag":"5392b9a59e0163fee5f1be0246d84b53","RunTimeTicks":99495649280,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"bt2020nc","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","DvVersionMajor":1,"DvVersionMinor":0,"DvProfile":8,"DvLevel":6,"RpuPresentFlag":1,"ElPresentFlag":0,"BlPresentFlag":1,"DvBlSignalCompatibilityId":1,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":"HDR","VideoRangeType":"HDR10","VideoDoViTitle":"DV Profile 8.1 (HDR10)","LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"4K HEVC HDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":15629854,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"16:9","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":150,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Restored Stereo","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Restored Stereo - English - Dolby Digital","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":224000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Commentary by directors John Carpenter, John Milius and Alex Cox, film historians Christopher Frayling and Dr. Sheldon Hall, and cast and crew","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Commentary by directors John Carpenter, John Milius and Alex Cox, film historians Christopher Frayling and Dr. Sheldon Hall, and cast and crew - English - Dolby Digital - Stereo","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":224000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"dts","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English - DTS - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":1536000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"DTS","Type":0,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"flac","CodecTag":null,"Language":"ita","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Italian - FLAC - Stereo - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":222682,"BitDepth":16,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":4,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"English - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":5,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"ita","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Italian - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":6,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Undefined - Default - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":7,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":17836536,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/data/movies/Once Upon a Time in the West (1968)/Once Upon a Time in the West (1968).mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:4 -map -0:s -codec:v:0 h264_qsv -preset 7 -look_ahead 0 -b:v 1116000 -maxrate 1116000 -bufsize 2232000 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale_vaapi=w=720:h=404:extra_hw_frames=24,hwmap=derive_device=opencl,tonemap_opencl=format=nv12:p=bt709:t=bt709:m=bt709:tonemap=bt2390:peak=100:desat=0,hwmap=derive_device=qsv:reverse=1:extra_hw_frames=16,format=qsv" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/data/transcodes/44287c60d95dea4308ba1f35a659650e%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcodes/44287c60d95dea4308ba1f35a659650e.m3u8"


ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[AVHWDeviceContext @ 0x55a8a1f52100] Failed to get number of OpenCL platforms: -1001.
Device creation failed: -19.
Failed to set value 'opencl=ocl@va' for option 'init_hw_device': No such device
Error parsing global options: No such device

Jellyfin settings

image image image image image image image
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@abelbodnar

This comment was marked as off-topic.

@mbrys0n
Copy link

mbrys0n commented Sep 19, 2023

Encountered same issue. Resolved via:

https://github.com/linuxserver/docker-mods/tree/jellyfin-opencl-intel

add DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel to container env vars:

  jellyfin:
    image: lscr.io/linuxserver/jellyfin
    container_name: jellyfin
    environment:
      - DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel
    volumes:
      ...

@totaltentigers
Copy link
Author

DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel

This is already in my docker-compose

@harry71019
Copy link

Can confirm HDR transcoding with qsv is broken. I also included the docker mod, when transcoding non HDR content qsv works fine, it's just transcoding HDR(HDR10 or DV) content the error occurs.

@cstrat
Copy link

cstrat commented Sep 29, 2023

Same exact error, not sure how to get my ffmpeg logs.

I have an Intel NUC with i7 with integrated GPU (Iris), want to use this to transcode.

@darkjohnm
Copy link

darkjohnm commented Oct 5, 2023

Same here, on a Synology DS220+ with Quicksync enabled running thru Container Manager. Adding the docker mod as an environment variable to my YAML does not let openCL tone mapping work. Intel VPP tone mapping works just fine and I'm able to bump up the brightness so it doesn't look as horrifically dark at the default value of 16, but OpenCL does not work.

EDIT: The same issue occurs if I use stock Jellyfin. It looks like the OpenCL mod is not being enabled at all, adding that line as an env variable makes JF behave the same way as the stock image. I can still use quicksync for transcoding and VPP tone mapping on the official image as expected. Will probably stick with that until this gets fixed + updated to 10.8.11

SECOND EDIT: So... I can get 10.8.11 by pulling the image from docker.io/linuxserver/jellyfin:latest but when I pull from the recommended lscr.io/linuxserver/jellyfin:latest it pulls 10.8.10. Same tone mapping issue persists on both versions.

@cstrat
Copy link

cstrat commented Oct 6, 2023

Ok so I realised my error.

I am running this in a proxmox LXC - my LXC was unprivileged, which I think meant there were issues with the access to the /dev/dri stuff... anyway, rebuilding my LXC again, as privileged (with nesting) and it all works 100% fine.

image

Little bit concerned that the GPU is getting smashed from one stream... might not handle more than a couple, still all good though. It works!

@harry71019
Copy link

harry71019 commented Oct 6, 2023

Same here, on a Synology DS220+ with Quicksync enabled running thru Container Manager. Adding the docker mod as an environment variable to my YAML does not let openCL tone mapping work. Intel VPP tone mapping works just fine and I'm able to bump up the brightness so it doesn't look as horrifically dark at the default value of 16, but OpenCL does not work.

EDIT: The same issue occurs if I use stock Jellyfin. It looks like the OpenCL mod is not being enabled at all, adding that line as an env variable makes JF behave the same way as the stock image. I can still use quicksync for transcoding and VPP tone mapping on the official image as expected. Will probably stick with that until this gets fixed + updated to 10.8.11

SECOND EDIT: So... I can get 10.8.11 by pulling the image from docker.io/linuxserver/jellyfin:latest but when I pull from the recommended lscr.io/linuxserver/jellyfin:latest it pulls 10.8.10. Same tone mapping issue persists on both versions.

With 10.8.11 is the issue resolved?
Based on my testing with /linuxserver/jellyfin 10.8.10, by using "Enable VPP tone mapping" while not selecting "Enable tone mapping" seems to solve the issue. The tonemapping works for HEVC HDR10 videos. If I unselect both options then there is no tone mapping at all. If I select both options (which was my previous settings) then tone mapping fails and the video does not load.

@darkjohnm
Copy link

10.8.11 pulled from docker.io/linuxserver/jellyfin:latest does not resolve the issue. Yes, VPP tone mapping works and I can adjust overall brightness so it's not a huge deal, but it would be nice to have OpenCL tone mapping to play with the algorithms it uses. Not a huge deal either way, and yes my settings have the same effect as yours.

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@vin86
Copy link

vin86 commented Nov 10, 2023

Same problem for me. I have resolved by installing official version 10.8.11 on my DS218+. I can use QSV with Tone Mapping (works without problem). If i update to version 10.8.12 or use linuxserver i have transcoding error.

I wrote on jellyfin forum and an administrator told to me:

Support for Linux kernel 4.x was dropped in the newer Intel drivers included in the official jellyfin docker. 4.X is the current version of the Linux kernel Synology uses with their OS. To be clear, this is something Intel did.

Your options are to stay on the official 10.8.11 image or experiment with using unofficial images.

https://docs.linuxserver.io/images/docker-jellyfin/
https://github.com/linuxserver/docker-mo...encl-intel

Your current jellyfin database and configs should be used by most unofficial images without issue. But always backup your data before hand, just in case.

There is a fix to use latest version with QSV and tone mapping?

@GregoireDruant
Copy link

GregoireDruant commented Nov 26, 2023

Same problem for me. I have resolved by installing official version 10.8.11 on my DS218+. I can use QSV with Tone Mapping (works without problem). If i update to version 10.8.12 or use linuxserver i have transcoding error.

I wrote on jellyfin forum and an administrator told to me:

Support for Linux kernel 4.x was dropped in the newer Intel drivers included in the official jellyfin docker. 4.X is the current version of the Linux kernel Synology uses with their OS. To be clear, this is something Intel did.

Your options are to stay on the official 10.8.11 image or experiment with using unofficial images.

https://docs.linuxserver.io/images/docker-jellyfin/ https://github.com/linuxserver/docker-mo...encl-intel

Your current jellyfin database and configs should be used by most unofficial images without issue. But always backup your data before hand, just in case.

There is a fix to use latest version with QSV and tone mapping?

Hi,

I have the same issue here on a DS218+ within docker.
Thank you all for the information provided, I have managed to figure out the latest version of intel driver which works on our systems :
https://github.com/intel/compute-runtime/releases/tag/23.13.26032.30

With these drivers clinfo does see the GPU, not with the latests.

I now have to find out how to make jellyfin-opencl-mod grab this instead of latest, it should fix tone mapping I think.

Edit: I used jellyfin-opencl-mod with this tag and now it works 👍:
DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel-23.13.26032.30

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@SvenTheBoyy
Copy link

Encountered same issue. Resolved via:

https://github.com/linuxserver/docker-mods/tree/jellyfin-opencl-intel

add DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel to container env vars:

  jellyfin:
    image: lscr.io/linuxserver/jellyfin
    container_name: jellyfin
    environment:
      - DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel
    volumes:
      ...

This fixed the exact error i got thanks :)

@vin86
Copy link

vin86 commented Jan 3, 2024

Same problem for me. I have resolved by installing official version 10.8.11 on my DS218+. I can use QSV with Tone Mapping (works without problem). If i update to version 10.8.12 or use linuxserver i have transcoding error.
I wrote on jellyfin forum and an administrator told to me:

Support for Linux kernel 4.x was dropped in the newer Intel drivers included in the official jellyfin docker. 4.X is the current version of the Linux kernel Synology uses with their OS. To be clear, this is something Intel did.

Your options are to stay on the official 10.8.11 image or experiment with using unofficial images.
https://docs.linuxserver.io/images/docker-jellyfin/ https://github.com/linuxserver/docker-mo...encl-intel
Your current jellyfin database and configs should be used by most unofficial images without issue. But always backup your data before hand, just in case.
There is a fix to use latest version with QSV and tone mapping?

Hi,

I have the same issue here on a DS218+ within docker. Thank you all for the information provided, I have managed to figure out the latest version of intel driver which works on our systems : https://github.com/intel/compute-runtime/releases/tag/23.13.26032.30

With these drivers clinfo does see the GPU, not with the latests.

I now have to find out how to make jellyfin-opencl-mod grab this instead of latest, it should fix tone mapping I think.

Edit: I used jellyfin-opencl-mod with this tag and now it works 👍: DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel-23.13.26032.30

Tone Mapping works or i should use VPP Tone Mapping?

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@homerr
Copy link
Member

homerr commented Mar 17, 2024

Closing this as the issue seems to be specific to Synology devices.

@homerr homerr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Mar 17, 2024
Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests