PMS using MediaSDK or OneAPI? Hardware transcoding failing anyone get 13th gen working

Server Version#: 1.32.0.6918
Player Version#: Latest iPhone plex player
Having a heck of a time getting hardware transcoding working correctly. I’m starting to think maybe its the plex server software that need to be update?

I am running windows 10. intel 13900 CPU with U770 Graphics. If I click on a 4k video to stream to my phone I get audio no video. If I go in and manually change the stream quality to something other then auto I will get audio and video except its software transcode.

Just wondering if maybe plex server needs to be updated to support the latest gen CPU’s? I know intel changed from mediaSDK to oneAPI. Not sure if that is playing a part here. Has anyone got hardware transcode working with latest gen intel CPU/GPU?

If your 4K video has HDR, it can’t hardware transcode with Windows. Windows is unable to hardware tonemap with iGPU:

https://support.plex.tv/articles/hdr-to-sdr-tone-mapping/

If you want to use Windows, you need an Nvidia GPU to transcode 4K HDR. You could also turn off HDR Tone Mapping but then your colors will look bland.

Your other option is to switch to Linux.

1 Like

Doesnt work under linux either. Under linux system stays up about 3 hours then crashes. Good to know about windows though. I tried ubuntu with plex worked great for 3 hrs then consistent crashes.

It would appear there are pitfialls with just about every direction you choose with plex. Any chance of them fixing the tone mapping issue under windows anytime in the near furture. That seems like a pretty big one to leave out.

Wonder if I can run linux in a docker container under windows to solve this. Might be worth trying.

No one knows if or when Plex will enable tone mapping with iGPU on Windows.

Attach your Plex logs under Linux and a Plex employee may be able to assist you:

https://support.plex.tv/articles/200250417-plex-media-server-log-files/

I think I’ve seen a few people getting it to work with docker in Windows so you can give it a try.

1 Like

Got plex installed under docker using Docker

Got docker container started using
docker run -d --device /dev/dri:/dev/dri --name plex -p 32400:32400/tcp -p 3005:3005/tcp -p 8324:8324/tcp -p 32469:32469/tcp -p 1900:1900/udp -p 32410:32410/udp -p 32412:32412/udp -p 32413:32413/udp -p 32414:32414/udp -e TZ=“US/Pacific” -e PLEX_CLAIM=“claim-myuniqueID” -e ADVERTISE_IP=“http://192.168.3.12:32400/” -h WIN10-PlexServer -v C:\plex_database:/config -v C:\temp:/transcode -v E::/media0 -v H::/media1 -it plexinc/pms-docker

Once container is started I can open a shell type:

ls -l /dev/dri

total 0
crw------- 1 root root 226, 0 Apr 15 21:49 card0
crw------- 1 root root 226, 128 Apr 15 21:49 renderD128

I can see the video driver but plex still does not use it. Stumped at this point. I installed the linux drivers for the video card. Still can not get plex to HW transcode. It always wants to SW transcode. I am pointing to a 4k dolby vision video. I was able to transcode this with HW under linux. But stuck with the windows->docker->llinux

