Hello all,
I’ve used Plex for a while and just recently started trying to get into 4k video on my plex server. I quickly realized the server wasn’t capable of transcoding 4k with constant stuttering and buffering. So, I looked up info on it and found out about hardware acceleration. Before I build a new server with a gpu that can hardware accelerate I wanted to give things a try. So I tested it on my desktop. Installed Plex Media server and all on here.
I enabled the option under transcoder to user hardware acceleration, however when I go to activity while playing a 4k video it does not show (hw) as the guide says it should. Just says transcoding HEVC to H264. And it’s also pretty obvious that the GPU is not getting used because my CPU usage for Plex Media Server is at 100%.
I have a GTX 1070 Ti GPU, and an i7 8700k CPU. Both of which should fully support all the necessary features for hardware transcoding based on what I’ve read. I’m also running the latest version of Plex Media Server (version 1.13.4.5271).
Can anyone tell me what might be wrong to prevent hardware transcoding from working?
Hmm, another update. I got it to work on a couple of 4k videos. Is there a max bitrate that it can hw transcode? I haven’t found the similarity between the ones that aren’t working, and the ones that are for sure yet, but I have two that aren’t working a 59.3 Mbps, and a 67.2 Mbps. Then I have 3 others that do work a 17.7 Mbps, 22.1 Mbps, and 27.3 Mbps. All 5 videos are HEVC source, 2 of them are HDR (one that works 27.3 Mbps, and one that doesn’t work 67.2 Mbps).
If you can provide the log from PMS after trying to play one of these files that don’t work, it will say why HW wasn’t used. Make sure you have debug logging turned on before.
Ok, here is the part of the log when trying to play the video that doesn’t work:
Jul 27, 2018 17:44:07.451 [5940] INFO - [FFMPEG] - MFT name: 'Microsoft AAC Audio Encoder MFT'
Jul 27, 2018 17:44:07.608 [5940] INFO - [FFMPEG] - MFT name: 'Microsoft AAC Audio Encoder MFT'
Jul 27, 2018 17:44:08.366 [10712] ERROR - [Transcoder] [h264_nvenc @ 03da1200] InitializeEncoder failed: invalid param (8)
Jul 27, 2018 17:44:08.399 [6160] ERROR - [Transcoder] Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Jul 27, 2018 17:44:08.473 [11612] INFO - [FFMPEG] - MFT name: 'Microsoft AAC Audio Encoder MFT'
Jul 27, 2018 17:44:08.475 [11612] INFO - [FFMPEG] - MFT name: 'Microsoft AAC Audio Encoder MFT'
Jul 27, 2018 17:44:24.287 [8624] WARN - Transcode runner appears to have died.
Jul 27, 2018 17:44:24.287 [5940] WARN - Transcode runner appears to have died.
Jul 27, 2018 17:44:24.389 [8624] WARN - Timed out waiting for segment.
Jul 27, 2018 17:44:24.389 [5940] WARN - Timed out waiting for segment.
And then the XML. I got a second version of the file which is shown here as well. The first Media file does not work (it’s the one I tried to play for the log snippet above. The second media file plays with hw transcoding just fine.
Can you provide the entire log, please. The parameters would have been listed earlier. Although I think the issue is that you have a 4k video and the hw transcoder might not be capable of handling 4k.