Hardware Accelerated Decode (Nvidia) for Linux

So is the answer here to upgrade to the 1.15 Alpha, and then use the hack?

Or could one just copy the binary from that build, and have it work with the current build? I’d like to give this a shot, but don’t really want to go the full Alpha route.

Thanks!

I think the answer is to simply be patient and wait for them to finish working on it so it doesn’t blow up your system.

The binary would likely work, but don’t forget to copy over the linked libraries as well, they are under /usr/lib/plexmediaserver and/or /usr/lib/plexmediaserver/lib

1 Like

As of now the 1.15 version is not alpha. It’s just beta.

1 Like

Forgive my ignorance, but does that mean we are just now waiting for an FFMPEG update which is going to happen, but we don’t know when? (soon?).

I guess it’s not added in 1.15? Or was it? This can get confusing! :grinning:

Currently decoding is not supported. However it has been found to be made “functional” with an above patch. The extent of this functionality is unknown and varies in experience. To my knowledge no additional upgrades to the underlying systems are needed, just work to make Plex work with decoding in the Linux system, as I personally have used Plex to encode and decode on my GPU with the patch. As far as the timeline for an official release, no one can really say, employee or not.

Thanks for the breakdown. I have GPU HW encoding working on my system and now that 1.15 is in Beta I can easily try it out (I run dockers). Will be interesting to see!

I’ve also got the patch working in docker, so have fun fiddling!

Are you running on Unraid server? (with PLEX official Docker) ?

IDK if you were asking me, but I’m on Ubuntu with the Linux server image. But the official image is virtually identical on the inside.

Can anyone who has tried the beta comment on their findings? Is nvidia hardware decoding working on linux/docker? How well?

See above

If you run nvidia-smi pmon, do you see the decoding column show any activity? I can confirm I have everything setup correctly and that ffmpeg is getting the full command but I don’t see any decoding activity.

Yeah it shows decoding activity.

tangent question - does the 1060 have an advantage over the 1050 besides the obvious? only asking because i see that gpu be mentioned more than the 1050.

don’t think so, but the 1030 does not have any encoder function.

keep in mind, decoding 4k is the hard part.

encoding 1080/720 has been done by cpu for years so thats not the real problem, although gpu encoding does obviously lighten the load on the cpu, for either other stuff, or less need for more cpu power.

also, plex does not encode to x265, so 265 gpu encoding doesn’t matter so much for plex transcoding. though it may be useful for other purposes (handbrake etc).

Got it. I was concerned I bought the wrong card.

Yeah, I don’t ever plan to do anything but direct stream for 4k content. Like you’ve seen in my other posts, I’m having general issues on GPU even though its just one stream + 1080p

I also have it decoding apparently

nvidia-smi dmon -s u
# gpu    sm   mem   enc   dec
# Idx     %     %     %     %
    0    28     3    13    19
    0    25     3     6    24
    0    28     3    12    19
    0    24     3     6    22
    0    24     3     7    20
    0    30     3    13    19
    0    30     3    13    20
    0    29     3    12    19
    0    25     3     7    24
    0    26     3     6    24
    0    28     3    14    20
    0    31     4    13    21
    0    22     3     6    20
    0    25     3     9    20
    0    27     3    10    21
    0    26     3    11    20

However on Plex it doesn’t have (hw) for both - does yours?

I also have 2 processes for Plex Transcoder2 when playing 1 file, one to decode and one to encode I suppose?

Since this is a hack plex wouldnt be aware that Hardware decoding is being used.

Someone earlier mentiones playback issues when using a browser using this approach. Is that still the case?

1 Like

I have been messing around with it and have not found a problem case yet. Android phone, fire TV, Roku, and web browsers. Also (hw) does not show for decoding in plex.