I can see it try and load nvidia drivers but seems to skip over testing for intel

Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing h264_nvenc (encoder)
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvenc
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.025 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for h264_nvenc
Apr 15, 2023 22:11:58.025 [0x7f867386fb38] DEBUG - [Req#ca8] Library item 6049 ‘Avatar: The Way of Water’ got skipped for account ID 1.
Apr 15, 2023 22:11:58.026 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] User is madeup (ID: 1)
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] Device is iOS (iPhone).
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] Profile is iOS
Apr 15, 2023 22:11:58.026 [0x7f867386fb38] DEBUG - [Req#ca8] [Now] Updated play state for /library/metadata/6049.
Apr 15, 2023 22:11:58.027 [0x7f867386fb38] DEBUG - [Req#ca8] Statistics: (278CDD66-F490-4580-BA9A-E817128F12FF) Reporting active playback in state 3 of type 1 (scrobble: 0) for account 1
Apr 15, 2023 22:11:58.027 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API vaapi
Apr 15, 2023 22:11:58.027 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Apr 15, 2023 22:11:58.027 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.028 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Apr 15, 2023 22:11:58.029 [0x7f86751f8b38] DEBUG - Completed: [172.17.0.1:50518] 200 GET /:/timeline?bufferedTime=0&col=49&context=source%3Acontent.library&continuing=1&duration=11558088&key=%2Flibrary%2Fmetadata%2F6049&location=lan&playQueueItemID=15&playbackTime=10805&ratingKey=6049&row=49&state=stopped&time=0 (18 live) #ca8 TLS GZIP 14ms 777 bytes (pipelined: 5)
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvdec
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.029 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Selected protocol hls; container: mp4
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: analyzing media item 15680
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): Direct Play is disabled
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): media must be transcoded in order to use the hls protocol
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): no direct play video profile exists for http/mkv/hevc
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): no direct play video profile exists for http/mkv/hevc/aac
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): Direct Streaming is disabled, so video stream will be transcoded
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): no remuxable profile found, so video stream will be transcoded
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing h264_nvenc (encoder)
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvenc
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.031 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for h264_nvenc
Apr 15, 2023 22:11:58.032 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Apr 15, 2023 22:11:58.032 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice vaapi
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API vaapi
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.033 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Apr 15, 2023 22:11:58.034 [0x7f86729f3b38] DEBUG - Request: [172.17.0.1:50518 (Subnet)] GET /hubs/continueWatching/items?contentDirectoryID=1&includeExternalMedia=1&includeMeta=1 (18 live) #cbf TLS Page 0-49 GZIP Signed-in Token (madeup) (iPhone)
Apr 15, 2023 22:11:58.034 [0x7f86729f3b38] DEBUG - [Req#cbf] HubCache: Retrieving ‘1/continueWatching/1/hubs/continueWatching/items/enexternal-media,hub-style-list/contentDirectoryID=1&includeExternalMedia=1&includeMeta=1’ from the cache.
Apr 15, 2023 22:11:58.034 [0x7f86729f3b38] DEBUG - Setting container serialization range to [0, 49] (total=-1)
Apr 15, 2023 22:11:58.035 [0x7f86753fbb38] DEBUG - Completed: [172.17.0.1:50518] 200 GET /hubs/continueWatching/items?contentDirectoryID=1&includeExternalMedia=1&includeMeta=1 (18 live) #cbf TLS GZIP Page 0-49 0ms 596 bytes (pipelined: 6)
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: testing API nvdec
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] ERROR - [Req#ca3/Transcode] [FFMPEG] - Could not dynamically load CUDA
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Could not create hardware context for hevc
Apr 15, 2023 22:11:58.035 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): Audio Direct Streaming is disabled, so video’s audio stream will be transcoded
Apr 15, 2023 22:11:58.035 [0x7f86725edb38] DEBUG - Request: [172.17.0.1:50536 (Subnet)] GET /library/metadata/6049?asyncAugmentMetadata=1&checkFiles=1&includeChapters=1&includeConcerts=1&includeExternalMedia=1&includeExternalMetadata=1&includeExtras=1&includeGeolocation=0&includeMarkers=1&includeMeta=1&includeOnDeck=1&includePlexLinks=1&includePopularLeaves=1&includePreferences=0&includeRelated=0&includeRelatedCount=15&includeReviews=1 (18 live) #cb0 TLS GZIP Signed-in Token (madeup) (iPhone)
Apr 15, 2023 22:11:58.037 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Cannot direct stream audio stream due to profile or setting limitations
Apr 15, 2023 22:11:58.037 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] MDE: Avatar: The Way of Water (2022): selected media 0 / 15680
Apr 15, 2023 22:11:58.039 [0x7f86725edb38] DEBUG - [Req#cb0] It took 10.000000 ms to retrieve 180 items.
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Killing job.
Apr 15, 2023 22:11:58.040 [0x7f8673b6ab38] DEBUG - [Req#ca3/Transcode] Streaming Resource: Session 0x7f8674719648:278CDD66-F490-4580-BA9A-E817128F12FF changed transcode slot usage to used. Used slots is now 1
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Signalling job ID 4497 with 9
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Job was already killed, not killing again.
Apr 15, 2023 22:11:58.040 [0x7f8670188b38] DEBUG - [Req#ca3/Transcode] Stopping transcode session 6EC4D7BE-EFDC-4F05-8055-E356B2BE2DD8

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