Sub topic 13
Troubleshoot black captures, dropped frames, and audio issues
This chapter assumes you have already built scenes, chosen a capture source, set up the audio mixer, and picked an encoder and recording format in earlier chapters. Here you will learn a method for diagnosing the three most common recording failures: a black or frozen capture, dropped or skipped frames, and audio that is missing, quiet, or out of sync.
A diagnostic method
Most OBS problems come from one of three stages. The capture stage grabs pixels and audio from the system. The render stage composes scenes on the canvas. The encode stage compresses the result and writes it to disk. A fault in one stage shows up differently from a fault in another, so the first job is to find which stage is failing.
Two habits make diagnosis faster:
- Make a short test recording of 30 seconds and play it back. The preview in OBS can look fine while the file is not.
- Open the Stats dock (View > Docks > Stats) before you record. It shows CPU usage, frames missed due to rendering lag, skipped frames due to encoding lag, and dropped frames due to network (streaming only).
Black captures
A black capture means the source is in the scene but shows only black. The preview confirms it before you waste a recording.
Common causes
| Symptom | Likely cause | Fix |
|---|---|---|
| Display Capture is black on a laptop | OBS runs on a different GPU than the one drawing the screen | Set OBS to use the same GPU in the operating system graphics settings |
| Window Capture is black for one app | The app uses hardware acceleration or protected content | Try another capture method or turn off hardware acceleration in the app |
| Capture works, then goes black after an update | Permissions or drivers changed | Re-grant permissions and update graphics drivers |
| Browser window is black | Hardware acceleration in the browser conflicts with capture | Disable browser hardware acceleration or use Display Capture |
| Source shows a frozen image | Capture was lost when the window was minimized or moved | Restore the window, or re-add the source |
Fixes in order
- Check that the source is visible. A closed eye icon in the Sources list hides it, and a source can sit under another one in the list.
- Change the capture method. On Windows, Display Capture offers Automatic, DXGI Desktop Duplication, and Windows 10 (1903 and up). Window Capture offers Automatic, Windows 10 (1903 and up), and BitBlt. Switch methods one at a time and watch the preview.
- Match the GPU. On laptops with integrated and dedicated graphics, open the system graphics settings and assign OBS to the same GPU that drives the display.
- On macOS, open System Settings > Privacy & Security > Screen Recording and enable OBS. Quit and reopen OBS after you change the permission, because macOS applies it only to new launches.
- On Linux, the capture source depends on the display server. Under Wayland, use the PipeWire based screen capture source and approve the portal prompt. The older X11 capture source shows black or nothing under Wayland.
- Run OBS as administrator on Windows only if you need to capture a window that itself runs as administrator. A normal OBS process cannot capture elevated windows.
Dropped and skipped frames
Dropped frames mean the output has gaps, which shows up as stutter in your lesson. OBS reports three different kinds, and each points to a different fix.
| Counter in Stats | Meaning | Typical cause |
|---|---|---|
| Missed frames (rendering lag) | OBS could not compose the scene in time | GPU overloaded, high canvas resolution, heavy sources |
| Skipped frames (encoding lag) | The encoder could not keep up | CPU encoder preset too slow, or CPU is busy |
| Dropped frames (network) | Frames lost while streaming | Only relevant when streaming, not recording |
When you record to a local file, the network counter does not apply. If you see skipped or missed frames, work through the cause that matches the counter.
Fixing skipped frames (encoding lag)
- Switch from the x264 software encoder to a hardware encoder such as NVENC, QuickSync, AMF, or Apple VT, if your machine has one. This moves the work off the CPU.
- If you must use x264, choose a faster preset, for example
veryfastinstead ofmedium. Faster presets use less CPU and give a slightly larger file at the same quality. - Close browsers, games, and background apps that compete for the CPU.
- Lower the output resolution or frame rate. A 1080p lesson at 30 fps is much cheaper than 1440p at 60 fps, and most screencasts do not need 60.
Fixing missed frames (rendering lag)
- Match the canvas and output resolution so OBS does not scale every frame.
- Remove sources you do not use, and avoid large animated or browser sources in lesson scenes.
- Make sure OBS has GPU priority. On Windows, a game or video editor running at the same time can starve the OBS render thread.
- Lower the frame rate in Settings > Video. A 30 fps canvas halves the rendering work compared with 60.
Fixing disk write problems
A slow or full disk can also cause lag, and OBS may then report an encoder overload.
- Record to a fast local drive with free space. A 1080p lesson at 20 Mbps uses about 9 GB per hour.
- Avoid recording straight to a network drive or a drive that is syncing to cloud storage. Record locally, then move the file.
- Use a constant quality rate control such as CQP or CRF for lessons, and check that the bitrate peaks do not exceed what the disk can write.
You can estimate file size before a long session with simple arithmetic: bitrate in megabits per second times seconds, divided by 8, gives megabytes. For 20 Mbps over 3600 seconds, that is 20 × 3600 / 8 = 9000 MB.
def recording_size_gb(bitrate_mbps: float, minutes: float, audio_kbps: float = 160) -> float:
"""Estimate a recording's size in gigabytes."""
seconds = minutes * 60
video_mb = bitrate_mbps * seconds / 8
audio_mb = (audio_kbps / 1000) * seconds / 8
return (video_mb + audio_mb) / 1000
print(round(recording_size_gb(20, 60), 2))The script prints 9.07 for a one-hour recording. Run it with your own bitrate to check that your drive has enough room.
Audio problems
Audio failures fall into four groups: no sound, the wrong sound, poor quality, and sync drift. The mixer meters tell you which one you have.
No sound, or the wrong sound
- Look at the meter in the Audio Mixer while you speak. If the meter does not move, OBS does not receive the signal.
- Open the source properties and confirm the correct device is selected. A new USB microphone often does not become the default device.
- Check that the mixer channel is not muted and the slider is not at the bottom.
- Open Advanced Audio Properties (the gear menu in the mixer). Check the Audio Monitoring column and the track checkboxes. If a source is not assigned to the track you record, it will be silent in the file even though the meter moves.
- On macOS, enable the Microphone permission for OBS in System Settings > Privacy & Security. Desktop audio on macOS needs a virtual audio device or the built-in macOS audio capture source in recent OBS versions.
- If you hear your own voice twice, you are using Monitor and Output on a source that is also playing through the speakers. Change it to Monitor Off, or use headphones.
Poor quality
- Clipping appears as the meter reaching red, and it causes harsh distortion that you cannot repair later. Keep speech peaks in the yellow range and below the red zone. Lower the microphone gain or add a Limiter filter.
- Constant hiss or room noise: add a Noise Suppression filter, then a Noise Gate to cut quiet gaps.
- Desktop audio drowns out your voice: lower the Desktop Audio fader until narration is clearly louder than system sounds.
- Choppy or crackling audio: the sample rate of the device may differ from the OBS setting. Set both to 48 kHz in Settings > Audio.
Audio and video out of sync
Sync problems appear when a device has a delay, which is common with USB webcams and Bluetooth devices. Bluetooth headsets and microphones add noticeable latency and often drop the audio quality when used for input, so avoid them for lessons.
To correct a constant offset:
- Record a clap in front of the webcam.
- Play the file and measure how many milliseconds separate the sound from the visible clap.
- In Advanced Audio Properties, enter that value in the Sync Offset column for the microphone.
A drift that grows over time points to a different cause, such as mismatched sample rates or a variable frame rate source. Setting a fixed frame rate in Settings > Video and 48 kHz audio everywhere removes most of these cases.
Confirm the fix with a test file
After each change, record 30 seconds that include speech, a mouse movement, and a window switch. Then check three things:
- Open the file in a player and check that the picture is not black.
- Check the Stats dock for missed or skipped frames after the recording ends.
- Confirm that speech is clear, at a steady level, and in sync with the picture.
You can inspect the file itself with ffprobe, which comes with FFmpeg. It prints the streams, frame rate, and audio sample rate.
ffprobe -hide_banner "lesson-01.mp4"Look for a video stream at your chosen frame rate and an audio stream at 48000 Hz. A missing audio stream means the source was not assigned to a recorded track.
Common mistakes
- Changing several settings at once. You cannot tell which one fixed the problem, or which one caused a new one.
- Trusting the preview instead of the recorded file.
- Recording at 60 fps by default. Most screencasts show text and slow motion, and 30 fps is enough.
- Ignoring the Stats dock until a long recording is already ruined.
- Using a Bluetooth microphone and then trying to fix the latency in post.
Exercise
Your recording plays back with the picture fine, but a microphone you can see moving in the Audio Mixer meter is silent in the file. Name two settings you should check, and say where each one is found.
Show answer
First, check the track assignment in Advanced Audio Properties (the gear menu in the Audio Mixer). The microphone must have the track checkbox enabled that matches a track your recording output includes. Second, check Settings > Output > Recording, in Advanced mode, to confirm which audio tracks are recorded. If the microphone is on track 2 but the recording only saves track 1, the file will have no microphone audio. A muted source or a Monitor Only setting are also worth checking.
Exercise
Stats shows 4 percent of frames skipped due to encoding lag while recording at 1080p, 60 fps, with the x264 encoder on the medium preset. List three changes you could make, in the order you would try them.
Show answer
First, switch to a hardware encoder such as NVENC, QuickSync, AMF, or Apple VT, because it removes the encoding load from the CPU. Second, if no hardware encoder is available, change the x264 preset to veryfast, which uses less CPU. Third, lower the frame rate to 30 fps, which halves the number of frames to encode. Closing other applications that use the CPU is also valid.
Exercise
A recording is 90 minutes long at a video bitrate of 12 Mbps. Roughly how many gigabytes of video does it use, ignoring audio?
Show answer
12 Mbps × 5400 seconds ÷ 8 = 8100 MB, which is about 8.1 GB.