Skip to content
TheChatArchiveThe Chat Archive
Hunyuanhunyuan-turbos-20250416· TencentHugging Face LMArena Human Preference 140K

Go over shortly crf values shortly over the all range

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-opus-4-20250514-thinking-16k’s answer.
  1. User

    Go over shortly crf values shortly over the all range

  2. Hunyuan Assistant

    Certainly! The CRF (Constant Rate Factor) in video encoding (especially x264 and x265 codecs) controls the quality and file size trade-off:

    🔹 CRF Range Overview:

    • Typical Range: 0 to 51
    • Lower CRF = Better Quality / Larger File
    • Higher CRF = Lower Quality / Smaller File

    🔸 Quick Breakdown:

    CRF ValueQuality LevelDescription
    0LosslessVisually lossless, very large files
    10–18Near-losslessExcellent quality, minimal visible artifacts
    20–23Default (x264)Good balance between quality & size
    24–28Visible quality dropStill acceptable for many uses
    29–34Low qualityNoticeable compression artifacts
    35–45Poor qualityStrong compression, blurry details
    46–51Very low qualityLowest quality, blocky & blurry

    ⚠️ x265 (HEVC) uses a similar scale but is more efficient — equivalent quality can often be achieved with lower CRF values compared to x264.


    🔹 Tips:

    • For archival: Use CRF 16–18
    • For web upload: CRF 23–28 (adjust based on platform)
    • For mobile/small size: CRF 28–34

    Let me know if you want examples or codec-specific tuning!

  3. User

    but it depends on the preset level isn't?

  4. Hunyuan Assistant

    Absolutely — you're spot on! 🎯

    The CRF value alone doesn't tell the whole story. It interacts closely with the preset, which controls the encoding speed vs. compression efficiency trade-off.


    🔁 How Preset Affects CRF:

    • Preset = Encoding Efficiency vs Speed
    • Slower presets = better compression (smaller file at same CRF)
    • Faster presets = quicker encoding but larger files

    🔹 Common x264 Presets (from fastest to slowest):

    ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow
    

    🔸 Example Behavior:

    If you set:

    • CRF 23 + ultrafast: Larger file than expected (less compression effort)
    • CRF 23 + veryslow: Smaller file (more compression effort)

    So at the same CRF, a slower preset gives better quality per byte, but takes much longer to encode.


    🔹 General Recommendation:

    • For quality-focused encoding (e.g., archival, YouTube):
      → Use slower presets like slow or slower with standard CRF (e.g., 23–28)

    • For quick encoding (e.g., preview, mobile editing):
      → Use faster presets like medium or fast, possibly with slightly higher CRF


    🧠 Tip:

    Think of CRF as the target quality level, and the preset as how hard the encoder tries to reach that level.

    Would you like a visual comparison or real-world encoding example?

  5. User

    For very slow and slow what is the 28 medium?

  6. Hunyuan Assistant

    Great question! Let's break down what using CRF 28 with different presets (veryslow, slow, and medium) actually means in practice — especially with the x264 encoder.


    🔍 Concept Recap:

    • CRF 28 is considered low-to-medium quality — still watchable, but with visible compression.
    • The preset changes how efficiently that CRF level is applied — i.e., how much compression effort is used.

    ⚖️ Effect of Preset on CRF 28:

    PresetCompression EfficiencyFile Size at CRF 28Encoding TimeVisual Quality
    veryslow✅✅✅ Very highSmallestSlowestBest (least artifacts)
    slow✅✅ HighSmallSlowGood
    medium⚖️ Medium (default)LargerFastSlightly more artifacts

    📌 Key Points:

    • veryslow will produce the smallest file size at CRF 28 because it squeezes out the most compression.
    • slow is a good balance between time and efficiency.
    • medium will give you larger file sizes and more visible compression artifacts at the same CRF, because it spends less time optimizing encoding decisions.

    🎥 Visual Analogy:

    Imagine CRF 28 is like asking for a photo printed at "low resolution":

    • veryslow preset = prints it carefully with smoothing filters
    • slow = decent print quality, moderate care
    • medium = rougher print, more pixelation

    Same "CRF request", different output quality due to processing effort.


    🛠️ Practical Suggestion:

    If you're using CRF 28 and have time: ➡️ Use slow or veryslow for better quality at that bitrate level.

    Only use medium if encoding speed is a priority and you're okay with slightly worse quality.


    Want a real-world file size/quality comparison or FFmpeg commands to test this yourself?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.