Jellyfin Forum
Trick Play Generation issues - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: Trick Play Generation issues (/t-trick-play-generation-issues)



Trick Play Generation issues - smmx - 2024-07-02

Hello,

I'm new to Jellyfin and I'm trying to get my library's Chapter, trickplay, subtitles, etc. all set up.

I'm trying to run the trickplay extract process and it's just simply not working. I have it running in a Proxmox LXC (created by proxmox helper scripts). Version 10.9.6

The logs initially showed the following:
Code:
[2024-07-01 20:19:23.032 -04:00] [INF] Creating trickplay files at 320 width, for "/mnt/media_root/TV/Entourage/Season06/Entourage.S06E02.Amongst Friends.mkv" [ID: 4a1bda60-c038-a9d4-0095-5b1720fad961]
[2024-07-01 20:19:23.032 -04:00] [INF] Trickplay generation: "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 2 -noautorotate -i file:\"/mnt/media_root/TV/Entourage/Season06/Entourage.S06E02.Amongst Friends.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 2 -c:v mjpeg -qscale:v 4 -f image2 \"/var/cache/jellyfin/temp/3a5f7bab2e2b46b99930bbf36e2b3b7d/%08d.jpg\""
[2024-07-01 20:20:03.034 -04:00] [INF] Trickplay process unresponsive.
[2024-07-01 20:20:03.035 -04:00] [INF] Stopping trickplay extraction.
[2024-07-01 20:20:04.035 -04:00] [INF] Killing ffmpeg process
[2024-07-01 20:20:04.036 -04:00] [ERR] ffmpeg image extraction failed for "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 2 -noautorotate -i file:\"/mnt/media_root/TV/Entourage/Season06/Entourage.S06E02.Amongst Friends.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 2 -c:v mjpeg -qscale:v 4 -f image2 \"/var/cache/jellyfin/temp/3a5f7bab2e2b46b99930bbf36e2b3b7d/%08d.jpg\""
[2024-07-01 20:20:04.036 -04:00] [ERR] Error creating trickplay images.
MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 2 -noautorotate -i file:"/mnt/media_root/TV/Entourage/Season06/Entourage.S06E02.Amongst Friends.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 2 -c:v mjpeg -qscale:v 4 -f image2 "/var/cache/jellyfin/temp/3a5f7bab2e2b46b99930bbf36e2b3b7d/%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-07-01 20:20:04.741 -04:00] [INF] "Generate Trickplay Images" Completed after 0 minute(s) and 42 seconds

Now when I re-run I only get the following:
Code:
[2024-07-01 20:52:53.017 -04:00] [INF] "Generate Trickplay Images" Completed after 0 minute(s) and 0 seconds.

I've tried with and without hardware decoding on. Any suggestions on what I can try to fix this?

Thank you


RE: Trick Play Generation issues - TheDreadPirate - 2024-07-02

A) is trickplay enabled in the library settings
B) if it is already enabled, do you also have trickplay generation on library scan enabled?


RE: Trick Play Generation issues - smmx - 2024-07-02

(2024-07-02, 03:23 AM)TheDreadPirate Wrote: A) is trickplay enabled in the library settings
B) if it is already enabled, do you also have trickplay generation on library scan enabled?

a) Yes - on all libraries I have
b) No


RE: Trick Play Generation issues - TheDreadPirate - 2024-07-02

Pick a show or movie and refresh metadata, select "replace all metadata" and check replace images. Jellyfin will attempt to recreate the trickplays and re-extract chapter images.

How do the logs look when you do this?


RE: Trick Play Generation issues - smmx - 2024-07-04

(2024-07-02, 03:49 PM)TheDreadPirate Wrote: Pick a show or movie and refresh metadata, select "replace all metadata" and check replace images.  Jellyfin will attempt to recreate the trickplays and re-extract chapter images.

How do the logs look when you do this?

I may have had a permissions issue with the file mount, along with needing to increase my disk space slightly.

I see trick play in the web client but I’m not seeing trick playing in Swiftfin or the Jellyfin android app.

It sounds like this feature is not yet available in these apps. If that’s the case I don’t think I have any issues with Jellyfin itself, rather I need patience while the apps get support.


RE: Trick Play Generation issues - TheDreadPirate - 2024-07-04

AFAIK, Swiftfin definitely doesn't support trickplay. Keep in mind that Swiftfin is still a beta/not feature complete. But it has seen a lot of development recently.

As for Android, I tried Findroid (exo and mpv) and the official app (exo and web) and only the official app with the web player showed the trickplays. But that comes with its own compromises.