Record Webcam and Gameplay Separately While Streaming
In this article
Yes—you can capture your webcam and gameplay as two independent video files while you stream by using OBS Studio’s “Record” source filter and a proper output configuration.
What You’ll Need
- OBS Studio (latest stable version) installed on Windows, macOS, or Linux
- A webcam that works with your computer (USB or built‑in)
- The game you want to stream (running on the same PC or captured via a capture card)
- Enough free disk space for two recordings (gameplay files are large; aim for at least 100 GB free for a few hours of 1080p 60 fps)
- A reliable internet connection for streaming
Step‑By‑Step
- Install and launch OBS Studio. If you haven’t installed it yet, download the official installer from obsproject.com and run the setup wizard. The first launch will ask if you want to run the Auto‑Configuration Wizard; you can skip it because we’ll set things manually.
- Create a new scene for your stream. In the “Scenes” box click the
+button, name it “Game + Webcam”, and press Enter. - Add the game capture source. In the “Sources” box click
+→Game Capture. Name it “Game” and click OK. In the properties window set Mode to “Capture any fullscreen application” or “Capture specific window” depending on your game, then click OK. - Add the webcam source. Click
+in “Sources” again →Video Capture Device. Name it “Webcam”, click OK, then choose your webcam from the “Device” dropdown. Adjust resolution and FPS to match your stream (e.g., 1280×720 30 fps) and click OK. Drag the webcam preview to the corner of the canvas and resize as desired. - Set OBS to Advanced Output mode. Open
File > Settings, go to theOutputtab, and change Output Mode from “Simple” to “Advanced”. This gives you separate tabs for Streaming, Recording, and Audio. - Configure the streaming settings. Still in the
Outputtab, select the “Streaming” sub‑tab. Choose your preferred encoder (e.g.,x264or a hardware encoder like NVENC), set a video bitrate that matches your internet upload speed, and click Apply. These settings affect only the live stream, not the separate recordings. - Add a “Record” filter to the game source. Right‑click the “Game” source in the list and choose
Filters. In the “Effect Filters” section click the+button and selectRecord. Name it “Game Record” and click OK. In the filter’s properties set:- Path: a folder such as
C:\Recordings\Game - File Format:
mp4ormkv(mkv is safer if the recording crashes) - Track: leave at default unless you need separate audio tracks
- Path: a folder such as
- Add a “Record” filter to the webcam source. Repeat the previous step for the “Webcam” source: right‑click →
Filters→+→Record. Name it “Webcam Record” and set a different folder, e.g.,C:\Recordings\Webcam. Choose the same file format as the game recording for easier post‑production. Click Close. - Check the recording paths. Open Windows Explorer (or Finder on macOS) and verify that the two folders exist and are writable. If OBS cannot write to the location, the recordings will fail silently.
- Test the setup. Click
Start Streaming(orStart Recordingif you just want to test without going live). Play a short segment of your game while keeping the webcam on. After a minute, clickStop Streaming. Open the two folders you set earlier; you should see two video files—one with only the game, the other with only the webcam. - Fine‑tune audio. If you want the game recording to include its own audio but not the microphone, open the “Game Record” filter again and enable the “Capture audio” option. For the webcam file, you can decide whether to include the mic or keep it silent by toggling the same option. This flexibility lets you edit each track independently later.
- Go live. When you’re satisfied with the test, start your normal streaming routine. OBS will broadcast the combined scene (game + webcam) to your platform while simultaneously writing two separate files in the background. No extra software is required.
Common Mistakes
Many newcomers forget to switch OBS to Advanced output mode; in Simple mode the “Record” filter is still available, but the files are written to the same location as the main recording, causing overwrites. Another frequent error is placing both recordings in the same folder with identical filenames, which results in one file being overwritten by the other. Also, users often neglect to check that the selected drive has enough free space; a 2‑hour 1080p session can consume 30 GB per file, so running out of space mid‑stream will stop the recordings while the stream continues.
Tips
- Use
mkvas the file format for both recordings. If OBS crashes, themp4file may become unplayable, whereasmkvcan be salvaged with theffmpegtool. - Give each recording a timestamp in the filename (e.g.,
Game_20231202_1800.mkv) by adding%Y%m%d_%H%Min the filter’s Filename Formatting field. This prevents accidental overwrites when you stream daily. - If you use a capture card, add it as a
Video Capture Devicesource and apply the same “Record” filter. The workflow is identical to a USB webcam. - Enable “Show source name” on the canvas while testing; it helps you verify that the correct source is being recorded when you toggle visibility.
- Consider using a separate SSD for recordings. SSD write speeds reduce the chance of dropped frames in the separate files, especially at high bitrates.
Troubleshooting
If the recordings are empty or missing: 1) Verify that the paths you entered exist and are not on a network drive that may have latency. 2) Check the OBS log (Help → Log Files → View Current Log) for any “Failed to open file for writing” errors. 3) Make sure the “Record” filter’s “Enabled” checkbox is ticked for each source.
If the stream works but the recordings stutter: 1) Lower the recording bitrate in each “Record” filter’s settings. 2) Move the recording folders to a faster drive (NVMe SSD). 3) In Settings > Output > Recording, set the encoder to the same hardware encoder you use for streaming (e.g., NVENC) to share GPU resources efficiently.
If OBS crashes when you start streaming: 1) Ensure you are running the latest stable OBS version. 2) Disable any third‑party plugins that might conflict with the “Record” filter. 3) Temporarily switch the output mode back to Simple and test recording without the filter to isolate the cause.
If you see “Audio sync offset” warnings: The separate recordings use independent audio pipelines. In the filter’s properties, you can add a manual offset (in ms) to align the audio with the video after export.
Frequently Asked Questions
Can I record more than two sources at once?
Yes. You can add a “Record” filter to any number of sources (e.g., a second camera or a separate UI overlay). Each filter writes its own file to the path you specify.
Do I need a powerful PC to record two files while streaming?
Recording two independent streams adds CPU/GPU load, especially at high resolutions. A modern quad‑core CPU with a hardware encoder (NVENC, AMD VCE, or Intel Quick Sync) and an SSD for recordings is recommended for smooth performance.
Will the separate recordings include the overlay graphics I add in OBS?
No. The “Record” filter captures only the raw video of the source it is attached to. Overlays, alerts, and text added as separate sources are not part of the individual files, which makes them perfect for post‑production editing.
Is there a way to automatically sync the two recordings later?
Because both recordings start at the same moment, their timestamps are aligned. Using a video editor, import both files and line them up by their start time or by a visual cue (e.g., a clapperboard or a quick hand wave captured by both sources).
Can I use this method on a Mac?
Yes. OBS Studio’s “Record” filter works on macOS the same way as on Windows. The only difference is the file‑path syntax (e.g., /Users/YourName/Recordings/Game).
Do the separate recordings affect my stream’s bitrate?
No. The stream’s bitrate is controlled in the “Streaming” tab, while the recordings use the settings you define in each “Record” filter. They operate independently.