Hardware AV1 Encoding for Plex Libraries
Hardware AV1 encoding transforms what was once a painfully slow process into something practical for batch-converting Plex libraries. NVIDIA NVENC on RTX 4000+ series and Intel Quick Sync on 12th Gen+ CPUs can encode AV1 at near real-time speeds. The output is smaller than HEVC at comparable quality, saving significant storage. This guide covers how to set up and optimize hardware AV1 encoding.
Hardware Requirements
NVIDIA NVENC AV1
Available on RTX 4000 series (Ada Lovelace) and newer:
- RTX 4060: Entry-level AV1 encoding. Single encoder, handles one stream at a time.
- RTX 4070 and above: Dual encoder on higher-end models. Can process two streams simultaneously.
- RTX 4090: Fastest NVENC AV1 encoding. Best quality among hardware encoders.
NVENC AV1 produces the highest quality hardware-encoded AV1 currently available. Quality approaches software encoding at medium presets while running 10-20x faster.
Intel Quick Sync AV1
Available on 12th Gen (Alder Lake) and newer Intel CPUs with integrated graphics:
- 12th Gen (Alder Lake): First generation with AV1 encode. Functional but quality is below NVENC.
- 13th Gen (Raptor Lake): Improved AV1 encoding quality.
- 14th Gen and newer: Further quality improvements. Intel Arc GPUs also support AV1 encode.
Quick Sync AV1 encoding is fast and power-efficient. Quality is acceptable for streaming but falls behind NVENC at equivalent bitrates.
AMD
RDNA 3 GPUs (RX 7000 series) support AV1 hardware encoding. Quality is between Intel Quick Sync and NVIDIA NVENC. AMD encoder support in FFmpeg and Plex-related tools varies by platform and driver version.
FFmpeg AV1 Hardware Encoding
NVIDIA NVENC
Basic NVENC AV1 encoding command:
ffmpeg -i input.mkv -c:v av1_nvenc -preset p7 -cq 28 -c:a copy output.mkv
Parameters:
- -c:v av1_nvenc: Use NVIDIA hardware AV1 encoder.
- -preset p7: Highest quality preset. Slower but produces the best output. Use p4-p5 for faster encoding with slightly lower quality.
- -cq 28: Constant quality mode. Lower values produce higher quality and larger files. Range 18-35 is practical. 24-28 is a good balance for Plex libraries.
- -c:a copy: Copy the audio stream without re-encoding.
Intel Quick Sync
Basic Quick Sync AV1 encoding command:
ffmpeg -i input.mkv -c:v av1_qsv -preset veryslow -global_quality 28 -c:a copy output.mkv
Parameters:
- -c:v av1_qsv: Use Intel Quick Sync AV1 encoder.
- -preset veryslow: Highest quality preset. Use medium or slow for faster encoding.
- -global_quality 28: Quality target. Similar scale to CRF โ lower is higher quality.
10-bit Encoding
For HDR content or high-quality SDR, encode in 10-bit:
ffmpeg -i input.mkv -c:v av1_nvenc -preset p7 -cq 26 -pix_fmt p010le -c:a copy output.mkv
10-bit encoding reduces banding in gradients and preserves HDR metadata. File sizes are slightly larger than 8-bit but visual quality is notably better for content with smooth color transitions.
Quality Tuning
CQ Value Selection
The CQ (constant quality) value is the primary quality control:
| CQ Value | Quality | Use Case |
| 20-24 | High (near-transparent) | Archival, reference quality |
| 24-28 | Good (minimal artifacts) | Primary Plex library |
| 28-32 | Acceptable | Storage-constrained libraries |
| 32-36 | Noticeable quality loss | Mobile/low-bandwidth only |
Preset Impact
Higher quality presets (p6, p7 on NVENC; veryslow on QSV) produce better output at the same CQ value. The trade-off is encoding speed โ p7 is roughly 2x slower than p4 but produces noticeably better quality at the same file size.
For batch library conversion where encoding time is not critical, always use the highest preset your patience allows.
Batch Conversion Workflow
Using Tdarr
Tdarr automates batch conversion of your Plex library:
- Install Tdarr and configure it to scan your Plex library directories.
- Create a plugin stack that identifies non-AV1 files and converts them.
- Configure worker nodes with GPU access for hardware encoding.
- Schedule Tdarr workers to run during off-peak hours to avoid impacting Plex streaming.
- Tdarr replaces the original file with the AV1 version (or stores alongside it, depending on your configuration).
Custom Script
For more control, write a script that:
- Scans the library for files matching conversion criteria (codec is H.264 or HEVC, size above a threshold).
- Builds an FFmpeg command for each file with appropriate settings.
- Runs the conversion with GPU hardware encoding.
- Verifies the output file (compare duration, check for decode errors).
- Replaces the original or stores the AV1 version alongside it.
- Logs the results: original size, new size, savings percentage.
Verification
After each conversion, verify the output:
- Compare input and output duration โ they should match within a fraction of a second.
- Run a quick decode test:
ffmpeg -v error -i output.mkv -f null - - Spot-check a few scenes visually, especially dark scenes and scenes with fine detail.
AV1 vs HEVC Hardware Encoding
| Aspect | AV1 NVENC | HEVC NVENC |
| File size | 20-30% smaller | Baseline |
| Encode speed | Slightly slower | Baseline |
| Quality per bit | Better | Good |
| Client compatibility | Limited (2022+ devices) | Broad (2017+ devices) |
| GPU requirement | RTX 4000+ | GTX 1050+ |
If you have an RTX 4000+ GPU and your Plex clients support AV1, encoding in AV1 saves significant storage with no quality penalty. If client support is mixed, HEVC remains the safer choice.
Troubleshooting
FFmpeg Cannot Find AV1 Hardware Encoder
- Verify your GPU supports AV1 encoding (RTX 4000+ for NVENC, 12th Gen+ for QSV).
- Update GPU drivers to the latest version.
- Verify FFmpeg was compiled with NVENC or QSV support:
ffmpeg -encoders | grep av1
Encoded File Is Larger Than Expected
- CQ value may be too low (too high quality). Increase the CQ value to produce smaller files.
- Some content types (animation, very short clips) may not compress well in AV1 at certain presets.
- Compare against the same content encoded in HEVC to verify AV1 is producing expected savings.
Visual Artifacts in Output
- CQ value too high (too aggressive compression). Decrease the CQ value.
- Use a higher quality preset (p7 on NVENC, veryslow on QSV).
- Some content with extreme fine detail may need a lower CQ to avoid visible quality loss.