Plex is an excellent application for sharing your media at home and online. It’s also available on the Apple TV and the Xbox One. The Media Server can play media from local storage, network shares, and the cloud. Plex is a media server that allows users to organize and manage their media libraries across streaming devices. You can also download the app for your mobile phone from the Andriod & Apple stores. Step 1 – Update your CentOS Operating Systemįrom the command line, uptime your Operating System to the latest level. This procedure will work on the Linux Operating System’s Red Hat, Debian, CentOS, and Rocky Road distributions. Once you’ve got Plex up and running, check out our tips for optimizing your media experience. If you’re new to Plex, check out our guide on how to use it. How to install Plex Server on CentOS (7+) and set up Plex on RHL?.Step 4 – Set Plex Service to start at system boot up.Step 2 – Add the Plex Media Service Repository.Step 1 – Update your CentOS Operating System.In my case I had 2 error messages: Cannot load libnvidia-encode.so.1 and Cannot load libnvcuvid.so.1 which is why I you install those libraries earlier. If you don't see Plex in there, you'll want to look at Plex Media Server.log and look for any debug messages that might show why it's unable to use your hardware for transcoding. This website has lots of information comparing various GPUs and their transcoding performance. Thirdly, you're limited by the nvenc and nvdec FPS limit. There is a patch to remove that limit though. Secondarily limited by number of streams: consumer cards are limited to 2 by nVidia. GPU transcoding is primarily memory limited. They are 4x a 1080p stream which is 4x a 720p stream. | 0 39082 C /usr/lib/plexmediaserver/Plex Transcoder 302MiB |Īs you can see, 4K streams are quite memory intensive. | 0 32870 C /usr/lib/plexmediaserver/Plex Transcoder 342MiB | | 0 32212 C /usr/lib/plexmediaserver/Plex Transcoder 1501MiB | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. You should then be able to check nvidia-smi and see the process and (mostly memory) usage. Now start watching something and make sure it's transcoding. Once Plex is up you'll want to go to Settings > Transcoder and enable Use hardware acceleration when available and Use hardware-accelerated video encoding. For example, my plex is launched with a command similar to this: docker run -name plex -restart unless-stopped -gpus all -network=host -env VERSION=latest -volume /plex:/config -volume /media:/media linuxserver/plex Note that docker-compose does not have support for GPUs yet so you will have to do this with docker run for your container. Next step is to add the -gpus all ( see usage here) to your Plex container. With docker restarted, you should be able to run docker run -gpus all nvidia/cuda:10.0-base nvidia-smi and see the same output as before on the host. Sudo apt-get install -y nvidia-container-toolkit curl -sL | sudo apt-key add -Ĭurl -sL | sudo tee /etc/apt//nvidia-docker.list Install Docker if you haven't and then we'll add the nvidia-docker gpg key and apt repository. Once you got that done you will have to restart to not have the nouveau get in the way, then once you're back up you should be able to run nvidia-smi and see your GPU. Sudo apt install -yt buster-backports nvidia-driver libcuda1 libnvidia-encode1 libnvcuvid1 Sudo apt install linux-headers-$(uname -r|sed 's/*-*-//') echo "deb buster-backports main contrib non-free" | sudo tee /etc/apt//buster-backports.list ffmpeg (which Plex uses for transcoding) requires at least 418.30 so check what distro provides if you aren't on Debian. If you're on stretch or earlier, you will have to install the nvidia drivers manually. nvidia-driverįirstly, we'll install the latest nvidia drivers for Debian buster. I installed an NVIDIA Quadro RTX 4000 in my 2U server recently and after installing all the packages required and one flag to docker, Plex was able to use the GPU. With Docker 19.03 adding native support for GPU passthrough and Plex support for GPU transcoding being reliable and stabe, it's now very easy to get both working together for some super duper GPU transcoding.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |