You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: OBS Virtual Camera track freezes on its first frame on Windows #1683
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:
Loop an animated MP4 as a Media Source in OBS and start the virtual camera with Program as its output.
Select OBS Virtual Camera in OpenScreen and record a short take. The webcam track freezes even with the floating preview hidden.
Exit OpenScreen and capture the same OBS output with FFmpeg. The animation keeps moving.
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.
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.
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.
Activity
EtienneLescot commentedon Nov 25, 2026
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 inelectron/native/wgc-capture/src/dshow_webcam_capture.cppscoped to the OBS Virtual Camera CLSID as you describe, and writeFixes #1683in 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.[-][Bug]:[/-][+][Bug]: OBS Virtual Camera track freezes on its first frame on Windows[/+]