Jellyfin Forum
Hardware acceleration on Synology DS224+ - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Hardware acceleration on Synology DS224+ (/t-hardware-acceleration-on-synology-ds224)

Pages: 1 2 3


RE: Hardware acceleration on Synology DS224+ - TheDreadPirate - 2024-12-04

The parameters of that command won't use the GPU for encoding (libx264 is a CPU encoder).

If this is a plain version of ffmpeg7, and not jellyfin-ffmpeg7, you may not have all the media drivers needed to use hardware acceleration.

You could open a bash shell into the Jellyfin container and use jellyfin-ffmpeg from within the container. JF ffmpeg comes bundled with all the Intel media drivers needed for transcoding.

Here is how a hardware accelerated ffmpeg command would look like.

Code:
ffmpeg -init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 -fflags +genpts+igndts -loglevel error -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel qsv -hwaccel_output_format qsv -i "/path/to/video.mkv" -map 0 -c:v h264_qsv -c:a copy -c:s copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mkv

BACKING UP A BIT. Can you share your ffmpeg logs from jellyfin? Dashboard > Logs. So we can see why the playback failed. I'm thinking the video is some variety of Dolby Vision.


RE: Hardware acceleration on Synology DS224+ - The Bow-Tie Guy - 2025-04-06

I have kinda the same problem! Got my Synology DS224+ just days ago and was very excited to test Jellyfin. Everything works great and than I`ve read something about hardware acceleration. Everything will play and I don´t mean any fancy 4k ripp. I almost have only 1080p and old DVD rips there.
What I don´t understand because I am really a newbie is how to enable it on my Synology NAS or if I need it in the first place. My CPU usage is with most files at 85%. But I was curious and tried a few things which where recommended online which lead re-installing jellyfin.
I tried open a project in the Docker container.... but most of the time I don´t know what I am doing there. Well and this is my biggest problem.
What I understand is that jellyfin as a docker project can´t handle things outside the docker image with the hardware and so you have to tell it what to do.

I did this:

services:
jellyfin:
image: jellyfin/jellyfin:10.8.11
container_name: jellyfin
# user: uid:gid
network_mode: 'host'
volumes:
- ./configConfused-faceconfig
- ./cacheConfused-facecache
- /volume1/Media/FilmeConfused-facemovies:ro
- /volume1/Media/TV ShowsConfused-facetv_shows:ro
devices:
- /dev/dri/renderD128Confused-facedev/dri/renderD128
- /dev/dri/card0Confused-facedev/dri/card0
#note: uncomment these lines in devices to allow for HWA to work on Synology units with an iGPU
restart: 'unless-stopped'

Which I know wasn´t completely right cause I didn´t specify the cache and config locations. But with this and a fresh install it doesn´t let me open the port for jellyfin and so I couldn´t reach the server from within in my network.


RE: Hardware acceleration on Synology DS224+ - TheDreadPirate - 2025-04-06

Can you share your jellyfin logs via privatebin.net? And your ffmpeg logs (in the same directory as your jellyfin log).

But you have to keep in mind that some CPU usage is still expected. Audio transcoding will always occur on the CPU as will subtitle burn in. The GPU will handle the final encoding step.


RE: Hardware acceleration on Synology DS224+ - The Bow-Tie Guy - 2025-04-06

https://privatebin.net/?fbaf9c21206804e2#4iUuGEiFhMt6BL5a6j4PuVzRapy3tgWPnNHe8zUhcJmv

I think I didn`t do ti right.

The log I found seem to be to big to post. Sorry I am just just a newbie with this.


RE: Hardware acceleration on Synology DS224+ - The Bow-Tie Guy - 2025-04-06

I found the log´s your were talking about but can´t seem to download it and never used privatbin before.

Just to be clear... do I necessarily need to activate hardware acceleration?


RE: Hardware acceleration on Synology DS224+ - TheDreadPirate - 2025-04-06

The ffmpeg log is showing CPU encoding.

Code:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))

Can you share screenshots of Dashboard > Playback > Transcoding?

(2025-04-06, 04:26 PM)The Bow-Tie Guy Wrote: I found the log´s your were talking about but can´t seem to download it and never used privatbin before.

Just to be clear... do I necessarily need to activate hardware acceleration?

You don't need it, but you should if it is available.


RE: Hardware acceleration on Synology DS224+ - The Bow-Tie Guy - 2025-04-06

You mean fron Jellyfin on my iPad?


RE: Hardware acceleration on Synology DS224+ - The Bow-Tie Guy - 2025-04-06

   
TheDreadPirate dateline='[url=tel:1743956849' Wrote: 1743956849[/url]']
The ffmpeg log is showing CPU encoding.

Code:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))

Can you share screenshots of Dashboard > Playback > Transcoding?

The Bow-Tie Guy dateline='[url=tel:1743956795' Wrote: 1743956795[/url]']
I found the log´s your were talking about but can´t seem to download it and never used privatbin before.

Just to be clear... do I necessarily need to activate hardware acceleration?

You don't need it, but you should if it is available.

The Bow-Tie Guy dateline='[url=tel:1743959830' Wrote: 1743959830[/url]']
You mean fron Jellyfin on my iPad?



RE: Hardware acceleration on Synology DS224+ - The Bow-Tie Guy - 2025-04-06

   
The Bow-Tie Guy dateline='[url=tel:1743960468' Wrote: 1743960468[/url]']

TheDreadPirate dateline='[url=tel:1743956849' Wrote: 1743956849[/url]']
The ffmpeg log is showing CPU encoding.

Code:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))

Can you share screenshots of Dashboard > Playback > Transcoding?

The Bow-Tie Guy dateline='[url=tel:1743956795' Wrote: 1743956795[/url]']
I found the log´s your were talking about but can´t seem to download it and never used privatbin before.

Just to be clear... do I necessarily need to activate hardware acceleration?

You don't need it, but you should if it is available.

The Bow-Tie Guy dateline='[url=tel:1743959830' Wrote: 1743959830[/url]']
You mean fron Jellyfin on my iPad?



RE: Hardware acceleration on Synology DS224+ - TheDreadPirate - 2025-04-06

You didn't select Intel Quick Sync from the drop down. You then need to check the boxes for the codecs your CPU supports decoding and encoding with Quick Sync.

Use this table to figure that out. Use the GeminiLake column.

https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video#Hardware_decoding_and_encoding