2024-06-18, 12:04 PM
(This post was last modified: 2024-06-18, 08:17 PM by huelsenfruchtzwerg. Edited 3 times in total.)
Since a while now (unfortunately I can't say when exactly it started), my jellyfin instance has been unable to generate trickplay images. The following appears in the logs:
I've tried both with hw encoding enabled and disabled, but the result doesn't change. I verfied during generation that the output directory is created and populated with jpgs.
I'm using the official docker container, with the following docker-compose configuration:
I was unfortunately unable to find any instance of this problem being discussed anywhere, so any help is appreciated.
Code:
[2024-06-18 13:50:16.163 +02:00] [INF] [11] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Saving system configuration
[2024-06-18 13:50:16.163 +02:00] [INF] [11] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/config/cache"
[2024-06-18 13:50:24.960 +02:00] [INF] [32] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Creating trickplay files at 320 width, for "/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv" [ID: f74fb471-0d2a-35fc-bedf-f7624cc4d44c]
[2024-06-18 13:50:24.961 +02:00] [INF] [32] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:\"/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv\" -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p\" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 \"/config/cache/temp/dad83175e3aa4bd9ab096d60dafe0b55/%08d.jpg\""
[2024-06-18 13:51:24.962 +02:00] [INF] [21] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay process unresponsive.
[2024-06-18 13:51:24.962 +02:00] [INF] [21] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Stopping trickplay extraction.
[2024-06-18 13:51:25.962 +02:00] [INF] [21] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Killing ffmpeg process
[2024-06-18 13:51:25.963 +02:00] [ERR] [21] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:\"/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv\" -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p\" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 \"/config/cache/temp/dad83175e3aa4bd9ab096d60dafe0b55/%08d.jpg\""
[2024-06-18 13:51:25.963 +02:00] [ERR] [21] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:"/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 "/config/cache/temp/dad83175e3aa4bd9ab096d60dafe0b55/%08d.jpg"
at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.ExtractVideoImagesOnIntervalInternal(String inputArg, String filterParam, String vidEncoder, Nullable`1 outputThreads, Nullable`1 qualityScale, Nullable`1 priority, CancellationToken cancellationToken)
at Jellyfin.Server.Implementations.Trickplay.TrickplayManager.RefreshTrickplayDataInternal(Video video, Boolean replace, Int32 width, TrickplayOptions options, CancellationToken cancellationToken)
[2024-06-18 13:51:27.566 +02:00] [INF] [21] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Creating trickplay files at 320 width, for "/media/videos/anime/Fairy Tail/Specials/Fairy Tail - S00E08 - Fairy Tail x Rave Bluray-1080p.mkv" [ID: 00a34321-9f57-5a64-29ed-61121a92890d]
[2024-06-18 13:51:27.567 +02:00] [INF] [21] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:\"/media/videos/anime/Fairy Tail/Specials/Fairy Tail - S00E08 - Fairy Tail x Rave Bluray-1080p.mkv\" -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p\" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 \"/config/cache/temp/71345d126956477daec86db740d4fe0f/%08d.jpg\""
[2024-06-18 13:51:27.616 +02:00] [ERR] [9] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
System.ArgumentException: Can't create trickplay from 0 images.
at Jellyfin.Server.Implementations.Trickplay.TrickplayManager.CreateTiles(List`1 images, Int32 width, TrickplayOptions options, String outputDir)
at Jellyfin.Server.Implementations.Trickplay.TrickplayManager.RefreshTrickplayDataInternal(Video video, Boolean replace, Int32 width, TrickplayOptions options, CancellationToken cancellationToken)
[2024-06-18 13:51:29.140 +02:00] [INF] [9] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Generate Trickplay Images" Completed after 1 minute(s) and 4 seconds
[2024-06-18 13:52:20.276 +02:00] [INF] [27] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Saving system configuration
[2024-06-18 13:52:20.276 +02:00] [INF] [27] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/config/cache"
[2024-06-18 13:52:28.865 +02:00] [INF] [9] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Creating trickplay files at 320 width, for "/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv" [ID: f74fb471-0d2a-35fc-bedf-f7624cc4d44c]
[2024-06-18 13:52:28.865 +02:00] [INF] [9] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:\"/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv\" -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p\" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 \"/config/cache/temp/3a31cd47f6544988b083a1fa5415c0e6/%08d.jpg\""
[2024-06-18 13:53:48.871 +02:00] [INF] [31] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay process unresponsive.
[2024-06-18 13:53:48.871 +02:00] [INF] [31] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Stopping trickplay extraction.
[2024-06-18 13:53:49.871 +02:00] [INF] [31] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Killing ffmpeg process
[2024-06-18 13:53:49.871 +02:00] [ERR] [31] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:\"/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv\" -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p\" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 \"/config/cache/temp/3a31cd47f6544988b083a1fa5415c0e6/%08d.jpg\""
[2024-06-18 13:53:49.872 +02:00] [ERR] [31] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:"/media/videos/movies/Doctor Strange (2016)/Doctor Strange (2016) Remux-1080p.mkv" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 "/config/cache/temp/3a31cd47f6544988b083a1fa5415c0e6/%08d.jpg"
at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.ExtractVideoImagesOnIntervalInternal(String inputArg, String filterParam, String vidEncoder, Nullable`1 outputThreads, Nullable`1 qualityScale, Nullable`1 priority, CancellationToken cancellationToken)
at Jellyfin.Server.Implementations.Trickplay.TrickplayManager.RefreshTrickplayDataInternal(Video video, Boolean replace, Int32 width, TrickplayOptions options, CancellationToken cancellationToken)
[2024-06-18 13:53:51.601 +02:00] [INF] [31] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Creating trickplay files at 320 width, for "/media/videos/anime/Fairy Tail/Specials/Fairy Tail - S00E08 - Fairy Tail x Rave Bluray-1080p.mkv" [ID: 00a34321-9f57-5a64-29ed-61121a92890d]
[2024-06-18 13:53:51.601 +02:00] [INF] [31] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 8 -noautorotate -i file:\"/media/videos/anime/Fairy Tail/Specials/Fairy Tail - S00E08 - Fairy Tail x Rave Bluray-1080p.mkv\" -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p\" -threads 8 -c:v mjpeg -qscale:v 4 -f image2 \"/config/cache/temp/40832cb4edec44fc9e2f47f6e1416804/%08d.jpg\""
[2024-06-18 13:53:51.687 +02:00] [ERR] [31] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
System.ArgumentException: Can't create trickplay from 0 images.
at Jellyfin.Server.Implementations.Trickplay.TrickplayManager.CreateTiles(List`1 images, Int32 width, TrickplayOptions options, String outputDir)
at Jellyfin.Server.Implementations.Trickplay.TrickplayManager.RefreshTrickplayDataInternal(Video video, Boolean replace, Int32 width, TrickplayOptions options, CancellationToken cancellationToken)
[2024-06-18 13:53:53.163 +02:00] [INF] [31] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Generate Trickplay Images" Completed after 1 minute(s) and 25 seconds
I've tried both with hw encoding enabled and disabled, but the result doesn't change. I verfied during generation that the output directory is created and populated with jpgs.
I'm using the official docker container, with the following docker-compose configuration:
Code:
jellyfin:
image: jellyfin/jellyfin
user: $PUID:$PGID
devices:
- /dev/dri:/dev/dri
container_name: jellyfin
network_mode: host
environment:
- JELLYFIN_DATA_DIR=/config/data #Uncomment for Jellyfin Images
- JELLYFIN_CONFIG_DIR=/config #Uncomment for Jellyfin Images
- JELLYFIN_LOG_DIR=/config/log #Uncomment for Jellyfin Images
- JELLYFIN_CACHE_DIR=/config/cache #Uncomment for Jellyfin Images
- TZ=$TZ
- UMASK="022"
- JELLYFIN_PublishedServerUrl=<snip>
volumes:
- ./jellyfin/config:/config
- ./jellyfin/cache:/cache
- $MEDIA_DIR:/media
restart: unless-stopped
I was unfortunately unable to find any instance of this problem being discussed anywhere, so any help is appreciated.