Hey folks, there is a new Podcast category for forums https://forums.plex.tv/categories/podcasts
If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Docker fun fact: having an nVidia and an intel GPU active at the same time confuses Plex

cybikcybik Posts: 2Members, Plex Pass Plex Pass
edited April 7 in Docker

After wasting quite a bit of time trying to get hardware transcoding to work under the docker image, I had kind of a "revelation" that I just want to share with anyone trying to get intel QuickSync hardware transcoding to work under a Container approach:

Check your device names!

In my case, under /dev/dri, I had two devices (card0 and card1). Running Plex under the main system with an X server always online, I never had issues on the recoding part of transcoding apparently (using card0/renderD128, a.k.a. nVidia), but ALSO APPARENTLY, Plex never used my intel GPU (a.k.a. card1/renderD129) for any transcoding whatsoever. It turns out that, when running in Docker, Plex refused to use my nVidia transcoding, which forced me to discover that I could "rename" the devices in a docker-compose file thusly:

...
    devices:
      # My dri devices are weird and my Intel, which I want to share,
      #  is the card1 and renderD129. So I force an odd mapping.
      - /dev/dri/card1:/dev/dri/card0
      - /dev/dri/renderD129:/dev/dri/renderD128
...

And after that, my Dockerized Plex just up and started doing hwdec and hwenc for transcoding like it was nothing.

Hope this helps anyone "stuck" having multiple GPUs and wanting to do hardware transcoding with one and still keep the other.

Comments

  • Ghill13Ghill13 Posts: 27Members, Plex Pass Plex Pass

    any chance you can post more info like your docker file ?

    PMS Server : Intel Xeon E3-1276-V3 | Asus P9D-E/4L | 32GB ECC Ram | Nvidia Quadro P4000 | Adaptec 6805Q | 28TB Raid 6 (7xWD Red 6TB) 

    Web Server : Mac Mini | i7 2.6Ghz | 16GB Ram | 1TB SSD | 1TB Storage SSD

    Network : 80Mb Down | 20Mb Up 

  • gravufogravufo Posts: 3Members, Plex Pass Plex Pass

    Thank you so much @cybik ! I wasted a lot of hours with the same issue and I had never tried mapping only one graphics card (how obvious!). It seems Plex really doesn't like seeing more than 1 card, especially when the first one isn't supported (like AMD).

Sign In or Register to comment.