Files
Unraid_Intel-ARC_Deployment/README.md
2025-03-13 08:53:21 -04:00

11 KiB
Raw Blame History

AV1 - Intel ARC Encoding Guide via Unraid + Tdarr Node Killer

Want to Help? Click the Star in the Upper-Right Corner!

NOTE
Were using ghcr.io/haveagitgat/tdarr:2.35.02 instead of ghcr.io/haveagitgat/tdarr:latest.

Change Log:

  • v1: Original AV1 flow
  • v2: Removed B-frames
  • v3: Improved quality
  • v4: Removed images from files, cutting failure rates from ~25% to 12%
  • v5: Enhanced quality and simplified workflow

Introduction

This guide helps you optimize your media library by encoding to AV1 on Unraid while efficiently sharing GPU resources between Plex and Tdarr. Youll learn how to:

  • Set up Intel ARC GPU support on Unraid.
  • Configure Tdarr for AV1 encoding.
  • Manage SABnzbd download speeds based on Plex streams (to prevent buffering).
  • Automatically pause and resume Tdarr when Plex needs the GPU.

Following these steps will dramatically reduce video file sizes, saving huge amounts of storage, while ensuring Plex always has GPU priority. Youll also see how to tweak download speeds to avoid streaming slowdowns.

Quick Tip: Always test your AV1 encoding on a small library or a few files. Adjust CRF to balance quality and size before converting your entire collection.


Table of Contents


Data Savings with AV1 Encoding

AV1 encoding drastically shrinks file sizes. In one example, using three Intel ARC GPUs to encode 1015% of a large library yielded about 116TB of savings. For a 300TB media collection, you can potentially reduce it to 75100TB with careful AV1 conversion.

image

Ive already saved 255TB and counting!


AV1 Drawbacks

No codec is perfect. Some devices lack native AV1 decoding, forcing Plex to handle software transcoding. AV1 also requires more resources to encode, which means encoding jobs take longer. For details, check out the AV1 Drawbacks page.


Upgrading to Unraid 7.0 and Installing Required Plugins

Make sure youre on Unraid 7.0 or newer, then install the required GPU plugins before using Tdarr or running the Tdarr Node Killer script.

Installing Intel GPU TOP Plugin

Install Intel GPU TOP (by ich777) from Unraid Community Apps to monitor your Intel ARC GPUs performance directly on Unraid.

Intel GPU TOP Plugin

Installing GPU Statistics Plugin

Then install GPU Statistics (by b3rs3rk). Combined with Intel GPU TOP, it offers detailed GPU usage data during encoding or transcoding.

GPU Statistics Plugin

After installing both, youll see real-time GPU usage:

GPU Usage Example 1
GPU Usage Example 2


Deploying Plex with Intel ARC GPU Support

Adding the Intel ARC GPU to the Plex Docker Template

In your Plex Docker template, add the Intel ARC GPU as a device. Plex wont see the GPU without this.

Add Intel ARC GPU to Plex Template

Configuring Plex Settings

Enable hardware transcoding in Plex and HDR tone mapping (if supported). If your server has multiple GPUs, pick the correct one.

image

Verifying GPU Transcoding

Play a video that needs transcoding. On Plexs dashboard, watch the GPU usage. You should see minimal CPU usage and smooth playback. If you have an AV1 file handy, test it to confirm AV1 transcoding works too!

image

Setting Up Tdarr

What is Tdarr?
Tdarr streamlines media transcoding using a friendly GUI, handling conversions for you without complex command lines. At first, it might feel overwhelming, but once you get the hang of it, its incredibly powerful for media optimization.

If you find this guide helpful, please click the ★ (Star) button above. It shows your support and helps others discover this guide.

Deploying Tdarr Server

Youll see an option to deploy the server and node in a single container. To simplify troubleshooting, deploy them separately:

  1. Install Tdarr (not Tdarr Node) from the Unraid App Store.
  2. Name it clearly (e.g., “Server” or “TdarrServer”).
  3. Check that the server IP is correct (usually your Unraid servers IP).
  4. Set Internal Node to False so you can install a separate node container.
image image image

Tdarr Transcoding Location

Decide where to store transcoded files temporarily. For small workloads, an SSD/NVMe cache is enough. If you plan to transcode heavily (multiple streams, multiple GPUs), consider a dedicated NVMe. Avoid HDDs or RAM to reduce bottlenecks and random errors.

Important: High-volume transcoding quickly wears down SSD/NVMe drives. Many users add a lower-end NVMe just for Tdarr. This preserves your main system drives.

For instance, I use a cheap 512GB NVMe for Tdarr, since Tdarr can easily handle hundreds of terabytes of reads/writes. Doing so keeps my primary NVMe healthier.

image

Deploying Tdarr Node(s)

Once the Tdarr Server is running, install Tdarr Node (a separate listing). The server manages libraries and tasks, while the node handles the actual transcoding.

image
  1. Install Tdarr Node from the Unraid App Store.
  2. Name it clearly, like “Node1.” If you have multiple GPUs, install multiple node containers (Node1, Node2, etc.).


image

  1. Ensure the server IP and node IP match.


image

  1. Keep each nodes configs and logs separate.
  2. Match the transcode cache path to the servers path. If you have more than one node, label them for clarity.
  3. Assign the correct GPU to each node. Dont overlap GPUs if you have multiple nodes.


image

Identify GPUs by running:


Experimental: Running the Script on Other Operating Systems

You can run this script on other Linux distributions or OSes that support Docker and systemd. The steps are similar: place the script, set permissions, and create a systemd service.

  1. Save the Script: Save your Tdarr Node Killer Script as tdarr_node_killer.sh in /usr/local/bin/.

    sudo nano /usr/local/bin/tdarr_node_killer.sh
    
  2. Set the Proper Permissions:

    sudo chmod +x /usr/local/bin/tdarr_node_killer.sh
    sudo chown root:root /usr/local/bin/tdarr_node_killer.sh
    
  3. Create a Service File: Create a service file for the script:

    sudo nano /etc/systemd/system/tdarr_node_killer.service
    
  4. Add the Following Content:

    [Unit]
    Description=Tdarr Node Killer Script
    After=network.target
    
    [Service]
    Type=simple
    ExecStart=/bin/bash /usr/local/bin/tdarr_node_killer.sh
    Restart=on-failure
    
    [Install]
    WantedBy=multi-user.target
    
  5. Reload Systemd:

    sudo systemctl daemon-reload
    
  6. Start and Enable the Service:

    sudo systemctl start tdarr_node_killer.service
    sudo systemctl enable tdarr_node_killer.service
    

This ensures the script runs automatically and manages your GPU resources even if youre not on Unraid.


Backup and Recovery Tips

Before making changes:

  • Backup Plex configs (metadata, watch history, etc.).
  • Backup Docker templates so you can quickly restore containers.
  • Backup your Unraid flash drive so you dont lose your server setup.

Test your backups occasionally to ensure they work when you need them.


Summary

By setting up AV1 encoding with Intel ARC GPUs, you can achieve massive storage savings and still maintain great quality. Adding the optional Tdarr Node Killer Script ensures Plex always has priority access to the GPU when needed. With careful tuning and a bit of experimentation, you can streamline your servers performance, reduce storage costs, and keep everyone happy with smooth, high-quality streams.

Found this useful? Consider clicking the star (★) button at the top!