How to Stream Foscam to Obs

Streaming your Foscam camera to OBS Studio lets you integrate live security footage into live streams, recordings, or broadcasts. This guide walks you through setup, configuration, and optimization for a seamless experience.

Key Takeaways

  • Use RTSP or HTTP streams: Foscam cameras support RTSP and MJPEG over HTTP, which OBS can capture using media sources.
  • Find your camera’s IP address: Access the Foscam web interface to locate the RTSP URL or stream path needed for OBS.
  • Add a Media Source in OBS: Use the “Media Source” option and input the correct stream URL to display your Foscam feed.
  • Optimize stream settings: Adjust bitrate, resolution, and buffering in OBS to prevent lag or dropped frames.
  • Enable authentication if needed: Include username and password in the stream URL if your Foscam requires login credentials.
  • Troubleshoot common issues: Fix black screens, timeouts, or connection errors with firewall and network checks.
  • Test before going live: Always preview the stream in OBS and test recording to ensure stability.

Introduction: Why Stream Foscam to OBS?

If you’re using a Foscam security camera and want to include its live feed in your OBS Studio broadcasts—whether for home monitoring, live streaming, security alerts, or content creation—you’re in the right place. OBS (Open Broadcaster Software) is a powerful, free tool used by streamers, YouTubers, and professionals to mix video sources, add overlays, and broadcast to platforms like YouTube, Twitch, or Facebook.

Foscam cameras are popular for their affordability, remote access, and compatibility with various streaming protocols. By connecting your Foscam to OBS, you can integrate real-time surveillance footage into your live streams, create multi-camera setups, or even use the camera as a webcam alternative.

In this guide, you’ll learn exactly how to stream Foscam to OBS—from finding your camera’s stream URL to configuring OBS for smooth, lag-free video. We’ll cover RTSP and HTTP methods, authentication, troubleshooting, and pro tips to ensure your setup works flawlessly.

Whether you’re a beginner or have some experience with OBS, this step-by-step walkthrough will help you get your Foscam feed up and running in minutes.

What You’ll Need

How to Stream Foscam to Obs

Visual guide about How to Stream Foscam to Obs

Image source: i.pinimg.com

Before we begin, make sure you have the following:

  • A Foscam IP camera (models like FI9805P, FI9900P, R2, R4, etc.)
  • A computer running OBS Studio (Windows, Mac, or Linux)
  • Both the camera and computer connected to the same local network
  • Access to your Foscam’s web interface (via browser)
  • Your Foscam username and password

Most modern Foscam cameras support RTSP (Real-Time Streaming Protocol), which is ideal for low-latency streaming. Some also offer MJPEG over HTTP, which is easier to set up but may use more bandwidth.

Step 1: Find Your Foscam Camera’s IP Address

To connect OBS to your Foscam, you first need to know its IP address on your local network. Here’s how:

Access the Foscam Web Interface

  1. Open a web browser on a device connected to the same network as your Foscam.
  2. Type the default IP address of your Foscam model into the address bar. Common defaults include:
    • 192.168.1.10
    • 192.168.0.10
    • 192.168.1.108
  3. If you don’t know the IP, use a network scanner app like Advanced IP Scanner (Windows) or Fing (mobile) to find devices on your network. Look for a device named “Foscam” or with a MAC address starting with 00:1F:C3.

Log In to the Camera

Once you reach the login page:

  • Enter your Foscam username and password. The default is often admin with no password, or admin/123456 depending on the model.
  • If you’ve changed these before, use your custom credentials.

Locate the RTSP or Stream URL

After logging in:

  1. Go to Settings > Network > RTSP (or Advanced > RTSP Settings).
  2. Ensure RTSP is enabled. If it’s off, toggle it on and save.
  3. Note the RTSP port—usually 554.
  4. The full RTSP URL will look like:
    rtsp://[username]:[password]@[IP_ADDRESS]:554/videoMain

    For example:

    rtsp://admin:123456@192.168.1.10:554/videoMain

