Hardware Transcoding issues - ApolloLake & GeminiLake CPUs

Hello,

I did a test on my Synology DS220+ (Intel Celeron J4025) for PMS in Docker on version 1.32.5.7210. Unfortunately the fix provided seem not to correct the bug for Geminilake processors: no hardware transcoding, CPU 100%. Is there any plan to have it corrected ?

Thanks

1.32.5.7210 fixes hardware transcoding on Apollo Lake.

Gemini Lake will be fixed in a future release, date unknown.

In the meantime, fall back to 1.32.1.6999 (Download: 1.32.2.7002 - #31 by ChuckPa).

Synology does not permit direct fallbacks. You must uninstall the running version before installing 6999. Using DSM Package Center, Uninstall → Are You Sure → Uninstall Only. You can then install 6999.

Subscribe to the Plex Media Server announcement thread. Scroll to the bottom of the thread, change Normal to Watching. You will be notified of updates, including beta releases. When a fix is available for Gemini Lake it should be in the release notes (as it is for Apollo Lake).

1 Like

Thank you, it did the trick.
For those using docker, simply change

image: linuxserver/plex:latest

into

image: linuxserver/plex:version-1.32.1.6999-91e1e2e2c
1 Like

I did make a new topic before seeing this topic but im also seeing HDR Tone mapping with HW Transcoding broken for the 12900K (Alder Lake) CPU. I’m on Unraid 6.12.1 Linux kernel 6.1.34 and plex 1.32.5.7210 and if I try and play a 4K HEVC movie with Tone mapping enabled it wont Hardware transcode and will transcode using the CPU.

If I uncheck HDR Tone mapping then it HW transcodes fine.

The only solution as mentioned here is to roll back my Official PMS Docker container back to 1.32.1.6999-91e1e2e2c all later versions after this break the HDR Tone Mapping HW Transcode and the CPU gets hammered.

I’ve checked with the trick of @ChuckPa about how to configure docker to use the same folders as the app…the latest version 1.32.5.7210 same problem over Docker than over SPK app in a DS920+ NAS with Gemini Lake. No hw transcoding over 6999 version.

Yes! but a lot of people with the same CPU and docker tell me works flawesly…for this reason I did this test…thanks! waiting solution mode = on

Interesting discovery!! I’ve installed a new fresh PMS over docker on my NAS 920+, latest version 1.32.5.7210, and hardware transcoding works flawesly…then we have:

  • PMS SPK, higher 6999 version doesn’t hw transcoding
  • PMS Docker, using same configuration folder as SPK higher 6999 version doesn’t hw transcoding
  • PMS Docker fresh installation, using last version: hw transcoding works OK!!

Seems something not updated on PlexMediaServer folder…maybe some driver @ChuckPa ??

Here’s what happened:

  1. PMS 1.32.0 contained an update to drivers and deployment changes.
    – Certain drivers were changed from ‘shipped with’ to ‘download as needed’ status.

  2. The drivers update broke GeminiLake and ApolloLake iGPU detection.

  3. We’ve been able to get reliable debug info and access to ApolloLake machines so that’s now fixed.

  4. We’ve not been able to get reliable debug info and access to GeminiLake machines.

  5. GeminiLake transcoding remains Unreliable ( works for some things but not for everything )

6 Release 1.31.3.6999 is the highest version which predates the transcoder / driver changes,

This whole thing is crazy.

Some folks have NO PROBLEMS while others have COMPLETE FAIURE
(sounds like my family :rofl: )

3 Likes

Hey - I provided logs above but no reply…

Give me a bit here to catch up? (I’ve had a month from hell and back only a few hours a week)

1 Like

@CT9AJ

This is what I’m talking about:

  1. 4K HD4 demo video – HW not found.
Jun 16, 2023 10:00:13.235 [139797252877112] DEBUG - [Req#9f9c/Transcode/DDB4B8A4-CF5A-45B7-93C8-3D06DF616DA2] Starting a transcode session DDB4B8A4-CF5A-45B7-93C8-3D06DF616DA2 at offset -1.0 (state=3)
Jun 16, 2023 10:00:13.236 [139797252877112] DEBUG - [Req#9f9c/Transcode/DDB4B8A4-CF5A-45B7-93C8-3D06DF616DA2] TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Jun 16, 2023 10:00:13.236 [139797252877112] DEBUG - [Req#9f9c/Transcode/DDB4B8A4-CF5A-45B7-93C8-3D06DF616DA2] [Universal] Using local file path instead of URL: /volume1/Movies/LG Colors of Journey HDR UHD 4K Demo.mkv
Jun 16, 2023 10:00:13.236 [139797252877112] DEBUG - [Req#9f9c/Transcode/DDB4B8A4-CF5A-45B7-93C8-3D06DF616DA2] TPU: hardware transcoding: final decoder: , final encoder: 
Jun 16, 2023 10:00:13.237 [139797252877112] DEBUG - [Req#9f9c/Transcode/DDB4B8A4-CF5A-45B7-93C8-3D06DF616DA2/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex\ Media\ Server/Codecs/8217c1c-4565-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/volume1/@appstore/PlexMediaServer/Plex Transcoder" -codec:0 hevc -codec:1 aac -analyzeduration 20000000 -probesize 20000000 -i "/volume1/Movies/LG Colors of Journey HDR UHD 4K Demo.mkv" -filter_complex "[0:0]scale=w=3840:h=2160:force_divisible_by=4[0];[0]format=p010,tonemap=mobius[1];[1]format=pix_fmts=yuv420p|nv12[2]" -map "[2]" -metadata:s:0 language=eng -codec:0 libx264 -crf:0 16 -maxrate:0 82944k -bufsize:0 165888k -r:0 60 -preset:0 veryfast -x264opts:0
  1. Hardware found and being used (v1.32.4.7164)
Jun 15, 2023 17:33:34.041 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [Universal] Using local file path instead of URL: /volume1/TV Shows/Law & Order - Organized Crime/Season 3/Law & Order - Organized Crime - 3x15 - The Wild and the Innocent.mkv
Jun 15, 2023 17:33:34.041 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] Codecs: hardware transcoding: testing API vaapi
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x32315659 -> yuv420p.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x30323449 -> yuv420p.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x3231564e -> nv12.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x32595559 -> yuyv422.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x59565955 -> uyvy422.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x48323234 -> yuv422p.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x58424752 -> rgb0.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x58524742 -> bgr0.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Format 0x30313050 -> p010le.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Created surface 0x4000000.
Jun 15, 2023 17:33:34.043 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] [FFMPEG] - Direct mapping possible.
Jun 15, 2023 17:33:34.043 [139798068034360] INFO - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] Preparing driver imd for GPU GeminiLake [UHD Graphics 600]
Jun 15, 2023 17:33:34.053 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android/DriverDL/imd] Skipping download; already exists
Jun 15, 2023 17:33:34.059 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Jun 15, 2023 17:33:34.059 [139798068034360] DEBUG - [Req#721b44/Transcode/30bd9c9f83c4abd2-com-plexapp-android/JobRunner] Job running: EAE_ROOT=/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/tmp/pms-951ffecb-f213-4ca9-bd41-c676aaf191f0/EasyAudioEncoder FFMPEG_EXTERNAL_LIBS='/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex\ Media\ Server/Codecs/8217c1c-4565-linux-x86_64/'

Just checking in for a progress update. I have the DS720+ and am sitting on the Engineer build highlighted earlier in this thread, 1.32.5.7145.

Any news for a standard release to fix the Intel Celeron J4125 Gemini lake CPU models?

Hi, is there any update on a fix?
I currently have three plex servers, two iGPU based and a syno ds918, which are unable to use hardware encoding. Would be good to get this going to stop my family shouting at me

Just upgraded to beta on all three servers. Syno now working, NUC based LXC server working. Just coffelake s gt2 UHD630 based VM to go now :+1:

Coffee Lake should be working OK.

1.32.5.7210 fixes hardware transcoding on Apollo Lake.

Gemini Lake will be fixed in a future release, date unknown. In the meantime, fall back to 1.32.1.6999 or try the engineering build mentioned earlier in the thread.

Subscribe to the Plex Media Server announcement thread. Scroll to the bottom of the thread, change Normal to Watching. You will be notified of updates, including beta releases. When a fix is available for Gemini Lake it should be in the release notes (as it is for Apollo Lake).

To add to FordGuy,

All Intel “Core” processors with QSV are working. This includes KabyLake → AlderLake.

1 Like

There is no date yet when the changes will be rolled into the mainline
However, if you look, 1.32.5.7145 is higher than current PlexPass beta 1.32.5.7120
which is correct given where main was built from (ahead of the QA-tested PlexPass 1.32.5.7120)

While not “Official”, it’s still “ahead” of current beta.

That’s great, thanks for the info Chuck. I’ll keep an eye on those build numbers and keep checking.

I’m using DS920+.
Very originally, I use plexpass and it seems to not updated.
I tried the latest one tag.
But I cannot make the HW working at all.
Any ideas?