Jellyfin Forum
Allow the use of both the CPU and the GPU when generating Trickplay images - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Feature Requests (https://forum.jellyfin.org/f-feature-requests)
+--- Thread: Allow the use of both the CPU and the GPU when generating Trickplay images (/t-allow-the-use-of-both-the-cpu-and-the-gpu-when-generating-trickplay-images)



Allow the use of both the CPU and the GPU when generating Trickplay images - Bravo-Mike - 2024-05-16

I had an idea that could potentially speed up the generation of Trickplay images in a significant way:

https://features.jellyfin.org/posts/2672/allow-the-use-of-both-the-cpu-and-the-gpu-when-generating-trickplay-images

I'd love to know your thoughts on the feasibility of this method and the effort required to implement it as an option.


RE: Allow the use of both the CPU and the GPU when generating Trickplay images - TheDreadPirate - 2024-05-16

My understanding is that the current process can use the GPU for decoding and CPU for encoding. Part/most of the reason it takes so long is that the entire file needs to be decoded. Based on some other observations, I believe that is a limitation of ffmpeg and not of Jellyfin.


RE: Allow the use of both the CPU and the GPU when generating Trickplay images - gnattu - 2024-05-16

We have an alternate approach that is even faster pending for 10.10: https://github.com/jellyfin/jellyfin/pull/11511

This will make an hour video's trickplay images to be generated in 5-6 seconds, but the thumbnail will be less precise and some hardware video decoder is not compatible with this(so you have to use CPU in these cases)