Jellyfin Forum
SOLVED: Trickplay enabled, but not working - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Trickplay enabled, but not working (/t-solved-trickplay-enabled-but-not-working)

Pages: 1 2 3 4


RE: Trickplay enabled, but not working - TheDreadPirate - 2024-06-07

Dashboard > Scheduled Tasks > Run Generate Trickplay Images job. What happens?


RE: Trickplay enabled, but not working - MisterMcDuck - 2024-06-07

Do you have Trickplays enabled in the library settings?


RE: Trickplay enabled, but not working - mjeshurun - 2024-06-07

(2024-06-07, 05:48 PM)TheDreadPirate Wrote: Dashboard > Scheduled Tasks > Run Generate Trickplay Images job.  What happens?

It just runs and finishes.

Here's the log report generated after I manually run the task.

[22:05:34] [INF] [36] Emby.Server.Implementations.ScheduledTasks.TaskManager: Generate Trickplay Images Completed after 0 minute(s) and 0 seconds


RE: Trickplay enabled, but not working - TheDreadPirate - 2024-06-07

(2024-06-07, 07:06 PM)MisterMcDuck Wrote: Do you have Trickplays enabled in the library settings?

Good point.  I forgot it isn't enabled by default.

   


RE: Trickplay enabled, but not working - mjeshurun - 2024-06-07

(2024-06-07, 07:06 PM)MisterMcDuck Wrote: Do you have Trickplays enabled in the library settings?

Ohhy veyyy, I didn't realize it was necessary to manually enable Trickplay for each library.
Thank you so much! 🙏🙏
Looks like now it's actually scanning my media and generating the Trickplay images.
I'll test once the task finishes.


RE: Trickplay enabled, but not working - mjeshurun - 2024-06-07

I'm seeing errors in the log for the Trickplay Image generation task.
Does anyone know how to fix this? 🙏

[22:37:39] [INF] [54] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Creating trickplay files at 320 width, for /data/media/tv/Masters of the Air/Masters.of.the.Air.S01E03.HDR.2160p.WEB.h265-ETHEL[TGx].mkv [ID: 942f4ba6-8769-1145-4e9b-00cfefe584cf]
[22:37:39] [INF] [54] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/data/media/tv/Masters of the Air/Masters.of.the.Air.S01E03.HDR.2160p.WEB.h265-ETHEL[TGx].mkv" -noautoscale -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale_vaapi=w=320:h=132: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" -threads 1 -c:v mjpeg_qsv -qscale:v 4 -f image2 "/config/cache/temp/f6520cdd40664f94a468480ca27c7c6c/%08d.jpg"
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[22:39:39] [INF] [33] Emby.Server.Implementations.ScheduledTasks.TaskManager: Attempting to cancel Scheduled Task Generate Trickplay Images
[22:39:39] [INF] [40] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Stopping trickplay extraction.
[22:39:40] [INF] [40] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Killing ffmpeg process
[22:39:40] [ERR] [40] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/data/media/tv/Masters of the Air/Masters.of.the.Air.S01E03.HDR.2160p.WEB.h265-ETHEL[TGx].mkv" -noautoscale -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale_vaapi=w=320:h=132: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" -threads 1 -c:v mjpeg_qsv -qscale:v 4 -f image2 "/config/cache/temp/f6520cdd40664f94a468480ca27c7c6c/%08d.jpg"
[22:39:40] [ERR] [40] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/data/media/tv/Masters of the Air/Masters.of.the.Air.S01E03.HDR.2160p.WEB.h265-ETHEL[TGx].mkv" -noautoscale -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale_vaapi=w=320:h=132: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" -threads 1 -c:v mjpeg_qsv -qscale:v 4 -f image2 "/config/cache/temp/f6520cdd40664f94a468480ca27c7c6c/%08d.jpg"
at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.ExtractVideoImagesOnIntervalInternal(String inputArg, String filterParam, String vidEncoder, Nullable1 outputThreads, Nullable1 qualityScale, Nullable`1 priority, CancellationToken cancellationToken)
at Jellyfin.Server.Implementations.Trickplay.TrickplayManager.RefreshTrickplayDataInternal(Video video, Boolean replace, Int32 width, TrickplayOptions options, CancellationToken cancellationToken)
[22:39:40] [INF] [40] Emby.Server.Implementations.ScheduledTasks.TaskManager: Generate Trickplay Images Cancelled after 2 minute(s) and 1 seconds


RE: Trickplay enabled, but not working - TheDreadPirate - 2024-06-07

What CPU/GPU do you have in your system? Try turning off all hardware acceleration for trick play?


RE: Trickplay enabled, but not working - mjeshurun - 2024-06-07

(2024-06-07, 07:53 PM)TheDreadPirate Wrote: What CPU/GPU do you have in your system?  Try turning off all hardware acceleration for trick play?

Intel Core i7-10700 CPU @ 2.90GHz
CometLake-S GT2 [UHD Graphics 630]

As you suggested I disabled hardware accelerated MJPEG encoding in the Trickplay settings and restarted the task, but the error is still happening in the log.


RE: Trickplay enabled, but not working - TheDreadPirate - 2024-06-07

Can you share screenshots of all the settings in Dashboard > Trickplay?


RE: Trickplay enabled, but not working - mjeshurun - 2024-06-07

(2024-06-07, 08:10 PM)TheDreadPirate Wrote: Can you share screenshots of all the settings in Dashboard > Trickplay?

https://imgur.com/a/KcRLqNc