Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

DSM 7.2 Add a GPU for transcoding

141
40
www.weemple.com
Operating system
  1. Linux
  2. macOS
  3. Windows
Last edited:
I followed a guide to add a video card to a NAS for transcoding with Plex (but it should work also with others solution, except Video Station).

The original instructions were found on another forum, but I’m sharing the procedure that worked successfully for me on a DS1821+.

unnamed.jpg


1) Prerequisites
  • Synology NAS
  • with PCIe slot
  • and DSM 7.2+
2) Hardware to purchase
  • NVIDIA Quadro T400 card or similar with low profile
  • PCIe riser card from x8 to x16
  • Kapton tape
3) Installation
Turn off the NAS.
Remove the main NAS cover and insert the riser on the PCIe slot.
Then insert the card, and finally use the kapton tape to secure it, since the screw only fits without the riser.
Add again the main cover.

Turn on the NAS.
Install the "Simple Permission Manager" package.
Open it and activate if isn't active.

Install NVIDIA driver package from here: Releases · pdbear/syno_nvidia_gpu_driver
During setup it ask if you want GPU or vGPU, choose GPU.

Reopen "Simple Permission Manager" package, go to "Users" tab, search for "NVIDIARuntimeLibrary" e check the checkbox.

Access your SSH terminal and execute this command:
Bash:
vgpuDaemon fix

Then reboot your NAS.

Access your SSH terminal and execute this command:
Bash:
nvidia-smi

Verify if your NVIDIA video card is listened.
You can also go to "Resource Monitor" to see if you have now "GPU" and "GPU Memory" sections.

If the command isn't recognized, try the following commands:
Bash:
vgpuDaemon fix
vgpuDaemon stop
vgpuDaemon start

If you have Plex installed as a package, it can now use your video card.
Make sure to have the following options enabled in Plex under Settings > Transcoder:
"Use hardware acceleration when available" and "Use hardware-accelerated video encoding".

If you have Plex under Docker, you can google and find the next required steps.
I don't share here because I never tried them.

4) Unlock the NVIDIA limit of 3 transcoding (optional)
Download the patch from here: GitHub - keylase/nvidia-patch: This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.
Save it on a place accessible via SSH.

Access your SSH terminal, access the folder where there is the patch and execute this command:
Bash:
bash ./patch.sh

On Plex, go under Settings > Transcoder and on "Transcoder temporary directory" write:
Code:
/dev/shm

Done

5) Notes
The NVIDIA Quadro T400 card consume only 30W and is safe to have it inside the NAS.
With this card, you can achieve around 8 simultaneous hardware transcodes sessions at high performance.
 
Maybe many have used the slot for a powerful network card and now can’t try this 😅🤪

P.S.: the hardware should cost around 200 USD
 
Thanks for sharing this. Didn't know this was possible. A very cool option.

I wish Synology would add this to their SSD/10gb combo card.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Popular tags from this forum

Thread Tags

Tags Tags
None

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending content in this forum

Back
Top