Skip to content

[Bug]: OBS Virtual Camera track freezes on its first frame on Windows #1683

Backlog

Description

@frayzis

Search existing issues

  • I have searched the existing issues

Describe the bug

Hi Etienne! I ran into a webcam freeze in OpenScreen 2.4.0 on Windows 11 with OBS Studio 33.0.3. The OBS Virtual Camera preview stutters, and the saved webcam track shows the first frame for the whole take. Screen recording continues normally.

I reproduced it without a physical camera:

  1. Loop an animated MP4 as a Media Source in OBS and start the virtual camera with Program as its output.
  2. Select OBS Virtual Camera in OpenScreen and record a short take. The webcam track freezes even with the floating preview hidden.
  3. Exit OpenScreen and capture the same OBS output with FFmpeg. The animation keeps moving.
ffmpeg -f dshow -i 'video=OBS Virtual Camera' -t 5 -an obs-control.mp4

OpenScreen negotiated NV12 at 1920 × 1080 and 30 FPS. The native helper reproduced the freeze with both hardware and software encoding. Calling IMediaFilter::SetSyncSource(nullptr) on the DirectShow graph before Run() restored motion. I scoped the change to the OBS Virtual Camera CLSID so other webcam graphs keep their existing behavior. OpenScreen still assigns timestamps to the camera and screen tracks from its shared recording clock.

Patсh: openscreen-obs-virtual-camera.patch

I built the patch against v2.4.0 and tested it with the installed Store build using OPENSCREEN_WGC_CAPTURE_EXE. OpenScreen recorded 181 camera frames in about six seconds without a freeze. In a separate native-helper test with a four-second pause, both tracks finished at 12.368 seconds, and the timecode in the test pattern showed no additional delay after resume. This patch targets recording. The preview before recording uses a separate capture path.

Would you be open to a PR with this change? I can share the small patch and the reproduction clip.

Expected behavior

Run patсh and you get good programm;)

To Reproduce

No response

Screenshots

No response

OS

Windows

OS Version

No response

Other OS

No response

Browser

None

Browser Version

No response

Other Browser

No response

Device Type

None

Other Device

No response

Additional context

No response

Activity

  1. added
    bug
    on Nov 25, 2026
  2. EtienneLescot commented on Nov 25, 2026

    @EtienneLescot
    Member

    Thanks a lot for the detailed report and the reproduction, @frayzis! Yes, a PR with this change is welcome. Please open it against main, with the change in electron/native/wgc-capture/src/dshow_webcam_capture.cpp scoped to the OBS Virtual Camera CLSID as you describe, and write Fixes #1683 in the PR description (not in the commit message). Since it touches the native capture helper, we will also run our capture proof on its head before it merges.

  3. changed the title [-][Bug]:[/-] [+][Bug]: OBS Virtual Camera track freezes on its first frame on Windows[/+] on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions