Sub topic 8
Choose an Encoder and Rate Control for Recording
Assume you know the basics of resolution, frame rate, and bitrate. This chapter focuses on recording in OBS Studio, not livestreaming. Recording gives you more control because you can usually choose quality first and let the file size vary.
Understand the encoder
An encoder compresses raw video into a format that can be saved. The encoder affects image quality, file size, processor or graphics-card load, and editing compatibility.
OBS commonly offers these choices:
| Encoder | Where it runs | Good fit |
|---|---|---|
| x264 | CPU | Systems with spare processor capacity |
| NVENC | NVIDIA GPU | Most NVIDIA systems |
| QuickSync | Intel integrated GPU | Intel systems with supported graphics |
| AMF | AMD GPU | Most AMD systems |
| Apple VideoToolbox | Apple hardware | Recent Macs |
Hardware encoders usually reduce CPU usage. This helps when you are recording a screen while running a development tool, virtual machine, or other demanding application. Modern hardware encoders can produce excellent lesson recordings.
Software encoding with x264 can produce good results, but its CPU preset controls the trade-off. Slower presets usually improve compression while increasing CPU use. If the recording becomes choppy, use a faster preset or switch to a hardware encoder.
Choose rate control for recording
Rate control determines how OBS allocates bits to each frame.
For local recordings, use a quality-based mode when your encoder provides one:
- NVENC and many hardware encoders use CQP, or constant quantization parameter.
- Intel encoders may use ICQ, or intelligent constant quality.
- x264 uses CRF, or constant rate factor.
- AMD and other encoders may expose a constant-quality option with a different name.
A lower quality value usually means better image quality and larger files. A higher value means more compression and smaller files. The scale differs between encoders, so do not compare a CQP value directly with a CRF value.
Start with a moderate quality setting, record a short test, and inspect text at its smallest useful size. Screencasts need enough quality for code, menus, and cursor movement. A talking-head video can tolerate more compression than a screen full of small text.
NVENC recording starting point:
Rate control: CQP
CQ level: 20
Keyframe interval: 2 seconds
Preset: Quality
Profile: HighTreat these values as a starting point, not a universal standard. If small text looks soft or blocky, lower the quality value. If files are unnecessarily large, raise it. Keep the other video settings fixed while testing so you can identify which change affected the result.
When to use bitrate-based modes
CBR, or constant bitrate, sends a similar number of bits every second. It is useful for livestreaming because the network receives a predictable data rate. It is usually less efficient for local recording.
VBR, or variable bitrate, allows the bitrate to change. It can work for recording, but a quality-based mode is often easier to tune because you specify the visual result instead of guessing a bitrate.
Use a bitrate-based mode when an editor, delivery service, or publishing workflow requires a specific bitrate. Otherwise, prefer CQP, ICQ, or CRF.
Verify the recording
Record the most demanding part of the lesson, such as scrolling code while running a build. Watch the file outside OBS. If frames skip, reduce the encoder workload, lower the output resolution, or close competing applications. If the picture is clear but the file is too large, increase the quality number gradually.
Exercise
Why is CBR usually a better choice for livestreaming than for a local lesson recording?
Show answer
CBR keeps the data rate predictable for a network. A local recording can usually use a constant-quality mode, which spends more bits on complex frames and fewer bits on simple frames.