Hardware Accelerated Decode (Nvidia) for Linux

Also I added “adnanklink/plex-norelay-hwdecoding” to the docker hub to automate the patch on linux.

2 Likes

Working in ubuntu 16.04 for me as well.

It will be interesting to see what happens to my overall cpu load over time.

Interestingly enough, I am testing transcoding a 4k HEVC movie, and I’m noticing that the transcoding progress is much closer to the playback process than for h264 content. I know that 4k transcoding right now is not realistic because of HDR loss in transcoding, but it seems like the amount of buffer may need to be adjusted for 4k. So far I’m seeing the transcode progress only 1% ahead of playback, so there is some buffering at times.

h264 playback is just fine and shows no issues, the transcoding progress always 10%+ ahead.

Again, this is a hack, decoding is not full supported yet, but it should
work well once some adjustments are made.

Just an FYI - Plex currently does not have support for HEVC HW transcoding (h.265), only h.264.

As @ChuckPA has mentioned, many of these issues will get cleaned up when FFMPEG is updated.

1 Like

I get that, I’m using the hack/work around so the h.265 movie was transcoded down to h264. And it works… it just needs to be buffered a bit more. Again, like I said I get that we are utilizing a hack and some of these issues still need to be cleaned up. It was more of a test to see if it works, and it does.

Completely understand, just want people who may drop in and not read the whole thread to understand what is Plex ‘current state” vs hack enhancement.

Do you have any information you could share regarding any time scale for the FFMPEG update?

Will it be on a different Plex release than 1.15?

We’re all super excited over this! :grinning:

If it’s not clear by now, they’re not going to tell us their plans. I’d encourage patience as we let the awesome plex team do their things.

1 Like

Direct play/ Direct streaming should still work. Plex only calls their transcoder when needed. The transcoder doesnt decide that.


Direct Streams are not showing up on the gpu processes. Only the 4 video transcodes are.

2 Likes

Ok I must have something else going on.

Thanks!

Subtitles hit the video.

Any ideas of how to pass the “-hwaccel nvdec” on Windows?

plex already supports hardware decoding on windows.

if yours doesn’t you got other problems.

1 Like

@TeknoJunky
I’m not using PMS on Windows.
PMS has never used nvdec before and other people have been asking me, that’s why I ask.
Can you show me the transcoding switches Plex uses for this new version with ffmpeg in Windows with nvidia GPU?

On Windows Plex uses dxva for both decode and encode with Nvidia

1 Like

AnonymousRetard’s simple wrapper for Plex Transcoder seems to function flawlessly for me. CPU is now only being hit for audio transcoding. I am running plex via docker in a gentoo host leveraging a quadro p400 with keylase’s patch for 390.87.

1 Like

well ok then.

1 Like

ON TOPIC:

Does anyone have any ideas of how to force nvdec and nvenc to Plex Transcoder in Windows?

Because in this thread a script/hack was posted to modify the Plex Transcoder. Therefore I asked the user that made it.

It is about the same level of off topic as another user posting in this thread, seeking help with an unofficial script not having to do with Plex.

Stop polluting the thread.