# Plex Server Improvements (9-26-24)

- [x] Convert to using RAM for transcoding.

<details id="bkmrk-configured-settings-"><summary>Configured Settings for RAM Transcoding</summary>

1. Created new "Path" variable named `RAM Transcode Path: /RAM`
2. Container path is `/RAM`
3. Host path is `/dev/shm`
4. Access Mode is `Read/Write`
5. Modified Plex in `Settings > Transcoder` to reflect the transcoding directory change of `/RAM`
6. Restarted Plex server to apply changes

</details><details id="bkmrk-configure-a-path-if-"><summary>RAM Transcoding Instructions</summary>

[Configure a path if not one exists:](https://www.reddit.com/r/unRAID/comments/tktdqi/comment/i1t11kl/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)

Name: Transcode  
Container Path: /transcode  
Host Path: /dev/shm/

That's all that's needed for the container setup

Then, inside Plex settings  
Settings &gt; Transcoder &gt; Transcoder temporary directory  
`/transcode`

Side note: the host path can be `/dev/shm/` or `/tmp`

They are both RAM drives `/dev/shm/`<s> using no more than 1/2 your RAM while </s>`/tmp`<s> will use up to all of it.</s>, neither of which will use more than 1/2 of your available RAM.

There's no wrong answer which you use.

[I am using Intel 10100 w/ Quick Sync RAM transcoding.. This is all i had to do to get it running...](https://www.reddit.com/r/unRAID/comments/tktdqi/comment/i1sxf09/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)

Step 1:

In the container, I created a path from the RAM to /transcode, so the location transcodes occur in are in the system ram shared with the unRaid OS.

in the container (binhex-plexpass) in my case... \*you need plexpass active for quick sync transcoding...

Name: Transcode

Container Path: /transcode

Host Path: /dev/shm

Then you will need to go into the docker container and change transcoding inside plex to /transcode under settings-transcoder-transcoder temporary directory

Step 2:

This was required for my system to use Quicksync properly as the out-of-box docker container wouldn't work naturally. I followed this guide to give permissions and change access settings for the docker to properly use the iGPU driver for transcoding.

Guide i followed: [https://forums.unraid.net/topic/77943-guide-plex-hardware-acceleration-using-intel-quick-sync/](https://forums.unraid.net/topic/77943-guide-plex-hardware-acceleration-using-intel-quick-sync/)

Those two steps is all i needed to get mine working on the Intel 10100 for video transcoding, Audio still uses the CPU unfortunately, but that has minimal impact on the CPU overhead as i can run 20+ streams at the same time transcoding with no issue.. The only way i have found to get the iGPU to perform hardware transcoding on both video and audio is to use a Linux VM, but when i tried it out the system resources required to run the linux VM to gain this was not worth it. In linux gaining audio transcode my system would only do 17 transcodes at the same time, but in the docker container, I could get 20 before maxing out the CPU.

</details>- [x] Migrate data from existing drive and remove current "Transcode" ("Nvme" drive also or both) drive to prepare for installation of new Samsung SSDs.
- [x] Install new Samsung SSDs, setup as ZFS Mirrored, and migrate data from existing disks to new ZFS array.

<details id="bkmrk-zfs-essentials%3A-arra"><summary>ZFS Videos From Space Invader One</summary>

[ZFS Essentials: Array Disk Conversion to ZFS or Other Filesystems - No Data Loss, No Parity Break!](https://www.youtube.com/watch?v=T83gqqh0D4E)  
[ZFS Essentials: Auto-Converting Folders to Datasets on Unraid](https://www.youtube.com/watch?v=pLFaDnTVpuM)  
[Mastering ZFS: Easily Auto Snapshot &amp; Replicate a ZFS Dataset - Part A](https://www.youtube.com/watch?v=RTMMPHc9OoU)  
[Mastering ZFS: Snapshot to Rsync Replication to Non-ZFS Destinations - PART B](https://www.youtube.com/watch?v=bXTeftSu0J0)

</details>- [x] Setup folders per container as ZFS datasets.
- [ ] Setup replication and backups for ZFS datasets including on server and off.
- [x] Remove Syncthing and other deprecated backup tools.