Skip to content

obs-mcp: Virtual Camera, virtual mic, media and latency statistics #4446

Closed

Description

@zackees

Parent #4444, slice 2 after typed tools. Add vcam_start/stop/status, vmic_status, media_restart/status, stats_get/reset and pipeline_dump using typed requests/responses. Keep virtualcam_output and expose PipeWire/vcam counters through private proc_handler calls in plugins/linux-v4l2/v4l2-output.c.h. Report render/vcam/vmic live latency bounds, frames, drops, xruns and end-to-end A/V offset with measurement provenance; unavailable measurements must remain unavailable, never fabricated. Use obs_source_media_* for media. Starts/stops idempotent. Preserve public headers and existing C tests. RED/GREEN shared MCP tests, applicable Tier 2/3 regression coverage and bosn real-device validation. Maintainer supplied concrete design in worker session; depends on slice 1.

Activity

  1. added
    ready
    mcp
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Dependency found while reading current master: the native PipeWire node and underrun counter described in the request have not landed yet. They exist on perf/4119-vmic-pipewire / PR #4124 (struct vmic_pw and underruns); master still uses mic_fifo and the PulseAudio pipe tunnel. Leave #4124 unchanged and build this slice after it lands, alongside typed API #4445.

    Counter detail for the implementation: vmic_pw_write currently exchanges underruns back to zero for periodic logging. Add lifetime/baseline counters or an independent accumulator for stats_get/reset; reading stats must not consume the logging counter or lose minute-boundary history. Native proc_handler snapshots must be synchronized with output/node teardown.

  3. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: Control API device/media/stat domains (slice 2 of #4444).

    1. RED shared MCP tests against typed backend stubs.
    2. Implement Virtual Camera, mic status, media, render/stage stats and private output proc snapshots.
    3. Validate and open the slice PR in this session.

    Decisions: branch starts at origin/master and carries the unmerged typed API commits temporarily (explicitly stacked on #4450); no edits to perf/4119-vmic-pipewire. Current master lacks the native PipeWire counter; proc snapshots expose available FIFO/vcam measurements and unavailable fields honestly, with additive probing for native PipeWire stats after #4124 lands. Preserve C API/headers and websocket.

  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 11, 2026
  5. zackees commented on Nov 18, 2026

    @zackees
    MemberAuthor

    Landed on master in #4452 (f177791); verified the merge is an ancestor of origin/master and rust/obs-mcp/src/backend/control.rs exists there.

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

    mcpready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions