Rarbg X265 Encoding Settings Better -
Here’s a clear, technically accurate explanation of the x265 encoding settings used by RARBG for their popular “RARBG” releases, and why they were considered a “better” balance of quality and file size for many users.
Note: RARBG shut down in 2023, but their encoding standards remain influential as a reference point for “scene-like” but high-quality x265 encodes.
Part 1: The RARBG Philosophy (Size vs. Fidelity)
Before tweaking settings, you must understand the target. RARBG specialized in "transparent" HD encodes. Their goal was a file size roughly 20-30% of the original Blu-ray source (usually 2GB to 5GB for a movie) while retaining grain, sharpness, and motion clarity.
Their secret wasn't one magic bullet, but a combination of:
- High-quality source material (Remuxes or untouched Blu-rays).
- 2-pass encoding (Rather than CRF).
- Specific psychovisual optimizations fine-tuned over a decade.
If you simply use preset=medium or crf=22, you will not beat RARBG. You need their exact tuning logic. rarbg x265 encoding settings better
Part 9: The Ultimate "Set and Forget" Script for RARBG Fans
Save this as rarbg_better.bat (Windows) or rarbg_better.sh (Linux).
#!/bin/bash # Better than RARBG x265 Encoder v2INPUT="$1" OUTPUT="$INPUT%.*_rarbgPlus.mkv"
ffmpeg -i "$INPUT"
-map 0:v -map 0:a? -map 0:s?
-c:v libx265 -preset slow -tune grain
-x265-params "crf=23:profile=main10:level=4.1:no-sao=1:aq-mode=3:deblock=-1,-1:psy-rd=2.0:rdoq-level=2:qcomp=0.7"
-c:a libopus -b:a 160k -ac 6
-c:a libopus -b:a 96k -ac 2
-c:s copy
-movflags +faststart
"$OUTPUT"
echo "Done: $OUTPUT"
Usage: ./rarbg_better.sh movie.mkv
Frame Rate (FPS)
A "better" encode always maintains the source frame rate (usually 23.976 fps or 24 fps). Avoid encodes that convert to 30fps or 60fps artificially unless it is for a specific animation workflow; these often introduce interpolation artifacts (the "soap opera effect").
2. Unlock --aq-mode 4
RARBG typically used --aq-mode 2 (Auto-variance). The new standard is --aq-mode 4 (Auto-variance with bias to dark scenes). This prevents the "crushing blacks" seen in old RARBG releases. Here’s a clear, technically accurate explanation of the
Part 2: The "Vanilla" RARBG x265 Settings (Retrospective)
Based on analysis of their releases using MediaInfo, here is the profile RARBG generally used (likely via a modified FFmpeg or HandBrakeCLI script).
| Parameter | RARBG Value | Why they chose it |
| :--- | :--- | :--- |
| Encoder | x265 2.4+ | Stable; not the newest bleeding edge. |
| Preset | Medium or Slow | Speed vs. efficiency sweet spot. |
| Tune | None (or Grain rarely) | They didn't use film because it blurred grain. |
| Profile | main10 | 10-bit depth prevents color banding in skies/fog. |
| Constant Rate Factor | CRF 22 to 24 | The magic number. 23 was their default. |
| Audio | AAC 5.1 @ 224kbps | Keeps surround sound; small size. |
| Resolution | Cropped to mod 2 | Removed black bars cleanly. |
The Critical Mistake they made: They almost never used --no-sao (Sample Adaptive Offset). SAO smooths out artifacts but also destroys fine film grain, making faces look waxy.
5. Proper HDR and Tone Mapping
As 4K content became standard, RARBG x265 releases became the go-to source for non-HDR TV owners. Part 1: The RARBG Philosophy (Size vs
Re-encoding HDR (High Dynamic Range) content to SDR (Standard Dynamic Range) is difficult. Bad encodes result in washed-out colors and gray blacks. RARBG releases typically featured superior tone mapping algorithms.
If they released an HDR version, they utilized the x265 Main10 profile correctly, ensuring colors popped without banding. If they released an SDR version of an HDR source, the conversion was generally handled by experienced encoders using tools like ffmpeg with high-quality filters, resulting in a picture that looked natural rather than faded.