Some Foscam models use different stream paths:

  • /videoMain – high-resolution main stream
  • /videoSub – lower-resolution substream (better for streaming)
  • /MJPEG – MJPEG over HTTP (use http:// instead of rtsp://)

Pro Tip: Use the substream (/videoSub) in OBS for better performance, especially if your network is slow or your computer isn’t high-end.

Step 2: Install and Open OBS Studio

If you don’t already have OBS Studio installed:

Download OBS

  1. Go to obsproject.com.
  2. Download the version for your operating system (Windows, macOS, or Linux).
  3. Install it using the default settings.

Launch OBS and Set Up a Scene

  1. Open OBS Studio.
  2. In the Scenes panel (bottom left), click the + button to create a new scene. Name it “Foscam Stream” or similar.
  3. Click OK to create the scene.

Now you’re ready to add your Foscam feed as a source.

Step 3: Add Foscam as a Media Source in OBS

OBS doesn’t have a built-in “IP Camera” source, but you can use the Media Source to pull in RTSP or HTTP streams.

Add a Media Source

  1. In the Sources panel (below Scenes), click the + button.
  2. Select Media Source from the list.
  3. Name the source (e.g., “Foscam Camera”) and click OK.

Configure the Media Source

  1. In the Media Source settings window, check the box for Local File and uncheck it—we’re using a network stream.
  2. In the Input field, paste your Foscam RTSP or HTTP URL.
  3. Example RTSP URL:
    rtsp://admin:123456@192.168.1.10:554/videoSub
  4. Example HTTP MJPEG URL:
    http://192.168.1.10:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=123456
  5. Make sure Hardware Decoding is enabled (usually “DXVA2” on Windows or “VideoToolbox” on Mac) for better performance.
  6. Check Restart playback when source becomes active to avoid black screens.
  7. Click OK to save.

Adjust Source Settings

Once added:

  • Resize and position the Foscam feed in your scene using the drag handles.
  • Right-click the source and choose Transform to flip, rotate, or fit to screen.
  • Use Filters (click the gear icon) to add color correction, sharpening, or a border if needed.

Note: If you see a black screen, don’t panic—this is common. We’ll troubleshoot it in a later section.

Step 4: Optimize Stream Settings in OBS

To ensure smooth playback and avoid lag, buffering, or dropped frames, optimize your OBS settings.

Set Output (Streaming) Settings

  1. Go to File > Settings > Output.
  2. Under Output Mode, choose Advanced for more control.
  3. In the Streaming tab:
    • Set Encoder to x264 (software) or NVENC (NVIDIA GPU) if available.
    • Set Bitrate based on your internet upload speed:
      • 720p30: 2500–4000 kbps
      • 1080p30: 4000–6000 kbps
    • Set Keyframe Interval to 2 seconds.

Adjust Video Settings

  1. Go to Settings > Video.
  2. Set Base (Canvas) Resolution to your desired output (e.g., 1920×1080).
  3. Set Output (Scaled) Resolution to match or scale down (e.g., 1280×720 for lower bandwidth).
  4. Set FPS to 30 (or 25 if in PAL regions).

Enable Buffering (Optional)

If your stream stutters:

  • In the Media Source settings, increase the Buffering Time (e.g., 1000 ms).
  • This adds a slight delay but improves stability.

Step 5: Test Your Foscam Stream

Before going live, always test your setup.

Preview the Stream

  1. In OBS, look at the preview window.
  2. You should see your Foscam feed live. If it’s black or frozen, check the troubleshooting section.
  3. Move in front of the camera to confirm motion is captured.

Test Recording

  1. Click the Start Recording button in OBS.
  2. Record for 30–60 seconds.
  3. Stop and play back the file to check for:
    • Video/audio sync
    • Frame drops
    • Lag or stuttering

Test Streaming (Optional)

If you plan to stream to YouTube, Twitch, etc.:

  1. Go to Settings > Stream.
  2. Select your platform and enter your stream key.
  3. Click Start Streaming and monitor the status bar for dropped frames.

Tip: Use a private stream or test channel to avoid broadcasting to your main audience during testing.

Troubleshooting Common Issues

Even with perfect setup, issues can arise. Here’s how to fix the most common problems.

Black Screen in OBS

Cause: Incorrect URL, authentication failure, or network block.

Solutions:

  • Double-check the RTSP/HTTP URL for typos.
  • Ensure the username and password are correct and included in the URL.
  • Try using the substream (/videoSub) instead of /videoMain.
  • Test the URL in VLC Media Player:
    1. Open VLC.
    2. Go to Media > Open Network Stream.
    3. Paste the RTSP URL and click Play.
    4. If it works in VLC but not OBS, the issue is OBS-specific.

“Failed to Open” or “Connection Timed Out”

Cause: Network issues or firewall blocking.

Solutions:

  • Ensure both the camera and computer are on the same network.
  • Disable firewall temporarily to test (then re-enable and add exceptions).
  • Restart your router and camera.
  • Assign a static IP to your Foscam to prevent IP changes.

High CPU Usage or Lag

Cause: Software decoding or high-resolution stream.

Solutions:

  • Enable hardware decoding in the Media Source settings.
  • Use the substream (/videoSub) for lower resolution.
  • Lower OBS output resolution and bitrate.
  • Close unnecessary programs to free up CPU.

No Audio (If Supported)

Most Foscam cameras don’t transmit audio over RTSP. If yours does:

  • Check if the RTSP URL includes audio (e.g., ?audio=1).
  • Add an Audio Input Capture source in OBS and select the camera’s audio device (if available).
  • Note: Many Foscam models require a separate audio stream or don’t support audio at all.

Stream Freezes or Buffers

Cause: Network congestion or insufficient bandwidth.

Solutions:

  • Reduce the stream resolution in OBS.
  • Use a wired Ethernet connection instead of Wi-Fi.
  • Limit other devices using bandwidth (e.g., downloads, video calls).
  • Increase buffering time in the Media Source.

Advanced Tips for Better Performance

Use a Static IP for Your Foscam

To avoid reconfiguring OBS every time your camera’s IP changes:

  1. Log in to your router.
  2. Find the DHCP reservation or static IP section.
  3. Assign a fixed IP to your Foscam’s MAC address.
  4. Update the OBS Media Source URL if needed.

Set Up Multiple Cameras

You can add multiple Foscam feeds to OBS:

  • Create a new scene for each camera.
  • Or add multiple Media Sources to one scene and arrange them in a grid.
  • Use Scene Collections to manage different layouts (e.g., “Security Overview,” “Live Stream”).

Add Overlays and Alerts

Enhance your stream with:

  • Text overlays (e.g., “Front Door Camera”).
  • Logos or watermarks.
  • Motion detection alerts (using third-party software like Blue Iris or Synology Surveillance Station).

Use OBS as a Virtual Camera

If you want to use your Foscam feed in Zoom, Skype, or Teams:

  1. In OBS, go to Tools > VirtualCam.
  2. Click Start.
  3. In your video conferencing app, select “OBS-Camera” as the video source.

Conclusion: You’re Ready to Stream

You’ve now learned how to stream Foscam to OBS—from finding your camera’s IP and RTSP URL to configuring OBS for smooth, reliable playback. Whether you’re monitoring your home, enhancing a live stream, or building a multi-camera security dashboard, this setup gives you powerful control over your video sources.

Remember to:

  • Use the substream for better performance.
  • Test your setup before going live.
  • Optimize OBS settings for your hardware and network.
  • Troubleshoot with VLC and firewall checks.

With these steps, your Foscam feed will integrate seamlessly into OBS, giving you professional-quality video with minimal effort. Happy streaming!