Hardware Transcoding issue (quicksync) in docker

Haha, I agree! I set it to that just to test transcoding. I have original quality set for local and remote!

Thanks again for the help I greatly appreciate it.

DS420+ @ DSM 7.1 here with a Geminilake CPU. Following I can see happening on my PMS setup (spk installed, no Docker):

VaapiDriver=“i965” in Preferences: Transcoding speed at about 2.5x, but no “(hw)” there, so I guess it just ignores my hardware transcoding.

VaapiDriver=“i965” NOT in Preferences: Transcoding speed at about 0.2x, (hw) braces are there. This was with the latest 1.32.4. So it’s unusable… With your 1.32.5 version and driver copied over it is at about 0.9x speed, so still way too slow compared to the i965 solution above.

In DSM 6 all was fine with directly calling i965 VAAPI and the speed increase by doing so was astonishing, now Plex seems to have two options: Slow hw transcode or NO hw transcode and more speed. I wonder what might be wrong here though. Others are happily running Plex with hw acceleration as it seems…

Plex Media Server Logs_2023-06-07_11-00-24.zip (2.6 MB)

These log contain the tests of yesterday and the day before AND the new version off Google Drive in today’s log. Any clue what’s wrong here?

EDIT: NEVER try to drag and drop a file off a ZIP into the Brwoser with open Synology File Manager… It was 0 kB in size. New logs and quite nice speed now:

Plex Media Server Logs_2023-06-07_11-18-14.zip (2.2 MB)

I think I am silent now 5.5x speed Tautulli says. :smiley:

@dreimer1986

You have subtitle burning – that skews everything.

Test/Play and transcode a video with no subtitles

un 07, 2023 11:16:10.699 [139778912754488] DEBUG - [Req#9e/Transcode] TPU: hardware transcoding: using hardware decode accelerator vaapi
Jun 07, 2023 11:16:10.699 [139778912754488] DEBUG - [Req#9e/Transcode] TPU: hardware transcoding: zero-copy support present
Jun 07, 2023 11:16:10.699 [139778912754488] DEBUG - [Req#9e/Transcode] TPU: hardware transcoding: not using zero-copy because subtitle burning is required
Jun 07, 2023 11:16:10.699 [139778912754488] DEBUG - [Req#9e/Transcode] [Universal] Using local file path instead of URL: /volume1/video/TV show/My Clueless First Friend/S01/My Clueless First Friend - S01E01 - Der Shinigami und der Schulwechsler.mkv
Jun 07, 2023 11:16:10.699 [139778912754488] DEBUG - [Req#9e/Transcode] Codecs: hardware transcoding: testing API vaapi

You are getting HW transcoding but your performance is skewed because the CPU must burn the subtitles,.

Jun 07, 2023 11:16:10.701 [139778912754488] INFO - [Req#9e/Transcode] Preparing driver imd for GPU GeminiLake [UHD Graphics 600]
Jun 07, 2023 11:16:10.701 [139778912754488] DEBUG - [Req#9e/Transcode/DriverDL/imd] Skipping download; already exists
Jun 07, 2023 11:16:10.701 [139778912754488] DEBUG - [Req#9e/Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Jun 07, 2023 11:16:10.702 [139778912754488] DEBUG - [Req#9e/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS=‘/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex\ Media\ Server/Codecs/8217c1c-4565-linux-x86_64/’ LIBVA_DRIVERS_PATH=“/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Cache/va-dri-linux-x86_64” XDG_CACHE_HOME=“/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Cache” XDG_DATA_HOME=/volume1/@appstore/PlexMediaServer/Resources X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx “/volume1/@appstore/PlexMediaServer/Plex Transcoder” -codec:0 h264 -hwaccel:0 vaapi -hwaccel_fallback_threshold:0 10 -hwaccel_device:0 vaapi -analyzeduration 20000000 -probesize 20000000 -i “/volume1/video/TV show/My Clueless First Friend/S01/My Clueless First Friend - S01E01 - Der Shinigami und der Schulwechsler.mkv” -map_inlineass 0:2 -filter_complex "[0:0]scale=w=1280:h=720:force_divisible_by=4[0];[0]format=pix_fmts=nv12[1]

Only when using the iHD driver.
No problems with subtitle burning when using i965, but there is a new issue since 1.32.1 or 1.32.2 with i965 now apparently.

I tried to update to 1.32.5.7210 coming from 1.32.5.7145 and I wonder if I have to do aynthing regarding the i965_drv_video.so file in Cache. HW transcoder still is in a bad mood as it seems.

Plex Media Server Logs_2023-06-29_11-23-36.zip (1.3 MB)

Here logs of the downgrade version 6999 that is recommended.
Plex Media Server Logs_2023-06-29_11-35-46.zip (948.7 KB)

Here the hw acceleration is completely unused even though its selected for de- and encoding.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.