# Hardware Accelerated Decode (Nvidia) for Linux

**URL:** <https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510>\
**Category:** Feature Suggestions\
**Created:** [April 23, 2018, 10:09am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510 "2018-04-23T10:09:09Z")\
**Posts on this page:** 20\
**Page:** 21

<div class="post-metadata">

**Author:** ![weshofmann](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weshofmann/32/142136_2.png) [@weshofmann](https://forums.plex.tv/u/weshofmann)\
**Post date:** [July 27, 2019, 6:33pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/416 "2019-07-27T18:33:13Z")

</div>

#### QNAP NAS: Nvidia Hardware Transcoding in Plex and Emby Docker Containers

Hey everybody. This thread had some good info that I used to put together some `docker-compose.yaml` files that should bring up Plex or Emby containers that can actually utilize the GPU for transcoding on a QNAP NAS.

#anagj: Thanks for making the docker container that wraps the Plex Transcoder! I’m using that in my compose files!

Here’s my writeup: [https://gist.github.com/weshofmann/620b924cde5dd498880e9315e48e793b](https://gist.github.com/weshofmann/620b924cde5dd498880e9315e48e793b)

---

<div class="post-metadata">

**Author:** ![aptalca](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@aptalca](https://forums.plex.tv/u/aptalca)\
**Post date:** [July 28, 2019, 2:08am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/417 "2019-07-28T02:08:55Z")

</div>

Great write up.  
~~To address the plex cpu usage being higher, that’s because plex doesn’t do hw acceleration for decoding, it’s all software. It only does hw for the encode. In your Plex log, it shows blank for the decoder, and lists nvenc for the encoder.~~

~~Emby on the other hand does hw accel for both decode and encode. It uses cuvid for decode and nvenc for encode.~~

~~There is a way to force Plex to hw decode through a script hack. Basically, folks rename the Plex transcoder and replace it with a script that injects the hardware decode parameters into the Plex transcoder commands. Again, it’s pretty hacky but works for the most part.~~

EDIT: just read the part about how you’re already using the hack through a docker image. Ignore my post, oops

---

<div class="post-metadata">

**Author:** ![weshofmann](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weshofmann/32/142136_2.png) [@weshofmann](https://forums.plex.tv/u/weshofmann)\
**Post date:** [July 28, 2019, 2:18am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/418 "2019-07-28T02:18:16Z")

</div>

Thanks for the info! Yeah, I perused the posts above and I _thought_ that the docker image I was using for Plex included that wrapper. Possibly it’s not playing well with the mangled /usr I’m including. When I have a chance I think I’ll just write up a quick Dockerfile to roll my own container that includes the hack and see if that allows it to decode using the nvidia card. I’ll keep ya posted!

Honestly, for now, I’m actually pretty impressed with Emby and am just considering buying the lifetime license for it and forgetting about Plex. _shrugs_

---

<div class="post-metadata">

**Author:** ![itsflanno](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/itsflanno/32/95009_2.png) [@itsflanno](https://forums.plex.tv/u/itsflanno)\
**Post date:** [July 31, 2019, 1:46am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/419 "2019-07-31T01:46:31Z")

</div>

Any movement in this space? it seems to be largely ignored by plex… which is crazy to me. It’s a very powerful feature that Linux users should be able to use!

---

<div class="post-metadata">

**Author:** ![thetechmarine](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@thetechmarine](https://forums.plex.tv/u/thetechmarine)\
**Post date:** [August 12, 2019, 5:33pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/420 "2019-08-12T17:33:53Z")

</div>

Does Nvidia have fixed drivers for this yet?

---

<div class="post-metadata">

**Author:** ![D34DC3N73R](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/d34dc3n73r/32/108198_2.png) [@D34DC3N73R](https://forums.plex.tv/u/D34DC3N73R)\
**Post date:** [August 15, 2019, 9:33pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/421 "2019-08-15T21:33:28Z")

</div>

I’m now on 430.40 and still have the same problem with hw decoding 2160p HEVC HDR10.

Link to the [emby thread](https://emby.media/community/index.php?/topic/69523-hw-transcoding-issue-2160p-hevc-hdr10-dtshd-51/?p=735468) if anyone is interested

---

<div class="post-metadata">

**Author:** ![Flukethought](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@Flukethought](https://forums.plex.tv/u/Flukethought)\
**Post date:** [August 17, 2019, 3:44pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/422 "2019-08-17T15:44:07Z")

</div>

Hello Plex you there? We are still waiting for something.

---

<div class="post-metadata">

**Author:** ![chrisallen](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chrisallen/32/309972_2.png) [@chrisallen](https://forums.plex.tv/u/chrisallen)\
**Post date:** [August 20, 2019, 11:40pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/423 "2019-08-20T23:40:05Z")

</div>

This is coming. (I have been personally testing it on my P2000) We have some Windows issues to resolve and then we will be working towards a forum preview. I want to get this into the hands of our users to play with as soon as possible 🙂

---

<div class="post-metadata">

**Author:** ![TeknoJunky](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/teknojunky/32/165055_2.png) [@TeknoJunky](https://forums.plex.tv/u/TeknoJunky)\
**Post date:** [August 21, 2019, 2:46pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/424 "2019-08-21T14:46:46Z")

</div>

if the windows problems can’t or won’t be resolved soon, perhaps a linux only preview… since windows already supports decode and linux doesn’t…

---

<div class="post-metadata">

**Author:** ![Adnanklink](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Adnanklink](https://forums.plex.tv/u/Adnanklink)\
**Post date:** [August 22, 2019, 7:57pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/425 "2019-08-22T19:57:04Z")

</div>

Woot! Always glad to hear from plex that things are still moving forward.

---

<div class="post-metadata">

**Author:** ![dRuEFFECT](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@dRuEFFECT](https://forums.plex.tv/u/dRuEFFECT)\
**Post date:** [August 23, 2019, 7:14am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/426 "2019-08-23T07:14:10Z")

</div>

Thank you for chiming in! Been tracking this thread from the early days, so it’s a relief to hear something `unofficially` official at last. 😉

---

<div class="post-metadata">

**Author:** ![chrisallen](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chrisallen/32/309972_2.png) [@chrisallen](https://forums.plex.tv/u/chrisallen)\
**Post date:** [August 24, 2019, 3:26am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/427 "2019-08-24T03:26:30Z")

</div>

Our Transcoder forum preview is live here!

> [@Plex Media Server 1.16.7.1597 (Updated) - New Transcoder Preview](https://forums.plex.tv/t/plex-media-server-1-16-7-1573-new-transcoder-preview/451135):
>
> Hello, forum users! It’s time again for an update to Plex’s transcoding and analysis backend. This is a special forums-only preview release; the changes in this build will be included in an upcoming regular release once any new issues are handled. Please test this version with a variety of different media file formats and clients. If you notice any new issues (specifically ones that don’t also happen on the current beta release), please respond to this discussion instead of starting a new one, …

---

<div class="post-metadata">

**Author:** ![dRuEFFECT](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@dRuEFFECT](https://forums.plex.tv/u/dRuEFFECT)\
**Post date:** [August 24, 2019, 8:55am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/428 "2019-08-24T08:55:56Z")

</div>

I have the “hack” enabled that was shared in this thread many months ago. Are there any effective differences with this release or was that simply overriding to force using the same new transcoder? If there’s a difference, do I need to remove that for the new build to work properly?

---

<div class="post-metadata">

**Author:** ![chrisallen](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chrisallen/32/309972_2.png) [@chrisallen](https://forums.plex.tv/u/chrisallen)\
**Post date:** [August 24, 2019, 9:43am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/429 "2019-08-24T09:43:33Z")

</div>

Yes you will want to remove the. “Hack” this gives you updated ffmpeg and offical nvdec as well as GPU scaling of the video.

---

<div class="post-metadata">

**Author:** ![Ansem93](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Ansem93](https://forums.plex.tv/u/Ansem93)\
**Post date:** [August 24, 2019, 9:35pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/430 "2019-08-24T21:35:14Z")

</div>

Great news that finally transcoding on Nvidia will work on Linux!  
There is any hope that you will support it on AMD too? I have a Linux server with an AMD APU and the only thing stopping me to buy a Plex pass is that I won’t have the hardware transcode feature.

---

<div class="post-metadata">

**Author:** ![xNASHx](https://avatars.discourse-cdn.com/v4/letter/x/bc8723/32.png) [@xNASHx](https://forums.plex.tv/u/xNASHx)\
**Post date:** [August 25, 2019, 6:12pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/431 "2019-08-25T18:12:45Z")

</div>

This is just the moment i’m sure quite a few people have been waiting for " Hardware Accelerated Decode (Nvidia) for Linux" / without having to using the patch. I don’t think it resonated / propagated in communication yet but i’m very very happy.

**Thank You, Plex Team!!!**

---

<div class="post-metadata">

**Author:** ![SharedPlex.tv](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sharedplex.tv/32/3572_2.png) [@SharedPlex.tv](https://forums.plex.tv/u/SharedPlex.tv)\
**Post date:** [August 25, 2019, 6:26pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/432 "2019-08-25T18:26:25Z")

</div>

Yes, thank you. Hopefully, that will move quick in the Plex Pass channel since it cannot be use for now in the Docker image on unraid. When this goes Live in the PlexPass, that will be a lot more “tested” by the community too.

---

<div class="post-metadata">

**Author:** ![dRuEFFECT](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@dRuEFFECT](https://forums.plex.tv/u/dRuEFFECT)\
**Post date:** [August 25, 2019, 9:41pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/433 "2019-08-25T21:41:53Z")

</div>

Idk if it’s a mental thing, but seems like 4K content is transcoding faster with this build. Nice work.

---

<div class="post-metadata">

**Author:** ![tixetsal](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tixetsal/32/185122_2.png) [@tixetsal](https://forums.plex.tv/u/tixetsal)\
**Post date:** [August 26, 2019, 4:16pm UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/434 "2019-08-26T16:16:00Z")

</div>

It’s about time!

---

<div class="post-metadata">

**Author:** ![provider4480](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@provider4480](https://forums.plex.tv/u/provider4480)\
**Post date:** [August 28, 2019, 10:02am UTC](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/435 "2019-08-28T10:02:40Z")

</div>

Testing this out right now with a one month subscription. You earned yourself a lifetime customer, if this works well.

I noticed the player crashing when I did some upscaling to 4k. Where can I find the logs for this? I’ve checked the transcoder logs and those seemed fine.

[Previous page](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510.md?page=20)

[Next page](https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510.md?page=22)
