Skip to content
DanFesslerPublic

About

Use your Sony ZV-E10 II (and other 'works-everywhere-but-OBS' USB cameras) in OBS Studio. Relays the camera into the OBS Virtual Camera to bypass OBS's DirectShow 0x80004002 failure.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

CamBridge

Use your Sony ZV‑E10 II (and other "works‑everywhere‑but‑OBS" USB cameras) in OBS Studio.

CamBridge is a tiny Windows system‑tray app that reads your camera through a video path that actually works and re‑publishes the frames to the OBS Virtual Camera device, so OBS — and any other DirectShow app — gets a clean, reliable feed.


The problem this solves

The Sony ZV‑E10 II is marketed to streamers, yet plugged in as a USB webcam it behaves strangely depending on the app:

App Capture API it uses Result
Google Meet (Chrome), Windows Camera, Zoom* Media Foundation ✅ Works
OBS Studio, many capture tools DirectShow ❌ Black screen / source renders nothing

*Zoom works at lower USB‑streaming resolutions; at higher ones it can freeze.

The camera shows up in OBS as a selectable source, but the preview stays black. OBS's log tells the real story:

[DShow Device: 'SonyCam'] settings updated:
    video device: ZV-E10M2
    format: MJPEG
DShow: Run failed (0x80004002): No such interface supported

0x80004002 is E_NOINTERFACE. When OBS builds its DirectShow filter graph and calls Run(), it queries an interface that this camera's DirectShow filter doesn't expose, so the graph never starts.

Why it isn't "the camera is broken"

DirectShow itself is not broken for this camera. The proof: CamBridge captures the camera through DirectShow (via OpenCV's more permissive graph) and it runs rock‑solid at 30 fps. Chrome and the Windows Camera app reach it through Media Foundation and are equally happy.

The failure is specific to the interaction between OBS's particular graph construction (libdshowcapture) and this camera's particular UVC/DirectShow filter, gated on format/firmware/Windows combinations. That narrowness is why you don't see a giant "ZV‑E10 II doesn't work in OBS" banner online — people who hit the generic 0x80004002 usually just reach for a virtual camera or a capture card and move on.

CamBridge is the "reach for a virtual camera" answer, automated and made permanent.


How it works

flowchart LR
    A[Sony ZV-E10 II<br/>USB streaming] -->|OpenCV DirectShow<br/>or Media Foundation| B(CamBridge relay)
    B -->|pyvirtualcam| C[OBS Virtual Camera]
    C -->|DirectShow, works fine| D[OBS Studio]
    C --> E[Zoom / Teams / Discord / etc.]
Loading
  1. CamBridge resolves the camera by name (ZV-E10M2) so it never grabs the wrong device.
  2. It opens the camera with OpenCV's DirectShow backend (falling back to Media Foundation) and auto‑detects whatever resolution the camera is currently outputting — 720p, 1080p, or 4K.
  3. It forwards each frame to the OBS Virtual Camera sink via pyvirtualcam.
  4. OBS (and Zoom, Teams, Discord, …) select OBS Virtual Camera as their source and get a clean feed.

A background watchdog reconnects automatically if the camera drops or is toggled.


Requirements

  • Windows 10/11
  • Python 3.9+
  • OBS Studio installed (its DirectShow Virtual Camera sink is what CamBridge publishes to). Installing OBS once registers the "OBS Virtual Camera" device system‑wide; you do not have to keep OBS open.
  • A Sony ZV‑E10 II (or similar UVC camera) in USB‑streaming mode

Install

git clone https://github.com/DanFessler/cambridge.git
cd cambridge
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt

Usage

System tray (recommended)

Double‑click start-tray.vbs (launches with no console window). A camera icon appears in your system tray:

  • green = relaying, grey = stopped
  • Right‑click for Start / Stop / Restart, live Status, and Open log

The relay auto‑starts when the tray app launches.

Start automatically at login

Press Win+R, run shell:startup, and drop a shortcut to start-tray.vbs into that folder. CamBridge will sit in your tray after every sign‑in. A single‑instance lock prevents the camera from being grabbed twice.

Command line (no tray)

Double‑click start-relay.cmd (keeps a console window open with live stats), or run the relay directly:

.venv\Scripts\python relay\zv_relay.py            # defaults: ZV-E10M2 -> OBS Virtual Camera @ 30fps
.venv\Scripts\python relay\zv_relay.py --name "ZV-E10M2" --fps 30 --backend dshow

Point OBS at it

In OBS, add a Video Capture Device source and choose OBS Virtual Camera (not the raw ZV-E10M2). Done.


Repository layout

Path What it is
relay/zv_relay.py The relay: camera → OBS Virtual Camera. Runs standalone or under the tray app.
relay/tray_app.py System‑tray controller (start/stop/restart/status/log, single‑instance lock).
start-tray.vbs Silent launcher (no console window); also used for startup.
start-relay.cmd Console launcher for the relay (live stats, no tray).
requirements.txt Python dependencies.
diag/ Read‑only diagnostic scripts used to investigate the issue (device enumeration, USB descriptors, DirectShow filter survey, backend probes). Handy for diagnosing other cameras.
fix/ Native‑fix experiments that were attempted and a couple of utilities (see below).

About fix/ — what was tried and didn't work

Before settling on the relay, several "make DirectShow work natively" approaches were attempted. They're kept here for the record and easy reversal — but note the registry tweaks did not fix OBS for this camera:

  • enable-dshow-bridge.ps1 / enable-frame-server.ps1 — registry attempts to bridge Media Foundation into DirectShow. Ineffective for the 0x80004002 Run failure.
  • revert-native-fix.ps1 — undoes the above registry changes.
  • disable-eos.ps1 / enable-eos.ps1 — toggle the Canon EOS Webcam Utility virtual camera. Used to rule out a virtual‑camera conflict (it was not the cause).

All fix/ and diag/ scripts that change system state require an elevated (Administrator) PowerShell.


Compatibility

Built and verified with the Sony ZV‑E10 II (firmware 1.02). The approach is generic, though: any UVC camera that works in Chrome/Windows Camera but fails in OBS with DShow: Run failed (0x80004002) should work by passing its name with --name.


Troubleshooting

  • "could not open 'ZV-E10M2'" — make sure the camera is on, connected, and in USB‑streaming mode, and that nothing else is holding it open.
  • OBS still black — confirm you selected OBS Virtual Camera, not the raw ZV-E10M2, as the source.
  • Resolution looks off — restart the relay after changing the camera's USB output resolution; CamBridge locks resolution at startup.
  • Check the log — tray menu → Open log, or relay/relay.log.

License

MIT © 2026 Dan Fessler

About

Use your Sony ZV-E10 II (and other 'works-everywhere-but-OBS' USB cameras) in OBS Studio. Relays the camera into the OBS Virtual Camera to bypass OBS's DirectShow 0x80004002 failure.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages