Preferring x265 (HEVC) in Sonarr is the "holy grail" for users with limited storage space. While x264 is the legacy standard, x265 offers similar quality at roughly half the file size.
In Sonarr v3 and v4, this is achieved through Custom Formats (or "Preferred Words" in older versions), allowing the system to intelligently rank releases. 🚀 The Core Logic: Why x265?
Storage Efficiency: A 1GB x264 episode often shrinks to ~500MB in x265 without visible quality loss.
Bandwidth Savings: Ideal for users with data caps or slower download speeds.
Compatibility Trade-off: Requires more CPU/GPU power to play back. Older smart TVs or low-end streaming sticks may struggle to "Direct Play" these files, causing your server (like Plex) to transcode. 🛠️ How to Set Up Preferences
To make Sonarr prioritize x265 while still allowing x264 as a fallback, follow these steps: 1. Create the Custom Format Navigate to Settings > Custom Formats. Add a new format named "x265/HEVC".
Use a Release Title condition with a regular expression like \b(x265|hevc)\b. 2. Assign Scores in Profiles
Go to Settings > Profiles and select your active profile (e.g., "HD-1080p"). Find the Custom Formats section at the bottom. Give your "x265/HEVC" format a positive score (e.g., +100).
Set an Upgrade Until score if you want Sonarr to keep searching for an x265 version even after an x264 version is downloaded. ⚠️ Common Pitfalls sonarr prefer x265
Quality Trumps Score: Sonarr prioritizes "Quality" (e.g., Bluray-1080p vs. WEBDL-1080p) over Custom Format scores by default. If a high-quality x264 file is found, it may be picked over a lower-quality x265 file unless scores are high enough.
Naming Issues: Some release groups don't include "x265" in the filename. Sonarr may incorrectly tag these as "HDTV" or standard quality, causing it to ignore them.
The "HEVC Garbage" Problem: Not all x265 encodes are created equal. "Mini-encodes" (very small files) can sometimes have lower visual fidelity than a high-bitrate x264 file. 💡 Pro-Tip: Use Trash Guides
The community gold standard for these settings is Trash Guides. They provide pre-made JSON snippets you can import to: Prefer specific high-quality encoders (like QxR or Tigole). Avoid "fake" or low-quality HEVC releases.
Manage complex audio preferences simultaneously (e.g., avoiding TrueHD if your device can't play it). If you'd like to dive deeper, let me know: Which version of Sonarr are you using (v3 or v4)? Do you use Plex, Jellyfin, or Emby for playback?
Are you more concerned about perfect video quality or saving maximum disk space?
I can provide the specific regex strings or scoring values to match your needs.
Why prefer x265?
x265 (HEVC) offers ~50% better compression than x264 at the same quality, saving significant storage space. However, it’s more computationally demanding to play back – fine on modern devices, but problematic on older hardware or Plex/Jellyfin without GPU transcoding. Preferring x265 (HEVC) in Sonarr is the "holy
Step-by-step in Sonarr v3/v4
Add a Release Profile
Settings → Profiles → Release Profiles+ to add a new profile.Set “Must Contain” for x265
Must Contain field, add:
/\b(x|h)265\b|\bhevc\b/i
(This regex matches x265, h265, or hevc, case-insensitive)Set “Preferred” score (optional but recommended)
Preferred section, add the same regex with a positive score (e.g., +100).x264 with a negative score (e.g., -100).Order preference
Indexer restrictions (optional)
Release Profile terms to block unwanted formats.Example Preferred table
| Term | Score |
|------|-------|
| /\b(x265|hevc)\b/i | +100 |
| /\b(x264|avc)\b/i | -50 | Draft: Configuring Sonarr to Prefer x265 (HEVC) Encodes
Important caveats
Testing
After saving, manually search a popular season. Sonarr will sort x265 releases above x264 if scores are set.
If you already have a library mixed with x264 and x265, Sonarr struggles to "upgrade" them because it sees both as 1080p. To force upgrades:
Note: Sonarr does not re-download existing files just because a better codec exists. You must use the "Interactive Search" tab and manually select an x265 release, or change your profile to lower the score of your existing x264 files.
Creating the format does nothing until you attach it to a Profile.
Prefer x265 format listed there.Sonarr (Version 3 and 4) does not have a magic "x265 only" button, but it has a powerful scoring system called Release Profiles. This allows you to say "I want x265, but I will take x264 if necessary."
Before you commit to a library full of x265, you must review your playback devices.