Hardware Transcoding issues - ApolloLake & GeminiLake CPUs

Before adding that file to the folder my HW transcoding was failing correct. And yes I do have that i965 piece in my preferences (for years now)

Please REMOVE that preference, Remove the file, Retest.

The Intel Media Driver update obsoleted the need for the i965 driver.

Ok. I have removed that from preferences and also removed the file from the folder that you had me add earlier. Just did tests and CPU definitely went higher than earlier, did drop back down though so not sure if that was normal or what. Logs attached.

Plex Media Server Logs_2023-05-30_11-55-47.zip (4.3 MB)

Thank you. You can put it back now.

I see it. The decoder failed to engage. It was HW encoding.

Thanks. Should I add that line back in the preferences as well, or that can be left alone?

Final test. Just place the driver file.

ALSO: Play something WITHOUT subtitles as it skews the results.

May 30, 2023 11:55:06.650 [139970065210168] DEBUG - [Req#14fe/Transcode/Req#1500] Subtitles: Found a candidate subtitle language [en] for a foreign film
May 30, 2023 11:55:06.650 [139970065210168] DEBUG - [Req#14fe/Transcode/Req#1500] Audio Stream: 497210, Subtitle Stream: 497211

With 6999, why there is no driver in this folder? How HW transcoding works in 6999 withou

@ChuckPa
I have the file placed in the folder under Cache. Nothing mentioning i965 driver in my preferences. Here is the logs below. I disabled subtitles for the file I was testing with.

Plex Media Server Logs_2023-05-30_12-12-03.zip (4.5 MB)

@CT9AJ

To confirm please ?

Your final test: Seal Team

  1. No subtitles (disabled)
  2. Shows HW decode & HW encode.
  3. You do not have HardwareDevicePath="i965" in Preferences.xml

@Horia_Miclea

The driver itself updated. The i965 support should not be needed. The IMD (Intel Media Driver) is supposed to do the work.

This is what we’re trying to figure out – “Where’s the bug?”
It looks like the Intel Media Driver itself is the problem.

@CT9AJ

I’ve provided a known test file (The LG demo)
Please download and place it in an ‘other videos’ section.

Please rerun the test trio again using that file. (Sorry, I should have planned ahead)

This will give known results.

Should have been One Piece. Someone else was watching SEAL Team lol.

I don’t have anything referencing i965 in my Preferences.xml anymore.

One Piece has subtitles = burn.
Test invalidated. Sorry.

May 30, 2023 11:43:37.666 [139970069429048] DEBUG - [Req#984/Transcode] MDE: One Piece - S21 E172 - Luffy Is on the Move! A Turning Point to a New Era!: selected media 0 / 180394
May 30, 2023 11:43:37.667 [139970069429048] DEBUG - [Req#984/Transcode] Streaming Resource: Reached Decision id=74900 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=180394 part=(id=203320 decision=transcode container=mp4 protocol=hls streams=(Video=(id=496832 decision=transcode bitrate=20736 encoder=h264_vaapi width=1920 height=1080) Audio=(id=496833 decision=copy channels=2 rate=44100) Subtitle=(id=497203 decision=burn languageCode=eng location=embedded))))

Looks like it wants vaapi_h264 (VALID)
but burning subtitles changes the actual invocation

Please let me know when you’ve had a chance to test with the LG demo file.

Will do! Is there any particular way my quality settings should be set up? And what tests should I run?

Driver in cache folder
Drive not in cache folder?

@CT9AJ

Player setting however appropriate to cause transcoding and tone mapping.

Two passes please:

  1. Driver file present in directory

  2. Play for 20 seconds (should be able to see it works)

  3. Remove driver and restart PMS (clears it from memory)

  4. Play file (20 seconds)

That can be in one log file provided it’s the LG file (easy to find by searching)

Just did this, 2nd test without the driver couldn’t even get the video to play and CPU was maxed so putting the driver in that folder definitely helps. See attached.

Plex Media Server Logs_2023-05-30_14-22-18.zip (4.0 MB)

are you sure VaapiDriver="i965" is no longer needed? I added that specifically because I had issues with my DS1520+ gemini lake playing back HEVC (IIRC), which then fixed it. This was about a year ago and my preferences file still has it and I haven’t had any issues until 1.32.2.7002.

Similar to this posted issue:

If you look:

robertofabrizi commented on Mar 28, 2022

Almost two years and Intel hasn’t fixed this yet?

It’s SUPPOSED to support it.

I’ll talk to the engineer and ask her to either fix intel’s driver (which she’s done in the past on a few times) or go the i965 route.

All that having been said..

What’s the best option here?

  1. PMS include the i965 driver and NOT require manual selection in Preferences.xml ?

-or-

  1. PMS include the i965 driver and REQUIRE manual selection in Preferences.xml ?

-or-

  1. Other options? ( share your thoughts / wishes please. )
2 Likes

Thanks for the response - honestly, I would keep it as it was in .6999 (I assume that is option 2?) as people that need i965, likely did some googling and found to add it in Preferences.xml. However, if it happens with all gemini lake users, option 1 would be ideal?

Its been awhile since I added it to Preferences.xml and I’m not 100% sure what were the exact problems. Is it because Synology hasn’t updated the drivers?

NASCompares has articles out about fixing performance issues as well:

So IF i965 driver is still needed for smooth HEVC playback on a series of Synologys (DS920+, DS220+, DS420+, DS1520+ and DS720+) - then I think Option 1 would be best. I remember if you don’t edit Preferences.xml correctly, it resets your server configuration unless you have a backup of it. So its not exactly user-friendly for someone to add i965 driver support.