{"schema_version":2,"generated":"2026-11-23T18:22:23+00:00","obs_studio_commit":"524486a44c81ef30b039f10ab955bc778f39e225","obs_websocket_commit":"c2366e8d2c212be569a4fce6687d8a3fb7c6be70","docs":[{"slug":"readme","group":"project","tier":"core","title":"obs-studio-rust","path":"README.md","url":"https://github.com/obs-rust/obs-studio/blob/master/README.md","site_url":"/ai/docs/readme.md"},{"slug":"agents","group":"project","tier":"core","title":"Agent instructions","path":"AGENTS.md","url":"https://github.com/obs-rust/obs-studio/blob/master/AGENTS.md","site_url":"/ai/docs/agents.md"},{"slug":"build","group":"project","tier":"reference","title":"Building C, C++ and Objective-C: unity groups and precompiled headers","path":"BUILD.md","url":"https://github.com/obs-rust/obs-studio/blob/master/BUILD.md","site_url":"/ai/docs/build.md"},{"slug":"contributing","group":"project","tier":"core","title":"General Contribution Guidelines","path":"CONTRIBUTING.md","url":"https://github.com/obs-rust/obs-studio/blob/master/CONTRIBUTING.md","site_url":"/ai/docs/contributing.md"},{"slug":"security","group":"project","tier":"core","title":"Security policy","path":"SECURITY.md","url":"https://github.com/obs-rust/obs-studio/blob/master/SECURITY.md","site_url":"/ai/docs/security.md"},{"slug":"codestyle","group":"project","tier":"core","title":"Reducing Potential For Errors","path":"CODESTYLE.md","url":"https://github.com/obs-rust/obs-studio/blob/master/CODESTYLE.md","site_url":"/ai/docs/codestyle.md"},{"slug":"constitution","group":"project","tier":"core","title":"Constitution","path":"CONSTITUTION.md","url":"https://github.com/obs-rust/obs-studio/blob/master/CONSTITUTION.md","site_url":"/ai/docs/constitution.md"},{"slug":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","title":"CI cache audit: 2026-10-17","path":"docs/ci-cache-audit-2026-10-17.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-cache-audit-2026-10-17.md","site_url":"/ai/docs/docs-ci-cache-audit-2026-10-17.md"},{"slug":"docs-ci-macos-qt-artifacts","group":"docs","tier":"process","title":"macOS Qt contract artifacts (#5008, slice c)","path":"docs/ci-macos-qt-artifacts.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-macos-qt-artifacts.md","site_url":"/ai/docs/docs-ci-macos-qt-artifacts.md"},{"slug":"docs-ci-merge-group-scope","group":"docs","tier":"process","title":"Merge-group scope and native runner capacity \u2014 2026-11-04","path":"docs/ci-merge-group-scope.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-merge-group-scope.md","site_url":"/ai/docs/docs-ci-merge-group-scope.md"},{"slug":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","title":"Linux Tier 2 concurrency audit \u2014 2026-10-21","path":"docs/ci-serial-audit-2026-10-21.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-serial-audit-2026-10-21.md","site_url":"/ai/docs/docs-ci-serial-audit-2026-10-21.md"},{"slug":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","title":"CI speed batch: October 21, 2026","path":"docs/ci-speed-2026-10-21.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-speed-2026-10-21.md","site_url":"/ai/docs/docs-ci-speed-2026-10-21.md"},{"slug":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","title":"Next CI speed batch","path":"docs/ci-speed-2026-10-22.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-speed-2026-10-22.md","site_url":"/ai/docs/docs-ci-speed-2026-10-22.md"},{"slug":"docs-ci-speed-flatpak-1760","group":"docs","tier":"archive","title":"Flatpak performance: CEF debug processing","path":"docs/ci-speed-flatpak-1760.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-speed-flatpak-1760.md","site_url":"/ai/docs/docs-ci-speed-flatpak-1760.md"},{"slug":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","title":"Flatpak PCH cache qualification (#1760)","path":"docs/ci-speed-flatpak-pch-1760.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-speed-flatpak-pch-1760.md","site_url":"/ai/docs/docs-ci-speed-flatpak-pch-1760.md"},{"slug":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","title":"Flatpak performance retrospective (#1760)","path":"docs/ci-speed-flatpak-retrospective-1760.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-speed-flatpak-retrospective-1760.md","site_url":"/ai/docs/docs-ci-speed-flatpak-retrospective-1760.md"},{"slug":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","title":"Flatpak packaged runtime qualification (#1760)","path":"docs/ci-speed-flatpak-runtime-1760.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-speed-flatpak-runtime-1760.md","site_url":"/ai/docs/docs-ci-speed-flatpak-runtime-1760.md"},{"slug":"docs-ci-tier2-queue-capacity","group":"docs","tier":"process","title":"Tier 2 runner capacity on the merge queue (2026-11-07)","path":"docs/ci-tier2-queue-capacity.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-tier2-queue-capacity.md","site_url":"/ai/docs/docs-ci-tier2-queue-capacity.md"},{"slug":"docs-ci-tooling","group":"docs","tier":"process","title":"CI and build tooling: how not to drown the machines","path":"docs/ci-tooling.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/ci-tooling.md","site_url":"/ai/docs/docs-ci-tooling.md"},{"slug":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","title":"Zackees draft PR handoff \u2014 OBS repository only","path":"docs/draft-pr-handoff-1845.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/draft-pr-handoff-1845.md","site_url":"/ai/docs/docs-draft-pr-handoff-1845.md"},{"slug":"docs-fallback-warning","group":"docs","tier":"process","title":"Fallback warning","path":"docs/fallback-warning.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/fallback-warning.md","site_url":"/ai/docs/docs-fallback-warning.md"},{"slug":"docs-feature-sources","group":"docs","tier":"process","title":"Feature sources","path":"docs/feature-sources.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/feature-sources.md","site_url":"/ai/docs/docs-feature-sources.md"},{"slug":"docs-features","group":"docs","tier":"reference","title":"Features ledger","path":"docs/features.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/features.md","site_url":"/ai/docs/docs-features.md"},{"slug":"docs-gpu-status","group":"docs","tier":"process","title":"GPU acceleration status light","path":"docs/gpu-status.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/gpu-status.md","site_url":"/ai/docs/docs-gpu-status.md"},{"slug":"docs-hall-of-fame","group":"docs","tier":"archive","title":"\ud83c\udfc6 OBS Project User Abuse Hall of Fame","path":"docs/hall-of-fame.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/hall-of-fame.md","site_url":"/ai/docs/docs-hall-of-fame.md"},{"slug":"docs-macos-signing","group":"docs","tier":"process","title":"macOS signing policy","path":"docs/macos-signing.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/macos-signing.md","site_url":"/ai/docs/docs-macos-signing.md"},{"slug":"docs-undo-redo-research-2214","group":"docs","tier":"archive","title":"Undo/redo: coverage, architecture and a visible affordance (#2214)","path":"docs/undo-redo-research-2214.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/undo-redo-research-2214.md","site_url":"/ai/docs/docs-undo-redo-research-2214.md"},{"slug":"docs-worker-prompt","group":"docs","tier":"process","title":"Worker prompt","path":"docs/worker-prompt.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/worker-prompt.md","site_url":"/ai/docs/docs-worker-prompt.md"},{"slug":"docs-rust-port-backpressure","group":"rust-port","tier":"process","title":"Back pressure and AI rebase","path":"docs/rust-port/backpressure.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/backpressure.md","site_url":"/ai/docs/docs-rust-port-backpressure.md"},{"slug":"docs-rust-port-cc-build","group":"rust-port","tier":"process","title":"Cargo-driven OBS native build conversion","path":"docs/rust-port/cc-build.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/cc-build.md","site_url":"/ai/docs/docs-rust-port-cc-build.md"},{"slug":"docs-rust-port-conflict-hotspots","group":"rust-port","tier":"process","title":"Shared registration conflicts","path":"docs/rust-port/conflict-hotspots.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/conflict-hotspots.md","site_url":"/ai/docs/docs-rust-port-conflict-hotspots.md"},{"slug":"docs-rust-port-control-api","group":"rust-port","tier":"core","title":"Control API","path":"docs/rust-port/control-api.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/control-api.md","site_url":"/ai/docs/docs-rust-port-control-api.md"},{"slug":"docs-rust-port-coordination","group":"rust-port","tier":"process","title":"Coordinating work: issues, claims and pull requests","path":"docs/rust-port/coordination.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/coordination.md","site_url":"/ai/docs/docs-rust-port-coordination.md"},{"slug":"docs-rust-port-ffmpeg-orientation-characterization","group":"rust-port","tier":"process","title":"FFmpeg orientation metadata selection characterization","path":"docs/rust-port/ffmpeg-orientation-characterization.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/ffmpeg-orientation-characterization.md","site_url":"/ai/docs/docs-rust-port-ffmpeg-orientation-characterization.md"},{"slug":"docs-rust-port-fuzzing","group":"rust-port","tier":"process","title":"Scheduled differential fuzzing","path":"docs/rust-port/fuzzing.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/fuzzing.md","site_url":"/ai/docs/docs-rust-port-fuzzing.md"},{"slug":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","title":"Hybrid default validation (#1587)","path":"docs/rust-port/hybrid-build-validation.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/hybrid-build-validation.md","site_url":"/ai/docs/docs-rust-port-hybrid-build-validation.md"},{"slug":"docs-rust-port-hybrid-build","group":"rust-port","tier":"process","title":"Hybrid application build","path":"docs/rust-port/hybrid-build.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/hybrid-build.md","site_url":"/ai/docs/docs-rust-port-hybrid-build.md"},{"slug":"docs-rust-port-mcp","group":"rust-port","tier":"core","title":"MCP control server","path":"docs/rust-port/mcp.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/mcp.md","site_url":"/ai/docs/docs-rust-port-mcp.md"},{"slug":"docs-rust-port-naming","group":"rust-port","tier":"process","title":"Naming","path":"docs/rust-port/naming.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/naming.md","site_url":"/ai/docs/docs-rust-port-naming.md"},{"slug":"docs-rust-port-public-header-conditionals","group":"rust-port","tier":"process","title":"Public-header platform conditional audit (#878)","path":"docs/rust-port/public-header-conditionals.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/public-header-conditionals.md","site_url":"/ai/docs/docs-rust-port-public-header-conditionals.md"},{"slug":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","title":"Rust implementation release criteria","path":"docs/rust-port/release-criteria.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/release-criteria.md","site_url":"/ai/docs/docs-rust-port-release-criteria.md"},{"slug":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","title":"Rust Port Testing Policy","path":"docs/rust-port/testing-policy.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/testing-policy.md","site_url":"/ai/docs/docs-rust-port-testing-policy.md"},{"slug":"docs-rust-port-troubleshooting","group":"rust-port","tier":"process","title":"Troubleshooting your environment","path":"docs/rust-port/troubleshooting.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/troubleshooting.md","site_url":"/ai/docs/docs-rust-port-troubleshooting.md"},{"slug":"docs-rust-port-websocket-port","group":"rust-port","tier":"process","title":"obs-websocket v5 port boundary","path":"docs/rust-port/websocket-port.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/websocket-port.md","site_url":"/ai/docs/docs-rust-port-websocket-port.md"},{"slug":"docs-knowledge-asan-allocation-unwinder","group":"knowledge","tier":"process","title":"Which asan tests keep the slow allocation unwinder","path":"docs/knowledge/asan-allocation-unwinder.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/asan-allocation-unwinder.md","site_url":"/ai/docs/docs-knowledge-asan-allocation-unwinder.md"},{"slug":"docs-knowledge-asan-cold-builds","group":"knowledge","tier":"process","title":"Most asan builds start cold","path":"docs/knowledge/asan-cold-builds.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/asan-cold-builds.md","site_url":"/ai/docs/docs-knowledge-asan-cold-builds.md"},{"slug":"docs-knowledge-asan-pr-failure","group":"knowledge","tier":"process","title":"An asan failure on your PR","path":"docs/knowledge/asan-pr-failure.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/asan-pr-failure.md","site_url":"/ai/docs/docs-knowledge-asan-pr-failure.md"},{"slug":"docs-knowledge-host-compiler-float","group":"knowledge","tier":"process","title":"Float results depend on the host compiler","path":"docs/knowledge/host-compiler-float.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/host-compiler-float.md","site_url":"/ai/docs/docs-knowledge-host-compiler-float.md"},{"slug":"docs-knowledge-index","group":"knowledge","tier":"process","title":"Knowledge bundle","path":"docs/knowledge/index.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/index.md","site_url":"/ai/docs/docs-knowledge-index.md"},{"slug":"docs-knowledge-local-sanitizers","group":"knowledge","tier":"process","title":"Running sanitizers locally","path":"docs/knowledge/local-sanitizers.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/local-sanitizers.md","site_url":"/ai/docs/docs-knowledge-local-sanitizers.md"},{"slug":"docs-knowledge-pipewire-stop-after-start","group":"knowledge","tier":"process","title":"A PipeWire loop stopped right after its start can hang","path":"docs/knowledge/pipewire-stop-after-start.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/pipewire-stop-after-start.md","site_url":"/ai/docs/docs-knowledge-pipewire-stop-after-start.md"},{"slug":"docs-knowledge-quit-hang-log-end","group":"knowledge","tier":"process","title":"Where a quit hang waits, from the last lines of the log","path":"docs/knowledge/quit-hang-log-end.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/quit-hang-log-end.md","site_url":"/ai/docs/docs-knowledge-quit-hang-log-end.md"},{"slug":"docs-knowledge-sanitizer-dispatch","group":"knowledge","tier":"process","title":"Dispatch sanitizers on a separate ref","path":"docs/knowledge/sanitizer-dispatch.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/sanitizer-dispatch.md","site_url":"/ai/docs/docs-knowledge-sanitizer-dispatch.md"},{"slug":"docs-knowledge-sanitizer-known-list","group":"knowledge","tier":"process","title":"The sanitizer known list","path":"docs/knowledge/sanitizer-known-list.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/sanitizer-known-list.md","site_url":"/ai/docs/docs-knowledge-sanitizer-known-list.md"},{"slug":"docs-knowledge-shutdown-deferred-destroy","group":"knowledge","tier":"process","title":"A source's destroy runs later, on another thread","path":"docs/knowledge/shutdown-deferred-destroy.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/shutdown-deferred-destroy.md","site_url":"/ai/docs/docs-knowledge-shutdown-deferred-destroy.md"},{"slug":"docs-knowledge-test-leaks","group":"knowledge","tier":"process","title":"Free what OBS's destroy path frees","path":"docs/knowledge/test-leaks.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/test-leaks.md","site_url":"/ai/docs/docs-knowledge-test-leaks.md"},{"slug":"docs-knowledge-timing-tests","group":"knowledge","tier":"process","title":"Timing tests wait for the result","path":"docs/knowledge/timing-tests.md","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/knowledge/timing-tests.md","site_url":"/ai/docs/docs-knowledge-timing-tests.md"},{"slug":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","title":"OBS Studio Backend Design","path":"docs/sphinx/backend-design.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/backend-design.rst","site_url":"/ai/docs/docs-sphinx-backend-design.md"},{"slug":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","title":"Frontends","path":"docs/sphinx/frontends.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/frontends.rst","site_url":"/ai/docs/docs-sphinx-frontends.md"},{"slug":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","title":"Rendering Graphics","path":"docs/sphinx/graphics.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/graphics.rst","site_url":"/ai/docs/docs-sphinx-graphics.md"},{"slug":"docs-sphinx-index","group":"libobs-api","tier":"reference","title":"Welcome to OBS Studio's documentation!","path":"docs/sphinx/index.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/index.rst","site_url":"/ai/docs/docs-sphinx-index.md"},{"slug":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","title":"Plugins","path":"docs/sphinx/plugins.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/plugins.rst","site_url":"/ai/docs/docs-sphinx-plugins.md"},{"slug":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","title":"Canvas API Reference (obs_canvas_t)","path":"docs/sphinx/reference-canvases.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-canvases.rst","site_url":"/ai/docs/docs-sphinx-reference-canvases.md"},{"slug":"docs-sphinx-reference-core-objects","group":"libobs-api","tier":"reference","title":"Core API Object Reference","path":"docs/sphinx/reference-core-objects.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-core-objects.rst","site_url":"/ai/docs/docs-sphinx-reference-core-objects.md"},{"slug":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","title":"OBS Core API Reference","path":"docs/sphinx/reference-core.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-core.rst","site_url":"/ai/docs/docs-sphinx-reference-core.md"},{"slug":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","title":"Encoder API Reference (obs_encoder_t)","path":"docs/sphinx/reference-encoders.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-encoders.rst","site_url":"/ai/docs/docs-sphinx-reference-encoders.md"},{"slug":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","title":"OBS Studio Frontend API","path":"docs/sphinx/reference-frontend-api.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-frontend-api.rst","site_url":"/ai/docs/docs-sphinx-reference-frontend-api.md"},{"slug":"docs-sphinx-reference-libobs-callback","group":"libobs-api","tier":"reference","title":"Callback API Reference (libobs/callback)","path":"docs/sphinx/reference-libobs-callback.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-callback.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-callback.md"},{"slug":"docs-sphinx-reference-libobs-graphics-axisang","group":"libobs-api","tier":"reference","title":"Axis Angle","path":"docs/sphinx/reference-libobs-graphics-axisang.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-axisang.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-axisang.md"},{"slug":"docs-sphinx-reference-libobs-graphics-effects","group":"libobs-api","tier":"reference","title":"Effects (Shaders)","path":"docs/sphinx/reference-libobs-graphics-effects.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-effects.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-effects.md"},{"slug":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","title":"Core Graphics API","path":"docs/sphinx/reference-libobs-graphics-graphics.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-graphics.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-graphics.md"},{"slug":"docs-sphinx-reference-libobs-graphics-image-file","group":"libobs-api","tier":"reference","title":"Image File Helper","path":"docs/sphinx/reference-libobs-graphics-image-file.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-image-file.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-image-file.md"},{"slug":"docs-sphinx-reference-libobs-graphics-math","group":"libobs-api","tier":"reference","title":"Extra Math Functions/Macros","path":"docs/sphinx/reference-libobs-graphics-math.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-math.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-math.md"},{"slug":"docs-sphinx-reference-libobs-graphics-matrix4","group":"libobs-api","tier":"reference","title":"Matrix","path":"docs/sphinx/reference-libobs-graphics-matrix4.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-matrix4.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-matrix4.md"},{"slug":"docs-sphinx-reference-libobs-graphics-quat","group":"libobs-api","tier":"reference","title":"Quaternion","path":"docs/sphinx/reference-libobs-graphics-quat.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-quat.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-quat.md"},{"slug":"docs-sphinx-reference-libobs-graphics-vec2","group":"libobs-api","tier":"reference","title":"2-Component Vector","path":"docs/sphinx/reference-libobs-graphics-vec2.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-vec2.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-vec2.md"},{"slug":"docs-sphinx-reference-libobs-graphics-vec3","group":"libobs-api","tier":"reference","title":"3-Component Vector","path":"docs/sphinx/reference-libobs-graphics-vec3.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-vec3.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-vec3.md"},{"slug":"docs-sphinx-reference-libobs-graphics-vec4","group":"libobs-api","tier":"reference","title":"4-Component Vector","path":"docs/sphinx/reference-libobs-graphics-vec4.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics-vec4.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics-vec4.md"},{"slug":"docs-sphinx-reference-libobs-graphics","group":"libobs-api","tier":"reference","title":"Graphics API Reference (libobs/graphics)","path":"docs/sphinx/reference-libobs-graphics.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-graphics.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-graphics.md"},{"slug":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","title":"Media I/O API Reference (libobs/media-io)","path":"docs/sphinx/reference-libobs-media-io.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-media-io.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-media-io.md"},{"slug":"docs-sphinx-reference-libobs-util-base","group":"libobs-api","tier":"reference","title":"Logging","path":"docs/sphinx/reference-libobs-util-base.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-base.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-base.md"},{"slug":"docs-sphinx-reference-libobs-util-bmem","group":"libobs-api","tier":"reference","title":"Memory Management","path":"docs/sphinx/reference-libobs-util-bmem.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-bmem.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-bmem.md"},{"slug":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","title":"Config Files","path":"docs/sphinx/reference-libobs-util-config-file.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-config-file.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-config-file.md"},{"slug":"docs-sphinx-reference-libobs-util-darray","group":"libobs-api","tier":"reference","title":"Dynamic Arrays","path":"docs/sphinx/reference-libobs-util-darray.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-darray.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-darray.md"},{"slug":"docs-sphinx-reference-libobs-util-deque","group":"libobs-api","tier":"reference","title":"Double-Ended Queue","path":"docs/sphinx/reference-libobs-util-deque.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-deque.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-deque.md"},{"slug":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","title":"Dynamic Strings And String Helpers","path":"docs/sphinx/reference-libobs-util-dstr.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-dstr.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-dstr.md"},{"slug":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","title":"Platform Helpers","path":"docs/sphinx/reference-libobs-util-platform.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-platform.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-platform.md"},{"slug":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","title":"Profiler","path":"docs/sphinx/reference-libobs-util-profiler.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-profiler.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-profiler.md"},{"slug":"docs-sphinx-reference-libobs-util-serializers","group":"libobs-api","tier":"reference","title":"Serializer","path":"docs/sphinx/reference-libobs-util-serializers.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-serializers.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-serializers.md"},{"slug":"docs-sphinx-reference-libobs-util-source-profiler","group":"libobs-api","tier":"reference","title":"Source Profiler","path":"docs/sphinx/reference-libobs-util-source-profiler.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-source-profiler.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-source-profiler.md"},{"slug":"docs-sphinx-reference-libobs-util-text-lookup","group":"libobs-api","tier":"reference","title":"Text Lookup Interface","path":"docs/sphinx/reference-libobs-util-text-lookup.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-text-lookup.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-text-lookup.md"},{"slug":"docs-sphinx-reference-libobs-util-threading","group":"libobs-api","tier":"reference","title":"Threading","path":"docs/sphinx/reference-libobs-util-threading.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util-threading.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util-threading.md"},{"slug":"docs-sphinx-reference-libobs-util","group":"libobs-api","tier":"reference","title":"Platform/Utility API Reference (libobs/util)","path":"docs/sphinx/reference-libobs-util.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-libobs-util.rst","site_url":"/ai/docs/docs-sphinx-reference-libobs-util.md"},{"slug":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","title":"Module API Reference","path":"docs/sphinx/reference-modules.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-modules.rst","site_url":"/ai/docs/docs-sphinx-reference-modules.md"},{"slug":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","title":"Output API Reference (obs_output_t)","path":"docs/sphinx/reference-outputs.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-outputs.rst","site_url":"/ai/docs/docs-sphinx-reference-outputs.md"},{"slug":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","title":"Properties API Reference (obs_properties_t)","path":"docs/sphinx/reference-properties.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-properties.rst","site_url":"/ai/docs/docs-sphinx-reference-properties.md"},{"slug":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","title":"Scene API Reference (obs_scene_t)","path":"docs/sphinx/reference-scenes.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-scenes.rst","site_url":"/ai/docs/docs-sphinx-reference-scenes.md"},{"slug":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","title":"Service API Reference (obs_service_t)","path":"docs/sphinx/reference-services.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-services.rst","site_url":"/ai/docs/docs-sphinx-reference-services.md"},{"slug":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","title":"Data Settings API Reference (obs_data_t)","path":"docs/sphinx/reference-settings.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-settings.rst","site_url":"/ai/docs/docs-sphinx-reference-settings.md"},{"slug":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","title":"Source API Reference (obs_source_t)","path":"docs/sphinx/reference-sources.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/reference-sources.rst","site_url":"/ai/docs/docs-sphinx-reference-sources.md"},{"slug":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","title":"Python/Lua Scripting","path":"docs/sphinx/scripting.rst","url":"https://github.com/obs-rust/obs-studio/blob/master/docs/sphinx/scripting.rst","site_url":"/ai/docs/docs-sphinx-scripting.md"},{"slug":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","title":"obs-websocket 5.x.x Protocol","path":"obs-websocket/docs/generated/protocol.md","url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","site_url":"/ai/docs/obs-websocket-docs-generated-protocol.md"},{"slug":"obs-websocket-reference","group":"websocket","tier":"reference","title":"obs-websocket v5 protocol reference (generated)","path":"obs-websocket/reference.md","url":"https://obs-rust.com/websocket/","site_url":"/ai/docs/obs-websocket-reference.md"},{"slug":"mcp-reference","group":"mcp","tier":"core","title":"obs-studio-rust MCP server reference (generated)","path":"mcp/reference.md","url":"https://obs-rust.com/mcp/","site_url":"/ai/docs/mcp-reference.md"},{"slug":"site-download","group":"site","tier":"core","title":"Download OBS Studio Rust","path":"site/download.md","url":"https://obs-rust.com/#download","site_url":"/ai/docs/site-download.md"},{"slug":"site-control","group":"site","tier":"core","title":"Control OBS Studio Rust from code: WebSocket or MCP","path":"site/control.md","url":"https://obs-rust.com/websocket/","site_url":"/ai/docs/site-control.md"},{"slug":"site-examples","group":"site","tier":"core","title":"Examples: drive OBS Studio Rust from code","path":"site/examples.md","url":"https://obs-rust.com/examples/","site_url":"/ai/docs/site-examples.md"}],"chunks":[{"id":"readme#top","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust]\n&nbsp;&nbsp;  &nbsp;&nbsp;\n\n# obs-studio-rust\n> [!IMPORTANT]\n> **We\u2019re unifying OBS into one hybrid Rust/C/C++ build.**\n> Prioritize migrating code to Rust and retiring the C/C++ implementations it replaces.\n> Each completed port becomes part of the application, with compatibility and parity\n> checks supporting the transition.\n\nThis is an independent rewrite of the obsproject's obs-studio.\n\nSame obs studio, but without the bugs. AI generated issues and PRs welcome.\n\nGot an idea? [Start a conversation](https://github.com/obs-rust/obs-studio/discussions).\n\n**Want to help port OBS to Rust?** Paste this into your AI agent:\n\n```bash\nPROMPT=\"/loop 10m https://raw.githubusercontent.com/obs-rust/obs-studio/refs/heads/master/.claude/skills/obs-worker/SKILL.md\"\nclaude --dangerously-skip-permissions \"$PROMPT\"\n```\n\nUsing another agent? Paste this instead:\n\n```text\nYou are a worker in obs-rust/obs-studio, the Rust rewrite of OBS Studio.\nTake exactly one issue from claim to an open pull request, then stop.\n1. Clone https://github.com/obs-rust/obs-studio if you are not in it.\n   Read AGENTS.md, then .claude/skills/obs-worker/SKILL.md, and follow it.\n   It sends you to docs/rust-port/coordination.md and\n   docs/rust-port/testing-policy.md: read both before you code.\n2. Pick one open issue from label:ready (fall back to\n   label:needs-investigation). Skip any with a recent \"Claiming:\" comment\n   or an open PR that names it. Comment \"Claiming: #N\" with a short plan.\n3. Branch from master. Commit a failing test first (RED), then the fix\n   that makes it pass (GREEN). Run ./lint. One PR per issue.\n4. Open the PR against master, describing RED and GREEN.\n5. Do not merge, never push to master, and never commit secrets.\n   Report the PR URL and stop. Maintainers queue PRs; you don't.\nStuck? Ask in the Discord linked in the README, or in Discussions.\n```","chars":1880,"tokens_est":470,"sha256":"76be9bdba4f82701843d146f70694fc05e1ef5add0678fac26ebf9379dd85e1c"},{"id":"readme#install","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","Install"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#install","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a Install]\nOBS-Studio-Rust is a **beta**. Every package is attached to a release in\n[releases](https://github.com/obs-rust/obs-studio/releases), named\n`OBS-Studio-Rust-<version>-<os>-<cpu>.<ext>`: take the newest\n`obs-studio-rust-v*` release and the file for your OS and CPU. Each release\nalso ships a `SHA256SUMS` file.\n\nIt installs and runs **beside** upstream OBS Studio. It has its own app\nidentity and keeps its settings in an `obs-studio-rust` folder inside the\nusual per-user config directory, so neither program overwrites the other. On\nits first start it copies upstream OBS's settings, profiles, scenes and\nplug-in settings without changing the originals; later upstream changes are\nnot imported again. Windows and macOS are a new app identity, so the OS may\nask for capture permissions again.","chars":820,"tokens_est":205,"sha256":"919b75fd4e432794d087e53f7c09f1b1c73a491fe609266b842598de4445dc95"},{"id":"readme#install-linux-x86-64","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","Install","Linux (x86_64)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#linux-x86_64","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a Install \u203a Linux (x86_64)]\n- **AppImage** \u2014 any distribution: `chmod +x OBS-Studio-Rust-*-linux-x86_64.AppImage`,\n  then run it. The AppImage is tested on AlmaLinux 8 (the glibc 2.28 floor),\n  Ubuntu 22.04, Ubuntu 24.04, Arch Linux and NixOS. On NixOS, see the\n  AppImage entry in the Q&A below.\n- **.deb** \u2014 Ubuntu 26.04: `sudo apt install ./OBS-Studio-Rust-*-ubuntu-26.04-x86_64.deb`.\n  It installs the GUI as `obs-studio-rust-gui`; `obs-studio-rust` is the\n  obs-websocket command-line client. It keeps its settings in\n  `~/.config/obs-studio-rust`.\n- **Flatpak bundle**: `flatpak install --user ./OBS-Studio-Rust-*-linux-x86_64.flatpak`,\n  then `flatpak run io.github.obs_rust.OBSStudioRust`. It gets the Freedesktop\n  runtime from Flathub and does not update itself yet: install the next\n  release's bundle the same way. It is not on Flathub (`com.obsproject.Studio`\n  there is upstream OBS Studio), so it installs as\n  `io.github.obs_rust.OBSStudioRust`, beside upstream's rather than over it.\n  Its settings are in `~/.var/app/io.github.obs_rust.OBSStudioRust/config/obs-studio`,\n  and its plug-ins go in\n  `~/.var/app/io.github.obs_rust.OBSStudioRust/data/obs-studio/plugins/`. To\n  bring your scenes over from upstream's Flatpak, copy\n  `~/.var/app/com.obsproject.Studio/config/obs-studio` to that config folder.","chars":1339,"tokens_est":335,"sha256":"535c9687f916973a0223eadd69dbb7e6d504db0dc0b6943811611560d15589ac"},{"id":"readme#install-macos-arm64-x86-64","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","Install","macOS (arm64, x86_64)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#macos-arm64-x86_64","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a Install \u203a macOS (arm64, x86_64)]\nOpen the `.dmg` for your CPU (`macos-arm64` on Apple silicon, `macos-x86_64`\non Intel), copy `OBS-Studio-Rust.app` to Applications, and start it.\nPackages are signed and notarized when the project's release credentials are\nconfigured. For an unnotarized download, try opening the app once, then allow\nit in **System Settings \u2192 Privacy & Security \u2192 Open Anyway**; for a download\nyou trust, the Terminal alternative is\n`xattr -dr com.apple.quarantine /Applications/OBS-Studio-Rust.app`, which\nremoves quarantine from that app only (see\n[Apple's guidance](https://support.apple.com/102445)). Its settings are in\n`~/Library/Application Support/obs-studio-rust`.","chars":709,"tokens_est":177,"sha256":"25dd54b55e4b096ea5be6f20fee8f2d3a6e1ac6d583a74f4ebbba50d55dcf2e6"},{"id":"readme#install-windows-x64-arm64","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","Install","Windows (x64, arm64)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#windows-x64-arm64","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a Install \u203a Windows (x64, arm64)]\n**Installer (BETA):** run `OBS-Studio-Rust-<version>-windows-x64.msi` (or\n`-arm64.msi`). It lets you pick the install folder, adds an\n**OBS-Studio-Rust BETA** Start menu entry, and is removed from **Settings >\nApps** (Add/Remove Programs); uninstalling leaves your settings in place.\n\n**Portable:** unpack the `.zip` for your CPU, then start `bin\\64bit\\obs64.exe`\nfrom the unpacked folder. SmartScreen warns on the first start: choose **More info**,\nthen **Run anyway** if you trust the download. The `-symbols.zip` files are\nonly for decoding crash dumps. Its settings are in `%APPDATA%\\obs-studio-rust`.","chars":656,"tokens_est":164,"sha256":"ce7d8d03f876c618d47cf2e80ae24ba1f1930b34f9afb7fd1820db846176e3cd"},{"id":"readme#conversion-progress","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","Conversion progress"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#conversion-progress","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a Conversion progress]\nHow much of **libobs** is Rust \u2014 the part that has to be ported. The rest of\nthe app can stay C++ in the hybrid build. Measured by\n[tools/conversion/measure.py](tools/conversion/measure.py); click the card\nfor the full breakdown.\n\nThe badge date identifies the measured source revision. If it stops advancing,\ncheck the refresh status beside it.\n\n> [!TIP]\n> **Come talk to us on [Discord](https://discord.gg/6MWWX4x9pf).** We're a\n> new project, and the people building it are there. Ask a question, tell us\n> what works or breaks on your setup (AppImage, .deb, Flatpak, your plug-ins and\n> capture devices), suggest an idea, or follow the port as it lands. No\n> question is too small.\n\n# Features\nWhat OBS-Studio-Rust does differently from upstream OBS Studio, for a user:\nnew features, changed behavior and fixed upstream bugs, by area, with links\nto the issues and pull requests. See the\n[features ledger](docs/features.md).\n\n# Fixing bugs with AI + Rust\nWant to fix one yourself? Contributors, human or AI-assisted, chat about\nports and pull requests on [Discord](https://discord.gg/6MWWX4x9pf).\n\nhttps://github.com/user-attachments/assets/4d9af616-bd76-468e-93ac-ef8ef44a0efb\n\n# Launch speed\n4.3\u00d7 faster to the main window and 19% less memory on an NVIDIA streaming\nrig (#1168, #1170, #1171, #1172).","chars":1344,"tokens_est":336,"sha256":"c1d4b888f5d1a88c4709a1feef245dc0340aba5d36520f0ca5ce83746de52185"},{"id":"readme#what-users-say","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","What users say"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#what-users-say","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a What users say]\nWord for word, from comments on our issues and pull requests by people who\nare not maintainers or contributors here. Each one links to its comment.\n`tools/user_quotes.py` gathers them and a reviewer approves each one.\n\n<!-- user-quotes:start -->\n<!-- Generated by tools/user_quotes.py from tools/user_quotes.json; edit those, not this. -->\n\n> \u201cTested obs-rust 0.1.0-beta.20261018 (Linux AppImage, Fedora/Bazzite, kernel 7.2.9) with a fresh config and a copy of my scene collection with the truncated values put back: Elgato 4K X \"framerate\": 60 (NV12 2560x1440) and Logitech BRIO \"framerate\": 30 (MJPG 3840x2160). - The log shows Framerate: 60.00 fps for the 4K X, and v4l2-ctl --get-parm reports 60/1 (stock OBS ran it at 144). The BRIO shows 30.00 / 30/1. - Toggling Use Buffering on the 4K X did not restart the capture. - After saving, the collection holds \"framerate\": 4294967356 for the 4K X and 4294967326 for the BRIO. All three behaviors confirmed. Thanks for the fix!\u201d\n>\n> \u2014 [jrsallee](https://github.com/jrsallee), [#1117](https://github.com/obs-rust/obs-studio/issues/1117#issuecomment-6250423489), 2026-10-18\n\n> \u201c@rdoupe Yep, it works with this fork.\u201d\n>\n> \u2014 [Blayung](https://github.com/Blayung), [#349](https://github.com/obs-rust/obs-studio/issues/349#issuecomment-6233729979), 2026-10-17\n\n> \u201cIt works! In both ways - channels are correct and the meter is synced. No worries! I appreciate your time and attention. Well done!\u201d\n>\n> \u2014 [Ezriilc](https://github.com/Ezriilc), [#251](https://github.com/obs-rust/obs-studio/issues/251#issuecomment-6133348602), 2026-10-12\n\n> \u201cCan confirm that it does sanitise the filename correctly for recordings and replay buffer saves.\u201d\n>\n> \u2014 [pricklythorn](https://github.com/pricklythorn), [#199](https://github.com/obs-rust/obs-studio/issues/199#issuecomment-6106432357), 2026-10-11\n\n<!-- user-quotes:end -->\n\n# Contributors leaderboard\nThe top five, ranked by merged PRs only, credited to the original author even when a\nmaintainer re-landed the work (counted once). Updated every 4 hours.\n\n[See all contributors](https://obs-rust.github.io/obs-studio/#all)","chars":2141,"tokens_est":535,"sha256":"995005df9dae5d2127fe8c89ead18a99879b195dca8b8ee534f48bb7869dbf38"},{"id":"readme#how-ci-works-here","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","How CI works here"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#how-ci-works-here","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a How CI works here]\nLots of people and AI agents work on this repo at the same time, so CI is\nbuilt to do as little repeated work as possible:\n\n- **Every pull request gets an admission check.** A same-repository PR can\n  use client evidence when both its author and the valid signer of final HEAD\n  are verified active obs-rust members. Complete selected evidence lets Pull\n  allocate just Event Data, CI Mode and CI Gate for compile/test admission.\n  Forks, non-members, unsigned heads, unavailable membership lookups and missing\n  or invalid evidence run the real selected checks, including six-target lint.\n- **The merge queue is the heavy gate.** It reruns all selected tests, native\n  builds and links on the combined merge result, regardless of client trailers.\n  Required check names stay unchanged; unavailable runners still block admission.\n- **The full build runs before each release.** Nightly and release CI builds\n  and tests every platform, the full app, Flatpak and release packages.\n- **Local tooling is optional.** `./push` tries prooft first: complete lint,\n  clippy and Dylint for Linux x64/arm64, Windows x64/arm64 MSVC and macOS\n  x64/arm64, host tests, self-tests and validators. Swift is an optional separate\n  gate when selected. Trailers are self-reported passes, not signed execution\n  evidence. Sign the final commit after stamping; missing tools or a failed\n  private-membership lookup use real PR CI. Strict refusal is opt-in with\n  `PUSH_REQUIRE_ATTESTATION=1`. Legacy Local-Gate records remain diagnostic.\n- **Builds are cached and shared.** Rust builds go through `soldr`, which\n  reuses compiled code across branches and machines.\n\nThe full guide, with the tools, rules and commands, is in\n[docs/ci-tooling.md](docs/ci-tooling.md). If you're contributing, please\nread it before you push: it explains how to avoid overloading the\nshared machines and CI.","chars":1903,"tokens_est":476,"sha256":"8d3ddf74572698e00af74faeff950eb00fe061279d73edd4c811448919ed4286"},{"id":"readme#q-a","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","Q&A"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#qa","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a Q&A]\n**Where can I get help, or report something that isn't quite a bug?**\n\nJoin us on [Discord](https://discord.gg/6MWWX4x9pf): it's the quickest way to\nreach the people working on OBS Rust. For a reproducible bug, please also\n[file an issue](https://github.com/obs-rust/obs-studio/issues/new/choose); for\nlonger ideas, [start a discussion](https://github.com/obs-rust/obs-studio/discussions).\n\n**Does OBS Rust support all of the plug-ins?**\n\nYes. OBS Rust is fully backwards compatible with OBS Studio \u2014 the\nplug-ins you already have should work as-is. If you find one that\ndoesn't, that's a bug: please [file an issue](https://github.com/obs-rust/obs-studio/issues/new/choose)\nand link it here so we can track it.\n\n**How do I install it on Linux?**\n\nSee [Install](#install) above: the AppImage, the `.deb` and the Flatpak\nbundle, and where each one keeps its settings.\n\n**How do I run the AppImage on NixOS?**\n\nThe simplest way is `appimage-run` (`programs.appimage.enable = true;`, then\n`appimage-run ./OBS-Studio-Rust-*.AppImage`). It gives the AppImage the\npaths a regular distribution has, and OBS renders on your GPU and finds NVENC.\n\nRunning the AppImage directly works through nix-ld. Your configuration needs\n`hardware.graphics.enable = true;`, `programs.nix-ld.enable = true;` and\nWayland among nix-ld's libraries:\n\n```nix\nprograms.nix-ld.libraries = with pkgs; [ wayland ];\n```\n\nWithout Wayland there, the AppImage stops at start and says so. You don't\nneed to add `/run/opengl-driver/lib` or the keyboard layouts: the AppImage\nfinds the driver libraries (for NVENC) and `/etc/X11/xkb` itself.\n\n**How do I install plug-ins for the AppImage?**\n\nThe AppImage loads plug-ins from the same per-user folders as OBS Studio on\nLinux, so a plug-in you already installed for your own account is picked up\nas-is. To add one, unpack its Linux build into either of these folders:","chars":1899,"tokens_est":475,"sha256":"8583ee89cd33de083447bf1e2c4d0b8692e7ebec6135dc4a9464f502904307e7"},{"id":"readme#q-a~2","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","Q&A"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#qa","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a Q&A]\n- `~/.local/share/obs-studio/plugins/<plugin>/`, with the module at\n  `<plugin>/<plugin>.so` and its files under `<plugin>/data/` (the current\n  layout).\n- `~/.config/obs-studio/plugins/<plugin>/`, with the module at\n  `<plugin>/bin/64bit/<plugin>.so` and its files under `<plugin>/data/` (the\n  older layout that many plug-in downloads still use).\n\nThen restart OBS Rust. **Tools \u2192 Plugin Manager** lists what loaded.\n\nPlug-ins installed system-wide by a distribution package (under\n`/usr/lib/obs-plugins` or `/usr/lib/<arch>/obs-plugins`) are **not** loaded.\nThey were built against that distribution's OBS and libraries, not the ones\ninside the AppImage. Use the plug-in's own Linux download instead.\n\nA plug-in with its own Qt windows must be built for a Qt 6 release no newer\nthan the one in the AppImage. If a plug-in sits in one of those folders but\ndoesn't load, run the AppImage from a terminal and the log will say why.\nThen file an issue as above.\n\nWant to see the original README from OBS Project? [Click here](README.upstream.md).","chars":1067,"tokens_est":267,"sha256":"81df8570ee044be5fdc17e83fd20d4776abdbd5963984bfc4e7bf506e8b8205c"},{"id":"readme#obs-project-user-abuse-hall-of-fame","doc":"readme","group":"project","tier":"core","kind":"prose","breadcrumb":["obs-studio-rust","\ud83c\udfc6 OBS Project User Abuse Hall of Fame"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md#-obs-project-user-abuse-hall-of-fame","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/README.md","text":"[obs-studio-rust \u203a \ud83c\udfc6 OBS Project User Abuse Hall of Fame]\nBugs they confirmed, then closed. Features you relied on, then removed.\nTwelve upstream threads where users showed up in numbers and were turned\naway anyway. Six of them were closed as stale on a single afternoon.\n\n| | Issue | \ud83d\udcac | Fate |\n|:-:|---|--:|---|\n| \ud83e\udd47 | [Preview Stutter that appears in Streams/Recordings](https://github.com/obsproject/obs-studio/issues/4191) | 184 | locked (off-topic) |\n| \ud83e\udd48 | [OBS Virtual Camera may affect built-in webcams](https://github.com/obsproject/obs-studio/issues/3555) | 87 | closed not planned, locked |\n| \ud83e\udd49 | [Removal of --disable-shutdown-check breaks automated background workflows](https://github.com/obsproject/obs-studio/issues/12650) | 64 | closed not planned, locked |\n| 4 | [Dock Sizes are Reset the next time you open OBS.](https://github.com/obsproject/obs-studio/issues/2949) | 34 | closed not planned |\n| 5 | [Pause and Resume Recording Doubles or Triples CPU usage](https://github.com/obsproject/obs-studio/issues/3148) | 34 | closed not planned |\n\n**In their own words:**\n\n> **\u201cNo amount of \"I don't like your answer\" will change it.\u201d**\n> \u2014 [#9285](https://github.com/obsproject/obs-studio/issues/9285#issuecomment-1677822114), to a user who said a downgrade fixed their dropped frames\n\n> **\u201cHowever, if you refuse to follow the process, there is nothing we can do, and this report is not actionable.\u201d**\n> \u2014 [#13685](https://github.com/obsproject/obs-studio/issues/13685#issuecomment-5052743359), in the same comment that admitted 32.2 had raised the driver minimum\n\n> **\u201c[\u2026] that decision has already been made.\u201d**\n> \u2014 [#12650](https://github.com/obsproject/obs-studio/issues/12650#issuecomment-3368592277), on removing a flag users' setups depended on\n\n**[See all 12, every quote, and why each one made the cut \u2192](docs/hall-of-fame.md)**","chars":1851,"tokens_est":463,"sha256":"367ec0d80c785b8abd90b612b625b6a519e40c19cb05e050aee747c58c4ec626"},{"id":"agents#agent-instructions","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#agent-instructions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions]\nThis repository is governed by the [Constitution of the obs-rust Project](https://github.com/obs-rust/constitution/blob/main/CONSTITUTION.md), which supersedes every other document here, this one included.\n\nThis repository is being converted from C/C++ to Rust while keeping the public\nAPI (libobs C API/ABI, obs-websocket v5 protocol, frontend and scripting APIs)\ncompatible.","chars":397,"tokens_est":99,"sha256":"363cf8860e247fa7308d0af6252cffdf8dec38ad3a35efb41525c1718f5446aa"},{"id":"agents#agent-instructions-obs-websocket-compatibility-directive","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","OBS WebSocket compatibility directive"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#obs-websocket-compatibility-directive","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a OBS WebSocket compatibility directive]\nPreserve the existing C++ OBS WebSocket plugin in `plugins/obs-websocket`\nas a compatibility check for Rust OBS. Do not port it to Rust or modify it\nto accommodate the Rust implementation. Existing compiled plugin binaries\nmust load and work through the preserved libobs C API/ABI, and existing\nclients must continue to work through the obs-websocket v5 protocol.\nFix compatibility failures in Rust OBS. This directive supersedes earlier\nplans to port OBS WebSocket, including `docs/rust-port/websocket-port.md`.\nChanging this policy requires an explicit user request.","chars":629,"tokens_est":157,"sha256":"01b467fce68dab29edb2750e3236fe8c877e33779f201fc8b9349b84f3020d29"},{"id":"agents#agent-instructions-worker-role","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Worker role"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#worker-role","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Worker role]\nMinimize Rust test executables: use one amalgamated binary for each category\nin the testing policy's category map. Eight categories are currently selected;\npreserve all assertions and required test tiers, and add cases as modules in\nthe category's existing binary. See the\n[test binary policy](docs/rust-port/testing-policy.md#test-binary-budget).\n\nWhen you take an issue to work on (claim, port, fix, test, or build, lint,\npush and open a PR), you are a worker: invoke the `obs-worker` skill\n([.claude/skills/obs-worker/SKILL.md](.claude/skills/obs-worker/SKILL.md)).\nAgents without skills read that file by hand. It walks the documents below\nin order, from rebase to merge queue.\n\nWhen the maintainer runs you as a worker on a timer (`/loop 10m take on the\nrole of a worker that is looking for issues ...`), also invoke the\n`obs-worker-loop` skill\n([.claude/skills/obs-worker-loop/SKILL.md](.claude/skills/obs-worker-loop/SKILL.md)):\neach tick moves your own PRs, checks master's health, then picks the next\nmost important issue. Unlike the coordinator, you claim and do the work.","chars":1117,"tokens_est":279,"sha256":"3ec4449351453735f3acb981eee7904d71b7159e840fe61672af9d83668626d9"},{"id":"agents#agent-instructions-coordinator-role","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Coordinator role"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#coordinator-role","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Coordinator role]\nWhen the maintainer runs you on a timer (`/loop 30m act as coordinator`,\nalso called concierge or steward) to keep work moving while they are away,\nyou are the coordinator, not a worker: invoke the `obs-coordinator` skill\n([.claude/skills/obs-coordinator/SKILL.md](.claude/skills/obs-coordinator/SKILL.md)).\nEach tick, put every green PR into the merge queue; rebase PRs that were\nejected from the queue, stacked PRs and PRs about to go in; push fixups;\nreview PRs; answer questions; and close stalled follow-ups. Never claim\nor port an issue yourself.\nEach tick starts from the computed work list of the org-wide\n`obs-org-coordinator` skill in\n[obs-rust/.github](https://github.com/obs-rust/.github/tree/master/.claude/skills)\n(`uv run -m workflow.coordinator`), which covers every obs-rust repo;\n`obs-org-worker` is its worker counterpart. Claims, Ready and the board:\n[WORKFLOW.md](https://github.com/obs-rust/.github/blob/master/WORKFLOW.md).","chars":986,"tokens_est":246,"sha256":"d03784018eeded5f4923dfb209870aa2a576d118cb22091ac0aef43e1079bb58"},{"id":"agents#agent-instructions-mandatory-reading","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Mandatory reading"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#mandatory-reading","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Mandatory reading]\nBefore porting any code, writing any test, or touching `rust/`, `Cargo.toml`,\nor `test/`, read and follow\n[docs/rust-port/testing-policy.md](docs/rust-port/testing-policy.md) exactly.\nIt defines the four required test tiers (Rust unit tests, unchanged C tests\nagainst the Rust implementation, differential tests against the original C,\nand black-box protocol tests) and the per-unit workflow.\n\nBefore writing a test, touching CI or the sanitizers, or chasing a failure\nthat only shows on one host, read\n[docs/knowledge/index.md](docs/knowledge/index.md): what earlier workers\nlearned the hard way, one concept per file. Where a lesson is a check, the\ncheck is the rule.\n\nBefore picking up or filing an issue, or opening a PR, read\n[docs/rust-port/coordination.md](docs/rust-port/coordination.md): claim\nbefore coding, search open PRs first, target master, RED then GREEN commits.\nA PR with a user-visible change adds its line to\n[docs/features.md](docs/features.md) (the features ledger).\n\nBefore adding, renaming or building C/C++/Objective-C sources, or touching\n`cmake/common/`, `cmake/pch/` or a `build/` group, read [BUILD.md](BUILD.md).\n\nBefore building, testing or pushing, read\n[docs/ci-tooling.md](docs/ci-tooling.md): soldr, setup-soldr, bosn, act2,\nzackees/ci.yml, the local gate and CI attestation, and how to use them so\nmany agents don't overload the shared machines and CI runners.","chars":1437,"tokens_est":359,"sha256":"6dbf44fea75fa40a762ce08ea3f1ec663ba547fc13337e0fc02b24fdd5f5ef49"},{"id":"agents#agent-instructions-merge-gate-pr-ci","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Merge gate: PR CI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#merge-gate-pr-ci","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Merge gate: PR CI]\n`CI Gate \u2705` on `obs-rust/obs-studio` remains the required merge check.\nTrusted fully attested same-repository member PRs use base-owned verification\nadmission; the merge queue always executes its selected heavy lanes. Forks,\nnon-members, unverified final heads, trust-surface edits and missing/invalid\nproofs or verifier/API errors retain real selected PR checks. All six supported\ntargets receive clippy and Dylint on the client or in real PR fallback. Open a\nPR (a draft is fine) as soon as the RED test exists; a red CI run on a PR is\nexpected, not a process failure. Do not build fork or self-hosted CI to\npre-validate PRs. What stays mandatory: RED then GREEN, differential and Tier 2\ncoverage, and no edits to C tests or public headers.\nFor focused CI/configuration fixes, record local RED evidence and push the\nRED and GREEN commits together when ready; a remote RED run is not required.\nDocumentation-only updates do not need RED \u2192 GREEN tests. See\n[coordination.md](docs/rust-port/coordination.md#4-pull-requests).\n\n`ci-pre.yml` remains the general pre-work entry point on PRs. Only its cache\njanitor job skips PR events; it sweeps on master pushes. The merge queue\nsweeps last instead: `ci.yml`'s final `cache-janitor` job runs after every\nother job and evicts least recently used caches down to `[cache].budget`, so\nGitHub's own eviction never picks (#1854, zackees/ci.yml#405 `GEN-022`).\nNeither sweep is in the required-gate dependency graph. See\n[the pre-work policy](docs/ci-tooling.md#pre-work-cache-maintenance-and-cancellation).","chars":1587,"tokens_est":397,"sha256":"78063cf225d0e60c2355d61c011590f050427061d3ffa53c19c1dbc2bb4d807c"},{"id":"agents#agent-instructions-local-gate-recommended-not-required","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Local gate (recommended, not required)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#local-gate-recommended-not-required","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Local gate (recommended, not required)]\nLocal tooling is optional for contributors. `./push` tries prooft's complete\nclient lanes first, then deprecated partial legacy evidence, then an unattested\npush. Strict refusal remains opt-in (`PUSH_REQUIRE_ATTESTATION=1`). Self-reported\ntrailers establish accountability, not signed proof of execution. Fast admission\nrequires authenticated active obs-rust membership for both PR author and valid\nsigner of the exact final HEAD; private lookup denial runs real CI. Stamp first,\nthen sign the final amended commit. Trust decisions and pins come from immutable\nPR BASE; head code and policy never decide skips. See [the admission contract](docs/ci-tooling.md#ci-attestation-skipping-whats-already-proven).\n\nPush through `./push`, not a bare `git push`. Legacy Local-Gate trailers alone\ncannot grant full admission. Source or history changes require fresh evidence.\nEnvironment failures: [troubleshooting](docs/rust-port/troubleshooting.md).","chars":1002,"tokens_est":250,"sha256":"b87e8914a2ba818de164e9d73815be1a3d52061746c907d64781ca9be99ec8ce"},{"id":"agents#agent-instructions-local-gate-recommended-not-required~2","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Local gate (recommended, not required)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#local-gate-recommended-not-required","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Local gate (recommended, not required)]\n- `./lint` (8 s): clang-format 22.1.3 and gersemi 0.25.0 pinned via uvx, rustfmt, clippy, and the repo Dylints (`dylints/*`). `./lint --fix` rewrites files.\n- `./unittest`: Rust Tiers 1-3, then Tier 2 (cmocka against hybrid libobs and the explicit C reference, one build in Docker; ~30-40 s warm thanks to zccache).\n- For legacy local-gate diagnostics, commit, then run\n  `uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint local-gate run`.\n  This legacy path remains available for diagnostics; use complete client gates for fast admission and sign only after stamping.\n- Fallback PR execution runs the lanes its changed paths select (the `LANES` table in `ci/ci_scope.py`: Fast Gate always, plus a Linux-hosted Windows MSVC link of every test binary (`ci/windows_link_check.py`) on every non-docs PR and queue run, Tier 2 for libobs/linked crates/`test/cmocka/`, Qt for `frontend/`, a Linux build of only the touched `plugins/<x>`/`shared/<x>` targets; macOS/Windows only for their own platform files). The full OBS app builds never run from a PR path. No label changes what runs. A master push adds every lane a PR defers (Tier 2, Qt, the workspace tests) and runs the macOS/Windows Rust tests and Tier 2 only for paths that select them; it builds no OBS app. Schedule, workflow_dispatch, tags, release branches and the release gate run everything, including the macOS, Windows, Ubuntu and Flatpak app builds (#436).","chars":1527,"tokens_est":382,"sha256":"67c6fe4c7955068da4eee101976115d027ad11a1f8d5f2a8ade24f8dd06be3d9"},{"id":"agents#agent-instructions-quick-rules","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Quick rules"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#quick-rules","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Quick rules]\n- Security bugs come in two tiers ([SECURITY.md](SECURITY.md), \"Two tiers\"). Low risk (only trusted local input reaches it) is a normal public bug. High risk (a remote party can reach it, or it leaks credentials) is never a public issue, PR or branch: report it as a private advisory. Unsure \u2192 private (see obs-worker \u00a72). After triage, follow the `obs-security-disclosure` skill ([.claude/skills/obs-security-disclosure/SKILL.md](.claude/skills/obs-security-disclosure/SKILL.md)): upstream gets embargoed advisories only in the numbered encrypted archives tracked at <https://obs-rust.com/security/>, so never report one upstream yourself.\n - Use `soldr cargo ...`, never bare `cargo`. `.claude/settings.json` wires `ci/hooks/tool_guard.py`, a PreToolUse hook that denies bare Rust tools and bare python/pip (clud sessions get the same rule from clud; `.clud/settings.json` turns on its soldr shims). It denies, after parsing the command: bare `cargo`, `cargo-clippy`, `cargo-fmt`, `clippy-driver`, `rustc`, `rustdoc`, `rustfmt`, `rustup`, `rust-gdb`, `rust-lldb`, `rust-analyzer`, `python`, `python3`, `pip`, `pip3`, also behind `FOO=bar`, `env`, `exec`, `sudo`, `time` or `bash -c`; text inside quoted arguments and heredoc bodies is never matched. Codex has no repo hook: follow the rule by hand. `ci/test_tool_guard.py` (part of `./lint`) also fails on bare Rust tools in `ci/` and `rust/tools/` shell scripts.\n - GitHub GraphQL goes through `uv run --no-project --script ci/gh_graphql.py` (same `-f`/`-F`/`--jq` arguments as `gh api graphql`), which routes it through the [ghd](https://github.com/forge-ci/ghd) caching daemon so agents share one budget. `ci/hooks/tool_guard.py` denies a bare `gh api graphql`, even in clud sessions, and `ci/test_tool_guard.py` (part of `./lint`) fails one written into a script, skill or doc.","chars":1868,"tokens_est":467,"sha256":"5649a173e60a4f9fb79aa56265d6331408691aaeef3ea2d7c00bf30f667c6c41"},{"id":"agents#agent-instructions-quick-rules~2","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Quick rules"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#quick-rules","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Quick rules]\n- Run Python through `uv run` (or `uvx`), never bare `python`/`python3`; standalone scripts use `#!/usr/bin/env -S uv run --script`. `ci/test_uv_run.py` (part of `./lint`) enforces it; see the testing policy's \"Python runs through uv\" rule.\n - **Bump `rust/libobs-rust/Cargo.toml` in the follow-up PR to every stable release.** Nightlies are\n  `<crate>-beta.<date>` and stables are `<crate>`, so a nightly only sorts *above* the stable it\n  descends from while the crate is ahead of that stable. The release `check` job enforces it\n  (`ci/check_release_version.py` refuses a version that does not sort after the newest stable), but\n  the fix is always the same: bump the crate, e.g. to `1.0.1` after shipping `1.0.0`.\n - Pin `rust-toolchain.toml` to the latest Rust the CI soldr version supports natively, never beyond; bump it only after a soldr bump (see the testing policy).\n - Never edit existing C tests or public C headers to make a port pass.\n - Name crates, binaries and tags per\n  [docs/rust-port/naming.md](docs/rust-port/naming.md) (`ci/test_naming.py`\n  checks crates): `obs-<area>` ports, product slug `obs-studio-rust`.\n - Don't move upstream C/C++ files to restructure: the upstream tree\n  stays in place, Rust goes in the `rust/` workspace, and a fully ported C\n  component is deleted, not moved. The one allowed copy of its C is the\n  differential-test oracle under `rust/obs-c-oracle/legacy/` that the\n  testing policy requires (Tier 3). See the layout section of\n  [docs/rust-port/naming.md](docs/rust-port/naming.md) (#1051). The one\n  rename allowed is in place, to the build-role names of\n  [BUILD.md](BUILD.md) (`foo.c` to `foo.c.h`).\n - Native C/C++/Objective-C builds follow [BUILD.md](BUILD.md): explicit unity\n  groups in each component's `build/`, one precompiled header per group\n  that is each implementation file's only include, unity and PCH always on\n  (`ci/test_build_groups.py`).","chars":1949,"tokens_est":487,"sha256":"88f80d50547bbe00f4809a53345a9b2ce8beb26d8ce841b54318cf64800e315d"},{"id":"agents#agent-instructions-quick-rules~3","doc":"agents","group":"project","tier":"core","kind":"prose","breadcrumb":["Agent instructions","Quick rules"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md#quick-rules","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/AGENTS.md","text":"[Agent instructions \u203a Quick rules]\n- C/C++ host code stays in OS-named files (`obs-nix.c`, `platform-windows.cpp`,\n  `win-capture/`, ...). Upstream files keep their names; new host files use\n  `hosts/<os>/` folders or `*-host-<os>.c` files, `<os>` one of `windows`,\n  `macos`, `linux`, `posix` (#1009). `ci/platform_ifdef_ratchet.py` (in `./lint`) fails a\n  new host conditional or OS header in a shared file, and a platform file that\n  names another OS. Shared libobs core calls host code through one interface\n  per capability in `libobs/obs-host/<capability>.h` (`OBS_HOST_EXTERN`); a\n  host implements it in its OS file, or its host file (`obs-nix.c.h`, ...)\n  includes `obs-host/noop/<capability>.hpp` for a capability it lacks.\n - Host-specific code (`#[cfg(windows|unix|target_os..)]`, `cfg!()`, `std::os::*`,\n  `libc::`, Win32) goes only in the crate's `src/platform/` (single\n  `cfg_select!` in `platform/mod.rs`) or `src/ffi/`. A pre-expansion Dylint\n  (`dylints/ban_platform_cfg_outside_boundary`) fails `./lint` otherwise; see\n  the testing policy's \"Platform boundary\" rule.\n - Start every task by fetching and rebasing onto `origin/master`\n  (`git fetch origin && git rebase --autostash origin/master`), so you build,\n  test and diff against current master. See\n  [coordination.md](docs/rust-port/coordination.md).\n - Every port starts RED (failing test against stubs) and ends GREEN.\n - Do not add new GitHub Actions workflow files without explicit sign-off.\n - Packaging changes (`build-aux/appimage/`, the Flatpak manifest, anything that\n  decides what ships in a release artifact) must be covered by a test that runs\n  the packaged artifact the way a user does, including a saved profile with the\n  sources users depend on (screen capture, camera, microphone), not only a first\n  start with an empty profile. `build-aux/appimage/test-appimage.sh` is that test for the AppImage;\n  extend it when a change adds something loaded at runtime, and show it failing\n  without the change (obs-rust/obs-studio#426).\n\nSecurity scans and release validation run nightly, outside PR/merge-group CI.\nGitHub CodeQL default setup stays disabled. See the merge queue admission\npolicy in docs/ci-tooling.md before enabling CI integrations.","chars":2238,"tokens_est":560,"sha256":"bfc6d99edb169736204fd164135f61e7fcf4654b9b80f30a4f5b53aa7f7a93fc"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#building-c-c-and-objective-c-unity-groups-and-precompiled-headers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers]\nThis is the build policy for every first-party C, C++ and Objective-C\nsource in this repository (`libobs/`, `libobs-*/`, `frontend/`, `plugins/`,\n`shared/`). It exists so the native build is as fast as we can make it while\nstaying correct on every platform and every CMake generator. Rust has its\nown rules in [docs/rust-port/testing-policy.md](docs/rust-port/testing-policy.md).\n\nOut of scope: third-party code (`deps/`), the git submodules\n(`plugins/obs-browser`, `plugins/obs-websocket`), the unchanged C tests\n(`test/`) and the C oracle (`rust/obs-c-oracle/`). They build the way their\nupstream ships them.","chars":682,"tokens_est":170,"sha256":"cff2ac0b841e59f52ad96fa40d302f47aecd92fa159794e0122f6c3b67d56ff7"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-why","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","Why"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#why","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a Why]\nCompiling one translation unit per source re-parses the same headers\nhundreds of times. Measured on a fresh Linux tree (`-j16`, no compiler\ncache):\n\n| Build | Wall | CPU |\n|---|---|---|\n| One TU per source | 315 s | 2416 s |\n| Precompiled headers | 322 s | 1798 s |\n| Precompiled headers + unity | 198 s | 1053 s |\n\nThose are broader native-build measurements, not isolated libobs timings.\nA separate libobs-only experiment (GCC 15.2, RelWithDebInfo, `-j8`, three\ntrials per condition) measured uncached medians of 9.75 \u2192 9.41 s wall and\n63.48 \u2192 46.62 s CPU; the wall-time ranges overlap. Warm ccache rebuilds\nmeasured 1.54 \u2192 1.44 s, with all cacheable compilations hitting. See the\n[scoped results, raw evidence and reproduction commands](docs/ci-cache-audit-2026-10-17.md#isolated-c-libobs-build)\nbefore applying either result to CI runner or full-app timing claims.\n\nCMake's own `UNITY_BUILD` got us those numbers but batches sources by count\nin list order. Each OS has a different source list, so each OS gets different\nbatches, and a name clash between two files appears only on the platform\nwhere they happen to share a batch: Linux built clean while Windows failed\nin `libobs-d3d11`, `nv-filters`, `text-freetype2` and `win-dshow` (#1128,\n#1139). A precompiled header force-included in front of files that also\ninclude their own headers hides what each file really depends on: a header\nthat only compiled thanks to the PCH broke on macOS alone, and a lean\n`<windows.h>` from the PCH broke files that needed the full one on Windows\narm64. Per-file skip lists in CMake piled up to work around both.\n\nThe fix is to make the grouping and the headers part of the source tree\ninstead of build-system heuristics: the same files share a translation unit,\nbehind the same single header, on every compiler, OS and generator.","chars":1899,"tokens_est":475,"sha256":"bea7faa2cc5544f21b4ae07b147aa85a9bca383b50dcfb31b7b9a49ce90fd440"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-depe","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","Dependency warning boundary (decision of 2026-11-06, #2625)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#dependency-warning-boundary-decision-of-2026-11-06-2625","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a Dependency warning boundary (decision of 2026-11-06, #2625)]\nThe maintainer decided: \"Only strict settings for OUR headers and source.\nthird_party code is assumed working correctly and allows relaxed compiler\nsettings to allow it to pass. Make this a decision and put this in ci.yml.\"\n\nFirst-party source and headers retain the full warning policy, including every\nconversion group a target has enabled. Do not suppress diagnostics for a\nfirst-party file to accommodate a dependency, or edit dependency code to make it\nmeet our warning policy. Dependency headers use CMake SYSTEM includes; imported\ndependency targets retain CMake's default system-header treatment.\n\nThe concrete third-party paths, relative to the repository, are `.deps/**`\n(downloaded dependency/Qt SDKs, including AMF, FFmpeg and bundled SIMDe),\n`deps/**` (vendored libraries, including a SIMDe checkout placed there), and\n`plugins/decklink/{linux,mac,win}/decklink-sdk/**`. A dependency remains third\nparty when vendored inside this repository. The browser and WebSocket git\nsubmodules keep their own build policy. Everything else in the source tree is\nfirst party unless a later reviewed decision explicitly extends this list;\nin particular `libobs/`, `frontend/`, `shared/`, generated OBS headers, and the\nrest of `plugins/` must never be made SYSTEM roots. Externally installed SDKs\nare consumed through imported dependency targets, not by marking an OBS root\nSYSTEM.","chars":1526,"tokens_est":382,"sha256":"4be4116136078ba8aedd91a9020c147c6a374a0bfa08c2007c099956c3c6eb58"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-depe~2","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","Dependency warning boundary (decision of 2026-11-06, #2625)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#dependency-warning-boundary-decision-of-2026-11-06-2625","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a Dependency warning boundary (decision of 2026-11-06, #2625)]\n`cmake/third-party-headers.cmake` classifies the completed native and cross\ntarget graphs. It keeps the original include lists and warning flags, marks\nonly dependency include directories SYSTEM, and propagates that classification\nfrom vendored libraries to their consumers. Unknown generator expressions stay\nstrict; build-interface and simple conditional paths are classified explicitly. Resolved symlinks into\nfirst-party directories are not exempt. CMake searches SYSTEM directories after\nordinary directories, so verify header resolution and generated code when\nchanging this boundary. Include dependency headers through their dedicated\nSYSTEM include roots with angle brackets, including vendored dependencies;\nspelling them through the ordinary repository root would bypass the exemption.\nThis dependency rule is an exception to the repo-root spelling rule below.\n\nThis decision is enforced by `ci/test_cross_conversion_ratchet.py`, including\na real compile that accepts a conversion in a dependency header and rejects one\nin a first-party header. It runs in the existing required `ci.yml` path:\n`Format \ud83d\udd0d / checks` \u2192 `ci/ Self-Tests \ud83e\uddea` \u2192 `ci/local_gate.py --only self-test`.\n`CI Gate \u2705` requires the Format workflow. \"Put this in ci.yml\" means enforcement\nthrough that existing job; it does not require another workflow step or a change\nto the external `zackees/ci.yml` policy repository.","chars":1542,"tokens_est":386,"sha256":"c02dc10aced0a33759269e021946604f100037ff51be15864f24441d8b3d0ff5"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-1-fi","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","1. File names say the role"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#1-file-names-say-the-role","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 1. File names say the role]\n| Role | C | C++ | Objective-C | Objective-C++ |\n|---|---|---|---|---|\n| Implementation (the code) | `foo.c.h` | `foo.cpp.hpp` | `foo.m.h` | `foo.mm.hpp` |\n| Group (what the build compiles) | `name+.h.c` | `name+.hpp.cpp` | `name+.h.m` | `name+.hpp.mm` |\n| Precompiled header | `family.pch.h` | `family.pch.hpp` | `family.pch.h` | `family.pch.hpp` |\n| Header (declarations) | `foo.h` | `foo.hpp` | `foo.h` | `foo.h` |\n\nAn implementation file is ordinary source; the build reaches it only through\na group. C-family files end in `.h` and C++-family files in `.hpp` because\ntools pick the language from the last extension: clang-format formats a\n`.hpp` as C++, where names C code uses (`private`, `new`) are keywords. Group files and precompiled headers live in a `build/` directory\nnext to the component's `CMakeLists.txt` (`libobs/build/`). A group contains\nits precompiled header, then its implementation files in alphabetical order:\n\n```c\n/* libobs/build/libobs.util+.h.c */\n/* Unity group (BUILD.md): util/ and callback/. */\n\n#include \"libobs/build/libobs.pch.h\"\n\n#include \"libobs/callback/calldata.c.h\"\n#include \"libobs/callback/decl.c.h\"\n#include \"libobs/util/cf-lexer.c.h\"\n```\n\nEvery quoted include of a repo file in a group, a precompiled header, an\nimplementation file or a forwarding file is a repo-root path\n(`plugins/obs-ffmpeg/obs-ffmpeg-formats.h`), never one relative to the file\n(`../obs-ffmpeg-formats.h`): a line reads the same wherever it is, and moves\nwith no rewriting. `cmake/common/groups.cmake` makes the repo root an include\ndirectory of every target. Headers found through a target's own include\ndirectories (`<obs-module.h>`, `\"util/base.h\"`) keep their usual form.","chars":1803,"tokens_est":451,"sha256":"05106a8c2e5710e38b0a0863d8deae74a44ec3425309dca750f223df0cb81f4a"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-2-on","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","2. One header per group, and it is the only include"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#2-one-header-per-group-and-it-is-the-only-include","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 2. One header per group, and it is the only include]\nEvery implementation file includes exactly one header: its group's\nprecompiled header, as its first line.\n\n```c\n/* libobs/util/cf-lexer.c.h */\n#include \"libobs/build/libobs.pch.h\"\n\nstatic inline void cf_convert_from_escape_literal(...)\n```\n\nEverything a file needs (system headers, the component's own headers, the\nfeature macros that must precede them such as `_FILE_OFFSET_BITS` or\n`WIN32_LEAN_AND_MEAN`, and the platform conditionals around them) lives in\nthat header, in the order the files need it. A file's own macros (`do_log`, a\n`FALLBACK_FRAMERATE`) stay in the file, right after its include: only the\nmacros that set up headers move. A header that defines macros of its own\n(obs-outputs' `rtmp-stream.h` defines `do_log`) puts its includers in a\nfamily of their own, and a header that defines data (`mp4-mux-internal.h`)\nstays out of headers the C tests compile more than once. So the precompiled header is\nexactly what its files depend on, every member of a group sees the same\nthing whether it is compiled in the group or alone, and nothing is\nforce-included in front of anything.\n\nGroups share a header when their files need the same things (all of\nlibobs's core groups use `libobs.pch.h`), which is what makes precompiling it\npay. A group gets a header of its own where its dependencies differ:\n\n- third-party headers some files must not pull in (FFmpeg for\n  `libobs-media.pch.h`; the Rust-ported files, which the C oracle and the C\n  tests compile on their own, have `libobs-ported-*.pch.h` without them),\n- a platform (`libobs-windows.pch.h`, `libobs-nix.pch.h`), named so\n  `ci/platform_ifdef_ratchet.py` sees its host,\n- an optional feature (`libobs-pulse.pch.h`, `libobs-wayland.pch.h`),\n- a feature macro that must come first (`libobs-platform.pch.h` for\n  `_FILE_OFFSET_BITS`, `libobs-ported-posix-threading.pch.h` for\n  `_GNU_SOURCE`),\n- a different `<windows.h>` (lean or full).","chars":2040,"tokens_est":510,"sha256":"1010c36c28b38c16810bcc6e8746b22a84acae321bf1aa23b0ead339d1979681"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-2-on~2","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","2. One header per group, and it is the only include"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#2-one-header-per-group-and-it-is-the-only-include","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 2. One header per group, and it is the only include]\nOne language per group: C, C++, Objective-C and Objective-C++ files never\nshare one. Platform-only groups are listed in the component's\n`cmake/os-<os>.cmake` like any platform source, with no `#ifdef` choosing\nbetween groups.\n\nTwo exceptions, both after the code starts:\n\n- **No-op host capabilities** (`libobs/obs-host/noop/<capability>.hpp`,\n  #1051) are headers, not group members: each host file\n  (`obs-nix.c.h`, `obs-windows.c.h`, `obs-cocoa.m.h`) includes the\n  ones for the capabilities it lacks, at its end.\n- **X-macro tables** (a header without `#pragma once` or an include guard,\n  such as `obs-hotkeys.h`) included as data.\n\nA C test that `#include`s a source file by its old name (`#include \"media.c\"`)\nkeeps working through a one-line forwarding file left at that name\n(`media.c`: `#include \"shared/media-playback/media-playback/media.c.h\"`). The build never compiles it, and the\nunchanged C test needs no edit.","chars":1064,"tokens_est":266,"sha256":"38392ef5b5227ce7d0ba0c46041f0015b367b83526042349d7c347d614efeb5a"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-3-un","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","3. Unity and precompiled headers are always on"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#3-unity-and-precompiled-headers-are-always-on","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 3. Unity and precompiled headers are always on]\nConverted components build one way: each group is one translation unit, and\nthe header most of a target's groups share is precompiled (per language; on\nXcode, which allows one prefix header per target, for the language with the\nmost groups). A group of another family includes its header textually.\n`ENABLE_UNITY_BUILD` and `ENABLE_PCH` only steer components not yet\nconverted.\n\nA target that compiles one implementation file directly (a C test pinning a\nsingle libobs file) compiles a generated one-line wrapper with a real\nextension that includes it (generators, Xcode among them, take a source's\ntype from its extension), with the owning target's include directories,\nsince its header comes from there.","chars":838,"tokens_est":210,"sha256":"bbee1931eed6cf42549c30ca5242f1a903b901804ba4d565a4f39418a14bd743"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-4-ev","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","4. Every implementation file is in exactly one group"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#4-every-implementation-file-is-in-exactly-one-group","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 4. Every implementation file is in exactly one group]\nA file in no group silently drops out of the build; a file in two defines\nits symbols twice. It may be in several groups only when each is for a\ndifferent host. `ci/test_build_groups.py` (part of `./lint`) checks this,\nthe shape of every group, and rule 2. New code joins a group in the same\ncommit that adds the file.","chars":457,"tokens_est":114,"sha256":"b55e21a952ebb67b040f963109183a67e1c19926038bed74ee5f2d7cc0682964"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-5-na","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","5. Names that are file-local must be unique within a group"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#5-names-that-are-file-local-must-be-unique-within-a-group","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 5. Names that are file-local must be unique within a group]\nInside a group, every implementation file shares one translation unit, so:\n\n- `static` functions and variables, file-scope `enum` enumerators and\n  anonymous-namespace names get a prefix from their file\n  (`od_` for `obs-output-delay`, `compressor_` for the compressor filter).\n  An anonymous namespace does not help: the files share it.\n- A file-scope `#define` is `#undef`ed at the end of the file\n  (`ci/test_build_groups.py` checks it; a macro a header provides may be\n  restored there instead). A macro that\n  shadows a system name (`near`, `far`) is saved and restored with\n  `push_macro`/`pop_macro`.\n- Default arguments are declared once, in the header.\n- Headers have `#pragma once` and are never duplicated under two paths (a\n  copy forwards to the original).\n- No `using namespace std;` in a group whose header brings in global names\n  `std` also declares (`byte` from the Windows SDK): qualify instead.\n\nWhen a clash is cheaper to isolate than to rename (two backends that\ndeliberately define the same functions, a vendored fork), the file gets its\nown group. That is the only exemption, and it lives in the source tree, not\nin CMake.","chars":1291,"tokens_est":323,"sha256":"2dad4774a9904548de56bf0aa508beea9b8be78decb0bd1604dc1540e19dff37"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-6-re","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","6. Renames are mechanical and in place"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#6-renames-are-mechanical-and-in-place","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 6. Renames are mechanical and in place]\nTurning `foo.c` into `foo.c.h` keeps the directory and the stem, so\n`git log --follow`, `git blame` and merges from `upstream/master` follow\nthe file. Each component converts in its own PR with this order of commits:\n\n1. Only `git mv` of the implementation files (no content change), so rename\n   detection is exact.\n2. The groups, their precompiled headers (each file's includes moved into\n   its group's header), the CMake change, and path updates in `ci/`, the\n   platform-ifdef baseline, the C tests' CMake and `rust/` (oracle includes).\n3. Any clash fixes.\n\nWhen an upstream merge adds a new `foo.c` to a converted component, rename\nit, move its includes into its group's header and add it to a group in the\nmerge PR.\n\nThe libobs source sets are one JSON list per set,\n`libobs/build/source-sets.d/<SET>.json` (`LIBOBS_SOURCES.json`,\n`LIBOBS_WINDOWS_PORTED_SOURCES.json`, ...; #3235). A change edits only the\nlists it touches, and a host set's file name carries its OS token\n(`WINDOWS`, `MACOS`, `LINUX`, `NIX`, `PULSE`, `WAYLAND`), so\n`ci/platform_paths.py` selects that OS's CI lanes for it while a shared set\nselects what any libobs file does. Adding a set means adding its file (CMake\nre-runs configure through the `CONFIGURE_DEPENDS` glob) and the code that\nconsumes it.\n\nA newly ported libobs unity group can register itself in\n`libobs/build/ported-source-sets/<unit>.json` with the same\n`LIBOBS_*_PORTED_SOURCES` keys as the set files. The CMake,\nCargo-native and Tier 2 inventory readers discover these fragments, so two\nports can add their own files without editing the same ported-source list.\nKeep each member in exactly one list or fragment.\n\nA port edits only its unit file, never `libobs/CMakeLists.txt` or\n`libobs/cmake/os-<os>.cmake` (#3236; `ci/test_port_unit_metadata.py`\nchecks it). Besides its set keys, a unit file takes two optional fields,\nwhich `libobs/cmake/sources.cmake` applies:","chars":2035,"tokens_est":509,"sha256":"abadc4fcaebda75dc701fe6faea63b2a82158da653055a4f32426af46613fa05"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-6-re~2","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","6. Renames are mechanical and in place"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#6-renames-are-mechanical-and-in-place","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 6. Renames are mechanical and in place]\n```json\n{\n  \"LIBOBS_PORTED_SOURCES\": [\"build/libobs.ported-audio-resampler-drift+.h.c\"],\n  \"compile_options\": {\"gnu\": [\"-ffp-contract=off\"], \"msvc\": [\"/wd4996\"]},\n  \"headers\": [\"media-io/audio-resampler-drift.h\"]\n}\n```\n\n- `compile_options`: flags appended to each of the unit's groups, per\n  compiler family: `gnu` (GCC, Clang, AppleClang; C and Objective-C) or\n  `msvc`.\n- `headers`: headers (relative to `libobs/`) listed on `libobs-objects`\n  wherever one of the unit's sets is built; the Linux and FreeBSD host files\n  share one `libobs_add_ported_sources(<SET>)` call per optional set, so a\n  port no longer edits both.\n\nThe Cargo-native build and the Tier 2 inventory read the set keys and ignore\nthese fields. Settings for a whole target (warning pins, definitions) stay in\nthe CMake files.\n\nlibobs's groups are partitioned into lib-modules, the unit the module\ncache of #3256 compiles, caches and relinks:\n`libobs/build/modules.d/<module>.json` gives a module's groups as\n`fnmatch` patterns on the group name (`core`, `nix-*`, `ported-*`) and\nthe modules it `depends` on. Patterns keep a new group from editing a\ncentral list: a new `ported-foo` group is already in `ported`. A new\nnon-matching group goes into the module whose code it is.\n`ci/test_build_groups.py` checks that every libobs group is in exactly one\nmodule, that every pattern still matches a group, and that the\ndependencies exist and form no cycle (#3258). `libobs/cmake/modules.cmake`\ncompiles each module into a static archive, `libobs-mod-<module>`, linked\nwhole into libobs (#3259, #3261).\n\n`ci/libobs_modules.py` caches those archives (#3262). A module's key covers\nits compile commands (build dir and compiler launcher left out), every file\nits groups read (the preprocessor's `-M -MG` list) and the compiler version.\nOn a configured tree:","chars":1945,"tokens_est":486,"sha256":"14e845565dd3d2df5a0ccf09c793a706602dbe5459586830eeee1088629a95f5"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-the-rules-6-re~3","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","The rules","6. Renames are mechanical and in place"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#6-renames-are-mechanical-and-in-place","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a The rules \u203a 6. Renames are mechanical and in place]\n```sh\nuv run ci/libobs_modules.py restore --build <dir>   # copy hits, write hits.cmake\ncmake -B <dir> -DOBS_LIBOBS_MODULE_CACHE=<dir>/libobs-modcache\ncmake --build <dir> --target libobs\nuv run ci/libobs_modules.py store --build <dir>     # cache the modules built\n```\n\nA hit is an IMPORTED archive, not compiled. An unbuilt `-keyprobe` target\nkeeps its compile commands visible, so the next `restore` sees an edit and\ndrops the hit. Run `restore` before each build. The cache dir is\n`$OBS_LIBOBS_MODULE_CACHE_DIR`, else `modcache` beside the zccache root.\nMSVC compile commands are not keyed yet.\n\nThe Rust staticlib (`libobs-rust`) is one more cached module (#3265). Its key\ncovers `libobs-modcache-rust.json` (the features, triple, profile and C\ncompiler that `libobs/cmake/rust.cmake` records), `Cargo.lock`,\n`rust-toolchain.toml`, `rustc -vV`, `RUSTFLAGS`, gio's pkg-config version,\nand every file of the path crates `libobs-rust` depends on, found by\nwalking their `Cargo.toml` files, except `tests/` and `benches/`. It also\ncovers the files outside those crates that their build scripts read. On a hit,\nlibobs links the cached archive with Corrosion's link libraries and cargo\ndoes not run.","chars":1322,"tokens_est":330,"sha256":"e4d8cfcb296d8a6d7d6b30e65abae9f43ffa117cc749c96c904e0fd219c9398b"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-verifying-a-ch","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","Verifying a change"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#verifying-a-change","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a Verifying a change]\n- Linux: `./unittest` and the local gate as usual; `./lint` runs\n  `ci/test_build_groups.py`.\n- Windows and macOS from Linux: `cmake/cross` (soldr's clang with the\n  Windows SDK and the Apple SDK) builds libobs and the platform plugins\n  through the same groups. Extend it when a component converts.\n- A change to `cmake/common/`, `cmake/pch/` or a precompiled header itself\n  must pass a full Windows and macOS build\n  (`gh workflow run ci.yml --ref <branch>`, which runs every build) before\n  it merges. PR CI never builds the OBS apps: `cmake/common/` starts only\n  the macOS and Windows Rust tests and Tier 2, `cmake/pch/` starts nothing\n  beyond the Fast Gate, and a `libobs/build/` file starts Linux Tier 2. A\n  port that only adds its source's `#include` to a `ported-*` group does\n  not need the manual run.\n- `cmake/common/` stays host-neutral (#3234, `ci/test_cmake_common_os_neutral.py`):\n  no `OS_<HOST>` branch, MSVC generator expression or `CMAKE_OSX_*` /\n  `CMAKE_VS_*` read outside `osconfig.cmake` and `soldr.cmake`. Host-only\n  logic goes in `cmake/windows/`, `cmake/macos/` or `cmake/linux/`, which start\n  only their own OS lane; a common helper that needs a host variant defines\n  a neutral default the OS module redefines after including it (for example\n  `_obs_architecture_matches`, `obs_msvc_exempt_c4201`,\n  `_obs_dependency_platform_hook`).","chars":1460,"tokens_est":365,"sha256":"d1335a83c7ca9e18eeb832854de31c0b4d872ba379788a18d0147110e4c7ea7f"},{"id":"build#building-c-c-and-objective-c-unity-groups-and-precompiled-headers-transition","doc":"build","group":"project","tier":"reference","kind":"prose","breadcrumb":["Building C, C++ and Objective-C: unity groups and precompiled headers","Transition"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md#transition","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/BUILD.md","text":"[Building C, C++ and Objective-C: unity groups and precompiled headers \u203a Transition]\nComponents not yet converted still build with CMake's `UNITY_BUILD`\nbatching, the shared headers in `cmake/pch/` and the skip lists in\n`cmake/common/unity.cmake` and `cmake/common/pch.cmake`. Those lists only\nshrink: a new entry means the file's component should be converted instead.\nWhen the last component converts, the batching, `cmake/pch/` and the skip\nlists are deleted. Order: `libobs/` (done), then `libobs-*/`, `shared/`,\n`plugins/`, `frontend/`.","chars":541,"tokens_est":135,"sha256":"558ffaf359c35b0b86aabd6691eaa5f898195f873d1bea52167acb2d6fec6725"},{"id":"contributing#top","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines]\nOBS Studio Contribution Guidelines\n============\n\n> [!IMPORTANT]\n> These guidelines are subordinate to the [Constitution of the obs-rust Project](https://github.com/obs-rust/constitution/blob/main/CONSTITUTION.md), which supersedes them and every other project document. They cover technical practice only. The Constitution replaces the former Code of Conduct.\n\nOBS Studio accepts contributions via public **pull requests**, which encompass changes made to the project as well as a written description of the changes made and the motivation behind them.\n\nPull requests can be opened by any user with sufficient contribution permissions on the platform chosen by the project. Likewise, any user with sufficient access permissions is able to read, comment, and suggest changes to a pull request, but the ultimate decision for or against adopting the suggested changes lies with **project members**.\n\nOBS Studio has shown steady growth of popularity, complexity, and scope throughout its existence. Contributions that demonstrate they have taken the aspects outlined in this document into account (including the impact to the maintainability of the project) will potentially, but not necessarily, have a higher chance of adoption.\n\n> [!NOTE]\n> Past acceptance of a change, including \u201cprior art\u201d that exists in the codebase, does not guarantee that future, similar, changes will be accepted, as the \u201cstate of the art\u201d (code style guidelines, best practices, language standard) is constantly evolving and the project consciously chooses to evolve with them.\n\nThese guidelines attempt to provide a set of general rules that any contributor can choose to follow and implement before opening a pull request to reduce review effort and increase its chances for adoption.","chars":1794,"tokens_est":448,"sha256":"be11cac01da17ba4164f199caefc9a110274e45e10dc1d3ada91e5c9e65f7732"},{"id":"contributing#general-contribution-guidelines","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#general-contribution-guidelines","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines]\nThe canonical language used by the project is \u201cAmerican English\u201d, which mainly applies to source code and non-translated material. Examples include:\n\n* Commit messages\n* Names of constants, variables, and types\n* Source code comments\n* File names\n\nAppropriate templates are presented to the user when opening a new issue report or pull request on GitHub which are required to be fully filled out to be taken into consideration by the project.\nThe template might require checking off items that might not be applicable e.g., the requirement to have the code properly formatted does not apply when the contribution has not changed any source code. **It is permissible and preferred to tick the box regardless**.\n\nParticipation in this project is governed by the [Constitution of the obs-rust Project](https://github.com/obs-rust/constitution/blob/main/CONSTITUTION.md).","chars":901,"tokens_est":225,"sha256":"858003b7960a65c0322629bc8a90987790471b2e60337da828925946ba692fd2"},{"id":"contributing#pull-request-review-guidelines","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines","Pull Request Review Guidelines"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#pull-request-review-guidelines","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines \u203a Pull Request Review Guidelines]\nIn general reviews of pull requests are not limited to project members and can be undertaken by contributors and other GitHub users. Project members commonly coordinate reviews of pull requests at their own discretion in line with project needs and available bandwidth.\n\nTo reduce possible friction of the review process, a simple set of rules should be followed:\n\n* **Do not** request reviews from specific community or project members yourself.\n    * It is permitted to ping other GitHub users to notify them of a PR and kindly ask them if they are willing (and able) to review it, all within reason.\n* Reviewers might leave comments or ask for changes on specific lines of changed code. Once the comment has been addressed **do not unilaterally resolve** the comment.\n    * It is entirely the reviewer's decision whether they would consider the changes to be sufficient to address their concerns. Just having addressed a comment, does not resolve it.\n    * As a reviewer, make sure to regularly review the comments received on your reviews, check the code changes, and resolve your comments once they have been addressed. **Don't leave pull request authors hanging.**\n    * Project members will usually ping reviewers about unresolved review comments and resolve such comments themselves to unblock PRs from being merged.\n* When addressing review comments through code changes, prefer adding commits over force-pushing rewritten history, so reviewers can see what changed since their review.\n    * This is about the history reviewers read, not about keeping the PR branch current: rebasing onto master when GitHub reports a conflict, and the coordinator's rebases of ejected, stacked or about-to-land PRs, are expected (see [coordination.md](docs/rust-port/coordination.md), section 4). The merge queue squash-merges each PR, so master gets one commit per PR either way.","chars":1940,"tokens_est":485,"sha256":"8eb1a209b907796f071bca89b45971b87ed252c95bf9a7a6bbace8900e2af00e"},{"id":"contributing#commit-authoring-guidelines","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines","Commit Authoring Guidelines"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#commit-authoring-guidelines","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines \u203a Commit Authoring Guidelines]\nThe project uses the \u201c50/72\u201d standard for commit messages, which requires that a commit title uses no more than 50 characters, while any consecutive line used for the commit description is allowed to use a maximum of 72 characters (with long lines manually broken up).\n\nThe \u201canatomy\u201d of a correct commit message with description looks like this:\n\n```\nprefix: This is a commit title using 50 characters\n\nThis is a commit description line that is allowed to use up to 72 chars\n```\n\nPrefixes are commonly defined by the \u201cmodule\u201d the commit applies changes to, which has repercussions as to how commit contents are authored (see below).\n\n* Changes made to code for \u201clibobs\u201d should use the \u201clibobs\u201d prefix, similarly changes made to \u201cobs-ffmpeg\u201d use \u201cobs-ffmpeg\u201d.\n* Changes made to multiple modules in the \u201cplugins\u201d directory can use the \u201cplugins\u201d prefix, particularly if the changes are of a similar nature\n* Changes made to files involved in continuous integration (CI) should use the \u201cCI\u201d prefix regardless of the directory name.\n* Changes made to files used by the CMake build system should use the \u201ccmake\u201d prefix\u201d\n\nWhen in doubt about what the correct prefix for a change might be, the existing commit history might be of help, however project guidelines might have changed in the interim and thus a \u201cpast\u201d commit message might not be acceptable for new contributions.","chars":1432,"tokens_est":358,"sha256":"7fb81cd3e8095c8e9de8f32a4bfbffab8d3a0a8c3fd539f6158067af2c33f1f1"},{"id":"contributing#commit-authoring-guidelines-commit-messages","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines","Commit Authoring Guidelines","Commit Messages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#commit-messages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines \u203a Commit Authoring Guidelines \u203a Commit Messages]\nThe commit message is the primary place for documentation of changes, not only as a summary of \u201cwhat\u201d was changed, but even more importantly \u201cwhy\u201d the changes were made and \u201cwhy\u201d specifically in the way they have been made.\n\nAs such the commit message should be written in such a way that it could easily pass as the \u201cDescription\u201d and \u201cMotivation and Context\u201d required when opening a new pull request (and indeed platforms like GitHub will automatically copy the commit message into the opening post for a pull request with a single commit).\n\nThis ensures that documentation and context are encoded within the source tree and do not require external documents or platforms to ensure this information is not lost.\n\nMany of these ideas match the ideas outlined in https://chris.beams.io/git-commit.","chars":878,"tokens_est":220,"sha256":"628ccad4e6f322f732dbf0fecea1e0150ad7366da2f08b7cc930451ca78bb662"},{"id":"contributing#commit-authoring-guidelines-commit-content-authoring-guidelines-code-style","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines","Commit Authoring Guidelines","Commit Content Authoring Guidelines","Code Style"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#code-style","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines \u203a Commit Authoring Guidelines \u203a Commit Content Authoring Guidelines \u203a Code Style]\nAll code contributions to the project need to follow code style guidelines appropriate to the languages used by the changed files. For C and C++ the project has chosen to adopt well-established code style guidelines as its baseline with specific exceptions and changes outlined in a [separate document](https://github.com/obsproject/obs-studio/blob/master/CODESTYLE.md).\n\nThe baseline rules for the common languages used by the project are:\n\n* C code needs to follow the Linux Kernel Coding Style (https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst)\n* C++ code needs to follow OBS Studios\u2019 style guide. Familiarity with the Google C++ Style Guide (https://google.github.io/styleguide/cppguide.html) can serve as a baseline.\n* Objective-C and Objective-C++ code needs to follow Apple\u2019s ObjectiveC Conventions (https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html)\n* Swift code needs to follow the API Design Guidelines (https://www.swift.org/documentation/api-design-guidelines/)\n* **The column size limit for all code is 120 characters**\n\nTo help with the formatting of code, the project contains configuration files for code-formatters of several languages:\n\n* `clang-format` can be used to correctly format C, C++, Objective-C, and Objective-C++ soure code\n* `swift-format` can be used to correctly format Swift source code\n* `gersemi` can be used to correctly format CMake source code\n\n> [!NOTE]\n> The \u201cbuild-aux\u201d directory in the project\u2019s root directory contains scripts that can automate this process and are used by the project\u2019s CI infrastructure to automatically check all contributions that changed corresponding source code files.","chars":1867,"tokens_est":467,"sha256":"961a1d2c6d5914a3b8f93534c74e664e62daa1a8591ad2aef4108958efbddbb2"},{"id":"contributing#commit-authoring-guidelines-commit-content-authoring-guidelines-commit-contents","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines","Commit Authoring Guidelines","Commit Content Authoring Guidelines","Commit Contents"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#commit-contents","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines \u203a Commit Authoring Guidelines \u203a Commit Content Authoring Guidelines \u203a Commit Contents]\nThe changes contained in a commit should attempt to represent logical \u201cunits of change\u201d that make sense in isolation and do not necessarily require any preceding or following commits to work. Indeed if a single commit would potentially leave the project in a broken state (e.g., the project cannot be compiled, the application not run, or basic application functionality cannot function) then it is not a full \u201cunit of change\u201d. The accepted exception is a RED commit: under the [testing policy](docs/rust-port/testing-policy.md) a port or fix first commits a failing test, then the GREEN commit that makes it pass.\n\n* Changes to misspelled words or purely aesthetic changes should in principle not be individually capable of breaking the project in such a way and are permitted to be grouped into a single \u201clarge\u201d commit\n* If a larger change requires some foundation of fixes to the existing code to make sense, those fixes represent a \u201cunit of change\u201d that should be decoupled from the functional changes made on top of them. Even better, such a change should be encapsulated in its own, separate, pull request.\n\n> [!IMPORTANT]\n> During review and collaboration the need for additional changes can arise quickly. It is permitted (and preferred) to temporarily ignore these guidelines to quickly provide changes required to address review comments and add many small, iterative, commits to the pull request.\n>\n> Once all review comments have been addressed, fold the review fixups into the commits they belong to, but keep the RED and GREEN commits separate; do not squash them together. The merge queue squashes the PR into one commit on master.","chars":1766,"tokens_est":442,"sha256":"7787d9ea315c29ca0d622ca55d69148962de0949bded97ffdd9d8a83b83cdbe3"},{"id":"contributing#commit-authoring-guidelines-commit-content-authoring-guidelines-co-authorship","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines","Commit Authoring Guidelines","Commit Content Authoring Guidelines","Co-Authorship"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#co-authorship","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines \u203a Commit Authoring Guidelines \u203a Commit Content Authoring Guidelines \u203a Co-Authorship]\nSometimes an open pull request might have been \"lost to time\" even though its contents might still be a meaningful and positive change. When picking up such a change and authoring a new pull request to \"finish it\", the original author should be retained as much as possible:\n\n* The original commit can be cherry-picked, which will retain the author information and only change the committer information\n* If the original commit needs to be adjusted and changed as it will not apply to an updated code-base, its original author should be added as a \"Co-Author\" to the commit message.\n\n```\nlibobs: Refactor audio implementation\n\n\nAdditional commit description\n<..>\nCo-authored-by: Name <git@address.TLD>\n```","chars":823,"tokens_est":206,"sha256":"297fa91b0545b2cf39572687afc25a639bf2556cf32090875c6c8f155b6bbaa5"},{"id":"contributing#tools-and-authorship","doc":"contributing","group":"project","tier":"core","kind":"prose","breadcrumb":["General Contribution Guidelines","Tools and Authorship"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md#tools-and-authorship","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONTRIBUTING.md","text":"[General Contribution Guidelines \u203a Tools and Authorship]\nContributions are judged on their merit alone, whatever tools were used to produce them, including AI assistants (Article III of the Constitution). The contributor is responsible for everything they submit: it must be correct, reviewed, tested to the standards in this document, and license-compatible. Submissions that fail those standards are rejected on those grounds.","chars":428,"tokens_est":107,"sha256":"f44272251ea6bc414c5375edbfc8b8f2d95467970c521a8b001d64c1c0d3f695"},{"id":"security#security-policy","doc":"security","group":"project","tier":"core","kind":"prose","breadcrumb":["Security policy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md#security-policy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md","text":"[Security policy]\nobs-rust is a fork of OBS Studio that is being converted to Rust. This\npolicy covers obs-rust: this repository's code, its CI, and the builds\nit publishes. The upstream OBS Project has its own policy and channels\n(see [Upstream OBS Studio](#upstream-obs-studio)).\n\n## Two tiers\nOBS Studio is a desktop application. Its user already runs it with\ntheir own privileges, and it does not run as a public server. So most\nbugs are not security issues, even memory bugs. What decides the tier\nis who can reach the bug.\n\n| Tier | Who can reach the bug | Where it goes |\n|---|---|---|\n| **Low risk** | Only trusted input: the local user's own actions, settings, scene collections and profiles, installed plugins and scripts, tests | A normal public issue and PR, like any other bug |\n| **High risk** | A remote party: a streaming or WHIP server, a web page in a browser source, media files or streams from the network, an obs-websocket client, a scene collection or profile someone else sent. Also any bug that leaks credentials (stream keys, OAuth tokens, passwords) to another user or over the network | A private security advisory (below) |\n\nWhen you are unsure, report it privately. A maintainer moves a report\nthat turns out to be low risk to a public issue, and tells you.","chars":1286,"tokens_est":322,"sha256":"c9499adf77f2d5fee3ccd2f48c1ef19c8a1061d2de0514d9795a21400cdc3864"},{"id":"security#security-policy-low-risk-report-it-in-public","doc":"security","group":"project","tier":"core","kind":"prose","breadcrumb":["Security policy","Low risk: report it in public"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md#low-risk-report-it-in-public","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md","text":"[Security policy \u203a Low risk: report it in public]\nOpen a bug issue, or a PR with a failing test and then the fix, as\n[docs/rust-port/coordination.md](docs/rust-port/coordination.md) says.\nUse the title `bug: <component>: <symptom>` with the bug class (for\nexample use-after-free) in the symptom, so it can be found later. It may\ncarry the `security` label. No advisory is needed.","chars":379,"tokens_est":95,"sha256":"e2824b4f48b67475230a5e80700d5247cb7268ec6b35004a20168f0fa353e9b0"},{"id":"security#security-policy-high-risk-report-it-privately","doc":"security","group":"project","tier":"core","kind":"prose","breadcrumb":["Security policy","High risk: report it privately"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md#high-risk-report-it-privately","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md","text":"[Security policy \u203a High risk: report it privately]\n**Do not open a public issue, pull request or discussion for a\nhigh-risk vulnerability.**\n\n1. Open the repository's **Security** tab and choose **Report a\n   vulnerability**\n   (<https://github.com/obs-rust/obs-studio/security/advisories/new>).\n2. Say what is affected (file, function, build or release), who can\n   reach it, how to reproduce it, and what an attacker gains. A short\n   proof of concept helps.\n3. If you already have a fix, say so. A maintainer will open a\n   temporary private fork on the advisory, and you can push the fix\n   there. Do not push it to a public branch or fork.\n\n**Who can see it.** A private advisory and its private fork are visible\nonly to the repository administrators, the members of the\n`security-maintainers` team (which has GitHub's security manager role\nfor the organization), the reporter, and the people a maintainer adds\nto that advisory. Other contributors, including other agents, do not\nsee it until it is published. Maintainers add a collaborator to an\nadvisory only when that person works on its fix.","chars":1100,"tokens_est":275,"sha256":"f484dfd8b417feb80029555c778ca60814da0df0b4374e26ef9e3c30935650d2"},{"id":"security#security-policy-what-happens-next-high-risk","doc":"security","group":"project","tier":"core","kind":"prose","breadcrumb":["Security policy","What happens next (high risk)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md#what-happens-next-high-risk","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md","text":"[Security policy \u203a What happens next (high risk)]\n- **Within 72 hours:** a maintainer acknowledges the report on the\n  advisory.\n- **Triage:** we confirm the issue and agree on its severity (CVSS)\n  with you, on the advisory.\n- **Fix:** the fix is developed and reviewed in the advisory's private\n  fork. It follows the normal rules for this repository: a failing test\n  that shows the bug first, then the fix (see\n  [docs/rust-port/testing-policy.md](docs/rust-port/testing-policy.md)).\n- **Before publishing:** a maintainer checks each of these and records\n  it on the advisory:\n  1. **Read the whole comment thread**, not only the description. The\n     reporter may have added findings since the report. Comments close\n     when the advisory is published, so this is the last chance to\n     answer them privately.\n  2. **Every path in the report is fixed**, not only the first one. Run\n     each reproduction in the report (every variant: each function,\n     each code path) against current master, and name the PR that fixes\n     each one. A fix that landed outside the advisory, in a public PR,\n     counts only after this check.\n  3. **The reporter confirms the fix** on the advisory. If they have not\n     answered within 72 hours of being asked, publish anyway and say\n     so.\n  If any check fails, the advisory stays private and the remaining\n  part is fixed first.\n- **Release and disclosure:** we merge the fix, publish the advisory\n  (requesting a CVE where it applies), and credit you unless you ask us\n  not to. We aim to disclose within 90 days of the report, sooner once\n  a fixed build is out.\n\nAfter disclosure, any public follow-up work (hardening, regression\ntests, release notes) is tracked in normal issues with the `security`\nlabel. The label is never used for an undisclosed high-risk\nvulnerability.","chars":1824,"tokens_est":456,"sha256":"8998d0171f1951a3ba2b43bf75da5d7a75ea313ededd63b1b57c44326b3fe4e2"},{"id":"security#security-policy-upstream-obs-studio","doc":"security","group":"project","tier":"core","kind":"prose","breadcrumb":["Security policy","Upstream OBS Studio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md#upstream-obs-studio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md","text":"[Security policy \u203a Upstream OBS Studio]\nMuch of obs-rust's C/C++ code comes from OBS Studio. If a vulnerability\nalso affects upstream OBS Studio:\n\n- Report it to obs-rust as described above. **Do not report it upstream\n  yourself**, and do not discuss it on an upstream issue.\n- obs-rust discloses to the OBS Project in a coordinated way. Embargoed\n  advisories go to the OBS Project in numbered, AES-256 encrypted\n  disclosure archives. The maintainers send each archive's link, and its\n  password over a separate channel. The OBS Project reviews and fixes\n  first, and both projects then publish on an agreed date. The public\n  tracker at <https://obs-rust.com/security/> shows each archive, its\n  SHA-256 and aggregate counts, but never the title or id of an\n  embargoed advisory.\n- An advisory goes into the first archive cut after it is created. A fix\n  found after its archive was sent goes out as an update in the next\n  archive. You are credited in the archive unless you ask us not to.\n- If you have already reported it upstream, tell us, so that the two\n  reports share one disclosure date.\n\nAgents follow the `obs-security-disclosure` skill\n([.claude/skills/obs-security-disclosure/SKILL.md](.claude/skills/obs-security-disclosure/SKILL.md))\nfor every step after triage.\n\nA bug that affects only upstream OBS Studio, and not obs-rust, should\ngo to the OBS Project directly: <https://github.com/obsproject/obs-studio/security/policy>.","chars":1444,"tokens_est":361,"sha256":"83ab9bc46c951b462faaf2ecda439385eb932f3a6bb2512c96f352423b9cee26"},{"id":"security#security-policy-scope","doc":"security","group":"project","tier":"core","kind":"prose","breadcrumb":["Security policy","Scope"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md#scope","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/SECURITY.md","text":"[Security policy \u203a Scope]\nIn scope:\n\n- Code in this repository, including the Rust ports, the C/C++ code\n  inherited from upstream, plugins and scripting.\n- Network-facing interfaces, such as the obs-websocket server, RTMP,\n  SRT, WHIP and other outputs, and media inputs that parse files or\n  streams.\n- Builds and release artifacts published by this repository (AppImage,\n  Flatpak, DMG, Windows packages) and the CI that produces them.\n\nOut of scope:\n\n- Attacks that require physical access to the device, or that require\n  the victim to install non-standard software or take active steps to\n  make themselves vulnerable (this includes DLL planting).\n- Reports from automated tools or scans that have not been checked by\n  hand.\n- Vulnerabilities in third-party dependencies that obs-rust does not\n  change. Report those to the dependency's maintainers; tell us as\n  well if obs-rust ships an affected version.\n\n## Safe harbor\nWe will not pursue or support legal action against research done in\ngood faith under this policy. Good faith means avoiding privacy\nviolations, data destruction and service disruption, testing only\nagainst your own installations, and keeping details confidential until\nthe advisory is published.\n\n## No bug bounty\nobs-rust does not offer payment for reports.","chars":1288,"tokens_est":322,"sha256":"43b2e4dc3e2e8a01045eb0c7495f499c733fc231542e5bd8496288b037c3cf9a"},{"id":"codestyle#top","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors]\nOBS Studio Code Style Guidelines\n================================\n\nThe project requires all contributions to have their source code formatted using appropriate formatting tools to reduce the potential impact of stylistic changes to a structured \u201cdiff\u201d view of code.\n\nIn addition to those automatically enforceable stylistic choices the project also prefers contributions to follow a set of architectural guidelines that are chosen to reduce undefined or unexpected behavior and make code easier to reason about during reviews or maintenance.","chars":573,"tokens_est":143,"sha256":"b966e1cd7f8184ded8dd54c7c9b3ab2cd7cae634af73152548a18da1dae5110c"},{"id":"codestyle#reducing-potential-for-errors","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#reducing-potential-for-errors","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors]\nThe following guidelines have been established as good practices to reduce some common potential for errors or naive coding practices that have lead to such errors in the past:\n\n* **Always Initialize Variables** - Depending on the programming language, language standard, compiler, and platform, rules for when and how variables are initialized automatically might differ. Thus some variables might have random values at program start and naive code might interpret any value but \u201c0\u201d to mean \u201ccorrectly initialized\u201d and run into unexpected behavior.\n    * Do not declare or initialize multiple variables on the same line, do not mix declarations and initializations\n\n```C\nint i, v = 0;    // BAD - v is initialized to 0, i is uninitialized\n\n\nint i = 0;       // GOOD - i is explicitly declared and initialized\nint v = 0;       // GOOD - v is separately declared and initialized\n```\n\n* **Do not use \u201c0\u201d as a valid enumeration value by default** - in many cases an enum requires an explicit choice to be made (only one value of a set of \u201cvalid\u201d values can be set) and \u201cnot making a choice\u201d should not be considered valid\n\n```C\nenum state { ACTIVE,           // BAD - zero-initialized enum potentially\n             INACTIVE,         // leads to implicit state changes.\n             DELETED\n};\n\n\nenum state { INVALID,          // GOOD - zero-initialized enum produces\n             ACTIVE,           // an invalid value by default, avoiding\n             INACTIVE,         // an implicit state change.\n             DELETED\n};\n\n\nenum state { ACTIVE = 1,       // GOOD, zero-initialization fails because\n             INACTIVE = 2,     // it\u2019s not a valid enum value to begin with.\n             DELETED = 3\n};\n```\n\n* **Use natural language for variables and types** - expressive code is easier to reason about for maintainers and reviewers and also reduces the mental burden when returning to the same code after even a short absence, as code \u201csays what it does\u201d and variables \u201ctell what they represent\u201d.","chars":2027,"tokens_est":507,"sha256":"2e0707419ec52419acac830d9f0146121b4148c59d5e7a6bb8db18eeeea43047"},{"id":"codestyle#reducing-potential-for-errors~2","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#reducing-potential-for-errors","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors]\n```C\nint c = 1;                  // BAD: What does \u201cc\u201d represent?\nint count = 2;              // BAD: Count of \u201cwhat\u201d?\nint num_bytes = 3;          // GOOD: \u201cNum(ber) of bytes\u201d\n\n\nbool valid;                 // BAD: Meaning is ambiguous\nbool has_valid_key;         // GOOD: Describes state of element in an object\nbool is_valid;              // GOOD: Describes state of element itself\nbool did_send_packet;       // GOOD: Describes state of transaction.\n\n\nfloat dur = 1.0;             // BAD: Unit of duration unknown\nfloat duration_ms = 5.0;     // GOOD: Unit of duration encoded within name\n\n\n// GOOD: Function signature communicates the unit of the delay explicitly.\nstart_transition_with_delay(transition_type *transition, float delay_ms);\n```\n\n* **Use compound types rather than individual variables** - information like the size or dimension of an object, a timescale, a position in space, should be logically encoded in a compound type and only \u201cunwrapped\u201d when consumed\n\n```C\n// GOOD: Function signature communicates the unit of the delay explicitly.\nstart_transition_with_delay(transition_type *transition, float delay_ms);\n\n\n// EVEN BETTER: Time values encoded as pieces of a fraction (1/1000th of a\n//              second representing a \u201cmicrosecond\u201d) and explicitly passed to\n//              the function.\ntypedef struct {\n    int_64_t time_value;\n    int_32_t time_scale;\n} time_unit;\n\n\nstart_transition_with_delay(transition_type *transition, time_unit delay);\n\n\n// BAD: Behavior encoded in unrelated booleans, maybe even conflicting\nstart_transition(transition_type *transition, bool ignore, bool abort);\n\n\n// GOOD: Function signature requires more meaningful enum rather than bool\nenum transition_abort_mode {\n    TRANSITION_ABORT_INVALID, TRANSITION_ABORT_ALL,\n    TRANSITION_ABORT_NEW, TRANSITION_ABORT_NONE\n};\n\n\n// Signature:\nstart_transition(transition_type *transition, enum transition_abort_mode);\n```","chars":1953,"tokens_est":488,"sha256":"b9bc04bc04336af35a4f075bd4621ec8898fbb371fe477d1c0b36573663b2d8c"},{"id":"codestyle#reducing-potential-for-errors~3","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#reducing-potential-for-errors","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors]\n* **Do not use unnecessary abbreviations** - if a class implements an \"Advanced Output\", call it AdvancedOutput, not AdvOutput. The same applies to variables holding an instance of the class. Code is read more often than it is written (and indeed the writing part is just the final outcome of a much longer reasoning process) and optimising for the latter incurs a debt on the former.\n* **Name functions after what they do rather than how they do it** - a function\u2019s signature is effectively its \u201cinterface\u201d and should provide a hint about which functionality it provides to the caller. The actual implementation should not be relevant to the caller and exposing this information can actually have a net-negative effect as the caller might try to \u201cout-think\u201d the API.\n* **Prefer pure functions and non-mutable variables** - side-effects are harder to keep track of and can lead to confusing results, particularly when following the prior rule. This also ties into a later rule about avoiding global scope, as global (and shared) variables tend to encourage writing code that surreptitiously changes global shared scope, which makes code harder to test and reason about.\n\n> [!NOTE]\n> This obviously does not apply to methods where the implementation detail is a technical need of the API user e.g., for factory methods where the user has data in a specific place that it needs to be loaded from, such as `MyData::loadFromUrl(const std::string &url)` or `MyData::loadFromFile(const std::filesystem::path &path)` where the \u201cwhat\u201d is essentially intertwined with the \u201chow\u201d.","chars":1601,"tokens_est":400,"sha256":"61010ca56ec7c5fe17a09a3d3a506e506a2fecf45654e9f01e877d6632375bc3"},{"id":"codestyle#reducing-potential-for-errors~4","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#reducing-potential-for-errors","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors]\n* **Do not use specific integer types outside of binary protocols** - for the vast majority of cases using an \u201cint\u201d is sufficient and using a signed type also prevents unexpected overflow issues where a small negative number becomes a massive positive number. Use sized types (and unsigned types) when interacting with binary protocols, bitfields (e.g. to explicitly remove any special meaning from the most-significant bit). Prefer 64-bit integers over unsigned 32-bit integers for large numbers.\n* **Do not micro-optimize and do not attempt to be overly \"clever\" with an implementation** - to quote Kernighan:\n\n> Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?\n\n* **Use profiling tools to identify actual opportunities for optimization** - the code that the compiler generates can potentially work in different ways than the source code might suggest and might not even be executed in the same order. Premature optimizations might also prevent the compiler from applying its own, leading to slower code overall. Also be mindful of profiling tools themselves potentially influencing the runtime behaviour of code.\n* **Attempt to actively break code during testing** - do not rely on \u201chappy paths\u201d. Try to be creative and come up with ways to break the assumptions your code might have made. Do not rely on assumptions that data will never be \u201cwrong\u201d or that some other data will always be \u201cthere\u201d. As the ISO C++ FAQ calls it:\n\n> Write code that is guaranteed to work, not code that doesn\u2019t seem to break.","chars":1662,"tokens_est":416,"sha256":"b15893ae48d7db20acb47cb2be11841c2f28de11a32c80386b7b6c29ed1de35e"},{"id":"codestyle#reducing-potential-for-errors~5","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#reducing-potential-for-errors","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors]\n* **Write code that will be reasonably easy to understand even 6, 12, or 24 months later** - while it is easy to reason about the state of a program while working on it, much of that \u201cinside knowledge\u201d might be gone even a few weeks later. Writing code that is obvious in what it does (and also why it does certain things and which pieces of data it requires) will make it easier to get back into the mental model behind the code. **Write code so that any newcomer to the project will have a reasonably easy time understanding what it does and why it does it the way it\u2019s implemented.**\n* **Do not rely on global state or singletons** - both are easily abused as shortcuts to avoid implementing a more expressive and safer design. There are valid use cases for global state (like a global \u201capplication\u201d instance implemented as a singleton) but those are the exception and not the rule.\n* **Treat programming as a mental exercise and not just as text manipulation** - existing code in particular will have been designed and built with a set of assumptions and theories in mind, which themselves informed the architectural choices made in its implementation. Some changes might seem \u201cquick and easy\u201d but <u>potentially violate those architectural assumptions</u> and thus could leave the code in a precarious state (and indeed might lead to undefined behaviour when yet other code relies on these assumptions not to be violated).\n\nThe last point cannot be overstated because it is a common source of friction in long-lived software projects. **Neither source code nor documentation can be a full representation of the \u201ctheory\u201d behind the code** and indeed both can never be more than an incomplete \u201csnapshot\u201d of one possible implementation of this theory.","chars":1785,"tokens_est":446,"sha256":"984e3a5fd750d087272cf3edf0d43ab1209ef99422651ba91d555db3faaf2df9"},{"id":"codestyle#reducing-potential-for-errors~6","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#reducing-potential-for-errors","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors]\nBut without a decent understanding of the theory behind the code (or the architectural concerns that went into the current design) one cannot correctly ascertain which changes will be \u201cin line\u201d with the way current code works and might instead violate important principles of it.\n\nAnd the more such \u201cnaive\u201d code (mainly in the form of hacks and workarounds) is piled on, the more difficult the code becomes to work with, culminating in a code base where even shipping \u201csimple\u201d new features becomes a tough exercise (as the code starts to behave in unpredictable ways due to all the violations of the original \u201ctheory\u201d).\n\n> [!NOTE]\n> This principle becomes more obvious with less abstract examples: An image-editing program will have a set of considerations and constraints that went into its design (code and user interface) and just adding the ability to decode video files will not make the program able to edit video, which is an entirely separate discipline with potentially opposing needs and considerations.\n>\n> And indeed any new feature added to the photo editor now has to potentially contend with the reality that it might be faced with a video file instead, adding even more bits and pieces to unrelated parts of the program to handle a scenario the foundation of the program was conceptually (and explicitly) not built for.","chars":1367,"tokens_est":342,"sha256":"4a4331e4332f61f38d70d7db02739b059486763bce454595afeea2b4f72e2cef"},{"id":"codestyle#language-specific-guidance","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#language-specific-guidance","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance]\nOBS Studio currently contains code written in the following languages:\n\n* C\n* C++\n* Objective-C/C++\n* Swift\n* CMake\n\nContinuous integration code is mostly based on Powershell, Zsh or Bash scripts, and Python 3.\n\nWhile C++ and ObjectiveC/C++ are supersets of the C language, the project prefers to treat them individually with their own rules, conventions, and language standards. Thus rules that apply to \u201cC\u201d do not necessarily apply to these languages and indeed some rules will be replaced for those languages.","chars":573,"tokens_est":143,"sha256":"409b3c40d293e6ff5a5bd13fad102798c53b11dca94b03e65c14fd2584a950d4"},{"id":"codestyle#language-specific-guidance-c","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#c","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C]\nFor \u201cpure\u201d C code the project follows the Linux Kernel Coding Style (https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst). Parts of the guidelines that relate to Emacs, kernel-level allocators, or macros only available in the Linux kernel source code do not apply.\n\n> [!IMPORTANT]\n> The current C language standard of the project is **C17 without GNU extensions**.\n\nSome additional notes:\n\n* Formatting is checked and can be applied by `clang-format`. The formatting generated by it supersedes any rules in the guidelines.\n* The project uses a line length of 120 characters, and uses tabs for indentation with a tab width of 8 characters.","chars":736,"tokens_est":184,"sha256":"8a171e983e1fd450427ede5074268a2c3bc56b88e516b79ac04dda86fd097776"},{"id":"codestyle#language-specific-guidance-c-2","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C++"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#c-1","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C++]\nThe project treats C++ as its own language and not just as \u201cC with classes\u201d. The associated code style guidelines are based on the Google C++ Code Style Guide (https://google.github.io/styleguide/cppguide.html) with changes to some aspects, as listed below.\n\n> [!IMPORTANT]\n> The current C++ language standard of the project is **C++17 without GNU extensions**. A move to C++20 is currently being considered.\n\nAdditions and changes (in the order the associated topics appear in the Google document):","chars":566,"tokens_est":142,"sha256":"3bbaf7e327d79d0dd214d36db6e27d19b7aff78533bd3f96789a4eaf162b2a3b"},{"id":"codestyle#language-specific-guidance-c~2","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C++"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#c-1","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C++]\n* **Header Files**\n    * OBS Studio uses the \u201ccpp\u201d suffix for C++ source code files rather than \u201ccc\u201d and \u201chpp\u201d for C++-specific header files\n    * Header guards are permitted, but not required - a simple `#pragma once` is sufficient\n    * Use of forward declarations is permitted for class or struct types, but be mindful of the caveats mentioned in the Style Guide. **Avoid \u201cStructuring code to enable forward declarations\u201d.**\n    * OBS Studio uses a different header include order, documented in a separate section below\n * **Classes**\n    * If any constructor or assignment operator is defined, all 5 types need to be either defined, defaulted, or deleted, including the destructor (**\u201cRule of Five\u201d**)\n    * Ensure that move constructor and move assignment operator are marked \u201cnoexcept\u201d (and implemented accordingly) to avoid possible pessimization when using user-defined types with standard library containers like `std::vector`.\n    * Use multiple-inheritance only for the interface/protocol pattern (\"implements an interface as defined by\" relationship), avoid the diamond pattern and virtual base classes.\n * **Google-Specific Magic**\n    * OBS Studio does not use `cpplint`\n * **Other C++ Features**\n    * Exceptions can (but don't have to) be used, particularly when no good \"sentinel value\" can be provided and also to avoid littering the code with correctness checks after every function call. It is preferred to keep the \u201cscope\u201d of exceptions within the same module (i.e., the same executable or library).\n    * Be aware that in C++ <u>any</u> function that is not a destructor and is not explicitly marked as noexcept can potentially throw an exception as part of normal error handling rather than signaling an actual critical failure.\n    * Instance methods that modify any data, even if it is not their own instance's data, should not be marked `const` to signal that they <u>logically</u> mutate some state.\n    * Do not use comments to declare the types in structured bindings","chars":2063,"tokens_est":516,"sha256":"c1cc2f96d85b03d8b20d2da49fa23b64e91d61a3e7d2fbf7a1c620b8ddd7195f"},{"id":"codestyle#language-specific-guidance-c~3","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C++"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#c-1","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C++]\n* Any guidelines of C++20 features will be evaluated once the project switches to that language standard.\n    * The project does not allow the use of the Boost library.\n    * However the project does allow the use of the \u201cDisallowed standard library features\u201d and some \u201cNonstandard Extensions\u201d.\n * **Naming**\n    * Use the class name (following type name rules) for the file name of its interface header and implementation file.\n    * Use `camelCase` for instance methods, functions, as well as variables. This also aligns with Qt\u2019s code style.\n    * Existing constants in code are permitted to be kept with `UPPERCASE` names, but new constants should follow the new convention of `kCamelCase`.\n    * Namespaces need to follow type name rules, though the project only uses the \u201c`OBS`\u201d namespace for refactoring of application code for the time being.\n    * Do not use underscore prefixes for any names, as these are reserved for the standard library implementation. Use a trailing underscore for private member variables.\n * **Comments**\n    * Only C++ comment style is permitted for C++ source code, mixing of different styles is not allowed.\n    * Do not use function argument comments.\n * **Formatting**\n    * Formatting is checked and can be applied by `clang-format`. The formatting generated by it supersedes any rules in the guidelines.\n    * The project uses a line length of 120 characters, and uses tabs for indentation with a tab width of 8 characters.\n    * All new C++ code needs to use curly braces for all looping or branching statements. No exceptions.\n    * Prefer brace initialization to protect against (unexpected) narrowing and prefer it over C-style assignment, except where a functional difference in behavior is needed (e.g. for `std::vector`)\n    * Class visibility labels are not indented.\n\nSome additional notes:","chars":1906,"tokens_est":476,"sha256":"ed95b90b60e2c0656a8cb4fcb1e1b3540aa69e578f3f4e4f391e16470dfd6f33"},{"id":"codestyle#language-specific-guidance-c~4","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C++"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#c-1","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C++]\n* Use the C++ standard template library and C++ algorithms as much as possible, but also be aware of known issues with some of them (e.g. bad runtime performance of `std::regex`).\n    * **Prefer the standard library** over implementing custom loops.\n    * Prefer **C++ collections and filesystem functions** over their C variants (e.g. `std::array` over C arrays)\n    * Prefer **range-based and iterator-based loops** over counter-based loops.\n    * **Prefer C++ types over C types**\n    * Wrap C library code in C++ code to provide a clean C++ interface first.\n    * **Use `class enum` instead of `enum`** for enumeration values and do not use enum as \u201cinteger\u201d value aliases.\n    * Do not use inline or static in the same way they are used in C","chars":813,"tokens_est":203,"sha256":"4123ced60dc85f14857a9fe12791e003ef8276ba1660bcac42879672d9027fe9"},{"id":"codestyle#language-specific-guidance-c~5","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C++"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#c-1","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C++]\n> [!IMPORTANT]\n> The \u201c`static`\u201d keyword is one of the more confusing aspects of modern C++, particularly compared to C. The meaning of the keyword changes depending on whether it is used for a function, a global variable, a function-scope variable, a class method, or a class member.\n>\n> In general limit its use in C++ code to describe \u201cstorage duration\u201d of variables or for class methods (e.g. factory methods). Be mindful that even though since C++11 function-local static variables are initialized non-concurrently, this does not make consecutive _access_ of the object thread-safe as well. Also be mindful of the \u201cStatic Initialization Order Fiasco\u201d. Otherwise all the common established pitfalls and issues of global variables apply.\n>\n> `constexpr` definitions do not need to use the static keyword. `constexpr` implies const and const implies static storage duration by default.\n>\n> Be careful when mixing `static` and `inline`, as the inline keyword (short for \u201cdefined in-line\u201d) allows the same definition to exist in multiple translation units (and thus is allowed to violate the one-definition rule, or \u201cODR\u201d), enabling the linker to deduplicate all instances of the same function, which is the exact opposite of what \u201c`static`\u201d requires (local visibility and thus a distinct copy of the function in each translation unit).","chars":1402,"tokens_est":350,"sha256":"be4e7263ed447f5485f4df92c58760799a5707e1f08687b2fa4e6978801f6fb8"},{"id":"codestyle#language-specific-guidance-c-the-exception-qt-guidelines","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C++","The Exception: Qt Guidelines"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#the-exception-qt-guidelines","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C++ \u203a The Exception: Qt Guidelines]\nMany of Qt\u2019s core concepts were invented years before C++ added support for similar ideas, which means that much code interacting with Qt library functions and QObject-based instances requires violating some of the core language principles outlined above:","chars":353,"tokens_est":88,"sha256":"a361e834eead01d127a6da11bf09bb292b12ab08284deff2b169cd79890b5471"},{"id":"codestyle#language-specific-guidance-c-the-exception-qt-guidelines~2","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C++","The Exception: Qt Guidelines"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#the-exception-qt-guidelines","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C++ \u203a The Exception: Qt Guidelines]\n* Qt's ownership model predates modern smart pointers or references and thus requires passing around raw pointers:\n    * Any class derived from QWidget needs to be instantiated using bare new.\n    * Parent QObjects take ownership of children and will take handle destructing them appropriately\n    * Thus: **Do not call `delete` on a widget owned by a parent widget. Do not create widgets without attaching them to a parent widget.**\n* Qt's default string class QString was an early adopter of Unicode (like Windows or Cocoa on macOS) and uses a 2-byte encoding internally (which was adapted to become UTF-16)\n    * A QString needs to be converted between UTF-16 and UTF-8 when passing character data to any C-based API or when interacting with `std::string` instances.\n    * **There Ain\u2019t No Such Thing As Plain Text** (https://tonsky.me/blog/unicode/)\n* The lifetime of a heap object passed to Qt must be guaranteed to match or exceed the lifetime of the using/owning Qt object.\n* Lambda expressions can and should be used for callback-style programming as much as possible.\n    * **Be aware of lifetime issues however**: Any reference captured by a lambda needs to be \"alive\" for as long as Qt might potentially invoke the lambda expression. Use copy-based capture for scalar values.\n    * Note that a pointer is \"just\" a scalar value and is thus captured by copy, but there is no strong relationship between the copied pointer and the memory it is pointing to. The lifetime of the heap object needs to be ensured. Be mindful of the lifetime of whomever will be invoking the lambda.\n    * A pointer captured by reference can potentially be set to nullptr and checked within the lambda expression's body, but the lifetime of the pointer reference itself now needs to be ensured.","chars":1878,"tokens_est":470,"sha256":"f307697829c998bc95993bb35b32765e0874ed9327d781fa3cdad0a736bf3216"},{"id":"codestyle#language-specific-guidance-c-c-header-include-order","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C/C++ Header Include Order"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#cc-header-include-order","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C/C++ Header Include Order]\nPrefer to include the headers that the implementation itself needs (e.g. because a type or definition is used directly in the implementation) and do not rely on another header possibly having included the same file already. **This follows the \u201cinclude what you use\u201d rule**.\n\nWhen including headers, use the following order:\n\n```C++\n// Interface definition or \u201ccounterpart\u201d of current file\n#include \u201cinterface.h\u201d\n\n\n// File in the same directory as the current file _if_ header belongs to the\n// same \u201cimplementation\u201d.\n#include \u201cfile_in_working_directory.h\u201d\n\n\n// First party dependency from the same larger project that is \u201clinked\u201d with\n// the implementation\n#include <first_party_dependency/type_or_interface.h>\n\n\n// Third party dependency not part of the same project and \u201clinked\u201d with the\n// implementation.\n#include <third_party_dependency/type_or_interface.h>\n\n\n// C++ standard library includes\n#include <string>\n\n\n// C standard library includes\n#include <sys/socket.h>\n```\n\n> [!NOTE]\n> This specific order of includes helps in identifying potentially \u201cbroken\u201d headers without \u201cmasking\u201d the issue by including potential dependencies first.\n>\n> That issue can be avoided by following a simple procedure when creating a new interface and implementation pair: The initial implementation should always include the \u201ccounterpart\u201d interface header first and should compile just fine even with the \u201cempty\u201d implementation.\n>\n> The same applies to any first party and third party library headers: Including one by itself should not result in compilation issues or should not require any standard library headers being included first (if that\u2019s the case, the corresponding library header is badly designed).\n>\n> Putting the standard library includes last (and only including them if the implementation needs them) helps expose such malformed header files. While this scheme relies on convention (rather than enforcement by the language) it leads to self-contained headers and a cleaner set of includes.","chars":2084,"tokens_est":521,"sha256":"c032efce407ea5bd871c791f044352dac3e8cf869c20c73e52cde316e1e8548d"},{"id":"codestyle#language-specific-guidance-c-c-header-include-order~2","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","C/C++ Header Include Order"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#cc-header-include-order","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a C/C++ Header Include Order]\nAdditional rules for this guideline:\n\n* Includes within each block need to be sorted alphabetically with case-sensitivity enabled.\n* Do not create platform specific \u201cinclude blocks\u201d. If a single source file has to include a hodgepodge of platform-specific headers it usually suggests that the source file tries to do \u201ctoo much\u201d and the \u201cuglyness\u201d that the rule might lead to is the point. To quote the Google C++ Style Guide:**\u201cInstead of using a macro to conditionally compile code ... well, don't do that at all\u201d.**\n* Refactor the source file to be platform-specific and use CMake to add the appropriate file to the target for a specific platform.\n* Do not use double quotes to include any file not in the same working directory as the current source or header file. Compilers have been lenient and automatically attempt to use header include paths for all header files, so files might indeed compile nonetheless, but the additional context for the reader (\u201cthat header is provided by some other module/target in the project\u201d) is lost.\n\nSome header files will require breaking these rules. Well-known examples include:\n\n* `windows.h` might be required very early in an implementation, particularly when relying on the magic `WIN32_LEAN_AND_MEAN` define, as nested includes of the same header might break compilation in severe ways otherwise..\n* The BSD header `libprocstat.h` requires additional headers to be included in a specific order before its own inclusion (as documented in its man page).\n* If an impact of include order can be proven through testing, additional headers are allowed to break these rules. This is unavoidable given the legacy and preprocessor architecture of C and C++.","chars":1785,"tokens_est":446,"sha256":"0f1db80a8cc32a14d11b0e6e3026651c6ded2b8093a035f6b759efc6237aea51"},{"id":"codestyle#language-specific-guidance-objective-c-c","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","Objective-C/C++"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#objective-cc","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a Objective-C/C++]\nFor Objective-C/C++ code the Google Objective-C Style Guide (https://google.github.io/styleguide/objcguide.html) should be followed, which itself is based on Apple\u2019s [Cocoa Coding Guidelines](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html) and [Programming with ObjC Conventions](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html).\n\n> [!IMPORTANT]\n> The current Objective-C/C++ language standard of the project is **Objective-C 2.0**.\n\nThe additions and changes to the Google Style Guide are as follows (in the order the associated topics appear in the Google document):\n\n* **Naming**\n    * Use `camelCase` for functions.\n    * Use of the `g` prefix for global variables in file scope is permitted.\n* **Types**\n    * Always use the native 64-bit types (i.e., double for CGFloat).\n* **Comments**\n    * Use Apple\u2019s DocC format for documentation (https://www.swift.org/documentation/docc/).\n    * Use C++ comment style for inline comments.\n* **Cocoa and Objective-C Features**\n    * Use `#import` for all includes, follow the include order as specified for C/C++.\n* **Spacing and Formatting**\n    * Formatting is checked and can be applied by `clang-format`. The formatting generated by it supersedes any rules in the guidelines.\n    * Use 4 spaces for indentation, use spaces for alignment.\n    * The maximum line length is 120 characters.\n    * All code needs to use curly braces for all looping or branching statements. No exceptions.","chars":1660,"tokens_est":415,"sha256":"8c16948b80b88059c0de4d95bb2bf76c843d01e55a58da4452259cd80fb58120"},{"id":"codestyle#language-specific-guidance-swift","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","Swift"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#swift","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a Swift]\nFor Swift code the Google Swift Style Guide (https://google.github.io/swift/) should be followed as well as Apple\u2019s Swift API Guidelines (https://www.swift.org/documentation/api-design-guidelines/).\n\n> [!IMPORTANT]\n> The current Swift language standard of the project is **Swift 6**.\n\nThe additions and changes to the Google Style Guide are as follows (in the order the associated topics appear in the Google document):\n\n* **General Formatting**\n    * Formatting is checked and can be applied by `swift-format`. The formatting generated by it supersedes any rules in the guidelines.\n    * Use 4 spaces for indentation, use spaces for alignment.\n    * The maximum line length is 120 characters.\n\nSome additional notes:\n\n* **Use the Unmanaged type and associated protocols to create retained or unretained opaque pointers to share with C APIs.**\n    * Use `passRetained` to pass an opaque pointer with an incremented reference count to a C API.\n    * Use `takeRetained` to take ownership of that reference count in Swift code and allow normal lifetime management to take over.\n    * Use `passUnretained` and takeUnretained to pass/receive pointers without influencing their reference count.\n    * **Object lifetime has to be manually ensured, and is thus unmanaged**\n* Use extension to implement protocols in code blocks separate from the core type implementation.\n\n```Swift\nclass MyType {\n    // Basic implementation\n    fileprivate let memberVariable: String\n\n\n    init(argumentOne: String) {\n        self.memberVariable = argumentOne\n    }\n}\n\n\nextension MyType : SomeProtocol {\n    func someProtocolMethod(argument: String) -> String {\n        return \u201c\\(memberVariable) \\(argument)\u201d\n    }\n}\n```\n\n* **Prefer functional patterns as much as possible over C-style loops.**\n    * When a loop is still preferable, use the native Range type and enumerated loops if a counter value is required:\n\n```Swift\nfor i in 0..<someValue {\n    doTheThing()\n}\n\n\nfor (i, theThing) in theCollection.enumerated() {\n    doTheThing(with: theThing);\n    print(\"I am on iteration \\(i) here...\")\n}\n```","chars":2144,"tokens_est":536,"sha256":"3cb10d59b48b3a75516d9b30cf9fec872c29c9c6505a45f8f9ffd4f5239815b2"},{"id":"codestyle#language-specific-guidance-objective-c-c-and-swift","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","Objective-C/C++ and Swift"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#objective-cc-and-swift","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a Objective-C/C++ and Swift]\n* **Be mindful of reference counts** when sharing Objective-C/C++ or Swift object instances or their data with external code:\n    * Explicitly increment the reference count on an object to ensure its not deallocated when the current function scope is left and to ensure that the pointer shared with C code is kept alive\n    * Balance that reference count on an object when the external code calls for its \"destruction\" by decrementing the reference count - **do not manually deallocate the object**, instead let its reference count go to `0`\n* Wrap code that potentially creates a lot of new heap objects in autoreleasepools within a loop body to allow the reference counts to be evaluated early within each iteration\n    * This can potentially help keeping the memory footprint of each loop iteration at the same level\n* Prefer language specific collection and string types over C array or character pointers.\n    * For Objective-C/C++, prefer `NSString`, `NSDictionary`, `NSArray`, `NSSet`, and others\n    * For Swift, prefer `String`, `Dictionary`, `Array`, `Set`, and others\n    * Swift and Cocoa types are bridged and interoperable\n* **Prefer Objective-C/C++ blocks and Swift closures over lambda expressions**","chars":1304,"tokens_est":326,"sha256":"163940050276e33285aa14547e9785824c9c8dab44c2a97c774429acbfd23090"},{"id":"codestyle#language-specific-guidance-cmake","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","CMake"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#cmake","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a CMake]\nCMake underwent a big philosophical change with version 3 of the build system generator, which established the notion of \u201ctargets\u201d with associated \u201ctarget properties\u201d that describe a target\u2019s needs, including compiler arguments, linker flags, preprocessor definitions, and more.\n\nThe project\u2019s build system was rewritten a few years ago to make full use of these \u201cmodern\u201d CMake patterns and approaches, and thus requires all new CMake code to follow the same principles:\n\n* Refer to \u201cModern CMake\u201d (https://cliutils.gitlab.io/modern-cmake/README.html) for general guidelines about how to write modern CMake code.\n    * **Always prefer targets** and the use of target properties over magic global variables\n    * **Prefer generator expressions** over explicit branches in CMake code, if it makes the overall code clearer\n* **Use 2 spaces for indentation** and spaces for orientation\n* Use `UPPER_SNAKE_CASE` for cache variables, global variables, and file-local variables\n    * Use `snake_case` for function names and function-local variables\n    * Use an `_UNDERSCORE_PREFIX` for \"private\" variables that need to exist in the global or file-local scope\n\n> [!NOTE]\n> Macros differ from functions in that they do not have a function-local scope. A macro body is effectively put into the scope it is called from and thus shares the variable scope.\n\n* Pass variables to functions by their name, use `${}` dollar expansion to pass their value\n* **Always use double quotes for strings**\n* Prefer using functionality either available via CMake itself or available for specific generators over custom code that runs at configure time\n    * Particularly when multi-config generators for Visual Studio or Xcode are used, code running at configure time does not have access to the \"actual\" build configuration that will be used by the IDE and thus is incapable of achieving its potential goal anyway.\n\nIt is important to remember that CMake does not represent \u201cthe build system\u201d, but rather is a \u201cbuild system generator\u201d that translates the abstract dependency tree of \u201ctargets\u201d into an actual build system or IDE project.","chars":2180,"tokens_est":545,"sha256":"e9136d92bfcdc218f4dd706e30eb154b7eaff72539cf467bb887a8fff9d7a0cf"},{"id":"codestyle#language-specific-guidance-json-and-yaml","doc":"codestyle","group":"project","tier":"core","kind":"prose","breadcrumb":["Reducing Potential For Errors","Language Specific Guidance","JSON and YAML"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md#json-and-yaml","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CODESTYLE.md","text":"[Reducing Potential For Errors \u203a Language Specific Guidance \u203a JSON and YAML]\nBoth file formats are predominantly used for build system configuration or continuous integration, but are still subject to a limited set of rules:\n\n* **Use schema files as much as possible** to ensure that a given JSON or YAML file uses correct structure and - as far as possible - valid values.\n    * Some editors can pull up common schema files when a loaded JSON or YAML file has a specific file name or sits in a directory of a specific name.\n* Use `camelCase` for variable names\n    * **Exception:** Job names for GitHub action workflows commonly use `dash-case` for the job names.\n    * **Exception:** If the key of a variable is used for an underlying system e.g., to define environment variables in a shell environment that commonly uses `UPPER_SNAKE_CASE` names.\n* Use **double quotes** for **key names** and **string values** in JSON files.\n* Use **single quotes** for **complex strings in YAML files** that might otherwise not be correctly interpreted as strings, quoting is otherwise not necessary.","chars":1088,"tokens_est":272,"sha256":"e0311f86f18c2fb819d8f8b087b98217b0f63ebaa1113b8e48a01373bc688ef2"},{"id":"constitution#constitution","doc":"constitution","group":"project","tier":"core","kind":"prose","breadcrumb":["Constitution"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONSTITUTION.md#constitution","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/CONSTITUTION.md","text":"[Constitution]\nThis repository is governed by the **[Constitution of the obs-rust Project](https://github.com/obs-rust/constitution/blob/main/CONSTITUTION.md)**.\n\nIt is the supreme governing document of the obs-rust organization. Nothing in this repository, including [CONTRIBUTING.md](CONTRIBUTING.md), supersedes it.","chars":318,"tokens_est":80,"sha256":"6ff7b8069da23b83ba3820418e575a9d7dd228fe7089938a058780f61e385e0f"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#ci-cache-audit-2026-10-17","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nImplementation and measurement tracker:\n[obs-studio#1286](https://github.com/obs-rust/obs-studio/issues/1286).","chars":368,"tokens_est":92,"sha256":"993790b37dad2ededd8c5a022392c4fec5ddbdf22ebca044d341ee47e7a5ea4c"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-current-executive-verdict-october-18-utc","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Current executive verdict \u2014 October 18 UTC"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#current-executive-verdict--october-18-utc","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Current executive verdict \u2014 October 18 UTC]\n**The latest full native validation is successful.** Run\n[39089156757](https://github.com/obs-rust/obs-studio/actions/runs/39089156757)\nat `df86995022` passed all seven app builds: Ubuntu OFF/ON, Windows x64/arm64,\nmacOS x86/arm64 and Flatpak. Native Rust tests, Tier 2 and nightly scans also\npassed. Linux OFF/ON each registered 296 tests with zero failures; CTest took\n314.80 / 304.42 s. Both Ubuntu modes published compatible snapshots.\n[Current full-run and producer evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-ubuntu-compatible-producer.json).\nThe earlier full run at `2f9bf8d77` also passed; its distinct 295-test results\nremain [recorded separately](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-full-warm-validation.json).","chars":950,"tokens_est":238,"sha256":"5c3f69e77997e8d1c87cd4a091ac2443249cda2969f343b5a46856ef33418aaa"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-current-executive-verdict-october-18-utc~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Current executive verdict \u2014 October 18 UTC"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#current-executive-verdict--october-18-utc","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Current executive verdict \u2014 October 18 UTC]\n| Finding | Verified result | Recommendation/status |\n| --- | --- | --- |\n| Native compiler reuse | Linux Tier 2 784/785 cached; Windows Tier 2 308/309 cacheable hits | Preserve native compiler stores |\n| Warm Ubuntu ON | Full job 684 \u2192 435 s; build 602 \u2192 324 s, in unmatched observations | Keep the working ON seed; measure durability |\n| Ubuntu OFF fallback | 43/361 calls cached; mixed state 9,526 MiB; save skipped | #1371 verified: later OFF restored the exact seed and achieved 208/345 cacheable hits; remaining misses and retention unresolved |\n| Embedded Rust store | All eight expanded soldr lanes reported no embedded session | #1372 disables transport; #1380 retired retention and the queue janitor reclaimed 183,330,575 bytes |\n| Compiler correctness | Rust stale-source/target blockers remain; a separate rapid-edit native C probe also returned stale output | Keep Rust bypass; follow native freshness upstream #1935 and avoid deeper reuse without validation |\n| Startup incident | Local reproduction plus PR, queue, master and full-run verification | #1365 verified; #1355 closed |\n| Storage headroom | Post-run listing summed to 12.43 GB; separate usage API disagrees; useful plugin seeds later absent | Resolve global-budget policy and preserve queue-useful seeds; no stable-headroom claim |\n| Representative queue throughput | Product-code queue observation 843 s; older unmatched median 954 s | Full post-rollout day still required; no causal speedup claim |\n\n**Build improvements are real but scoped.** The isolated libobs experiment\nmeasured median CPU 63.482 \u2192 46.620 s (26.6% lower); uncached wall\n9.749 \u2192 9.407 s had overlapping ranges. The broader app's historical\n315 \u2192 198 s result is a different benchmark. Neither establishes the\ncurrent merge queue's end-to-end improvement.","chars":1877,"tokens_est":469,"sha256":"4c50f516fd415d6839613ff09dce8172e25dce1feaf56beeda10f9de83dd8023"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-current-executive-verdict-october-18-utc~3","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Current executive verdict \u2014 October 18 UTC"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#current-executive-verdict--october-18-utc","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Current executive verdict \u2014 October 18 UTC]\nThe plot shows all three trials and min\u2013max ranges. Its warm panel excludes\nthe initial seed build and uses a separately identified grouped revision.\n[Raw trials and reproducible plotting script](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/libobs-2026-10-17/plot_trials.py).\n\n**Next priorities:** investigate the remaining Ubuntu OFF misses,\nresolve the independently reproduced recording-wait race blocking #1362,\nrestore durable retention of the measured plugin seeds, and collect at least\none representative post-rollout day. Qt publication\nreuse and skipped upload are verified for one docs-only pair. The proposed\nqueue-only publisher needs a transport compatible with temporary queue refs;\ncross-run artifacts are feasible, but that architecture has not been deployed.","chars":906,"tokens_est":226,"sha256":"5a7e0cec9e1449a94e9350cf1a2b868543993914fe98fb2d7869d5e8a7108981"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-retention-verification-after-the-full-run","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Retention verification after the full run"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#retention-verification-after-the-full-run","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Retention verification after the full run]\nPR #1380 merged after successful queue run\n[39088853334](https://github.com/obs-rust/obs-studio/actions/runs/39088853334).\nAll seven setup-soldr callsites already disabled embedded compiler-store\ntransport; retiring its unused family allowed the actual queue janitor to\ndelete all three remaining archives, totaling **183,330,575 bytes**. A fresh\ninventory contained zero such archives. The pinned offline executor selected\nexactly those three additional IDs, leaving its other decisions unchanged.\n[Executor and runtime evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-retired-embedded-cache.json).\nThis is verified storage reclamation, not a measured CI speedup or proof of\nstable headroom.\n\nThe subsequent master run 39088999741 passed. Its Tier 2 build restored\ncompiler, apt and timing snapshots and reported 785 cached / 1 cold native\ncompilations; OFF and ON each registered 296 tests with zero failures.\n[Post-retirement master observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-retired-embedded-master-validation.json)\nverify useful native reuse survived this change. A single passing run does\nnot establish durable retention or resolve the separate recording race.","chars":1397,"tokens_est":349,"sha256":"cc2ea0c3f99958dd323ef4dd4994f7abeac29caee341a23cebb05b2000b42505"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-retention-verification-after-the-full-run~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Retention verification after the full run"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#retention-verification-after-the-full-run","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Retention verification after the full run]\nThe useful touched-plugin compiler and apt seeds were present in the saved\n00:32 UTC inventory (28,117,319 and 147,539,809 bytes), but absent in the\n01:56 inventory. Seventeen completed janitor logs inspected from 00:42 to\n01:55 record no deletion of those IDs. These observations establish a retention\ngap; they do not identify the deletion actor or prove GitHub eviction.\n[Entries, inspected jobs and limitations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-plugin-cache-retention-gap.json).\nThe earlier 41/41-hit warm consumer remains valid historical evidence, while\nretention durability remains unresolved under #1269.\n\nA later master run, 39088389865, failed the independent recording-wait\nassertions in ON (296 registered CTests, one failing executable); OFF passed\nall 296. The successful full native run above predates this recurrence.\nThe proposed helper patch has not been applied, and no tests were skipped or\nrelaxed. See [the #1283 recurrence](https://github.com/obs-rust/obs-studio/issues/1283#issuecomment-6244581047).","chars":1176,"tokens_est":294,"sha256":"292ab69dec806ea1f5c0724590a6b51722c85881c4f0e21e22074a52c1fde6f9"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-retention-verification-after-the-full-run-post-compati","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Retention verification after the full run","Post-compatibility Ubuntu producer validation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#post-compatibility-ubuntu-producer-validation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Retention verification after the full run \u203a Post-compatibility Ubuntu producer validation]\nIn full run 39089156757 on `df86995022`, Ubuntu ON passed with 340 cached,\n5 cold and 16 noncacheable compiler calls. It restored the compatible ON\narchive, then saved a new 795,699,586-byte archive from 5,488 MiB of raw\nstate, below the 8,192 MiB guard. Restore/build/save took 19/234/18 s; the\nwhole job took 340 s, including successful GPU and app Tier 4 checks.\n[Producer metadata](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-ubuntu-compatible-producer.json)\nkeeps this separate from the earlier unmatched warm observations.\n\nOFF also passed. It found no compatible archive, built all 345 cacheable\ncalls cold (16 other calls noncacheable), and published its own snapshot:\n5,045 MiB raw, below the 8,192 MiB cap. The API confirmed both mode-specific\nseeds were present after the jobs completed. This verifies producer behavior\nunder #1371, replacing the previous mixed-mode 9,526 MiB save failure. A later\nOFF consumer is recorded below; stable retention remains unverified. The parent full run\nsubsequently passed all seven native app builds and the remaining checks.\n\nThe two new Ubuntu archives total 1,508,547,016 bytes, exceeding their pooled\nzccache family footprint of 1,153,433,600 bytes (shared with AppImage and\nsanitizer entries). The pinned janitor, run offline on the saved inventory\nwith a hypothetical clock beyond the grace window, plans deletion of the\nON archive and retention of OFF. Both were present in the real inventory;\nthis is a predicted future plan, not an observed deletion.\n[Exact entries, capacity and dry-run plan](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-ubuntu-retention-plan.json).\nMode-compatible restores repair correctness of reuse and snapshot sizing,\nbut cannot keep both modes warm under this allocation. Whole-budget policy\nremains unresolved under #1269; no global allocation change is claimed here.","chars":2107,"tokens_est":527,"sha256":"dd3c0816d6cac293e2c03a5adde9ddd5889684ebab22216c73a4e61f6f46db83"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-retention-verification-after-the-full-run-same-revisio","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Retention verification after the full run","Same-revision Ubuntu consumer results"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#same-revision-ubuntu-consumer-results","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Retention verification after the full run \u203a Same-revision Ubuntu consumer results]\nBoth Ubuntu jobs passed in consumer run 39090099191, at the same source\nrevision as the producer, and restored their exact new mode-specific keys.\n\n| Mode | Producer cached / cold | Consumer cached / cold | Build, producer \u2192 consumer | Whole job, producer \u2192 consumer |\n| --- | --- | --- | --- | --- |\n| OFF | 0 / 345 | 208 / 137 | 630 \u2192 359 s | 661 \u2192 405 s |\n| ON | 340 / 5 | 343 / 2 | 234 \u2192 212 s | 340 \u2192 324 s |\n\nEach job also reported 16 noncacheable calls. These are individual runner\nobservations, not a controlled hardware comparison or queue-throughput result.\n[Consumer logs, counters and step timing metadata](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-ubuntu-compatible-consumer.json).\nThe parent consumer workflow subsequently passed, including all seven native\napp builds and the remaining checks.\n\nOFF's runner image, GNU 15.2.0, zccache 1.15.5 and all 306 logged installed\npackage versions match the producer. That excludes the visible version\ndifferences; it does not explain the 137 cold calls. These logs lack\nper-compilation hit/miss records, so neither their affected units nor root\ncause are established. Keep this gap distinct from the now-verified cache\ntransport and compatibility fix.\n\nThe save actions still compressed the stores on exact hits, taking 14 s OFF\nand 11 s ON, then warned that the immutable keys could not be reserved.\nMerged #1381 adds a guard to skip this redundant work; subsequent Ubuntu\nexecution of that guard is not yet a verified runtime saving. Restore, build and integrity coverage remain required.","chars":1730,"tokens_est":432,"sha256":"7d5e846501a6ff0310ac3d9583372afd9076fb0187c5354ebd565fdd038c614a"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-retention-verification-after-the-full-run-native-journ","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Retention verification after the full run","Native journal diagnostic and correctness limit"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#native-journal-diagnostic-and-correctness-limit","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Retention verification after the full run \u203a Native journal diagnostic and correctness limit]\nPinned zccache 1.15.5 supports private sessions with `--stats --journal\n<path>.jsonl --profile`, followed by offline `zccache analyze --json`. Raw\njournal records contain arguments, outcomes, `miss_reason` and `miss_diff`.\nThis provides a diagnostic route beyond the current CI aggregate counters;\nno journal instrumentation has been enabled in production CI by this audit.\n\nAn isolated GCC 15.2.0 fixture exposed a separate freshness failure: compile a\nfunction returning 7, warm it, then immediately write return 8 with equal\nsize and a naturally changed nanosecond mtime. The journal reports a hit and\nthe cached executable returns 7; a fresh compile returns 8. The unwrapped GCC\nbinary reproduces the result, so it is not limited to the Nix compiler wrapper.\nA separate 200 ms settling control returns the correct value; the delay is\nnot a production workaround. Private cache/endpoint ownership keeps these\nfixtures separate from the shared daemon.\n[Source, executable results, stamps and raw journals](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-native-journal-freshness.json)\ncorroborate existing upstream [zccache#1935](https://github.com/zackees/zccache/issues/1935#issuecomment-6244827358).\nThis does not establish wrong output in the GitHub runs, explain OFF's 137\nmisses, or identify a specific internal shortcut from aggregate outcomes.\nThe compiler-cache correctness recommendation now includes this native\nrapid-edit limit alongside the existing Rust and restored-target blockers.\n\nUpstream 1.15.6 contains a separate Clang PCH timestamp-isolation fix\n([#1958](https://github.com/zackees/zccache/pull/1958)). Neither that release\nnor a production version bump is qualified by the measurements here; it is\nnot asserted to fix this GNU fixture or the observed CI misses.","chars":1975,"tokens_est":494,"sha256":"65fe6080221f7e028cfdedc630c39d7462728c5c4e86d52bcb48a0e55b0440ac"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#executive-assessment","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment]\nThe janitor failed because a fork PR received a read-only Actions token:\nall 32 deletion requests returned HTTP 403. Maintenance also delayed useful\nwork through its dependency graph. The merged fix keeps `ci-pre.yml` as the\ncommon pre-work entry point, runs only its janitor on trusted queue/master\nevents, and keeps maintenance outside build, required-gate and cancellation\ndependencies. A maintenance failure remains visible without blocking a merge.\n\nCompiler caching is effective. The remaining speed work is reducing needless\ntransfers, matching dependency snapshots to consumers, and shortening the test\ncritical path. Preserve useful caches and required integrity coverage; judge\nchanges by total gate time and runner cost rather than archive HIT messages.","chars":816,"tokens_est":204,"sha256":"fa8b327e965cef94b070bbf1dc6f0f1709f7cc297b65c407ce416927546962b8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-verified-rollout-results","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Verified rollout results"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#verified-rollout-results","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Verified rollout results]\nMaster [39061960882](https://github.com/obs-rust/obs-studio/actions/runs/39061960882)\ncompleted successfully with the following results:\n\n| Area | Observation | Decision |\n| --- | --- | --- |\n| Linux Tier 2 | 774/775 compilations cached; build step 53 s; complete build job 162 s | Keep the working compiler cache |\n| Qt frontend | 295/297 cacheable hits; restore 10 s, build/tests 55 s, save 6 s | Keep the 1.2 GB cache bound and realistic retention allowance |\n| OFF/ON tests | 286 registered per mode: 283 passed, 3 skipped, 0 failed; concurrent phase 327 s wall / 642 runner-seconds | Keep both implementations and parallelize independent modes |\n| Scheduling | Fast Gate 234 s; 3 s to build start; build 162 s; 3 s to test runners | Continue measuring runner waits as well as commands |\n| Rust compiler correctness | Pinned soldr 0.9.35 still returns a stale success in the nested-source probe | Retain the wrapper bypass pending the upstream fix |\n\nThe earlier serial test job took 578 s for 283 tests per implementation; the\nfirst parallel trial spanned 366 s and consumed 715 runner-seconds. The newer\n327-second phase above registered 286 tests per mode (283 passed, three\nPulseAudio device tests skipped). These are **unmatched phase\nobservations**, not proof of overall queue throughput improvement. Source,\nrunner placement and compiler-cache rollout conditions differ.\n\n[Machine-readable rollout results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-master-cache-rollout.json)\ninclude job IDs, phase times and independent compiler counters. The isolated\nlibobs results below remain separate from whole-app and CI build timings.","chars":1787,"tokens_est":447,"sha256":"4ec82d97ce8898d324dd17fd1786752e38954d00ee354a09d9e43ae61f300ac9"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-full-native-validation-and-cache-","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Full native validation and cache survival, 22:15 UTC"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#full-native-validation-and-cache-survival-2215-utc","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Full native validation and cache survival, 22:15 UTC]\nFull manual run [39074304012](https://github.com/obs-rust/obs-studio/actions/runs/39074304012)\nat `d315ee9c6` passed all seven native app builds: Ubuntu OFF/ON, Windows\nx64/arm64, macOS x86/arm64 and Flatpak. This confirms native unity/PCH build\nsuccess at that revision. The overall workflow **failed**: Linux OFF\n`test_slideshow_empty` returned `obs_startup=false` in group setup. The startup failure is tracked in\n[#1355](https://github.com/obs-rust/obs-studio/issues/1355). Subsequent local\nreproduction and the merged Xvfb lifetime fix are described below; that does\nnot establish the cause of every historical startup incident.\nThe X-display informational message also occurs in passing tests and does not\ndiagnose that failure. No test assertion was relaxed.\n\nThe Tier 2 build recorded 779 cached compilations out of 780. Its execution\noverlapped Fast Gate by 142 seconds and finished 57 seconds before the gate.\nThis verifies actual compile overlap, not a representative queue speedup.\nBoth Ubuntu app builds were cold (345 misses, 16 noncacheable calls each),\nretained their 5,045 MiB raw compiler state through the post-build size guard,\nand saved OFF/ON archives of 712,826,136 / 712,780,180 bytes. A subsequent\nwarm consumer is still required to establish their value.\n\nCache survival remains unresolved. The Tier 2 job restored the earlier seed\nand saved a refreshed `d315ee9c6` archive at 22:19:04 UTC; the 22:34 janitor\ninventory had no Tier 2 family. The PR janitors inspected in that interval\nwere skipped. These observations do not identify who removed the archives or\nprove global-capacity eviction. Separately, the 22:36 janitor explicitly\ndeleted the Ubuntu OFF archive under the pooled nightly LRU budget, retaining\nON. The family split protects Tier 2 from that pool's eviction decisions;\nit does not yet demonstrate durable retention.","chars":1965,"tokens_est":491,"sha256":"ec2f6635ae3fa8a71bde2b3923e86ae18f9ab1a81185a3e07152261c4fd018a8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-full-native-validation-and-cache-~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Full native validation and cache survival, 22:15 UTC"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#full-native-validation-and-cache-survival-2215-utc","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Full native validation and cache survival, 22:15 UTC]\nThe loss affected a real consumer: PR #1353's Tier 2 build\n[job 117521595282](https://github.com/obs-rust/obs-studio/actions/runs/39075342558/job/117521595282)\nmissed all Tier 2 compiler-cache restore keys at 22:33:13 UTC, then reported\n782 total compilations, zero cached and 782 cold. The successful job took\n426 seconds, including a 345-second build step. Its apt, soldr cook/build\nand CTest timing restores succeeded. This establishes an archive miss and\ncold compilation, but changed source and runner conditions prevent a matched\nruntime attribution. The disappearance therefore has an observed consumer\ncost even though its cause remains unresolved.\n\n[Job identities, times and observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-full-validation.json)\nkeep the successful native builds, failed test setup, cold cache production\nand unresolved cache loss separate. The full-day comparison remains open.","chars":1090,"tokens_est":272,"sha256":"58cda76021b52ce7968faa9283e2dac4451419e1d088981862c1fdc22c2a4ef8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-startup-fix-verified-in-the-merge","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Startup fix verified in the merge queue, 00:10 UTC October 18"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#startup-fix-verified-in-the-merge-queue-0010-utc-october-18","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Startup fix verified in the merge queue, 00:10 UTC October 18]\nPR [#1365](https://github.com/obs-rust/obs-studio/pull/1365) merged at\n00:10:16 UTC after queue run\n[39081091301](https://github.com/obs-rust/obs-studio/actions/runs/39081091301)\nsucceeded. Both implementations registered 295 tests with zero failures;\nCTest took 314.95 s OFF and 308.87 s ON. The slideshow test and the new\nstartup-failure diagnostic test passed in both modes. These observations\nverify queue coverage of the Xvfb `-noreset` fix; they do not replace the\npending full nightly run or establish a throughput improvement.\n\n[Machine-readable queue results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-startup-queue-validation.json)\nkeep this verification separate from the earlier PR results and local\nrepeated-startup experiment.\n\nLinux release setup also now uses `linux-host-v1`: PR\n[#1367](https://github.com/obs-rust/obs-studio/pull/1367) merged at 00:11:16 UTC.\nAll seven setup-soldr callsites now have explicit consumer profiles, and all\nLinux callsites distinguish host and container cache identities. The release\nworkflow itself was not dispatched; its subsequent warm-consumer performance\nremains unmeasured.","chars":1315,"tokens_est":329,"sha256":"8c44168826f82792d5ca7f683b01a856cd183e9730ca7d1e074336a1e9aefa68"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-master-validation-and-controlled-","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Master validation and controlled recording-wait reproduction"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#master-validation-and-controlled-recording-wait-reproduction","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Master validation and controlled recording-wait reproduction]\nMaster run [39081770788](https://github.com/obs-rust/obs-studio/actions/runs/39081770788)\npassed after the startup fix: both modes registered 295 tests with zero\nfailures; CTest took 314.72 s OFF and 308.66 s ON. Both the startup diagnostic\nand recording-shutdown test passed. [Raw master observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-startup-master-validation.json)\ndo not disprove the recording race seen in a different run.\n\nThe unchanged recording-shutdown test passed 20 local repetitions. A separate\nminimal fixture using the production helper, a real signal handler and an\natomic active flag demonstrated the inspected race: after `deactivate`, a\ncontrolled 100 ms worker pause before the inactive store lets the UI helper\nreturn `stopped=true` while `active=true`. Both signals were registered and\nthe worker joined cleanly. This confirms a possible ordering failure under\ncontrolled scheduling; it does not prove that pause occurred in historical\nCI. [Fixture source, source identities and results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-recording-wait-race-probe.json)\nare retained separately from the unchanged-test results. The follow-up is\nposted to the existing #1283 claim; production code and existing tests were\nnot edited.","chars":1510,"tokens_est":378,"sha256":"7c0427eb0f1fc7097d845b276abebc9f5e08a20831dd4defdd7d749fd8f2af8c"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-warm-ubuntu-consumers-and-full-ru","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Warm Ubuntu consumers and full-run write pressure"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#warm-ubuntu-consumers-and-full-run-write-pressure","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Warm Ubuntu consumers and full-run write pressure]\nFull run [39082733551](https://github.com/obs-rust/obs-studio/actions/runs/39082733551)\ncompleted successfully, including both Ubuntu jobs. Both restored the earlier ON archive (712,780,180 bytes).\n\n| Mode | Compiler results | Restore | Build, cold \u2192 warm | Job, cold \u2192 warm |\n| --- | --- | --- | --- | --- |\n| ON | 200 cached / 145 cold / 16 noncacheable | 23 s | 602 \u2192 324 s | 684 \u2192 435 s |\n| OFF, using ON fallback | 43 cached / 302 cold / 16 noncacheable | 28 s | 584 \u2192 574 s | 629 \u2192 619 s |\n\nThese are individual unmatched observations across revisions and runners,\nnot causal benchmarks. ON passed both Tier 4 checks and saved a 794,953,805-byte\narchive. OFF accumulated 9,526 MiB of mixed compiler state, exceeded the\n8,192 MiB save guard and published no OFF archive. The opposite-mode fallback\ntherefore provided limited observed reuse and prevented seeding this mode in\nthis run. Restore compatibility and snapshot growth must be addressed before\nclaiming both modes are warm. [Raw observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-ubuntu-warm-consumers.json).\n\nA mid-run listing summed to 12,218,332,982 bytes, above the declared 10 GiB\nbudget. Three Qt snapshots alone held approximately 3.48 GB; their observed\njobs each had only 2\u20134 compiler misses. The separate usage endpoint reported\n8,389,095,940 bytes, so these are different observations, not proof of an\natomic storage peak or a particular eviction actor. Avoiding redundant\nper-commit Qt snapshots is a remaining opportunity; preserve useful seeds.","chars":1701,"tokens_est":425,"sha256":"da78aaed9d379bc35741a6ef9576dc7e14456b4ad9bd4db47dbf7a57cd181dd0"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-warm-ubuntu-consumers-and-full-ru~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Warm Ubuntu consumers and full-run write pressure"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#warm-ubuntu-consumers-and-full-run-write-pressure","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Warm Ubuntu consumers and full-run write pressure]\nFast Gate also missed its host release cook key, then received HTTP 409\non reservation. Two later listings had no visible entry for that exact key.\nThe cause remains unknown; it is tracked in\n[setup-soldr#581](https://github.com/zackees/setup-soldr/issues/581).\n[Inventory summaries and explicit limits](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-cache-pressure-and-cook-conflict.json)\nkeep the publication conflict separate from compiler hits and storage totals.","chars":637,"tokens_est":159,"sha256":"88cd24b28208c8b381c16bddf5f88c678897b791ac1ff0330a7095c26f28b180"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-merged-transport-policy-and-a-pos","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Merged transport policy and a post-native-burst consumer"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#merged-transport-policy-and-a-post-native-burst-consumer","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Merged transport policy and a post-native-burst consumer]\nPR #1372 merged at 00:49:59 UTC. Its successful queue run\n[39084053608](https://github.com/obs-rust/obs-studio/actions/runs/39084053608)\nreports the embedded build-cache layer as disabled while restoring the exact\nhost cook archive. The action's policy layers are now toolchain, registry\nand cook; setup took 19.1 s in this configuration cohort. This verifies the\ntransport choice without claiming a product-code speedup.\n\nA later master consumer, job 117546797737 in run 39083903921, restored the\nfull native run's `2f9bf8d77` Tier 2 seed and recorded 784/785 cached\ncompilations, then saved a new seed. The later inventory retained that new\nseed. Thus the queue compiler store has observed useful consumption after\nthe native write burst. Registry and mini-tool cache misses still occurred;\nthis single observation does not establish durable overall retention.\n[Runtime policy and consumer evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-cache-policy-runtime.json).","chars":1153,"tokens_est":288,"sha256":"a3b5bc8e9a98d928d1c27b1d1c2d893ff9b89bf3b8affb9782d1f7c0715e3a8c"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-merged-transport-policy-and-a-pos~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Merged transport policy and a post-native-burst consumer"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#merged-transport-policy-and-a-post-native-burst-consumer","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Merged transport policy and a post-native-burst consumer]\nThe mode/configuration restore restriction #1371 is also merged, but no\npost-change Ubuntu seed/consumer measurement is claimed. PR #1374 merged and its master Qt producer (job 117551485401, run\n39084764880) passed: 298/300 cacheable hits, a new\n`qt-ccache-linux-inputs-v1-7d748b6e\u2026` snapshot, and a 5-second save step.\n[Producer metadata](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-qt-identity-producer.json) records the\nexact key and bytes. The subsequent docs-only consumer, job 117554246917 in\nrun 39086280608, passed its 15 registered Qt tests with the exact same key,\n298/300 hits, and its Qt\nsnapshot save step skipped. It reused the 1,161,888,219-byte archive without\nuploading another Qt snapshot. Build/tests still ran (74 s versus the\nproducer's 54 s); these unmatched runner observations do not establish an\nend-to-end speedup. [Consumer and upload evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-qt-identity-consumer.json).\n\nThe producer's parent workflow later failed the separate recording-wait\nassertions. A proposed private-helper patch passes two controlled ordering\ncases where the original fails, and ten invocations of the unchanged test\n(40 cases). It was offered on the existing #1283 claim for review;\nproduction source and assertions remain unchanged, and real app shutdown\nvalidation is still required. [Patch, probe source and results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-recording-wait-proposed-patch.json).","chars":1768,"tokens_est":442,"sha256":"9095960d16bdda45fc994e7bc21406c47a006a692496f1e85decab5e839059cc"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-merged-transport-policy-and-a-pos~3","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Merged transport policy and a post-native-burst consumer"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#merged-transport-policy-and-a-post-native-burst-consumer","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Merged transport policy and a post-native-burst consumer]\nThe unchanged group-hide audio test passed three isolated and sixteen\nconcurrent local invocations on four pinned CPUs (76 cases, no skips). This\nnegative sample did not reproduce #838; serial execution preceded concurrent\nexecution without cold/warm Mesa cache control, and local binaries were not\nmatched to the GitHub revision. No scheduling or assertion change was made.\n[Local probe and limitations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-audio-resource-probe.json).","chars":656,"tokens_est":164,"sha256":"990e56f4a2df259834f91773c720297ab8912cd4971776cb14bf2244cd440c9c"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-subsequent-consumers-and-availabi","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Subsequent consumers and availability failures"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#subsequent-consumers-and-availability-failures","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Subsequent consumers and availability failures]\n[Consumer and capacity observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-cache-consumer-followup.json)\nrecord actual reuse after the host/container namespace split (#1354):\n\n| Consumer | Cook result | Observed timing / outcome |\n| --- | --- | --- |\n| #1360 queue Fast Gate, documentation cohort | Exact host dev hit; 16,213 restored files | Setup 24 s, lint 53 s, job 97 s; successful |\n| #1362 initial PR Tier 2 build | Exact container release hit; 542 restored files | Setup 12 s; later standalone compiler-cache daemon failure |\n\nBoth new namespaces have observed master producers and later consumers.\nThese runs do not establish a product-code speedup or resolve the Rust\nstale-source blocker. A cook archive hit and a standalone compiler-cache\ndaemon failure describe different layers.","chars":968,"tokens_est":242,"sha256":"59571baef6fcb28d22e514bf2f0c84041948bb645d6dd11a2c507c245c7a8c69"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-subsequent-consumers-and-availabi~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Subsequent consumers and availability failures"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#subsequent-consumers-and-availability-failures","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Subsequent consumers and availability failures]\nThe latter failure preserved the first build's lost daemon connection and\nsubsequent connection-refused/cooldown messages. #1362 adds original-log and\ndaemon diagnostics, plus uncached real compilation during the existing single\nrecovery attempt when daemon status confirms unavailability. Local testing\nwith checksum-verified zccache 1.15.5 confirms unavailable status exits 1,\nvalid C compiles with `ZCCACHE_DISABLE=1`, and deliberate invalid C still\nfails with its current diagnostic. Latest PR run\n[39081664635](https://github.com/obs-rust/obs-studio/actions/runs/39081664635)\npassed the build but failed the unchanged `test_recording_shutdown_wait`\nstate assertions in both modes: each registered 295 tests with one failing\ntest executable. The startup diagnostic passed in both. Source inspection\nfound a race candidate: the wait may return on `deactivate` before the output\nreports inactive. Evidence is posted under the existing claim in\n[#1283](https://github.com/obs-rust/obs-studio/issues/1283#issuecomment-6243649634);\nno rerun, skip, or assertion change was made. This is not evidence of a cache\nrecovery failure. The daemon-death cause remains unknown, and #1362 is not\nyet merged. [Raw validation summary](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-recovery-pr-validation.json)\nkeeps build success separate from test failures.\n\nThe full dispatch's native Windows Tier 2 compiler cache hit 308/308\ncacheable calls, with 27 noncacheable calls. macOS Tier 2 passed 163\nregistered tests per mode in 112.59/100.78 seconds. The accompanying eight\nsoldr consumer observations preserve literal cook and embedded compiler\nsummaries separately: zero embedded session hits do not negate the Windows\nC/C++ cache's independently observed hits.","chars":1916,"tokens_est":479,"sha256":"a7fcfae67e8c025cad9f9bcaa9a39ae0aaf8957e59d699d769b332d09eb865f5"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-subsequent-consumers-and-availabi~3","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Subsequent consumers and availability failures"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#subsequent-consumers-and-availability-failures","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Subsequent consumers and availability failures]\nCapacity pressure is now quantified without claiming a deletion actor.\nThe starting inventory contained 8,380,452,969 bytes. Known new archives\nwritten before the 22:33 Tier 2 miss, and still present in the later\ninventory, added at least 3,777,435,796 bytes. Retaining both sets would\nrequire 12,157,888,765 bytes, exceeding the 10 GiB budget by 1,420,470,525\nbytes. This is a lower bound on required removals, not an observed peak.\nThe oldest accessed survivor was newer than the lost Tier 2 seed, and no\nknown janitor ran during the relevant interval. Global LRU eviction is a\nsupported inference; manual/external deletion remains unexcluded.\n\nThe impact reached the queue: #1353's subsequent merge-group build missed\nthe compiler archive and compiled all 783 units cold (290-second build step,\n395-second job). Source and runner differences prevent a matched timing\nattribution. Family isolation alone has not established durable retention.\n\nThat product-code queue run completed successfully in 843 seconds from run\ncreation to required-gate completion. Its Fast Gate job (209 seconds) ran\nentirely within the Tier 2 build job (395 seconds), verifying 209 seconds\nof actual overlap on a code change. OFF/ON each registered 293 tests with\nzero failures; CTest times were 316.03/316.71 seconds. Their concurrent job\nphase took 390 seconds and consumed 772 runner-seconds. All non-skipped\njobs together consumed 1,499 runner-seconds; these are observed job durations,\nnot a monetary billing calculation. The older code-queue baseline median\nwas 954 seconds across eight samples, with different source, test counts\nand runner conditions. One new sample does not establish a causal speedup\nor replace the required representative-day comparison.\n[Raw critical-path observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-code-queue-critical-path.json)\ninclude the independent OFF/ON results and coverage caveats.","chars":2083,"tokens_est":521,"sha256":"bcb65f5c206744489a95b84c1a0052558d465c86d35b476d424501ef9314e228"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-native-rust-profile-verification","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Native Rust profile verification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#native-rust-profile-verification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Native Rust profile verification]\nMaster [39063249804](https://github.com/obs-rust/obs-studio/actions/runs/39063249804)\npassed native Rust test jobs on both platforms with `--profile dev`:\n\n| Platform | Setup | Cook inside setup | Rust tests | Post-job setup-soldr save |\n| --- | --- | --- | --- | --- |\n| macOS arm64 | 34 s | 23.1 s | 89 s | 13 s |\n| Windows x64 | 53 s | 30.0 s | 125 s | 15 s |\n\n[Raw job observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-native-rust-cook-rollout.json)\nverify profile use and successful consumers. Compiler-wrapper session counters\nwere zero in both jobs; these are separate from dependency-cook reuse. The\nparent master run was later canceled after its native jobs and cache writers\nfinished; this is not a full-workflow pass or a matched speed comparison.\n\nWindows native Tier 2 also passed in this master run, using `--release` for\nthe static-library consumer and recording **304/305 cacheable ccache hits**,\none miss. It saved `windows-tier2-ccache-6d7b7f7a...`. These C/C++ counters\nare independent of the zero embedded zccache session counters printed by\nsetup-soldr. [Job timings and counters](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-windows-tier2-cache-rollout.json)\nconfirm that useful native compiler reuse survived the changes.","chars":1476,"tokens_est":369,"sha256":"311556506c4151713ed2449f68c8b760fdc15c3608448a2fbb32a4e045f7048d"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-native-rust-profile-verification~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Native Rust profile verification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#native-rust-profile-verification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Native Rust profile verification]\nmacOS native Tier 2 passed both implementation runs too: 161 registered,\n160 passed and one `test_svt_av1` skip each, with CTest times 96.45/101.15 s.\nIts release-profile consumer succeeded and saved `macos-tier2-xcas-6d7b7f7a...`.\nThe embedded compiler session recorded 22 hits and zero misses; this does not\nestablish an Xcode compilation-cache hit rate.\n[Native macOS observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-macos-tier2-cache-rollout.json)\nkeep these independent scopes explicit. The obsolete master workflow was\ncanceled after its native jobs and cache writers completed; it is not claimed\nas a full-workflow success. Full nightly verification remains separate.","chars":839,"tokens_est":210,"sha256":"700f79e5b0cea4d6c0a1b2f3ef7bc594222dd718757b8b67f635445bd551fbb8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-what-still-dominates-test-time","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","What still dominates test time"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#what-still-dominates-test-time","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a What still dominates test time]\nThe [serial-test profile](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-tier2-serial-profile.json)\nidentifies eight `RUN_SERIAL` tests totaling 174.47 s OFF and 165.17 s ON,\nagainst CTest wall times of 257.61 s and 248.03 s. The longest are async audio\ndelay (~59 s), PipeWire resume (~39 s), VLC pacing (~35 s), and audio clock\ndrift (23.52 s OFF / 14.55 s ON). The independent mode runners are balanced\nwithin 12 s of job wall time; dividing tests evenly by count would not balance\nthese durations. No test sharding or removal of serial isolation was shipped.\nA future experiment can isolate long suites in separate environments, measuring\nextra runner/setup cost and timing stability before changing their scheduling.\n\nBoth modes skipped `test_pulse_monitor_device`, `test_pulse_stream_restart`\nand `test_pulse_two_sources`; a green workflow is not evidence those device\nscenarios executed. Their environmental coverage remains a stated limitation.","chars":1103,"tokens_est":276,"sha256":"162cf71052223a606664c88efeba0117d660f2b19870b2f15a54ed4fd23134e8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-queue-admission-and-operating-str","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Queue admission and operating strategy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#queue-admission-and-operating-strategy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Queue admission and operating strategy]\n1. Queue admission covers compilation and integrity: selected builds, lint,\n   tests, ABI/behavior and differential checks. Security scans and release\n   packaging validation run nightly or through explicit manual/release runs.\n   Automatic GitHub CodeQL setup is disabled; merged #1327 puts the same four\n   languages in the existing Scheduled workflow and reports nightly failures.\n2. Queue/master janitors own retention. PRs restore useful snapshots; remote\n   setup-soldr saves are master-only. Local development saves remain enabled.\n3. Protect correctness first: retain the Rust wrapper bypass and cross-lane\n   toolchain safeguards. Do not trade stale-output protection for headline hits.\n4. Preserve one active master warming build and the latest pending snapshot.\n   Catch-up scope must retain paths from superseded pushes; #1328 implements\n   that after the plugin seed exposed a lost-path case. Follow-up #1330\n   protects the rollout baseline from older coalesced successes that did not\n   cover replaced pending pushes.\n5. Keep independent OFF/ON test runners and publish the extra runner cost.\n   Keep all applicable test coverage; no test sharding was introduced.\n\nNightly security migration is live-verified: manual Scheduled run\n[39064183327](https://github.com/obs-rust/obs-studio/actions/runs/39064183327)\npassed CodeQL for Actions, C/C++, Python and Rust. Automatic default setup\nremains disabled. [Per-language results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-nightly-codeql-verification.json)\nrecord durations and job IDs. This proves nightly/manual scanning works; the\nfull nightly run subsequently finished with the macOS integrity failure described below.","chars":1846,"tokens_est":462,"sha256":"cfa2999c7690ebaf8ad84e2afa049c34b29db3f737253fe9bd91847db5c825d8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-queue-admission-and-operating-str~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Queue admission and operating strategy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#queue-admission-and-operating-strategy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Queue admission and operating strategy]\nTrusted scoped-plugin warming is now observed: master run\n[39064132902](https://github.com/obs-rust/obs-studio/actions/runs/39064132902)\nsaved `targets-ccache-linux-713ceb3b...`, a 25,761,103-byte archive on master.\nThe touched-target build and save steps succeeded. The prepared measurement\nPR selects only `linux-v4l2`; its tracked compiler-input fingerprint matches\nthe seed revision, excluding Markdown and generated version metadata.\n[Experiment records](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-plugin-cache-experiment.json)\nretain the cold sample and trusted save. Subsequent PR compiler reuse is verified below; archive creation alone was\nnot used as proof of reuse.","chars":839,"tokens_est":210,"sha256":"94becc71ea4568d94cb5310f68fbde0a080a2b96c5ee756ff28b1d745371ed2b"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-scoped-plugin-follow-up-measureme","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Scoped plugin follow-up measurements"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#scoped-plugin-follow-up-measurements","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Scoped plugin follow-up measurements]\n| Condition | Compiler hits | Target step | Full job | Apt fetched |\n| --- | --- | --- | --- | --- |\n| Original cold PR | 0/41 | 57 s | 153 s | 147 MB / 13 s |\n| Warm compiler archive | 41/41 | 70 s | 169 s | 147 MB / 30 s |\n| Shared apt archive, wrong layout | 41/41 | 70 s | 190 s | 147 MB / 28 s |\n| Shared apt archive, layout normalized | 41/41 | 46 s | 145 s | 142 MB / 13 s |\n| Host-specific apt, cold | 41/41 | 57 s | 165 s | 147 MB / 21 s |\n| Host-specific apt, warm | 41/41 | 39 s | 148 s | 0 bytes |\n\nCompiler work fell from about 12 s to half a second, but this alone did not\nmake the first warm job faster. Package download/install overhead dominated.\nThe container archive supplied only about 5 MB of the host's package needs,\neven after 563 archives were relocated correctly. The large shared restore\nis therefore rejected. Merged #1335 instead uses a host-specific archive, with image rotation and\nan enforced 200 MiB producer cap from #1339. Trusted master has now saved\n147,542,391 bytes for image `20261012.163.1`. Its tracked compiler-input\nfingerprint matches the prepared report PR. The cold host run retained 323\npackages and took 165 s (57 s target step, 41/41 compiler hits). The subsequent\nPR restored all 323 packages in 2 s and downloaded zero package bytes, with\n41/41 compiler hits. Its target step took 39 s and full job 148 s: observed\nreductions of 18 s (31.6%) and 17 s (10.3%) respectively versus the host cold\nsample. Both used runner image `20261012.163.1` and the compiler inputs match\nthe trusted seed. This is one cold/warm pair, with network/runner variance;\nit is not the representative-day queue-throughput result.\nThese are individual unmatched runs, with network and runner variation;\n145 versus 153 s is not claimed as a robust causal improvement.","chars":1883,"tokens_est":471,"sha256":"2e7dfefa8e6f23276c39437926a6a8d9a2aac59a37f6304811087014a303302c"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-full-nightly-outcome","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Full nightly outcome"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#full-nightly-outcome","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Full nightly outcome]\n[Final job results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-nightly-final-results.json) show\nsuccessful Ubuntu OFF/ON app builds, macOS Intel/Apple Silicon, Windows\nx64/arm64, Flatpak, security analysis, Linux OFF/ON Tier 2 and Windows Tier 2.\nThe **overall run failed** at macOS `test_ingest_refresh_wait` /\n`failed_refresh_ends_wait`: its elapsed time exceeded 150 ms. The first\nimplementation run failed, so the second implementation was not validated.\n[Failure evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-nightly-macos-failure.json) and\n[#1334](https://github.com/obs-rust/obs-studio/issues/1334) preserve the failure\nand required diagnostics. Scheduling sensitivity is a hypothesis; no cache\ncause is established. The existing C test was neither weakened nor skipped,\nand no speculative whole-workflow retry was performed. This native build\nmatrix is distinct from the AppImage nightly release pipeline.\n\nThe full Ubuntu app cache has a separate confirmed defect: 13 baseline\nrestore events unpacked 5\u20136 GiB and then deleted the directory at a 2 GiB\npre-build threshold. [#1337](https://github.com/obs-rust/obs-studio/pull/1337)\nconsumes the cache first and bounds the subsequent save instead. Its shell\nregression covers 6 GiB, 8 GiB and over-limit snapshots; actual warm app reuse\nstill needs live verification. The 8 GiB guard is uncompressed per-run disk\nstate, not additional Actions storage allocation.","chars":1640,"tokens_est":410,"sha256":"c3659e8ab8e1ae089518aefd25c9d191567f689f222675f4e9c66812ba069f3f"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-measurement-status-and-limits","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Measurement status and limits"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#measurement-status-and-limits","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Measurement status and limits]\nThe before window is 2026-10-16 17:00 through 2026-10-17 17:00 UTC: 473 listed\nruns and 117 detailed samples. Successful code PRs (n=9) had median gate wall\n1,016 s; code merge groups (n=8) had median 954 s. Sampled canceled code PRs\nused 211.57 runner-minutes and sampled canceled code merge groups 194.45.\nThese cancellation costs describe the sample, not an extrapolated population.\nDocs/configuration cohorts are kept separate.\n\n[Baseline log observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-16_17-ci-baseline-log-observations.json)\npreserve the observed compiler counters, archive sizes, saved keys and test\ncounts. Logs were unavailable for 33 of 117 sampled attempts, all canceled;\nmissing counters are unknown. Repeated archive messages and independent\ncompiler scopes must not be summed into fictitious transfer/hit totals.\n\nThe [per-lane baseline](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-16_17-ci-baseline-lane-timings.json)\nseparates code/docs/configuration cohorts and records each literal step's\nsample count. Selected **code-cohort successful jobs** were:\n\n| Lane | PR n / median job | Queue n / median job | PR / queue median soldr setup |\n| --- | --- | --- | --- |\n| Fast Gate | 27 / 128 s | 19 / 139 s | 23 / 32 s |\n| Tier 2 build | 8 / 196.5 s | 7 / 179 s | 25 / 17 s |\n| Serial Tier 2 tests | 7 / 597 s | 3 / 598 s | Not applicable |\n| Qt frontend | 5 / 256 s | 10 / 161 s | Not applicable |\n\nThese include successful jobs in workflows that later failed or were canceled;\nthe JSON discloses parent outcomes. They are not the successful-gate sample\ncounts above. Step medians are not additive totals, and historical lane/shard\nnames remain separate. Missing/skipped step times do not become zero samples.\nThe collector now emits `lane_cohorts` so the same method applies after rollout.","chars":2032,"tokens_est":508,"sha256":"4cbcc4b5aa9923f4db1d0479b461b11b6d98c24a7958246022a09e679bcd1d60"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-measurement-status-and-limits~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Measurement status and limits"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#measurement-status-and-limits","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Measurement status and limits]\nA [post-nightly inventory snapshot](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-post-nightly-cache-inventory.json)\nrecords both cache APIs with collection timestamps. The itemized listing\ncontained 41 entries / 8,951,159,430 bytes; the usage endpoint reported 49 /\n10,617,481,983 bytes. The pinned contract interprets `10GB` as 10 GiB\n(10,737,418,240 bytes). These endpoints were asynchronous during concurrent\nwriters and janitor cleanup; their totals are not combined, and neither is\npresented as steady-state headroom. An earlier listing peaked near 10.70 GB.\nNightly app archives dominate the transient footprint; useful queue caches\nmust remain warm through the full representative-day comparison.","chars":855,"tokens_est":214,"sha256":"e4c1f239cdeff7b2bae866791fd45802869ce51673993f325d220dbd42138b65"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-confirmed-retention-pressure-afte","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Confirmed retention pressure after rollout"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#confirmed-retention-pressure-after-rollout","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Confirmed retention pressure after rollout]\n[Capacity and eviction evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-cache-retention-capacity.json)\nrecords a confirmed janitor eviction at 20:12 UTC: the 711,970,692-byte Ubuntu\nON archive exceeded the shared `zccache` family's 1,782,579,200-byte allowance.\nThe same sweep removed the 1,083,740,873-byte Windows x64 app archive under\nthe shared Windows family's 838,860,800-byte allowance. These deletions are\ndistinct from the removed Ubuntu pre-build purge. The Ubuntu OFF archive's\ndisappearance remains unattributed.\n\nThe analyzed family declarations at `92605bf02` sum to 16,951,069,900 bytes against the\n10,737,418,240-byte repository budget. This sums shape ceilings and platform\ncardinality; it is declared capacity, not simultaneous live usage. Increasing\nnightly allowances alone cannot establish durable retention. The pinned\njanitor protects only one newest entry per LRU family, so shared platform\nfamilies also allow independent consumers to compete for retention.\n\nBefore changing those bounds, allocate the whole budget from measured producer\nsizes and reuse value, prioritize queue-critical caches, and evaluate separate\nfamilies and producer limits. Confirm that retained nightly seeds survive long\nenough for a later consumer. Neither successful upload nor current headroom\nproves that requirement.","chars":1492,"tokens_est":373,"sha256":"9c527afcc8a5fa73a2a1a95842e11c92c69a2cb4bca1ecef8ff9d6d54a8a2be8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-confirmed-retention-pressure-afte~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Confirmed retention pressure after rollout"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#confirmed-retention-pressure-after-rollout","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Confirmed retention pressure after rollout]\nThe queue-priority retention fix separates `zccache-tier2-linux-*` before the\nbroad `zccache-*` prefix. It reserves a 550 MiB Tier 2 family and leaves the\nnightly families pooled at 1,100 MiB: combined 1,650 MiB versus the previous\n1,700 MiB. Cache keys stay unchanged. An offline probe of the pinned janitor\nreproduced deletion of a 475,427,223-byte Tier 2 seed after two newer Ubuntu\nwrites; with the split it protects Tier 2 and evicts the older nightly entry.\n[Raw before/after results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-tier2-cache-retention.json).\nThis isolates janitor protection without expanding its allowance. It does not\nprevent GitHub's global-capacity eviction, retain both Ubuntu variants, or\nresolve the overall declared-capacity mismatch. Live retention remains to verify.\n\nA transitional sample from 20:38\u201321:45 UTC listed 32 runs and inspected 12.\nThe collector previously treated JSON evidence reports as product code when\nthey accompanied CI changes. The corrected classifier treats only JSON under\n`docs/ci-evidence/` as documentation; product JSON remains code. Reclassifying\nthe saved actual diffs leaves the full-day baseline unchanged and moves four\ntransitional runs into CI/config. Its two successful queue samples (167.5 s\nmedian) are CI/config, leaving **zero successful product-code queue samples**.\nThere is only one successful product-code PR sample (772 s). These sparse,\nunmatched observations establish no queue speedup. See the\n[cohort correction and preserved old/new counts](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-ci-cohort-correction.json).","chars":1829,"tokens_est":457,"sha256":"14936b108581299f242cb430b3f444ec21f459c2f7b559f045ac22bc0a1609a1"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-executive-assessment-confirmed-retention-pressure-afte~3","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Executive assessment","Confirmed retention pressure after rollout"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#confirmed-retention-pressure-after-rollout","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Executive assessment \u203a Confirmed retention pressure after rollout]\nThe final after window must cover at least a full day of representative code\nPR and queue traffic following rollout. It has not elapsed. The first host\ncold/warm pair is complete. Repeatability over real traffic, Ubuntu app reuse\nafter the purge fix, the unresolved startup failure (#1355), stable cache\nheadroom and the representative-day comparison remain acceptance work under\n#1286. This report does not claim those requirements are complete.","chars":543,"tokens_est":136,"sha256":"e1130eda22484249522ae106cff34d3118cde6211f4a454da788c7cb0cc262ea"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-rebuilt-tier-","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Rebuilt Tier 2 cache: observed warm consumer"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#rebuilt-tier-2-cache-observed-warm-consumer","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Rebuilt Tier 2 cache: observed warm consumer]\nAfter the archive disappearance, master `635454ee7` rebuilt 783 units cold\nand saved a 188,194,495-byte compiler archive. Master `3ac86f74c` subsequently\nrestored it, recorded 734 cached / 49 cold compilations, and saved an updated\n193,854,787-byte archive. Only documentation changed between these revisions;\ngenerated revision metadata and runner placement still differ.\n\n| Observed job | Complete build step | Whole job | Compiler hits |\n| --- | ---: | ---: | ---: |\n| Cold producer 117527420015 | 300 s | 383 s | 0/783 |\n| Warm consumer 117530045228 | 117 s | 238 s | 734/783 |\n\n[Raw producer/consumer observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-tier2-reseed-cold-warm.json)\nestablish useful reuse of the smaller new archive. These are single\nobservations, not a matched causal benchmark. Survival through another full\nnightly write burst and representative-day traffic remains unverified.","chars":1095,"tokens_est":274,"sha256":"a50fdad058684fc89c22295d740453b48ccf81910641e442628352d83e8ada78"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-expanded-sold","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Expanded soldr lane observations"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#expanded-soldr-lane-observations","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Expanded soldr lane observations]\nThe earlier full dispatch also supplies\n[eight soldr lane observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-full-dispatch-soldr-lanes.json),\nincluding separate setup/post-step times and literal cook/embedded compiler\nsummaries. These are eight expanded jobs from the configured callsites,\nnot eight matched cold/warm experiments. Native test and static-library\nconsumers are kept separate from host cross-lint and Fast Gate. The Windows\nTier 2 standalone ccache hit 308/308 cacheable calls while its embedded soldr\ncounter was zero; those values describe different cache layers. Do not\ndisable the working native compiler cache based on the embedded counter.","chars":842,"tokens_est":210,"sha256":"c60b9f7c5ab62e830a65fb3899e27a2458da5d367498517cd3050e6b7d120fcc"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-existing-arti","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Existing artifact transport cost"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#existing-artifact-transport-cost","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Existing artifact transport cost]\nThe successful #1353 queue run uploaded its 177,835,306-byte execution tree\nin 3 seconds. OFF/ON consumers downloaded it in 2/4 seconds and unpacked it\nin 2 seconds each. [Literal step observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-tier2-artifact-transfer.json)\nshow inexpensive same-run transport for this payload. Cross-run producer\nselection/authentication and deep Cargo/object-state payloads are separate,\nunmeasured costs; this does not implement queue-only cache publication.","chars":669,"tokens_est":167,"sha256":"53fe4e0c8cce5c792603b699086d8e61847b8927f5aa874653d2a1cd6a14aeba"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-startup-block","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Startup blocker: local failure identified"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#startup-blocker-local-failure-identified","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Startup blocker: local failure identified]\nThe failure diagnostics in proposed #1365 let the real unchanged slideshow\ntest identify `XOpenDisplay` failure during hotkey initialization under\nconcurrent startup/shutdown. On a shared default Xvfb server, six of 68\nattempted invocations failed (workers stop at their first failure). With\nonly `-noreset` added, all 160 invocations and 1,920 startup groups passed.\nThe earlier Xlib-only probe had not reproduced this behavior. #1365 proposes\nthe server-lifetime fix for normal and repeated runs, preserving assertions,\nparallelism and failure propagation. Full fresh OFF/ON CI and queue validation\nremain pending; this local reproduction does not assign every historical\nstartup failure to the same cause.","chars":824,"tokens_est":206,"sha256":"170ad2d99d2df13fab71577d96ef947d7d7f431d6c059a034005a103ecad95b8"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-remaining-acc","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Remaining acceptance work"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#remaining-acceptance-work","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Remaining acceptance work]\nThe follow-up fixes also incurred iteration cost. Across eight completed\nruns on only the #1362/#1365 branches, canceled runs consumed 44.07 observed\nrunner-minutes and failed runs 58.08. Two active corrected runs are excluded\nfrom this snapshot. [Per-run observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-followup-iteration-cost.json)\nkeep this separate from steady-state gains, billing and total #1286 rollout\ncost. Failures included cache-daemon availability, startup and the new test\ninterposer; superseded runs also consumed work before cancellation completed.\nThese costs must not be hidden by reporting only successful final runs.\n\nThe pinned janitor's global-budget behavior is now checked directly:\n`cache/ops.py::janitor` plans family/stale/finding cleanup and applies\nnewest-entry/grace protection, without a global trim against `[cache].budget`.\nA [read-only synthetic executor probe](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-janitor-global-budget-probe.json)\nkept two current 6 GiB entries when their individual limits were 6 GiB,\ndespite a 10 GiB global budget. That fixture intentionally has invalid\naggregate declarations; it is not a live inventory or a claim that static\nbudget checks accept it. Lowering the global budget field alone would not\ncreate retention headroom. Whole-budget allocation and writer-burst policy\nremain tracked in #1269; family isolation is insufficient by itself.","chars":1655,"tokens_est":414,"sha256":"80d3247ae3a3155e15338ce8a1cf937d37df58f1fded5dfae1642dcc8fb01ba6"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-remaining-acc~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Remaining acceptance work"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#remaining-acceptance-work","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Remaining acceptance work]\nKeep the merged queue policy, Rust correctness safeguard, bounded useful\ncompiler caches and parallel OFF/ON runners. Validate the observed host-package\nbenefit over real traffic; an archive HIT alone is not a throughput result.\nValidate Ubuntu app reuse after removing the pre-build purge, and compare a\nfull day of code PR/queue traffic after the final cache rollout. The\nmacOS integrity failure was resolved by #1338. The startup fix in #1365\nhas passed PR, queue, master and full native validation; #1355 is closed.","chars":619,"tokens_est":155,"sha256":"99fc7f5a50a231141d6e37f2d308ac2bbc23362f3f4c88aad208a9b7ffea96e9"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-remaining-acc~3","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Remaining acceptance work"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#remaining-acceptance-work","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Remaining acceptance work]\n| #1286 requirement | Evidence/status at this checkpoint |\n| --- | --- |\n| 1. Match cook profiles and measure consumers | Explicit profiles landed in #1318; local dev/release/no-cook experiment and native consumers recorded. Representative post-rollout comparison remains pending. |\n| 2. Rust cache correctness | Reproduction still fails on pinned soldr; safeguard retained in #1290, upstream zccache#1943 linked. |\n| 3. Remove unused overhead | #1372 disables unused embedded transport in all seven callsites; #1380 reclaimed 183 MB of retired archives. Qt exact-key reuse skips duplicate publication. #1371 mode-compatible Ubuntu producers and later OFF reuse passed; remaining misses and whole-budget retention remain unresolved. |\n| 4. Warm scoped plugin builds | PR consumer verified 41/41 compiler hits, 323 packages and zero package download bytes; first unmatched job pair 165 \u2192 148 s. Both seed families were later absent. Warming works; durable retention and day-scale benefit remain unresolved under #1269. |\n| 5. Persist test timing | Nonempty OFF/ON producer, save, later restore and CTest consumption verified across master runs (#1288/#1311). |\n| 6. Match remote save policy | All seven setup-soldr consumers use master-only remote saves; PR/queue/local-save behavior verified (#1291). |\n| 7. Bound Qt cache | 1.2 GB compiler bound, 1.3 GB family, actual high hit rates and restore/save times verified (#1309). Overall repository headroom still needs the full-day view. |\n| 8. Unify nightly cleanup | Competing purge removed and startup permission failure fixed (#1289). #1338 resolved the macOS assertion; #1365 startup correction passed queue/master/full validation. Latest full run 39089156757 passed all seven app builds and nightly checks. |\n| 9. Isolated libobs measurements | Three trials per condition and raw wall/CPU/cache evidence published in #1306. Wall-time ranges overlap. |\n| 10. Shorten critical path | Independent OFF/ON runners and Fast Gate/build overlap landed. Product-code queue observation: required gate 843 s; Fast Gate 209 s entirely overlapped with build. Runner cost and coverage recorded; causal/day-scale gain remains unproven. |\n| 11. Durable before/after comparison | Full-day baseline and cohort-separated per-step collector ready. At least one full representative post-rollout day remains outstanding. |","chars":2453,"tokens_est":613,"sha256":"9b368cb2504dec6b9af834c9b78bb806cece60ba366bb14aa339ec2672c1b583"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-recommendation-and-acceptance-checkpoint-remaining-acc~4","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Recommendation and acceptance checkpoint","Remaining acceptance work"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#remaining-acceptance-work","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Recommendation and acceptance checkpoint \u203a Remaining acceptance work]\nThis checkpoint preserves the original scope. #1286 remains open while the\nUbuntu app reuse, stable budget behavior and representative-day\ncomparison are unverified. A green isolated job is not substituted for a\nfull workflow, and configuration/docs traffic is not substituted for code PRs.","chars":390,"tokens_est":98,"sha256":"edeb0980e233d7df67af45bbd21b471e15deb3205c5a58e11c51f32ecc0d00a7"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-isolated-c-libobs-build","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Isolated C libobs build"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#isolated-c-libobs-build","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Isolated C libobs build]\nMeasured the `libobs` target alone, with Rust libobs, frontend, scripting,\nbrowser, websocket and unit-test builds disabled. Source revisions were\n`be611227b18bc9df89ad089992e6f05eda6e53ba` (immediately before #1128) and\n`d145635326a4753e729a4767eb233911258ef82b` (explicit unity/PCH groups).\nBoth used the same Nix dependency environment, GCC 15.2, RelWithDebInfo,\neight parallel jobs, and an AMD Ryzen 7 3700X. This is a local Linux build\nexperiment, not a GitHub runner measurement or an application benchmark.\n\n| Condition | Before median wall (range), s | Current median wall (range), s | Before/current median CPU, s |\n| --- | --- | --- | --- |\n| Compiler cache disabled, 3 trials | 9.749 (9.654\u20139.899) | 9.407 (9.390\u20139.932) | 63.482 / 46.620 |\n| Warm ccache rebuild, 3 trials | 1.543 (1.541\u20131.556) | 1.435 (1.428\u20131.447) | 2.652 / 2.368 |\n\nThe uncached wall medians differ by 3.5%, with overlapping ranges; this\nexperiment does not establish a robust wall-time gain. CPU work fell 26.6%.\nThe warm wall difference is 0.108 s (7.0%). Neither result supports calling\nthe broader 315 \u2192 198 s benchmark a libobs-only improvement. The revisions\nalso contain intervening source changes, so this comparison measures the\ntwo actual revisions rather than isolating unity as the sole cause. Load\naverages are recorded per trial; no attempt was made to monopolize the host.\n\nWith ccache 4.13.6, every measured warm trial had 125/125 cacheable hits\nbefore and 39/39 now. The initial cache-population build is retained in the\nraw data but excluded from warm medians. Warm trials remove compiler\noutputs before building, so they are real rebuilds rather than Ninja\nno-ops. Current PCH outputs cover `libobs`, `libobs-objects`,\n`libobs-core-modules`, and `libobs-version`; the remaining group families\ninclude their own headers textually under the build policy.","chars":1906,"tokens_est":476,"sha256":"38ff171198df432fc315cf88c69d9bbd8d20543c8df27affcfcfe946589a5ddc"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-isolated-c-libobs-build~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Isolated C libobs build"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#isolated-c-libobs-build","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Isolated C libobs build]\n[Raw trials, compiler settings, environment and cache statistics](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/libobs-2026-10-17/)\nare committed with the report. Configure and Nix environment startup time\nare excluded from build timings. Existing application build directories and\nglobal caches were preserved; benchmark outputs and per-revision ccache\nstores live under the same checkout's ignored `build_ci_audit/` directory.","chars":539,"tokens_est":135,"sha256":"ee071a272a70895add0729dd9f2ba77e0fec57777ef94404c022e22fd104a6ed"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-isolated-c-libobs-build-reproduce","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Isolated C libobs build","Reproduce"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#reproduce","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Isolated C libobs build \u203a Reproduce]\nUse the same checkout, switching source revisions between experiments.\nSave the measurement helper under `build_ci_audit/` before checking out an\nolder revision that predates the helper. Run configure and measurement\ninside the same dependency environment, for example\n`nix-shell rust/tools/sanitize/shell.nix` on this Linux host.\n\n```sh\nmkdir -p build_ci_audit\ncp ci/benchmark_libobs.py build_ci_audit/benchmark_libobs.py\n# Switch to the revision being measured; use a new directory per revision.\ncmake -S . -B build_ci_audit/libobs-example -G Ninja \\\n  -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOBS_BUILD_NUMBER=1 \\\n  -DENABLE_FRONTEND=OFF -DENABLE_SCRIPTING=OFF -DENABLE_BROWSER=OFF \\\n  -DENABLE_WEBSOCKET=OFF -DENABLE_RUST_LIBOBS=OFF -DENABLE_UNIT_TESTS=OFF \\\n  -DENABLE_AJA=OFF -DENABLE_WEBRTC=OFF -DENABLE_QSV11=OFF \\\n  -DENABLE_VST=OFF -DENABLE_DECKLINK=OFF \\\n  -DENABLE_ZCCACHE=OFF -DENABLE_CCACHE=OFF\nuv run build_ci_audit/benchmark_libobs.py \\\n  --build build_ci_audit/libobs-example --output build_ci_audit/example-cold \\\n  --repetitions 3 --jobs 8 --rebuild\n```\n\nFor warm-cache trials, add ccache to the environment, reconfigure the same\ndedicated build with `-DCMAKE_C_COMPILER_LAUNCHER=ccache` and\n`-DCMAKE_CXX_COMPILER_LAUNCHER=ccache`, set a fresh per-revision `CCACHE_DIR`\nunder `build_ci_audit/` and `CCACHE_MAXSIZE=250M`, then run the helper with\n`--repetitions 4 --rebuild --cache-stats`. The first trial populates the\nempty cache; compare the next three. The helper requires `safe-rm` to move\nonly the dedicated build's compiler outputs to trash before each trial.","chars":1646,"tokens_est":412,"sha256":"213d74e72024929e2482c552fa8cb3dc5303d76ec02630e0047916ed70b9e54b"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-rust-compiler-cache-verified-blocker","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Rust compiler cache: verified blocker"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#rust-compiler-cache-verified-blocker","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Rust compiler cache: verified blocker]\nThe pinned soldr 0.9.35 still reproduces\n[zccache#1943](https://github.com/zackees/zccache/issues/1943). A nested Rust\nmodule changed from a comment to `compile_error!`, preserving its size and\nnanosecond mtime. Touching the unchanged crate root forced Cargo to invoke\nrustc. The cached command returned success with a HIT; the same command\nwith `SOLDR_RUSTC_WRAPPER=none` failed with the injected diagnostic.\n\n| Step | Exit | Probe error reported | Seconds |\n| --- | ---: | --- | ---: |\n| Warm valid source | 0 | No | 2.888 |\n| Cached changed source | 0 | No: false success | 2.052 |\n| Uncached changed source | 101 | Yes | 1.621 |\n\nThese durations describe a tiny correctness fixture, not a performance\nbenchmark. [Captured result](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-rust-cache-source-probe.json).\nKeep the local/CI gate's wrapper bypass until this reproduction passes on\nthe version we adopt. The standalone Linux C/C++ PCH cache upgrade in\n[#1265](https://github.com/obs-rust/obs-studio/pull/1265) is separate from\nsoldr's embedded Rust cache and does not prove this issue fixed.\n\nReproduce from the repository root with the same executable CI pins:\n\n```sh\nuv run ci/cache_source_probe.py \\\n  --directory build_ci_audit/source-probe-new \\\n  --soldr /absolute/path/to/soldr --expected-version 0.9.35\n```\n\nUse a new scratch directory for every run. The probe preserves logs and\n`result.json`, and exits 1 when the cache fails the source-safety check.\nThe explicit binary and expected-version check matter: in this checkout,\n`uv run` found soldr 0.9.34 on its environment PATH while the shell's soldr\nwas 0.9.35. Both reproduced the stale success; the table records the explicit\n0.9.35 run. No cache or daemon was purged to obtain these results.\n\nThe required gate's existing source probe now exercises a nested module\nedit preserving size and mtime, so it guards the workaround against this\nspecific failure mode rather than checking only an ordinary append.","chars":2107,"tokens_est":527,"sha256":"25e7e461f8344516c7ce86304358af711ccfe48ca241a7e74e751b2c55586d8f"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-timing-persistence-and-scheduled-retention","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Timing persistence and scheduled retention"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#timing-persistence-and-scheduled-retention","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Timing persistence and scheduled retention]\n[#1288](https://github.com/obs-rust/obs-studio/pull/1288) enables hidden-file\nuploads for `.tier2-cost` and rejects missing or unmeasured OFF/ON timing\nfiles before writing a cache. #1311 subsequently fixed the singleton-artifact\ndownload layout. Master run 39059448618 produced 282 measured records per\nmode and saved a 5,920-byte timing cache. Later run 39060831338 restored the\nnewer nonempty timing entry and completed both CTest modes. Producer,\npersistence and consumer evidence are recorded in #1286.\n\nThe [failed scheduled run](https://github.com/obs-rust/obs-studio/actions/runs/39002695404)\nwas rejected before job execution: its annotation says the nested `ci-mode`\njob requested `actions: read` but the caller allowed none. This was a workflow\npermission error, not a cache script failure.\n[#1289](https://github.com/obs-rust/obs-studio/pull/1289) grants that permission\nand removes the independent nightly compiler-cache purge. Cache retention\nbelongs to the existing merge-group/master janitor and `ci.toml`; scheduled\nbuilds reuse its warm entries. Dispatch 39064183327 subsequently started every\njob and completed the full native app matrix and security scans. Its separate\nmacOS ingest-refresh assertion failure (#1334) remains visible; it is not a\nstartup or cleanup failure.","chars":1367,"tokens_est":342,"sha256":"556d7960d04eb3f813bb81fd3a47983f968adcd3d463f4e524bf228055b2af81"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-a-day-of-baseline-ci-traffic","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","A day of baseline CI traffic"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#a-day-of-baseline-ci-traffic","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a A day of baseline CI traffic]\nThe window 2026-10-16 17:00 \u2192 2026-10-17 17:00 UTC contains 473 Pull/Push\nworkflow runs. Both workflow listings extend before the start of the window,\nso the listing limit did not truncate it. Detailed jobs and actual changed\nfiles were inspected for 117 runs, sampled across event/outcome and time,\nwith extra documentation candidates whose diffs were verified. These are\nsample medians, not weighted population estimates.\n\n| Successful gate cohort | Samples | Median created-to-gate time |\n| --- | ---: | ---: |\n| Code PR | 9 | 16m 56s |\n| Code merge group | 8 | 15m 54s |\n| Docs PR | 1 | 4m 01s |\n| Docs merge group | 2 | 6m 58s |\n| CI/config merge group | 2 | 2m 55s |\n\nThe sparse docs samples do not establish a stable typical duration.\nAcross the full listing, merge groups had 35 successful, 163 canceled and\n6 failed runs. The sampled canceled code merge groups alone consumed\n194.45 runner-minutes. That is observed sampled waste, not an extrapolated\ntotal, and the run outcomes alone do not establish why cancellation occurred.\nThe window spans earlier CI/build rollouts; this baseline cannot attribute\na later difference to any single cache or concurrency change.\n\n[Summary, outcome counts, listing coverage and per-lane medians](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-16_17-ci-baseline-summary.json)\nand [sample IDs, diffs, gate and runner times](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-16_17-ci-baseline-samples.json)\nare retained. Cache inventory in the summary is a snapshot at collection\ntime, not a reconstruction of cache contents at the historical window end.\nThe full raw run/job/cache responses remain under `build_ci_audit/metrics-before/`\nin the measurement checkout; the collector reproduces that evidence.","chars":1931,"tokens_est":483,"sha256":"4bf61b94c6b35e20e7334a5b73119eafe4513db6807e9f4a0609015de57a2888"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-a-day-of-baseline-ci-traffic~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","A day of baseline CI traffic"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#a-day-of-baseline-ci-traffic","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a A day of baseline CI traffic]\n`ci/cache_metrics.py` resolves source cohorts from actual compare diffs,\nincluding an unambiguous PR branch/lifetime fallback for older runs whose\nAPI metadata no longer contains a PR association. Missing/ambiguous diffs\nremain unknown. It reports latest run attempts only and does not reconstruct\noverwritten attempts. In addition, every merge-group CI Gate summary now\nlists completed setup/cache step durations from the already-fetched job\nmetadata, without adding another API request to the gate.\n\nPost-change measurements must use a separate window and preserve these\ncohort/coverage distinctions. The day-long post-change comparison remains\nopen until the configuration changes have landed and that window exists.","chars":779,"tokens_est":195,"sha256":"0f271257954944232543739fde0ca84ff1fb9c77f8d014cb71c27ddfd9ebaae0"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-unused-gate-compiler-cache-layer","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Unused gate compiler-cache layer"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#unused-gate-compiler-cache-layer","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Unused gate compiler-cache layer]\nMaster run [39056485478](https://github.com/obs-rust/obs-studio/actions/runs/39056485478),\nFast Gate job 117465447413, restored a 1.2 KB build-cache archive (four\nfiles, 1.8 KB inflated) in 0.7 s. Its final session counters were zero\nhits, misses and compilations; post-job save skipped the zero-compile\ndelta. The local gate explicitly bypasses this Rust compiler cache for\nlint, tests and cross checks because of the verified correctness blocker.\n\nMerged #1315 disables this layer only for deferred PR/merge-group Fast Gate runs,\nretaining cook and registry snapshots. The full-day sample contains 26\nPR and 18 merge-group Fast Gate session reports with no positive compiler\nhits (26 and 16 respectively had zero compilations). In contrast, 5/24\nmaster Fast Gate samples and 3/8 PR/queue cross-lint samples had positive\nhits. Keep full/master and cross-lint caching rather than extrapolating\nfrom the initial zero-counter run.\n\nThe Rust wrapper bypass does not establish that every compiler-cache\nconsumer is inactive: dependency cooking and C compiler work may still\nuse it. [Captured sample coverage](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-gate-cache-consumption.json).\nThis is a small measured operation to remove from the deferred path, not\na claim of a large CI gain. Cold cook may lose potential compiler-cache\nreuse after a lock change; retain the published post-job cook snapshots\nand measure total live setup/consumer time. Concurrent action phase\ntimes must not be summed as sequential wall time.","chars":1646,"tokens_est":412,"sha256":"690190dc67e0214484ab97c0b51887367bae25f2634315d9219d9edf21444441"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-additional-cache-inventory-codeql-overlays","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Additional cache inventory: CodeQL overlays"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#additional-cache-inventory-codeql-overlays","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Additional cache inventory: CodeQL overlays]\nThe cache API snapshot at 2026-10-17 18:39 UTC contained 43 entries totaling\n4,389,323,635 bytes (below the 10 GB repository budget). This is a live\nsnapshot, not historical baseline occupancy. Qt's newest entry was\n1,114,881,014 bytes; #1309 subsequently corrected its bound and allowance.\n\nAt that initial snapshot, GitHub's default CodeQL setup wrote\n`codeql-overlay-base-database-*` entries outside the explicit workflow files.\nThe snapshot included a 131,294,279-byte C++ base and Python bases around\n11 MB. They were undeclared then. PR run 39057119695, C++ job 117467259478,\nrestored the master overlay in about 3.7 s; master run 39057995138 saved a\nnew base in about 5.1 s. This demonstrated consumption, not a measured\nanalysis speedup against a cold run.\n\n#1316 subsequently declared a bounded 200 MB LRU overlay family. #1327 then\ndisabled automatic default setup and moved all four languages to the existing\nnightly workflow. The explicit nightly C++ job 117488229574 still uploaded\nan overlay base, so the bounded family remains relevant after that migration.\nSecurity analysis stays outside PR/merge-group admission. Its cache behavior\nis independent of the compiler-cache hit rates used to assess build speed.","chars":1299,"tokens_est":325,"sha256":"ab4cd6947fc173b97b9e079f6f5e1bd286381f376608db50eafec80d3dea1995"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-queue-publication-and-deeper-unit-test-caching","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Queue publication and deeper unit-test caching"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#queue-publication-and-deeper-unit-test-caching","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Queue publication and deeper unit-test caching]\nThe proposed single publisher must account for GitHub's branch-scoped caches:\ntemporary merge-group caches are not shared default-branch seeds. A queue\npayload could be promoted by an existing master-push workflow after verifying\nthe successful queue run and matching source tree. That publisher would be\nthe cache-write exception; ordinary jobs could enforce `cache-mode: read`.\nNo publication-policy change or promotion implementation is claimed here.\nGitHub caches are immutable, so refreshed payloads need generation keys.\n\nThere is also a GitHub-native alternative to master-side promotion: queue\njobs can publish compressed build-state artifacts, and consumers can select\nand download them across workflow runs. The official\n[artifact action](https://github.com/actions/download-artifact#download-artifacts-from-other-workflow-runs-or-repositories)\nsupports this with a run ID and token possessing `actions:read`. This means\nliteral queue-only production does not necessarily require external storage.\nArtifact storage is separate from the native cache allowance, with different\n[storage accounting](https://docs.github.com/en/billing/concepts/product-billing/github-actions).\n\nA read-only feasibility check listed #1353's successful queue artifacts and\ndownloaded its tiny lane-proof marker from a separate CLI session. Its\n177,835,306-byte Tier 2 execution-tree artifact remained available with one-day\nretention. This verifies discovery and authenticated cross-run access, not\nlarge-payload transfer performance or fork-job token behavior. The execution\ntree lacks objects/Cargo state; it is not itself a deep incremental cache.","chars":1715,"tokens_est":429,"sha256":"5ef3ac4685b7e59559481c62b997a4bb79adfdfe96224a64c85f95f4325cd753"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-queue-publication-and-deeper-unit-test-caching~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Queue publication and deeper unit-test caching"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#queue-publication-and-deeper-unit-test-caching","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Queue publication and deeper unit-test caching]\nBefore choosing this design, measure one queue-produced build-state archive\nand later PR consumption; validate producer repository, merge-group event,\nsuccessful required gate and compatibility metadata; bound retained generations\nand verify fork access. Preserve executable permissions inside the archive,\nkeep miss/expiry fallback to normal compilation, and retain current-source\ninvalidation safeguards. No artifact-backed cache producer or writer-policy\nchange has been implemented.\n\nDeep Rust state is already present: the pinned setup action's native macOS\npost-step saved a `full` archive with 8,238 files, and the local dev archive\ncontains test fingerprints and incremental state. With the pinned action's\ndefault `cook-delta: false`, a warm base selects no save layer. Measure bounded\ngeneration refresh and consumption before adding a duplicate target archive.\n\nThe existing Tier 2 execution-tree artifact is 177,234,558 bytes in run\n39069670404. It contains binaries/runtime files, excludes objects and Cargo\nstate, and currently transfers work from the build job to OFF/ON test jobs.\nExact-input reuse could save compilation work; it cannot replace executing\ntests, and it does not supply changed-source incremental reuse by itself.\n\n[A manual deep-cache probe](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-deep-test-cache-probe.json)\ndemonstrates a separate invalidation problem with the compiler wrapper disabled:\n\n| Condition after target restore | Observed result |\n| --- | --- |\n| Unchanged source | Unit-test binary reused and executed successfully |\n| Ordinary nested edit adding `compile_error!` | Recompiled; exit 101 with current diagnostic |\n| Same edit preserving size and nanosecond mtime | Old unit-test binary executed; false success |\n| Invalidate changed package's fingerprints | Recompiled; exit 101; unchanged dependency stayed cached |","chars":2014,"tokens_est":504,"sha256":"9f174e4d51da4314226be31544f4b0a8bf9368d69c1dff67846453ed95105409"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-queue-publication-and-deeper-unit-test-caching~3","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Queue publication and deeper unit-test caching"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#queue-publication-and-deeper-unit-test-caching","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Queue publication and deeper unit-test caching]\nThe guard quarantines package fingerprints without deleting the cached\ndependency. The fixture knows which package changed; automatic content-to-package\nmapping, generated/build-script inputs and full-workspace invalidation remain\nunimplemented. This validates a mechanism, not production cache safety or a\nperformance improvement. Preserve both existing safeguards while evaluating it.\n\nRun the probe in a new directory within this checkout:\n\n```sh\nuv run ci/deep_test_cache_probe.py \\\n  --directory build_ci_audit/deep-cache-new \\\n  --soldr /absolute/path/to/soldr --verify-guard\n```\n\n`--verify-guard` requires unchanged reuse, ordinary-edit rejection, guarded\nsame-stamp rejection and dependency preservation. Without that flag the probe\nexits 1 when it reproduces stale unit-test success. Logs and the archive remain\nin the chosen directory. No global cache or daemon is purged.","chars":960,"tokens_est":240,"sha256":"b41e2e8ae2069e0b4b7a2c17755a5899da3bfb9fdbb481e6d4dc25babf7ee8cf"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-queue-publication-and-deeper-unit-test-caching-native-","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Queue publication and deeper unit-test caching","Native fingerprint helper evaluation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#native-fingerprint-helper-evaluation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Queue publication and deeper unit-test caching \u203a Native fingerprint helper evaluation]\nStandalone zccache 1.15.5 already exposes `snapshot-fp-record` and\n`snapshot-fp-validate`, so the audit tested those native APIs before adding\nproduction package-mapping logic. Both experiments kept the Rust wrapper\nbypassed and preserved the modified nested source's size and nanosecond mtime\nthrough hydration.\n\n| Root package | Native source coverage | Validation report | Unit-test result after validation |\n| --- | --- | --- | --- |\n| `obs-deep-cache-probe` | 0 crates / 0 sources | 0 clean / 0 dirty | Old binary passed; current compile error absent |\n| `obs_deep_cache_probe` | 1 crate / 2 root sources; hyphenated dependency missing | 0 clean / 1 dirty | Old binary passed; current compile error absent |\n\nThe naming failure is concrete: the recorder looks for a `.d` file using the\nhyphenated fingerprint-directory basename, while Cargo emits a normalized\ntarget filename with underscores. The same construction remains in the\ninspected upstream source. It is tracked in\n[zccache#1959](https://github.com/zackees/zccache/issues/1959).\n\nThe control also establishes a separate semantic limit. Native validation\nrecognizes changed source when covered, but only future-stamps clean units;\nit leaves dirty Cargo metadata intact. It therefore cannot alone enforce\nfreshness for the preserved-timestamp case. The existing known-package\nquarantine rejects the edit and retains the dependency in both fixtures;\nautomatic production mapping and generated-input coverage remain unfinished.\n[Versions, source coverage, CLI outcomes and controls](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-18-native-fingerprint-helper.json).\n\nReproduce with a new directory and the pinned executables:\n\n```sh\nuv run ci/deep_test_cache_probe.py \\\n  --directory build_ci_audit/native-fingerprint-new \\\n  --soldr /absolute/path/to/soldr \\\n  --native-fingerprint-tool /absolute/path/to/zccache \\\n  --verify-native-guard\n```","chars":2084,"tokens_est":521,"sha256":"a2d3ec141c0de3224fa1eef0e55d8f648bb8a6f5602b699fc77a2916b1585394"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-queue-publication-and-deeper-unit-test-caching-native-~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Queue publication and deeper unit-test caching","Native fingerprint helper evaluation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#native-fingerprint-helper-evaluation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Queue publication and deeper unit-test caching \u203a Native fingerprint helper evaluation]\nThe current pins return 1 because native coverage/invalidation is insufficient.\nRepeat in another new directory with `--package-name obs_deep_cache_probe`\nfor the naming control. Existing `--verify-guard` still verifies only the\nknown-package quarantine. These are manual experiments; no native helper\nwas enabled in production CI and no tests were skipped.","chars":474,"tokens_est":118,"sha256":"d39424cb4875cc2219c09b833e80409398faec7fd41f012c8881629f1e071d80"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-queue-publication-and-deeper-unit-test-caching-build-s","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Queue publication and deeper unit-test caching","Build-script inputs can defeat deep reuse"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#build-script-inputs-can-defeat-deep-reuse","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Queue publication and deeper unit-test caching \u203a Build-script inputs can defeat deep reuse]\nThe workspace-shaped delta experiment produced a 62,371,228-byte delta versus\na 188,072,837-byte updated full snapshot. Both restores nevertheless rebuilt\n`obs-util`. Cargo's diagnostic identified the same source path changing from\n1792262706.251336821 to 1792262706.251000000 seconds after hydration. Its\ndefault build-script package scan treated the lost sub-millisecond precision\nas changed input. Restoring that one exact original timestamp eliminated the\nrebuild in a diagnostic control; no source bytes changed.\n\nThe downstream mitigation declares the actual `obs-util/build.rs` inputs:\nitself and the applicable Windows C shims. Rust sources remain rustc inputs.\nAfter rebuilding and saving this configuration, an unchanged full restore\nkept test products fresh without timestamp edits: compile-only command\n0.816 s, versus 6.181 s before the mitigation in the earlier diagnostic run.\nThese are individual local observations, excluding network and test execution;\nthe new snapshot's save/restore still cost 12.620/16.628 s. No whole-CI gain is\nclaimed. [Raw results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-obs-util-build-inputs.json).\n\nThe upstream replay-precision issue remains\n[soldr#3851](https://github.com/zackees/soldr/issues/3851). This mitigation\ndoes not address same-stat source edits or justify removing the correctness\nsafeguards. Native Windows input tracking still requires CI validation.","chars":1606,"tokens_est":402,"sha256":"8d85ec91eb8269c3e985274b552bc6a4407d2899e5ae44c06914fd016c9d0956"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-queue-publication-and-deeper-unit-test-caching-host-an","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Queue publication and deeper unit-test caching","Host and container cache identities"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#host-and-container-cache-identities","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Queue publication and deeper unit-test caching \u203a Host and container cache identities]\nThe pinned janitor's superseded-generation check groups by family and key\nshape, ignoring GitHub cache version. An offline probe marks a valid host\narchive superseded by a newer container archive with the same cook key and\ndifferent version, even though both fit the family allowance. The observed\n18,020,243-byte Linux release entry's version matches the container archive\npath, not the host path. This does not prove a particular historical deletion.\n\nUse the existing `cache-key-suffix` input to distinguish `linux-host-v1`\nand `linux-container-v1`, keeping compatible host jobs together. The pinned\nsuperseded-generation check retains both namespaced fixtures. Profiles and\nmaster-only saves stay unchanged. The input also namespaces the action's Rust\nbuild-cache: first consumers can miss until trusted master seeds exist.\nRegistry, toolchain, mini and standalone C/C++ keys stay shared as before;\ndisabled layers stay disabled. No warm entry is forcibly deleted.\n[Identity probe and side effects](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-cook-layout-namespaces.json).\n\nFull validation's Fast Gate independently reported a base restore miss and\nlater reservation conflict. Its cause remains unproven; namespace isolation\nis not evidence that this conflict is fixed. Measure fresh seeds and later\nconsumers before claiming improved deep reuse or a throughput gain.","chars":1556,"tokens_est":389,"sha256":"1e80fb683b9a8aba1c8801e1a277063943fb72f760f63330fdd9ef0a3730e939"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-post-job-cook-profile-comparison","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Post-job cook-profile comparison"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#post-job-cook-profile-comparison","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Post-job cook-profile comparison]\nThe pinned action saves its cook archive **after** the job's consumers, so\nan archive initially cooked with `--release` can contain dev/test artifacts. A pre-consumer\nsnapshot is not an adequate model for disabling this cache.\n\nThe isolated local experiment used soldr 0.9.35, four Cargo jobs, identical\ncompiled Rust inputs and dependency environment, wrapper bypass enabled\nfor consumers, and post-job snapshots taken after workspace clippy and\n`obs-util` tests. Each restored snapshot ran warm cook, workspace clippy\nand the same tests. Policy order rotated across three trials per scenario.\nA forced core rebuild touched the unchanged obs-util crate root and\nrequired actual recompilation in the log; source bytes were preserved.\n\n| Policy | Unchanged median (range), s | Core rebuild median (range), s | Archive bytes |\n| --- | ---: | ---: | ---: |\n| release cook | 57.259 (56.007\u201357.611) | 67.869 (67.801\u201390.592) | 205,118,438 |\n| dev cook | 36.170 (35.849\u201340.269) | 82.736 (48.692\u2013139.906) | 187,723,562 |\n| no cook/archive | 72.136 (71.493\u201374.113) | 78.291 (73.830\u201379.011) | 0 |\n\n[Raw trial results](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-17-soldr-cook-post-job.json) include\nindividual command, restore and warm-cook durations and load averages.\nThe totals include local restore plus consumer commands, excluding network\ntransfer, formatters, Dylint and post-job save. Initial archive creation\ntook 8.534 s for release and 7.203 s for dev. Local archives cover selected\ntests and are smaller than the 637,542,999-byte live CI release snapshot;\ntheir sizes are not predictions of full-workspace CI archives.","chars":1750,"tokens_est":438,"sha256":"f8b91169b81d5dba8d1096f8cef633a108f80d3e18b45abbd756b26518497b61"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-post-job-cook-profile-comparison~2","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Post-job cook-profile comparison"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#post-job-cook-profile-comparison","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Post-job cook-profile comparison]\nDev cooking clearly wins the unchanged-input scenario here. Core rebuild\nvariance is large and the ranges overlap; its median favors release, so\nthese data do not establish a universally fastest profile. Disabling cook\nloses useful post-job artifact reuse. Retain release cooking on core work\nuntil live comparisons justify changing it, and evaluate dev cooking for\nnon-core Fast Gate runs with unchanged workspace inputs. Match explicit\nrelease/static-library consumers to release; do not infer cross-target\nbenefits from this host-only experiment.\n\nReproduce using a fresh directory in the same checkout and the same Nix\ndependency environment (existing target caches are left intact):\n\n```sh\nnix-shell rust/tools/sanitize/shell.nix --run \\\n  'uv run ci/benchmark_soldr_cache.py --directory build_ci_audit/cook-new --soldr /absolute/path/to/soldr --trials 3 --jobs 4'\n```\n\nKeep compiled sources fixed throughout. The recorded run reused completed\nseed consumers at their original target paths, then modeled actual\npost-job saves. A measurement assertion initially expected Cargo to label\na forced rebuild only \u201cChecking\u201d; Cargo correctly used \u201cCompiling\u201d. The\nassertion was corrected, that attempt's logs were preserved, and only the\nremaining unrecorded trials resumed. All published trials passed.","chars":1365,"tokens_est":341,"sha256":"477c8e43c0088ec2b25172f644b66a5cae6527cf8b27a8844c92db003d0e45b9"},{"id":"docs-ci-cache-audit-2026-10-17#ci-cache-audit-2026-10-17-dylint-setup-soldr-feature-audit","doc":"docs-ci-cache-audit-2026-10-17","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI cache audit: 2026-10-17","Dylint setup-soldr feature audit"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md#dylint-setup-soldr-feature-audit","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-cache-audit-2026-10-17.md","text":"[CI cache audit: 2026-10-17 \u203a Dylint setup-soldr feature audit]\nFast Gate currently invokes `soldr cargo dylint` after stable-profile\nclippy. In master run 39056485478, job 117465447413, catalogued Dylint\ntools/driver downloaded from 18:05:40.654 to 18:05:41.944. Nightly\n`rustc-dev`, `rust-src` and `llvm-tools` preparation then lasted until\n18:06:06.119, roughly 24 seconds. The repo plugin pins\n`nightly-2026-05-28`; caching that foundation is a plausible opportunity.\n\nHowever, pinned setup-soldr b782f606a2f3beadc35b9e3bf5b4565e005f52ed\n[resolve-setup.ts](https://github.com/zackees/setup-soldr/blob/b782f606a2f3beadc35b9e3bf5b4565e005f52ed/src/lib/resolve-setup.ts)\nforcibly sets `inputs.prebuildDeps = \"none\"` whenever `dylint: true`,\nincluding explicit cook inputs. That mode assumes a Dylint-only job; it\nis not a drop-in improvement for this mixed stable-check/test/Dylint job.\nIts foundation cache also owns exact nightly paths, while legacy\n`dylint-cache: true` alone does not include those paths by default.\n\n**Decision:** retain the current mixed-job mode and ordinary cook reuse.\nDo not enable `dylint: true` indiscriminately to maximize feature count.\nThe measured post-job cook benefit would be lost, and the network/restore\ntradeoff of a separate foundation has not yet been measured. A dedicated\nDylint lane or an explicit mixed-job foundation implementation would need\nits own setup/restore/consumer/save benchmark, required-gate integration,\nnightly/target identity checks and bounded retention before adoption.\nNo workflow or cache family was added for this rejected rollout.","chars":1597,"tokens_est":399,"sha256":"14e517f263016d8c19689f9641eb55e0b76b5dd7e59df36928017adc3c8c940f"},{"id":"docs-ci-macos-qt-artifacts#macos-qt-contract-artifacts-5008-slice-c","doc":"docs-ci-macos-qt-artifacts","group":"docs","tier":"process","kind":"prose","breadcrumb":["macOS Qt contract artifacts (#5008, slice c)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md#macos-qt-contract-artifacts-5008-slice-c","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md","text":"[macOS Qt contract artifacts (#5008, slice c)]\n`ci/macos_qt_artifact.py` prepares the four contracts selected by the conditional\n`Check Published Qt SDK` step in `rust-tests-macos`. It adds their target\nexecutions to the existing `ci/macos_test_artifact.py` bundle. The workflow switch\nremains separate: this infrastructure alone changes no hosted job.\n\n```sh\nuv run --no-project ci/macos_test_artifact.py build --output build_macos_tests\nuv run --no-project ci/macos_qt_artifact.py build --work /tmp/obs-qt-producer --bundle build_macos_tests\n# On macOS, extract the bundle into the same real checkout path, then:\nuv run --no-project ci/macos_test_artifact.py run --manifest manifest.json\n```\n\nUse a fresh work directory for each preparation. The helper downloads and verifies\nthe Qt SDKs, asks soldr for its LLVM/Apple SDK drivers, cross-builds static cmocka,\nand runs the original Rust tests on Linux with Darwin target selection. All graph,\ngenerated-code, target-count, CMake configuration and CTest property assertions\nstill execute. Calls that would run target binaries instead record pending\nexecutions. A successful preparation receipt proves preparation only. The macOS\nmanifest runner must execute every record and check its exit status; it preserves\nthe recorded working directories, environment, arguments and timeouts. No compiler,\nCargo, CMake build, or Qt generator is invoked by those runtime entries.","chars":1418,"tokens_est":354,"sha256":"9954fc8d8ce73d9a15529a25d56bb70b23e76d53051b7ce601e9dc001644abde"},{"id":"docs-ci-macos-qt-artifacts#macos-qt-contract-artifacts-5008-slice-c~2","doc":"docs-ci-macos-qt-artifacts","group":"docs","tier":"process","kind":"prose","breadcrumb":["macOS Qt contract artifacts (#5008, slice c)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md#macos-qt-contract-artifacts-5008-slice-c","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md","text":"[macOS Qt contract artifacts (#5008, slice c)]\n| Rust contract | Native sources and runtime coverage | Qt / libobs linkage |\n| --- | --- | --- |\n| `native_test_graph_generates_qt_metaobjects` | Generated `answer.hpp`, `answer.cpp`, `twin.cpp`, `answer.ui`, `answer.qrc`, `payload.txt`; both native and CMake builds. The answer checks the metaobject, invokable return value, generated form/header precedence and embedded resource; CMake also runs twin. | Core, Gui, Widgets; Linux moc/uic/rcc. No libobs. |\n| `canonical_remux_queue_runs_unchanged` | Darwin selects `test_top_level_windows`, `test_frontend_api_call`, `test_profile_import`, `test_remux_queue_model`, `test_settings_track_rows`, plus source-present `test_ws_image_mime` and `test_ws_session_duration`. Sources come unchanged from `test/cmocka/build/test-graph.json`: `test/cmocka/test_<name>.cpp`, `frontend/utility/RemuxQueueModel.cpp.hpp`, its moc header, the settings `.ui`, and the graph's source-only WebSocket helpers. The original CMake subset and all its property/inventory assertions remain. | Core, Gui, Widgets and static cmocka. These selected targets do not link libobs. Qt Test is absent from the pinned published SDK, so its original optional backtab guard remains false; Linux-only graph cases retain their original host guards. |\n| `canonical_frontend_product_and_meter_tests_run_unchanged` | `test/cmocka/test_product_name.c`, `frontend/utility/product-name.c.h` and `test/cmocka/test_volume_meter_snapshot.cpp`; both native and CMake consumers. | Static cmocka and pthread; no Qt or libobs runtime. |\n| `canonical_frontend_utility_tests_run_unchanged` | Original named frontend utility graph, selected for Darwin by `native_test_facts`; unchanged C tests plus their graph-listed frontend, host-policy and utility sources. Both native and CMake consumers retain the exact target/test inventory assertions. `graph.json` in the payload records the full source inventory. | Static cmocka, libcaption and system math as selected by the graph. Existing core-header interfaces remain headers only; no substituted libobs or installed libobs is linked. |","chars":2128,"tokens_est":532,"sha256":"c02b906a962ca28ce2243ea352c243b929ef5d0426a9954717124c7cd8e3d18c"},{"id":"docs-ci-macos-qt-artifacts#macos-qt-contract-artifacts-5008-slice-c~3","doc":"docs-ci-macos-qt-artifacts","group":"docs","tier":"process","kind":"prose","breadcrumb":["macOS Qt contract artifacts (#5008, slice c)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md#macos-qt-contract-artifacts-5008-slice-c","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md","text":"[macOS Qt contract artifacts (#5008, slice c)]\nThe remux inventory assertion also accounts for the two source-only WebSocket\nowners that `validation::build_qt_tests` already discovers. It still checks exact\nequality, and those helpers remain in the runtime payload. No WebSocket source,\npublic header, or existing C test is modified.\n\nThe SDK pins match the existing job and cross-compile host-tool pins:\n\n| Input | URL | SHA-256 |\n| --- | --- | --- |\n| Darwin Qt 6.11.1 universal2, deployment target 11.0 | <https://github.com/obs-rust/obs-studio-libs/releases/download/qt6-6.11.1/qt6-6.11.1-darwin-universal2-11.0-release.tar.zst> | `85093eae764f83d167f8850c5b057c0ff5d2f928ad7d49fe2544ce0ca20074b0` |\n| Linux x86-64 Qt 6.11.1 host tools | <https://github.com/obs-rust/obs-studio-libs/releases/download/qt6-6.11.1/qt6-6.11.1-linux-x86_64-glibc2.28-release.tar.zst> | `f0edfc3432bd57058bbb9a2cf18aacceb55a2564b018346778c34eb0e3369dbf` |\n| cmocka 1.1.7 source, compiled for Darwin on Linux | <https://cmocka.org/files/1.1/cmocka-1.1.7.tar.xz> | `810570eb0b8d64804331f82b29ff47c790ce9cd6b163e98d47a4807047ecad82` |\n\n`CMakePresets.json` additionally pins obs-deps' macOS Qt package from\n`obs-rust/obs-deps` release `2026-10-25`, hash\n`322cf861992c957f5fd2b3ec43ce42eebdb7162cce7f81f74c651b184e67adcd`.\nThis producer uses the published SDK that the original integration job tests.\n\nThe runtime closure contains arm64 Core, Gui, Widgets frameworks and both minimal\nand offscreen platform plugins. The generated metaobject contract uses minimal;\nthe unchanged Darwin C tests select offscreen in-process. Their load names already\nuse `@rpath`; the producer supplies\nrelative `@executable_path` rpaths for each native/CMake layout and rejects\nunbundled load paths. macOS system dependencies include libc++, libSystem,\nObjective-C, zlib and the Apple frameworks exported by the Qt interfaces (including\nIOKit, DiskArbitration, UniformTypeIdentifiers, AppKit, CoreFoundation and\nFoundation). No Apple SDK or Linux host tools are needed by the consumer.","chars":2043,"tokens_est":511,"sha256":"a091209a5287f4560bfc69cd5b3a380dc09845ca18b66e8d2b38dbc6f94b95d7"},{"id":"docs-ci-macos-qt-artifacts#macos-qt-contract-artifacts-5008-slice-c~4","doc":"docs-ci-macos-qt-artifacts","group":"docs","tier":"process","kind":"prose","breadcrumb":["macOS Qt contract artifacts (#5008, slice c)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md#macos-qt-contract-artifacts-5008-slice-c","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-macos-qt-artifacts.md","text":"[macOS Qt contract artifacts (#5008, slice c)]\nThe original arm64 Qt slices keep their ad-hoc signatures. soldr's ld64.lld signs\neach new arm64 executable. The shared verifier checks every SHA-256 CodeDirectory\npage, permits Apple's zero signature padding, and retains execute-only checking\nby default; Qt dependency checks explicitly permit dylibs/bundles. Checksums cover\nthe complete transported payload. Missing contracts, missing/corrupt files,\nunsigned or wrong-architecture output, unknown runtime properties and producer\nload paths fail preparation. Hosted macOS execution and timing remain unverified\nuntil the complete run-only workflow is activated.","chars":660,"tokens_est":165,"sha256":"0068af3c397774fb0c621507b32c5bda05a9ea3ceaf8c21315ea09c57e1807f3"},{"id":"docs-ci-merge-group-scope#merge-group-scope-and-native-runner-capacity-2026-11-04","doc":"docs-ci-merge-group-scope","group":"docs","tier":"process","kind":"prose","breadcrumb":["Merge-group scope and native runner capacity \u2014 2026-11-04"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md#merge-group-scope-and-native-runner-capacity--2026-11-04","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md","text":"[Merge-group scope and native runner capacity \u2014 2026-11-04]\nCurrent decision (#4747, authorized in #4743): merge groups execute selected\nheavy checks on the merge result. This supersedes the November 4 Linux-only\nplacement decision described below. PR routing stays unchanged until the\nseparate admission cutover; full application builds remain nightly/manual/release.\n\nThe immutable event base/head diff includes every PR in the group. Core/shared\nchanges select both native Windows and macOS Rust tests and Tier 2; platform\npaths retain their current selection. Linux Tier 2 runs two complete suites,\nOFF and ON, from the existing shared build/runtime producers. Qt, C/C++ cross\ncompilation and touched Linux targets keep their path rules. Every non-docs\ngroup also runs Windows MSVC test linking and clippy/Dylint for the host plus\nall five cross targets. The two main cross targets still link tests with\n`--no-run`; the extra three lint only. GNU-oracle link coverage is retained.\n\nNo client trailer, hosted input proof or cached test/lint verdict may suppress\nqueue execution. Build and Format set `SOLDR_VERDICTS=off`; compiler/dependency\nartifacts may still be restored. CI Gate computes a full expected job manifest\nindependently of reusable outputs and requires success for every selected job,\nincluding individual matrix legs and complete OFF/ON modes. Missing, skipped,\nunfinished, cancelled and runnerless selected jobs reject admission. True\nout-of-scope skips remain allowed. The required context is still `CI Gate \u2705`.\nEligible Linux jobs use the selected `MQ_RUNNER_LABELS` with hosted fallback;\nnative jobs retain native runners. Capacity failures remain failures and never\nauthorize bypassing the queue. Cancellation and independent janitor behavior\nare unchanged. Security scans, sanitizers and packaged/hardware qualification\nremain on their existing nightly/manual/release events.","chars":1900,"tokens_est":475,"sha256":"13fd0bc6a5261a8509af4f4fbbc233f3a3cfc62bebe228310dfa5248c70eb80f"},{"id":"docs-ci-merge-group-scope#merge-group-scope-and-native-runner-capacity-2026-11-04-failure-and-cause","doc":"docs-ci-merge-group-scope","group":"docs","tier":"process","kind":"prose","breadcrumb":["Merge-group scope and native runner capacity \u2014 2026-11-04","Failure and cause"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md#failure-and-cause","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md","text":"[Merge-group scope and native runner capacity \u2014 2026-11-04 \u203a Failure and cause]\n[Merge-group run 41859960760](https://github.com/obs-rust/obs-studio/actions/runs/41859960760)\nconcluded failure. Event Data job 126678747964 logged\n`full=false core=true macos=true windows=true qt=false tier2=true asan=false`.\nCI Gate job 126688014957 reported\n`CI Gate did not receive the merge group's core scope`.\nThe caller consumed `needs.build-project.outputs.core` across a reusable-workflow\nboundary. That value was empty after nested macOS jobs 126679116973 and\n126679117143 ended cancelled, with empty runner names and no assigned runners\nor steps. The gate checked scope before querying jobs and hid the cancellation.\nThe observed evidence establishes lost output despite successful computation;\nGitHub's internal output propagation after cancellation is not observable.\n\nThe gate now reads `merge_group.base_sha` and `head_sha` from `GITHUB_EVENT_PATH`\nand diffs those immutable commits. Invalid/missing fields, unavailable commits\nand unsuccessful Event Data fail closed. Job failures are printed first, so a\nmissing scope input cannot hide them. A cancelled job with explicit empty\nrunner identity and no steps is diagnosed as a runner-capacity condition and\nstill fails. Other cancellations, failures, timeouts, startup failures and\naction-required results continue to block. No automatic retry masks failures.\nMaintenance exemptions are unchanged. No ruleset changes are needed: the sole\nrequired context remains `CI Gate \u2705`.","chars":1522,"tokens_est":380,"sha256":"9a65c217c40a778788c46cd5cae44e0d513cca6810332d6da87d9a8a18ea531a"},{"id":"docs-ci-merge-group-scope#merge-group-scope-and-native-runner-capacity-2026-11-04-capacity-evidence","doc":"docs-ci-merge-group-scope","group":"docs","tier":"process","kind":"prose","breadcrumb":["Merge-group scope and native runner capacity \u2014 2026-11-04","Capacity evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md#capacity-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md","text":"[Merge-group scope and native runner capacity \u2014 2026-11-04 \u203a Capacity evidence]\n[forge-ci/zccache run 41857782623](https://github.com/forge-ci/zccache/actions/runs/41857782623),\nobserver job 126671059827, concluded failure and observed macos-15 queued for\n909 seconds. Another repository and runner image also exhibited starvation;\nthis supports hosted capacity pressure rather than an OBS code failure.","chars":403,"tokens_est":101,"sha256":"0cdceb047318602062869e2651b780cce6d7dacf5394c5ed250b37dae0f989e9"},{"id":"docs-ci-merge-group-scope#merge-group-scope-and-native-runner-capacity-2026-11-04-real-master-push-executi","doc":"docs-ci-merge-group-scope","group":"docs","tier":"process","kind":"prose","breadcrumb":["Merge-group scope and native runner capacity \u2014 2026-11-04","Real master-push execution baseline"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md#real-master-push-execution-baseline","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md","text":"[Merge-group scope and native runner capacity \u2014 2026-11-04 \u203a Real master-push execution baseline]\n[Push run 41849221687](https://github.com/obs-rust/obs-studio/actions/runs/41849221687)\nconcluded success. macOS Rust Tests job 126640904675 ran 14:36:42\u201314:45:30 UTC\nand macOS Tier 2 job 126640904805 ran 14:36:42\u201314:47:04 UTC on November 4,\nboth with assigned runners and success conclusions. Windows jobs 126640904718\nand 126640904827 also ran successfully. The macOS application job was skipped,\nas intended, and is not execution evidence. Post-change queue/push observations\nbelong on the PR. A cancelled workflow is never green proof.","chars":637,"tokens_est":159,"sha256":"b5fdc819aca3268f6da961053afad944bae75a74d979c17111a11db1bb661514"},{"id":"docs-ci-merge-group-scope#merge-group-scope-and-native-runner-capacity-2026-11-04-regression-coverage","doc":"docs-ci-merge-group-scope","group":"docs","tier":"process","kind":"prose","breadcrumb":["Merge-group scope and native runner capacity \u2014 2026-11-04","Regression coverage"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md#regression-coverage","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-merge-group-scope.md","text":"[Merge-group scope and native runner capacity \u2014 2026-11-04 \u203a Regression coverage]\nRED commit `3b23668df`: three focused tests failed with seven assertion failures:\nmissing capacity diagnosis, a healthy queue rejected for empty reusable output,\nand native queue selection. That change resolved scope independently and preserved fail-closed diagnostics.\nThe current tests restore selected heavy execution and enforce its manifest.\nTests extend the existing Python files. Rust/C/API port tiers do not apply to\nthis CI-only change. Push-scope regressions preserve native selection for core\nand platform changes; tests do not substitute for real hosted execution evidence.","chars":667,"tokens_est":167,"sha256":"35a2a45e05456775149b69a69ba43a64c13fd53c867ae0214826fe20112e4297"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#linux-tier-2-concurrency-audit--2026-10-21","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21]\nIssue: [#1634](https://github.com/obs-rust/obs-studio/issues/1634).\nInitial experiment binaries built from `0b10a2f61389076e7eea82343a4d14f80b5b1723`.\n\n## Landing decision\nPR [#1643](https://github.com/obs-rust/obs-studio/pull/1643) CI run\n[39658456956](https://github.com/obs-rust/obs-studio/actions/runs/39658456956)\nfailed OFF shard 1: `yadif_2x_bottom_first_50i_into_30` skipped up to three\nfields where the assertion allows one. The local capped successes below did\nnot establish CI reliability. **Retain deinterlace's serial guard** and the\nrenderer budget; remove the other nine broad barriers using the isolation\ndescribed below. The two-shards-per-backend CI matrix remains unchanged.\n\nThe output-delay blocker is corrected in core teardown: publish `active=false`\nbefore emitting `deactivate`. A new real-libobs regression observes state\ninside the synchronous callback. Both normal and forced stop fail\ndeterministically against both original backends; the fix passes 100\niterations per stop path per backend (400 stop cycles). Existing C tests and\npublic headers are unchanged.\nThis fixes the core notification ordering; #1391's separate frontend work is\nnot claimed as completed here.\n\nThe tables below retain the exploratory results, including failed trials;\nthey are not timings of the final conservative scheduling policy.\n\nFinal local verification, rebased onto `f3e6260b1`: the official Linux harness\npassed all 351 registered CTests in both modes (169.61 s OFF, 169.20 s ON),\nwith the same three unavailable PulseAudio skips. Registry checks confirm no\nloss of the original 346 tests: four tests arrived on master and one is the\nnew deactivation regression. Only deinterlace remains serial with Xvfb\navailable; every Linux registration retains the renderer budget. Export\ncomparison still matches all 1,766 symbols; the updated base excludes 64\nported C implementations from hybrid libobs.\n\nThis final run used the harness's unrestricted CPU affinity (16 logical CPUs\nreported), not the exploratory four-core affinity. It verifies correctness;\nits timings are not a controlled speed comparison with the initial base.\nPR CI and the merge queue remain the required merge checks.","chars":2241,"tokens_est":560,"sha256":"63c6fd68d3495544dd17e0f71af1cd92edfe0200e0e6d4f440c8ae070598ddf6"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-findings","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Findings"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#findings","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Findings]\nThe ten CTest `RUN_SERIAL` properties prevent their test process from\noverlapping **any** other CTest process in the same invocation. They do not\nreserve a CPU, isolate the host, or imply that each test needs its own machine.\nEight have no identified resource conflict across processes. One mutates a\nshared display; one is especially sensitive to CPU scheduling.\n\n| Test | Resource / reason | Proposed scheduling |\n|---|---|---|\n| `test_async_delay_audio` | Process-owned source and real-time audio assertions | Concurrent; retain assertions and timeout |\n| `test_audio_clock_drift` | Synthetic source timestamps; does not change the system clock | Concurrent |\n| `test_deinterlace_2x_field_order` | Real-time field delivery; software-renderer CPU contention | Retain serial guard and worker budget after CI failure |\n| `test_inhibit_sleep_dbus` | Private GTestDBus and fake service | Concurrent; preserve private bus |\n| `test_media_cover_art_seek` | Process-owned media/source; timestamp-named temporary files | Concurrent |\n| `test_pipewire_screencast_resume` | Private PipeWire daemon, bus and temporary runtime directory | Concurrent; preserve wrapper |\n| `test_pipewire_screencast_shm` | Same private PipeWire wrapper | Concurrent; preserve wrapper |\n| `test_screencast_portal_teardown` | Private GTestDBus and fake portal; environment changes affect only its process | Concurrent |\n| `test_vlc_audio_pacing` | Process-owned VLC source; timestamp-named files; real-time pacing assertions | Concurrent; retain assertions and timeout |\n| `test_xshm_resolution_change` | Changes global RandR resolution on its X server | Private `xvfb-run -a`; keep serial fallback if unavailable |\n\nMany guards arrived together in `142aad0a7` (#837), when parallel CTest was\nintroduced. Their presence alone is not evidence of a machine-wide dependency.","chars":1898,"tokens_est":474,"sha256":"b651c128471f9a5a2680f77b55034d461afc33232e0daeebc8073bb1aa6ca35d"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-findings-cpu-contention","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Findings","CPU contention"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#cpu-contention","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Findings \u203a CPU contention]\nMesa llvmpipe normally creates rendering workers according to available cores.\nEight test processes can each create a worker pool. `LP_NUM_THREADS=1` bounds\neach software renderer without changing OBS frame-rate settings or assertions.\nOne observed deinterlace process had 14 threads with the default and 8 with\nthe cap; the cap does not limit every thread in the process.\nSee [Mesa's environment documentation](https://docs.mesa3d.org/envvars.html)\nand [llvmpipe documentation](https://docs.mesa3d.org/drivers/llvmpipe.html).\n\nThe candidate appends that environment setting to Linux CTest registrations\nand sets it in the Linux validation harness. Existing environment entries,\ntest names, skip behavior and timeouts are preserved. It gives XSHM its own\ndisplay and removes the other broad barriers. No C test body or public header\nis changed.","chars":918,"tokens_est":230,"sha256":"d7ddd74946bd3b61ab7608c5603fce44ae1bde9f1d98ffa57884c07c76beb53a"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-findings-restrictions-to-retain","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Findings","Restrictions to retain"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#restrictions-to-retain","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Findings \u203a Restrictions to retain]\nRust integration helpers using `--exact <test> --test-threads=1` already start\nindependent child processes. The one-thread option applies to a child running\none test; it does not serialize the parent suite. Keep it.\n\nAllocation counters (`bnum_allocs`), log-handler replacements, callback\nstand-ins and oracle globals are shared **within a process**. Existing child\nisolation or locks protect those checks. Separate processes can share one\nmachine. Examples: `rust/obs-util/tests/common/mod.rs`,\n`rust/obs-output/tests/output/main.rs`,\n`rust/obs-callback/tests/callback/proc_parity.rs`, and\n`rust/obs-missing-files/tests/missing_files/main.rs`.\n\nBuild serialization (Cargo target locks and Windows x86 build limits) is a\ndifferent concern; this audit does not propose removing it.\n\nCmocka cases inside a single executable still run sequentially. Many reuse\nthe process's libobs singleton and fixtures. Parallelizing executables\nalready permits concurrency on one machine without making those fixtures\nthread-safe or splitting every case into a separate runner.","chars":1142,"tokens_est":286,"sha256":"a70dd3aa10115bb47bdb5dd11ada3ce1576b1952ec69421c8579e5acf5723b79"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-runtime-evidence","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Runtime evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#runtime-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Runtime evidence]\nThe experiment uses the existing Linux validation image and build volume,\nfour allowed CPU cores (`taskset -c 0-3`) and `ctest -j8`. OFF loads\n`libobs-c-reference`; ON loads hybrid `libobs`. An `ldd` check verifies the\nloaded backend. The build compared 1,766 exported symbols and excluded 63\nported C implementations from hybrid libobs.\n\nThis is a shared Ryzen 7 3700X host. Affinity is not exclusive CPU reservation;\nhost load varied substantially. Results measure CTest execution, excluding\ncompilation, downloads, runner provisioning, queue delay and final CI gate.\n\n| Configuration | C reference (OFF) | Hybrid (ON) |\n|---|---:|---:|\n| Original ten serial guards, complete suite | 325.5 s, pass | 338.3 s, pass |\n| Remove all ten, private XSHM, default renderer workers | 99.8 s, **deinterlace failure** | 95.6 s, pass |\n| Keep deinterlace serial, remove other nine | 173.9 s, **deinterlace failure** | 168.1 s, **output-delay failure** |\n| Remove all ten, private XSHM, one renderer worker | 100.1 s, pass | 98.3 s, pass |\n| Actual candidate registrations, repeat 1 | 96.6 s, pass | 94.1 s, pass |\n| Actual candidate registrations, repeat 2 | 93.9 s, pass | 98.1 s, **output-delay failure** |\n| Actual candidate registrations, repeat 3 | 93.7 s, pass | 95.8 s, pass |\n\nAll six actual-source runs retained 346 registered CTests, 2,146 cmocka case\nstarts, all 40 deinterlace cases, identical internal skip names and the same\nthree top-level skips. Their output was not truncated. Five passed; one hit\nthe output-delay race. Deinterlace passed all eight capped full-suite runs\n(the initial exploratory pair plus the six actual-source runs).","chars":1708,"tokens_est":427,"sha256":"5e3423edc7a51643c40a6ae9b28915fb92b2d8652b7f277732129911c0641861"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-runtime-evidence~2","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Runtime evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#runtime-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Runtime evidence]\nAn additional original-policy OFF run used the repository's two-shard\nplanner with the measured baseline costs: 172 and 174 tests, respectively.\nThe shards took 155.9 s (deinterlace failed) and 176.8 s (passed), measured\nsequentially on the same host. Their sum is 332.8 test-runner seconds; the\nlonger is 176.8 s. The longer time is only an estimate of ideal concurrent\nlatency, not an observed concurrent workflow time. This plan may differ\nfrom the historical costs used by a particular CI run.\n\nTheir combined full outputs contain 2,146 cmocka case starts. Both initial\ncapped full runs also contain 2,146 starts, all 40 deinterlace cases, and the\nsame internal skipped-case names as the combined old shards. They contain\nno truncated outputs. This checks execution below CTest's executable count.\n\nEvery complete run registered 346 CTests. The same three unavailable\nPulseAudio tests were skipped: `test_pulse_monitor_device`,\n`test_pulse_stream_restart`, `test_pulse_two_sources`. Initial passing outputs\nwere truncated by CTest; subsequent validation retains full output to compare\ninternal cmocka execution and skips as well.","chars":1198,"tokens_est":300,"sha256":"bbc599475723989ce709f0ec15318ba8de8569b83705be49f9e54fd46fc7536f"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-runtime-evidence-failures-are-retained","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Runtime evidence","Failures are retained"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#failures-are-retained","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Runtime evidence \u203a Failures are retained]\n* Unbounded parallel OFF failed `linear_2x_top_first_50i_into_50`: three skipped\n  fields, where the unchanged assertion permits none. This is the timing\n  sensitivity tracked by [#456](https://github.com/obs-rust/obs-studio/issues/456).\n* OFF also failed deinterlace when it was still serial and ran first, alone\n  within CTest. Serialization cannot protect it from other host workloads.\n* ON with deinterlace serial failed `test_output_delay_e2e` at its inactive\n  assertion after `deactivate`. `libobs/obs-output.c.h` signals `deactivate`\n  before clearing `output->active`. This matches the ordering problem already\n  tracked by [#1391](https://github.com/obs-rust/obs-studio/issues/1391).\n  It is not proof of a cross-test resource collision.\n\nNo assertion, expected frame count, test selection or retry policy was relaxed\nto hide these failures. A successful small group or single full run is not\nenough evidence for a reliability claim.\n\nThe second exploratory actual-source hybrid run reproduced\n`force_stop_skips_delay` at line 484 with the renderer cap enabled. The cap\nalone did not resolve the lifecycle race. The landing revision fixes this\nordering in core and adds the deterministic regression described above,\nwithout adding a whole-suite serial guard for output delay.","chars":1374,"tokens_est":344,"sha256":"f1c2defab57bbfd161b087d5489688d316da2bfe73ba4edd3abf802665c3a883"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-sharding-decision","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Sharding decision"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#sharding-decision","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Sharding decision]\nThe existing workflow uses two shards per backend: four test jobs. Once the\nconcurrent suite is reliable, one complete invocation per backend would use\ntwo jobs and avoid duplicated runner setup. Keep OFF and ON coverage.\n\nRetain the current CI shard matrix: the field-order test still needs timing\nisolation, and a smaller shard count needs actual gate-latency and runner-cost\nmeasurements. The core signal-ordering fix removes the output-delay blocker;\nit does not eliminate real-time field-delivery sensitivity. This PR does not\nchange the workflow matrix or complete #1391's separate frontend work.\n\nThe unsharded capped trial is about 3.3 times faster than the original\nunsharded suite on this host. That is **not** a measured CI gate speedup or a\ncomparison with two concurrent CI shards. The repeated actual-source runs\nsupport the concurrency mechanism but expose the remaining race. The broader\nrepresentative-day runner-cost/gate study remains\n[#1581](https://github.com/obs-rust/obs-studio/issues/1581).","chars":1080,"tokens_est":270,"sha256":"333224eaeb826842966b3623869d61ee0ebb79fd80d0f2dd64a3866a5d0855db"},{"id":"docs-ci-serial-audit-2026-10-21#linux-tier-2-concurrency-audit-2026-10-21-reproduction-and-artifacts","doc":"docs-ci-serial-audit-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Linux Tier 2 concurrency audit \u2014 2026-10-21","Reproduction and artifacts"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md#reproduction-and-artifacts","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-serial-audit-2026-10-21.md","text":"[Linux Tier 2 concurrency audit \u2014 2026-10-21 \u203a Reproduction and artifacts]\nVerification: 27 focused configuration, environment and shard tests passed;\nthe changed CMake scheduling files passed pinned gersemi; Bash syntax and\n`git diff --check` passed. The full local gate was not run. No Rust source or\nprotocol implementation changed; the runtime evidence here is Tier 2 against\nboth backends. The candidate remains for review; PR CI decides a merge.\n\nBuild the native suite using `OBS_TIER2_STAGE=build\nrust/tools/linux-validate/run.sh`, following `docs/ci-tooling.md`. Run baseline\nand candidate scheduling against the same tree/image and both library paths,\nwith fresh HOME/XDG directories per run. Capture registry and complete output:\n\n```sh\nctest --test-dir /build/tree --show-only=json-v1\nLP_NUM_THREADS=1 taskset -c 0-3 xvfb-run -a \\\n  '--server-args=-screen 0 1280x1024x24 -noreset' \\\n  ctest --test-dir /build/tree -j8 --output-on-failure \\\n  --test-output-size-passed 10485760 --test-output-size-failed 10485760 \\\n  --output-junit /audit/result.xml\n```\n\nThe command runs inside the repository's bounded `ci/docker-task.sh` wrapper;\nset `LD_LIBRARY_PATH` to `/build/tree/libobs-c-reference` for OFF and\n`/build/tree/libobs` for ON. Save every failure, rather than retrying until\ngreen. Native code is identical across the comparison; CMake reconfiguration\napplies the candidate registrations.\n\nLocal raw logs, JUnit, generated registry and experiment scripts are retained\nin `build_ci_audit/serial1634/`. The [companion JSON](ci-serial-audit-2026-10-21.json) retains run\nsummaries, including unsuccessful experiments and observed host load.","chars":1651,"tokens_est":413,"sha256":"48abb737b4a7c735c931483993663b431104637a37bb84327a80a80b1a13e5d7"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#ci-speed-batch-october-21-2026","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nWork tracked in [#1581](https://github.com/obs-rust/obs-studio/issues/1581).\nAll five implementation PRs merged. The full post-rollout day and later\ndecisions are reported below. Comparisons are observational, not controlled\nestimates of the effect of an individual change.","chars":537,"tokens_est":134,"sha256":"316b98d8d30c380e9a947e84d799975a4b321fe07eeffb8c4088299a360e3415"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-baseline","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Baseline"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#baseline","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Baseline]\nRead-only collection covered October 20 00:40 UTC through October 21 00:40 UTC.\nThe initial 31-run stratified sample was expanded to all 265 listed runs.\n[Full-window evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-ci-speed-baseline-full.json)\nretains every inspected run URL/revision, outcomes, cohorts, per-lane timings,\nand sample counts. The initial sample remains available separately in\n[its original snapshot](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-ci-speed-baseline.json).\n\n| Successful code cohort | Runs | Median required gate | p95 |\n| --- | ---: | ---: | ---: |\n| PR | 83 | 723 s | 1,121 s |\n| Merge group | 61 | 697 s | 988 s |\n\np95 uses nearest rank. Canceled code queue runs consumed 324.065 runner-minutes\nin this window; this is observed elapsed job time, not billed cost. Unknown\nsource diffs, manual dispatches and CI/config changes remain separate cohorts.\nThe collector's broad `code` category includes Rust harness/test paths; inspect\nlane selection and changed files before treating a CI/harness rollout as\nrepresentative of product changes.\n\nReproduce with the existing collector:\n\n```sh\nuv run ci/cache_metrics.py --output build_ci_audit/1581-before \\\n  --start 2026-10-20T00:40:00Z --end 2026-10-21T00:40:00Z --per-group 1000\n```","chars":1450,"tokens_est":362,"sha256":"a1766d184ad906770791d26e1509724822f940d289b0bf9d683c2fed78d705e3"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-where-time-goes","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Where time goes"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#where-time-goes","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Where time goes]\n[Queue run 39521142237](https://github.com/obs-rust/obs-studio/actions/runs/39521142237)\ntook 696 seconds through CI Gate: 36 seconds initial orchestration, 215 seconds\noverlapping Fast Gate/build, 3 seconds transition, 422 seconds concurrent OFF/ON\ntest jobs, and 20 seconds final aggregation. Tier 2 compilation is already\noverlapped. The build step's 96 seconds includes orchestration, not just compiler\nCPU time. Across eight inspected successful runs, that step took 66\u201396 seconds.\n\nThe ON suite registered 341 tests and took 331.24 seconds. Five RUN_SERIAL tests\nhad durations of 82.79 seconds (deinterlacing), 59.26 (async audio delay), 38.87\n(PipeWire resume), 34.61 (VLC pacing), and 23.60 (audio clock drift). Increasing\nCTest parallelism cannot overlap a RUN_SERIAL test with other tests in its\nenvironment. Three PulseAudio device scenarios skipped; preserve that distinction\nbetween registration and executed coverage.","chars":984,"tokens_est":246,"sha256":"39d633a5e1cc8146dc9fc8095f169f17be98198753b9f234f938cab2fb7b5cf5"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-decisions-and-current-evidence","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Decisions and current evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#decisions-and-current-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Decisions and current evidence]\n1. **Overlap Qt with Fast Gate \u2014 implement and measure.**\n   [PR #1582](https://github.com/obs-rust/obs-studio/pull/1582) starts Qt after\n   successful scope detection while keeping both jobs required. Configure,\n   build, and test phases get separate successful-phase wall times. In its\n   [PR run](https://github.com/obs-rust/obs-studio/actions/runs/39523981726),\n   Qt ran 00:53:16\u201300:56:23 UTC and Fast Gate ran 00:53:29\u201300:55:42: all\n   133 seconds of Fast Gate overlapped Qt. This verifies scheduling, not a\n   causal before/after speedup. Failed-gate wasted Qt time remains to measure. 2. **Two isolated Tier 2 shards per mode \u2014 retain rollout for day measurement.**\n   [PR #1583](https://github.com/obs-rust/obs-studio/pull/1583) reuses the build\n   artifact and duration planner. Four runners replace two; each keeps\n   RUN_SERIAL intact and verifies all plans partition its actual CTest registry\n   exactly once. Missing plans fail closed. Both its PR and queue passed with\n   341 registered tests per mode and the same three PulseAudio device skips. The PR split OFF 169+172 and ON 171+170; all 338 executed tests per mode\n   passed. No C test or RUN_SERIAL property was changed. The first queue's\n   longest test step took 178 seconds; required gate took 485 seconds. The\n   increased runner cost remains part of the final acceptance decision. 3. **Prepared Tier 2 environment \u2014 defer deployment under #1592.**\n   Cached apt archives still leave 30\u201352 seconds installation per job. A\n   prepared image must beat stock-image setup including pull/restore time,\n   with a pinned reproducible package set. Existing\n   [#525](https://github.com/obs-rust/obs-studio/issues/525) gates dependency\n   producers on measured payoff and explicit sign-off for repository/workflow\n   creation.","chars":1859,"tokens_est":465,"sha256":"eab01a10ce18d470b95212f92fc04a43dc2fe9d59e80909490dd8056738270a2"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-decisions-and-current-evidence~2","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Decisions and current evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#decisions-and-current-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Decisions and current evidence]\nThe [local experiment](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-tier2-environment-experiment.json)\n   measured 150.634 seconds for a fresh stock container with seeded apt archives\n   versus 4.343 seconds for a fresh container from a resident prepared image. Both package/version fingerprints matched. The prepared image is 541 MB\n   uncompressed. These local figures exclude registry publication and a fresh\n   runner's download/unpack; local installation is much slower than CI. The\n   current credential cannot inventory registry packages (`read:packages`,\n   HTTP 403), and no compatible published immutable image was verified. [#1592](https://github.com/obs-rust/obs-studio/issues/1592) records the\n   publication/access and fresh-runner benchmark gate. Keep stock Ubuntu and\n   apt caching in this batch; no producer, workflow or image publication was\n   introduced, and no net CI environment gain is claimed. 4. **Rust compilation \u2014 retain settings; measure individual rebuilds next.**\n   The three inspected workspace test steps combine about 35\u201341 seconds of\n   Cargo-reported build/link work with 59\u201362 seconds between first test launch\n   and last test-result output. The compiler is a substantial portion, but\n   treating the whole 96\u2013102 second step as compilation overstates it. The\n   [phase evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-rust-test-phase-profile.json) retains\n   run IDs, command timestamps and output spans. Merged\n   [#1590](https://github.com/obs-rust/obs-studio/pull/1590) extracts these\n   with `--include-logs`, including Soldr timestamp prefixes and raw or escaped\n   ANSI colors, without another build. Missing markers remain unknown. Linker-only cost, exact process teardown time and Cargo rebuild reasons\n   remain unavailable from these log lines.","chars":2005,"tokens_est":501,"sha256":"bd93fc2d171cd25a0707e6cd1e52627d2e564d6d9453f2ce1900450baa207310"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-decisions-and-current-evidence~3","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Decisions and current evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#decisions-and-current-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Decisions and current evidence]\nControlled per-unit profiling and\n   rebuild/fingerprint work remain with\n   [#1286](https://github.com/obs-rust/obs-studio/issues/1286). Keep the Rust\n   wrapper bypass and fingerprint safeguards; no compiler-setting speedup is\n   claimed from three unmatched revisions with restored cook archives. 5. **Scheduling gaps \u2014 measure intervals and remove empty publication work.**\n   In [run 39520254679](https://github.com/obs-rust/obs-studio/actions/runs/39520254679),\n   Tier 2 aggregation ended at 00:26:12 UTC, CI Gate was created at 00:26:13,\n   and a runner started it at 00:28:29. Thus 136 of the 137 seconds were after\n   job creation, rather than compilation or a running dependency. The API\n   does not establish the dispatch delay's cause. The baseline also contains\n   job creation-to-start intervals of 427 seconds for a Tier 2 build and 818 seconds for a Swift\n   format job. Report job-created-to-started duration separately from job\n   execution. Creation-to-start intervals can include dependency waiting and\n   cannot isolate dispatch latency without inspecting readiness; avoid inferring\n   capacity exhaustion or changing concurrency\n   policy from one observation. In the shard PR, the Tier 2 publication job\n   waited 96 seconds, ran for four seconds and skipped every work step. Merged\n   [#1589](https://github.com/obs-rust/obs-studio/pull/1589) checks for an\n   eligible proof or master timing publication before requesting that runner. Matrix failures remain failures of the required gate. Interval and sample\n   tail reporting landed in [#1585](https://github.com/obs-rust/obs-studio/pull/1585).","chars":1688,"tokens_est":422,"sha256":"f5d77e13f5f4b848fb8b822d7e536dedafb2e42b38b2972bff10a6727a84d755"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-first-rollout-observations","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","First rollout observations"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#first-rollout-observations","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a First rollout observations]\n[Literal timings and coverage](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-ci-speed-rollout.json)\nretain run IDs and the source diff between the two queue trees. Libobs, Rust\ncrate, Cargo/toolchain and cmocka test source paths were unchanged; CI/harness\nand frontend files changed. Runners and setup/cache conditions differ, so\nthese observations do not isolate a causal speedup or replace a full day.\n\n| Observation | Earlier queue | Shard PR | Shard queue |\n| --- | ---: | ---: | ---: |\n| Required-gate wall | 696 s | not used as queue comparison | 485 s |\n| Concurrent test-job phase, including setup | 422 s | 283 s | 254 s |\n| Summed test-job runner time | 838 s | 970 s | 982 s |\n| Registered tests per implementation | 341 | 341 | 341 |\n| Skipped device scenarios per implementation | 3 | 3 | 3 |\n\nThe queue observation is 211 seconds shorter with about 17% more test-job\nrunner time. More isolated runners trade cost for latency. The PR observation\nalso exposed the empty publishing job's avoidable runner wait; #1589 removes\nthat job only when no proof or timing publication is possible.","chars":1229,"tokens_est":307,"sha256":"1f6027b14e48480b5056ca90346b79a4ec239574396e786c52e707622624b171"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#full-post-rollout-day","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day]\n[Day evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-ci-speed-day.json) covers October 21\n01:20:52 UTC through October 22 01:20:52 UTC. Collection began after a\n30-minute drain and completed at 01:57 UTC: all 276 listed runs were inspected,\nwith three successful code PR and three successful code queue logs sampled at\nevenly spaced positions. Both workflow listings extend before the window.\nThe evidence retains revisions, changed paths, outcomes, lane summaries, cache\ninventory, sampled log hashes and parsed output. Cache inventory describes\ncollection time, not the window-end cache contents.","chars":732,"tokens_est":183,"sha256":"757f31fcdd973bf7bbd7322280fe98b6dd0991929a469ff4aedbd25e3dd53a85"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day-before-and-after","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day","Before and after"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#before-and-after","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day \u203a Before and after]\nThe broad code cohort became slower overall. Do not use the earlier single\n485-second queue observation as the day's expected runtime.\n\n| Successful code cohort | Before n | After n | Median before \u2192 after | p95 before \u2192 after |\n| --- | ---: | ---: | ---: | ---: |\n| All code PRs | 83 | 58 | 723 \u2192 791.5 s | 1,121 \u2192 1,874 s |\n| All code queue runs | 61 | 55 | 697 \u2192 711 s | 988 \u2192 1,197 s |\n\nThe following comparison matches the complete set of non-skipped job names,\nnormalizing only the shard suffix. It includes format and cross-platform jobs\nin the matching key, rather than treating every code change as equivalent.\nLinux rows run Fast Gate and Tier 2 without Qt or native platform lanes; Qt\nrows run Fast Gate and Qt without Tier 2. The JSON contains all matched groups,\nrun membership and the comparison source. These are comparable lane cohorts,\nnot identical code or controlled runner/cache experiments.\n\nTo reproduce every matched group, outcome/cost total and first-attempt\nsensitivity calculation from the committed inputs, run from the repo root:\n\n```sh\nuv run --no-project python - <<'PY'\nimport json\nfrom pathlib import Path\nimport sys\npath = Path('docs/ci-evidence/2026-10-22-ci-speed-day.json')\ndata = json.loads(path.read_text())\nsys.argv = ['reproduce-comparison', str(path)]\nexec(compile(data['reproduce_comparison_source'], 'reproduce-comparison', 'exec'))\nPY\n```\n\n| Selected lanes / event | Before n | After n | Median before \u2192 after | p95 before \u2192 after | Median runner-minutes before \u2192 after |\n| --- | ---: | ---: | ---: | ---: | ---: |\n| Linux Tier 2 / PR | 55 | 25 | 723 \u2192 593 s | 1,219 \u2192 1,085 s | 21.767 \u2192 25.600 |\n| Linux Tier 2 / queue | 38 | 24 | 696.5 \u2192 581.5 s | 1,050 \u2192 902 s | 22.242 \u2192 25.100 |\n| Qt / PR | 3 | 4 | 576 \u2192 358.5 s | 608 \u2192 453 s | 9.433 \u2192 9.758 |\n| Qt / queue | 2 | 4 | 487.5 \u2192 401 s | 522 \u2192 412 s | 9.483 \u2192 9.975 |","chars":1941,"tokens_est":485,"sha256":"7aa9b867eb93197dc78228d3e0fa12fe5907483a44ded1a7e02ab5e16862c7e2"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day-before-and-after~2","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day","Before and after"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#before-and-after","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day \u203a Before and after]\nLinux medians are 130 seconds (18.0%) and 115 seconds (16.5%) shorter, with\n17.6% and 12.9% higher median total runner time respectively. Qt samples are\nsmall: nearest-rank p95 is their maximum and is not a stable population tail.\nCross-platform matched groups became slower; see the JSON rather than\nextrapolating Linux gains to Windows/macOS work. Job elapsed minutes are not\nbilled minutes or monetary cost.\n\nOf the successful after-window Linux rows, 20/25 PR runs and 19/24 queue runs\nused four shards; the remaining five in each row used complete suites.\nThe table therefore measures the day's mixed policy, not sharding alone.\n\n| Code cohort / outcome | Before runs | After runs | Before runner-minutes | After runner-minutes |\n| --- | ---: | ---: | ---: | ---: |\n| PR success | 83 | 58 | 2,175.093 | 1,987.102 |\n| PR failure | 10 | 11 | 171.967 | 364.599 |\n| PR canceled | 21 | 22 | 381.681 | 356.115 |\n| Queue success | 61 | 55 | 1,644.061 | 1,777.482 |\n| Queue failure | 3 | 2 | 24.033 | 114.184 |\n| Queue canceled | 9 | 1 | 324.065 | 7.883 |\n\nOutcome totals are separate from successful-gate latency. Latest attempts only\nare available; the comparison includes a first-attempt-only sensitivity view.\nSome rerun job creation timestamps are later than their retained start times;\nthose cannot establish dispatch latency. No claim about overwritten attempt\ncosts is possible from this dataset.","chars":1479,"tokens_est":370,"sha256":"ee3ad43eb8186477258c1f10709efca29eaa0d3bd102dce4bd548b531f701f83"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day-revision-changes-and-final-","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day","Revision changes and final decisions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#revision-changes-and-final-decisions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day \u203a Revision changes and final decisions]\nThis was a representative day of actual repository work, with changing source\nand policy. It was not a day on a frozen implementation. In particular:","chars":247,"tokens_est":62,"sha256":"4376b2fecb239d8e0d446579a3ae30a1292f3b03e06df1a1d46c4ec2c678bf98"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day-revision-changes-and-final-~2","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day","Revision changes and final decisions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#revision-changes-and-final-decisions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day \u203a Revision changes and final decisions]\n- **Qt overlap: retain.** 19 of 20 PR and 14 of 15 queue successful Qt/Fast Gate\n  job pairs overlapped; median overlap was 184.5 and 144 seconds. These counts\n  include all source cohorts. No observed failed Fast Gate run had an active\n  Qt job, so failed-gate wasted Qt cost is unmeasured, not proven zero for\n  future runs. Keep both final dependencies and cancellation conditions.\n- **Sharding: superseded.** The mixed-layout day cohorts showed lower Linux gate medians\n  with more runner time. [#1643](https://github.com/obs-rust/obs-studio/pull/1643)\n  merged at 20:43:20 UTC, removing nine serial barriers after resource isolation\n  and a core ordering fix. It retained deinterlace RUN_SERIAL. At the user's\n  request, [#1663](https://github.com/obs-rust/obs-studio/pull/1663) merged at\n  22:22:41 UTC, restoring one complete suite per backend and halving repeated\n  test-job setup/download work. Keep that current unsharded policy. Do not\n  restore four runners based on the earlier cohort result. Optional local\n  sharding tools remain available.\n- **Prepared environment: defer under #1592.** The original local experiment\n  excludes a fresh runner's image transfer. No net CI saving is established;\n  keep stock Ubuntu plus apt caching until its publication and transfer\n  benchmark gate is satisfied.\n- **Rust compile settings: retain; further profiling under #1286.** Sampled\n  Fast Gate workspace commands reported 37.39\u201343.79 seconds build/link and\n  59.72\u201364.29 seconds observed test output. A changed-crate queue command was\n  only 2.92 seconds build/link and 2.88 seconds output: do not pool these\n  different scopes. Logs still cannot isolate linker-only time or rebuild\n  reasons. No extra compilation or wrapper/fingerprint changes were made.\n- **Empty publisher skip and timing metrics: retain.** Required failures stay\n  failures. Master timing publication was verified after the original rollout;\n  remote cache publication remains master-only. Several independent cache\n  changes (#1670, #1671, #1672, #1675, #1680 and #1681) also landed late in the\n  day. They and the hybrid-default change #1588 prevent attributing the entire\n  day to #1581. Qt pruning #1690 landed after the observation window.","chars":2321,"tokens_est":580,"sha256":"b355eefc221528fb3b205f14c013f0b43e85feabfa91d965fc1d0f8b788c5e0e"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day-coverage-and-failures","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day","Coverage and failures"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#coverage-and-failures","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day \u203a Coverage and failures]\nAcross the day, concrete Linux Tier 2 test jobs had 341 successes, two failures\nand seven cancellations (188/1/7 on PRs; 153/1/0 in the queue). These are job\noutcomes, not an independent-trial flake probability. A canceled workflow can\ncontain a failed final gate; do not count that as another test failure.\n\nThe sampled successful shard runs registered 341, 342 and 346 tests per\nbackend as new tests landed. Each mode retained the same three unavailable\nPulseAudio skips and zero failures. A late unsharded PR run\n[39703552196](https://github.com/obs-rust/obs-studio/actions/runs/39703552196)\nregistered 353 per backend, executed 350, skipped the same three and reported\nzero failures: OFF 168.19 seconds, ON 167.45 seconds. The early sampled queue\n[39528104438](https://github.com/obs-rust/obs-studio/actions/runs/39528104438)\nretained 341 per mode; the middle queue retained 346. The final queue sample\nselected no Linux Tier 2 job. Coverage evidence is sampled; a successful job\nalone does not reconstruct every test assertion or every registry union.\nThe original exact-partition checker and focused rollout evidence establish\nshard union invariants. Current unsharded jobs run the complete registry.\n\nThe two observed Linux test failures were inspected directly:\n\n- [39549304820](https://github.com/obs-rust/obs-studio/actions/runs/39549304820),\n  ON shard 2: `test_output_delay_e2e/force_stop_skips_delay`. #1643 corrected\n  inactive-state publication before the deactivate signal and added a\n  deterministic callback regression test, preserving existing assertions.\n- [39658456956](https://github.com/obs-rust/obs-studio/actions/runs/39658456956),\n  OFF shard 1: `test_deinterlace_2x_field_order/yadif_2x_bottom_first_50i_into_30`\n  during the experiment removing its guard. #1643 restored deinterlace\n  RUN_SERIAL instead of relaxing the timing assertion.","chars":1948,"tokens_est":487,"sha256":"0b710f475293e30a27e28251aab4ccf4a34365713d918359c047584e733b9b63"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day-coverage-and-failures~2","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day","Coverage and failures"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#coverage-and-failures","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day \u203a Coverage and failures]\nThe unchanged three device skips remain visible. This batch introduced no new\nworkflow file, product ABI/protocol change, Rust test binary, C-test relaxation\nor public-header change. Later independent product/test changes are explicitly\nidentified above. The initial RED/GREEN and partition/failure-condition checks\nremain linked through the implementation PRs; documentation needs no artificial\nRED test.","chars":488,"tokens_est":122,"sha256":"06f2137ab0669bacd4f777ae3986d248f54c877fb5129fc5b7c3df4189113689"},{"id":"docs-ci-speed-2026-10-21#ci-speed-batch-october-21-2026-full-post-rollout-day-measurement-limits-and-foll","doc":"docs-ci-speed-2026-10-21","group":"docs","tier":"archive","kind":"prose","breadcrumb":["CI speed batch: October 21, 2026","Full post-rollout day","Measurement limits and follow-through"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md#measurement-limits-and-follow-through","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-21.md","text":"[CI speed batch: October 21, 2026 \u203a Full post-rollout day \u203a Measurement limits and follow-through]\nThe day supports adopting Qt overlap, retaining the publication guard and phase\ninstrumentation, and recording the cost of the temporary shard experiment.\nIt does not establish a universal speedup. Cache hits in sampled build logs\nindicate warm restores, while some compilations remain cold; missing cache\nmarkers are unknown. Setup, restore/save, build/configure and test step times\nare retained separately in lane summaries. Qt phase markers and Cargo phase\nmarkers are in sampled logs; build-step wall time is not compiler CPU time.\nCreation-to-start includes dependency waits and cannot identify runner\ncontention by itself. The earlier 136-second post-creation gate delay remains\nunexplained; further readiness/dispatch diagnosis stays with the overall queue\nruntime tracker [#930](https://github.com/obs-rust/obs-studio/issues/930).\nThis batch adds measurement rather than changing runner policy.\n\nFurther prepared-image work is gated by #1592 and rebuild/link/cache work by\n#1286. Preserve the current complete OFF/ON suites, required checks,\ndifferential tiers and cache safeguards while pursuing those follow-ups.","chars":1221,"tokens_est":305,"sha256":"4cca2279bf16a24b18bc4bb4c8ab29a10b98fe6d64e270405cb651e7abfd9344"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#next-ci-speed-batch","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nTracked in [#1694](https://github.com/obs-rust/obs-studio/issues/1694).\nAll seven implementation PRs are merged. The final available-run comparison\nbelow uses the shorter observation period explicitly requested by the maintainer.\nEarlier sections retain the chronology and expectations recorded before rollout.","chars":561,"tokens_est":140,"sha256":"06e173e6015156514ea8fc89ed5ac999dcab61819ce123e2a8796d1f30307e98"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-current-policy-baseline","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Current-policy baseline"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#current-policy-baseline","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Current-policy baseline]\n[Evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-speed-batch-baseline.json) covers October 21\n22:22:41 UTC (complete-suite rollout) through October 22 02:15 UTC. Both run\nlistings cover the window: 85 runs listed, 84 terminal runs inspected; one\nmaster push was still running. This is an initial short-window baseline,\nnot a full post-rollout day. Later cache and product changes are\nretained through revisions and paths; these are observational cohorts.\n\n| Successful code cohort | n | Median gate | p95 |\n| --- | ---: | ---: | ---: |\n| PR | 11 | 849 s | 1,172 s |\n| Merge group | 11 | 709 s | 1,197 s |\n\nPlatform paths remain mixed in this broad table. Use the evidence's lane\ncohorts and records when matching a candidate's selected lanes. API job and\nstep fields are retained with run IDs, revisions, paths, outcome costs and\ncache inventory. Inventory is collection-time state; missing log counters\nremain unknown. Recollect using:\n\n```sh\nuv run ci/cache_metrics.py --output build_ci_audit/1694-baseline \\\n  --start 2026-10-21T22:22:41Z --end 2026-10-22T02:15:00Z --per-group 1000\n```","chars":1212,"tokens_est":303,"sha256":"559cf320bb696151ce977274fe106bfc7c7dd7edba7498a06b2708d22f5bf6a1"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-first-implementation-repeated-tier-2-setup","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","First implementation: repeated Tier 2 setup"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#first-implementation-repeated-tier-2-setup","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a First implementation: repeated Tier 2 setup]\nAcross 59 successful concrete test jobs, checkout took median 10 seconds\n(range 8\u201312), bootstrap installation 15 seconds (9\u201387) and the full package\ninstallation 34 seconds (28\u201349). Samples include PR, queue and master work;\nthis is not a controlled runtime estimate.\n\nTest-only runners unpack a tree whose configure, source compilation and\nsymbol comparison already passed in the build job. They do not need full\nGit history or browser/websocket source downloads. Use a normal shallow\ncheckout there; retain recursive submodules and full history in the builder.\nThe harness initializes those submodules only when building. Complete OFF/ON\nCTest registries and all runtime package inputs remain unchanged.\n\nBoth fresh containers already refresh apt indexes before installing Git.\nReuse those same indexes in their later package install instead of refreshing\nthem a second time. Package caching, install retries and fail-on-error remain.","chars":1004,"tokens_est":251,"sha256":"8f64fb26a066e3eb4cd8e2e8c7a06d2fb78b0912a12e8a17da4460320029a3af"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-first-implementation-repeated-tier-2-setup-expected-gains-re","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","First implementation: repeated Tier 2 setup","Expected gains recorded before rollout"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#expected-gains-recorded-before-rollout","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a First implementation: repeated Tier 2 setup \u203a Expected gains recorded before rollout]\n| Change | Measured opportunity | Expected gate saving / uncertainty |\n| --- | --- | --- |\n| Shallow test checkout without submodules | 10 s median total checkout per test job | 0\u201310 s per test runner; checkout overhead remains and overlaps between OFF/ON must not be added |\n| Reuse the bootstrap apt index | Part of 34 s median package-install step | Unquantified until step-level runtime comparison; no package install is removed |\n| Complete first change | Both test jobs wait for the same build/Fast Gate, then run independently | At most the longest affected path's reduction; no universal gate percentage promised |\n\nFocused RED commit and GREEN results are recorded in the implementation PR.\nFurther runtime-package/image transfer, Rust rebuild/link, scheduling and\nCTest experiments remain required by #1694; these first small setup changes\ndo not complete the batch. Conditional release/dev dependency cooking stays\nunchanged: the existing post-job archive experiment in #1317 supports that\npolicy and requires a fresh controlled comparison before replacement.","chars":1179,"tokens_est":295,"sha256":"21b5dd26064a4ba1e6313910be445878e49ab8693468eb31e2d21ca1286791d3"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-rust-execution-schedule-across-existing-binaries","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Rust execution: schedule across existing binaries"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#rust-execution-schedule-across-existing-binaries","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Rust execution: schedule across existing binaries]\nThe [local experiment](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-rust-runner-experiment.json)\nseparates a 41.48-second initial no-run compilation from a subsequent\n96.34-second Cargo suite command. The latter reported only 0.29 seconds\nbuild work, then ran the eight category executables sequentially. Core,\napplication and utility execution took 29.27, 29.85 and 18.79 seconds.\nA linker-only diagnostic, using the original `cc` behind a timing wrapper,\nrecorded 35 calls totaling 2.17 seconds of link wall time (overlapping calls;\nnot gate elapsed). Individual links were at most 0.21 seconds. Changing the\nlinker identity triggered a diagnostic rebuild, so its 18.15-second outer\ncommand is not an A/B compilation result. These local measurements do not\njustify changing linker settings or bypassing cache freshness safeguards.\n\nThe candidate uses pinned nextest 0.9.143 on Linux x86-64/aarch64 to schedule\nindividual tests globally across the same eight binaries. It caps concurrent\ntests at four or the available CPU count, whichever is smaller. It builds no\nadditional Rust test executable, changes no assertion and uses the same\nselected packages. Other hosts retain Cargo's existing execution path.\n\nNextest does not run documentation tests; Cargo runs them separately, even\nwhen a unit suite fails. Both results must pass. The repository's explicit\nrunner configuration selects all tests, with no retry-to-green; user runner\nconfiguration is disabled. Existing ignored tests retain their status.\nAn empty workspace is an error; a scoped package with no tests retains\nCargo's existing successful zero-test behavior. The source-freshness probe\nnow has an actual assertion to exercise this runner before the unchanged\nnested-source mutation must fail compilation.","chars":1913,"tokens_est":478,"sha256":"516fec9b98879b4452ac6b24eb5cea8386e6b68bc85308eef29b10c7b4f23ba0"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-rust-execution-schedule-across-existing-binaries~2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Rust execution: schedule across existing binaries"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#rust-execution-schedule-across-existing-binaries","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Rust execution: schedule across existing binaries]\nThe static upstream archive is SHA-256 pinned and checked before installing\nor reusing its executable; unsupported hosts download nothing. Installation\nhappens only when Rust scope selects tests. No new remote cache writer or\nworkflow file is added. Runner code/configuration participates in Rust lane\nkeys, attestation surfaces and workspace scope selection, so changing the\nexecutor cannot reuse an old proof or skip its runtime qualification.","chars":519,"tokens_est":130,"sha256":"8ad926516a91c8f9f4c3c65c60fae0765b61a66bb2698666146182ccbbb1ca56"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-rust-execution-schedule-across-existing-binaries-expected-ga","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Rust execution: schedule across existing binaries","Expected gain before rollout"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#expected-gain-before-rollout","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Rust execution: schedule across existing binaries \u203a Expected gain before rollout]\n| Observation | Cargo | Pinned nextest plus Cargo doctests |\n| --- | ---: | ---: |\n| Local warm suite command, one trial each | 96.34 s | 64.89 s |\n| Passing unit cases | 2,019 | 2,019 |\n| Existing ignored case | 1 | 1 |\n| Passing documentation cases | 4 | 4 |\n| Rust category executables | 8 | 8 |\n\nCargo discovery was compared by exact passing-case identity across all eight\ncategories; the only unexecuted discovered case is the existing ignored NVENC\nreal-GPU test. A separate GNU-binary prototype took 64.18 seconds without\ndoctests; do not pool it with the complete musl candidate.\n\nThe complete local observation is 31.45 seconds shorter, about 32.6%. This is\none warm-tool sample on a local host with Soldr 0.9.34, while CI pins 0.9.38;\nit is not an expected whole-gate percentage. Fresh hosted tool download cost,\nCPU contention, changed-crate scope and critical-path overlap must be measured.\nUse 0\u201331 seconds as a planning range for this Rust execution phase until CI\nqualification; overlap can make gate savings zero. Retain conditional cook\nprofiles and wrapper/fingerprint safeguards. PR/queue runtime qualification\nand the representative post-rollout day remain outstanding.","chars":1294,"tokens_est":324,"sha256":"8136a0c1df9757a76dab4e5064f5a0debcd8c0e5f6312d39b1109bc405544092"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-fresh-prepared-environment-transfer-protocol-1592","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Fresh prepared-environment transfer protocol (#1592)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#fresh-prepared-environment-transfer-protocol-1592","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Fresh prepared-environment transfer protocol (#1592)]\nThe opt-in `tier2-setup-probe` input on the existing Pull workflow is restricted\nto manual master runs. It preserves the normal full build. The final gate includes the optional jobs;\na requested experiment failure fails that manual run. On PRs and queue events,\nboth experiment jobs are skipped.\nIt requires the runtime manifest shipped by #1707; do not dispatch until that\nchange is on master. No new workflow, registry publication, token permission or\nremote cache writer is introduced.\n\nOne disposable producer installs the actual artifact's exact package closure\non the pinned stock Ubuntu base, retaining checkout bootstrap tools. It records\nthe complete resolved dpkg inventory, immutable image ID, input pins, compressed\narchive SHA256/bytes, revision and pull/install/commit/save/compression durations.\nThe image and metadata are separate one-day Actions artifacts. Capture the\nproducer's input download, apt restore and artifact upload step durations too;\nthese are publication cost, not free savings.\n\nThree fresh stock consumers restore the existing apt archive family and install\nthe complete locked producer inventory. Three prepared consumers download,\nverify, decompress and load that exact image, rejecting a resident prepared\nimage and inventory drift. Stock consumers download only the small metadata,\nso image transfer is not charged to both variants. Join Actions download/restore\nstep durations with JSON phase durations; neither phase sum alone is total setup.\nThe stock comparison uses one package transaction rather than CI's separate\nbootstrap/install transactions, so report that modeling limit. Record cache hits\nand misses from Actions rather than assuming the cache restored.","chars":1781,"tokens_est":445,"sha256":"0292719cbb17452b8050fda86c4b6273dedb4324b404ba742ec5e6e821b3f55a"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-fresh-prepared-environment-transfer-protocol-1592~2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Fresh prepared-environment transfer protocol (#1592)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#fresh-prepared-environment-transfer-protocol-1592","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Fresh prepared-environment transfer protocol (#1592)]\nThe first prepared consumer additionally runs both complete OFF/ON suites with\nthe existing harness and unchanged C tests, at the original artifact paths.\nThose logs are retained separately from setup measurements. An experiment pass\nis not a lane attestation and cannot skip normal coverage. The manual experiment\nuses seven extra runners and does not make its producer part of routine CI.\n\nBefore dispatch, expected net benefit is unknown: the historical package-install\nportion was 28\u201349 seconds, but runtime closure reduction changes that baseline,\nand archive download/load/verification plus amortized producer cost may consume\nall of it. Retain stock setup unless the fresh measurements, coverage and normal\nCI provide evidence for a separate deployment decision. Report rejected results\nand small-sample variance; do not promise a universal gate percentage.","chars":941,"tokens_est":235,"sha256":"be8eb3d7c5e045a9c297bea56ca904ccde543171cb89944b9f2a3b75e7121008"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#runtime-package-closure-experiment-1694-1592","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592)]\nThe builder retains the full development package set. Test runners consume an\nexact-version manifest produced from every runtime ELF in the built tree with\n`ldd` and `dpkg-query`, plus explicit dlopen providers and tools. Missing loader\nlibraries or package metadata fail closed. The manifest travels inside the\nexisting artifact; apt archive restore and master-only publication stay intact.\n\nLocal bosn validation used the actual #1700 hosted artifact (run 39711866137,\n189,868,667 compressed bytes) at its original absolute paths in the pinned\nUbuntu 26.04 environment. The reduced manifest contained 224 direct package\nspecifications. Both complete suites used unchanged C tests, Xvfb and the\nexisting isolation policy:\n\n| Mode | Registered | Executed | Device skips | Failures | CTest seconds |\n| --- | ---: | ---: | ---: | ---: | ---: |\n| OFF | 353 | 350 | 3 | 0 | 190.63 |\n| ON | 353 | 350 | 3 | 0 | 166.96 |\n\nThe same Pulse monitor/restart/two-source cases skipped. An initial prototype\nwas rejected because it lacked the compiler/Ninja needed by the manifest CMake\nfixture and the unversioned VLC loader library. Retaining gcc, libc6-dev,\nninja-build and libvlc-dev restored fixture execution and VLC coverage; focused\nregressions now require them. Test runners do not configure OBS, but this\nunchanged CTest fixture does compile a small C program.\n\nLocal Docker-reported `Size` changed from 541,093,691 to 445,476,013 bytes\n(17.7% smaller), using the containerd snapshotter. These fields are not verified\nuncompressed rootfs sizes or wire-byte counts. This compares package closure, not fresh hosted transfer or\nsetup latency. Expected setup saving is bounded by the old package installation\nportion (baseline 28\u201349 seconds), with manifest generation and artifact handling\nsubtracting from any gain. No gate saving is claimed before hosted comparison.\nA fresh prepared-image transfer experiment and the post-rollout observation day\nremain separate requirements.","chars":2044,"tokens_est":511,"sha256":"76a8aec77e69c84d0d52d4125e05fea566b49911590b1383f5eeffb7a92340a9"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-remaining-seria","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Remaining serial CTest decision"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#remaining-serial-ctest-decision","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Remaining serial CTest decision]\nThe complete-suite evidence identifies `test_deinterlace_2x_field_order` at\n82.60 seconds OFF and 82.88 seconds ON. Inspection of the unchanged test explains\nnearly all of that wall time: 40 cases, 16 at source 30 fps and 24 at 25 fps.\nEach case sends six warmup frames and 36 measured frames on real timestamps,\nthen waits 300 ms to drain playback and 250 ms between cases. The first frame\nis immediate, so its intended pacing/drain floor is:\n\n`16 \u00d7 (40 / 30 + 0.55) + 24 \u00d7 (40 / 25 + 0.55) = 81.733 seconds`.\n\nThat is 98.6\u201399.0% of these observed durations, before accounting for startup,\nvideo resets or additional warmup polling. This is source-derived wall-time\nattribution, not a CPU sampling result. The rest of each complete suite is\nalready scheduled with CTest concurrency and retained cost history; the\nruntime evidence records every individual duration for further comparison.\n\nDecision: reject a deinterlace scheduling/algorithm change for this batch.\nThere is no demonstrated substantial removable computation here. Preserve all\nframe-rate/order cases, assertions, real-time pacing and `RUN_SERIAL`; no C test\nor public header changes. Do not add its duration to setup/Rust savings, and do\nnot restore shards. Revisit only if separate profiling establishes a removable\ncost while preserving the same real-time correctness coverage and isolation.","chars":1467,"tokens_est":367,"sha256":"3957235bf6e6701345d8e6232a531d6c84ce912c625494a8af04cc09933970f9"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-manifest-produc","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Manifest producer overhead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#manifest-producer-overhead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Manifest producer overhead]\nThe first hosted producer took 13.36 seconds to derive its runtime manifest.\nA follow-up local cProfile comparison in the same full Ubuntu environment\nmeasured 14.562 seconds before and 7.663 seconds after batching package ownership\nqueries. The original performed 850 subprocess calls; the candidate performed\n621. Package ownership resolution dominated the removed work. Per-path lookup\nremains for missing records and loader aliases/diversions, and unresolved\nownership still fails closed. The 224-pin output is byte-for-byte identical.\n\nThese are single sequential local profile runs, not a hosted A/B distribution.\nThe expected additional opportunity is approximately 0\u20137 seconds of producer\nwork; the actual hosted result and critical-path overlap remain to be measured.\nNormalized function timings and the matching manifest SHA256 are retained in\nthe runtime experiment evidence. No full-suite assertion or dependency changes\nare introduced by this lookup optimization.","chars":1079,"tokens_est":270,"sha256":"d2ce0a1ffa88cc3be88606fc6f248e3804921ee32ed64f79bcff07d7633130b1"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-first-hosted-ru","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","First hosted runtime qualification (before ownership batching)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#first-hosted-runtime-qualification-before-ownership-batching","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a First hosted runtime qualification (before ownership batching)]\nPR run [39717762825](https://github.com/obs-rust/obs-studio/actions/runs/39717762825)\npassed both complete suites after the single-directory artifact upload fix.\nCurrent master added a test since the local snapshot: each mode registered\n354, executed 351 and retained only the same three Pulse device skips.\nOFF took 165.50 seconds and ON 163.95 seconds. Package installation steps took\n28 and 24 seconds respectively, compared with the earlier full-package baseline\nmedian of 34 seconds (28\u201349 range). This is one qualification run, not a matched\ncausal comparison; producer overhead and critical-path overlap still apply.\nPer-job step timings, test/skip counts, IDs and log hashes are in the evidence\nJSON. The ownership batching change requires its own hosted qualification.\n\nThe manual producer waits for the normal reusable build to finish, but can\nconsume its Linux artifact even if an unrelated platform job failed. Cancellation\nstill prevents the probe, and missing/invalid artifacts fail it. The final gate\ncontinues to require the normal build result: useful setup evidence from a red\nfull run must never be reported as full-platform qualification.","chars":1297,"tokens_est":324,"sha256":"ad32ccc741653dfb218c3b0aebb4c827c5c8652bdeefd339ca0ba22c58da4ad4"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-fresh-prepared-","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Fresh prepared-runtime experiment and production candidate (#1717)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#fresh-prepared-runtime-experiment-and-production-candidate-1717","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Fresh prepared-runtime experiment and production candidate (#1717)]\n[Hosted run 39721238636](https://github.com/obs-rust/obs-studio/actions/runs/39721238636)\ncompleted successfully at `ee148335c2e1e4780c77c07dec2a3ed50bd4faab`, including\nnormal full-platform validation and all seven experiment jobs. Portable phase\nmeasurements, transfer step durations, trial/job IDs, producer inventory and\ncoverage hashes are in\n[`2026-10-22-prepared-runtime-experiment.json`](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-prepared-runtime-experiment.json).\n\n| Accounted setup on fresh hosts | Stock Ubuntu + apt | Prepared runtime |\n| --- | ---: | ---: |\n| Samples | 3 | 3 |\n| Median | 55.604 s | 24.510 s |\n| Range | 49.997\u201367.755 s | 24.431\u201342.751 s |\n\nAccounted setup adds explicitly timed phases to Actions metadata and image\ndownload steps (prepared) or apt-cache restore (stock). Actions timestamps have\none-second resolution. The median difference is 31.095 seconds, about 56% of\nthis setup model; it is not a whole-gate speedup. Trials use different fresh\nhosts and are too few to estimate population p95. The stock model installs the\ncomplete locked inventory in one apt transaction, unlike split production\nbootstrap/closure installation. Stock helper teardown adds roughly 10 seconds\nof default Docker stop grace plus other cleanup outside the phase model;\nwhole measurement-step duration must not be called production setup time.","chars":1571,"tokens_est":393,"sha256":"8e7312e1ed011dca3eeac1c48b461ca9bb3c89505413104a69ebf14bed9e7851"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-fresh-prepared-~2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Fresh prepared-runtime experiment and production candidate (#1717)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#fresh-prepared-runtime-experiment-and-production-candidate-1717","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Fresh prepared-runtime experiment and production candidate (#1717)]\nProducer explicit phases totaled 91.326 seconds (including installation,\ncommit, save and compression), before input download/cache restore, upload\nand cleanup. The original transferred archive was 493,209,776 bytes. The\nproduction candidate repacks the same Docker-save OCI contents with the\nexisting dependency CLI's zstd9 convention: 493,631,934 bytes, SHA256\n`5e5102bfb16ef6d9bec4d24fbe3ee3bafa7abb5f565ad7c7308320cf4df5a558`.\nThe immutable OCI manifest digest and Docker-reported image identity remain\n`sha256:84efcd622069129995c242d5af614a664abe6d48b31779d38595f1a7c541f6b5`.\nThe archive's image config is\n`sha256:7362a072406b293ded09f9a52be142367a56bc797e9dbf464ef21feaffaf4986`.\nPublication/refresh cost must be amortized over consumers, never treated as free.\n\nPrepared correctness coverage ran both complete suites: OFF189.30 seconds,\nON189.22 seconds; each registered354, passed351, failed0, and retained the same\nthree Pulse device skips. These experimental suites did not restore production\nCTest history, so their duration is not a causal test slowdown comparison.\n\nDecision: qualify a production candidate in #1717. It retains normal timing\nhistory, full OFF/ON coverage, fixed source/build paths, read-only source,\neight CTest workers, deinterlace isolation and trusted master-only cache writers.\nExact package-closure matching selects the prepared image. Changed closures or\nunavailable assets select stock installation; integrity failures fail closed.\nThe descriptor pins the approved dependency-repository asset URL, byte count,\nSHA256, base, image identity and full resolved package inventory. No additional\nCI credentials, registry or cache writer are required. A unique prerelease\nprecedes qualification; shared stable catalogue publication waits for success.","chars":1924,"tokens_est":481,"sha256":"48b3d8fe8b9aefc60be69fa68664820a2b01479b58f75411069f88d25dfd4459"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-fresh-prepared-~3","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Fresh prepared-runtime experiment and production candidate (#1717)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#fresh-prepared-runtime-experiment-and-production-candidate-1717","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Fresh prepared-runtime experiment and production candidate (#1717)]\nExpected gate benefit before candidate rollout: **0\u201331 seconds**, bounded by\nmeasured setup savings before release-asset transfer differences and critical\npath overlap. Adoption still requires actual prepared-path CI execution,\nunchanged-suite success, normal queue validation and the final matched\npost-rollout observation day. This experiment alone does not satisfy them.","chars":516,"tokens_est":129,"sha256":"64d8c49c01ff8c5c217e0b52c237705a4ccbc7967a3103360bca204337674c0f"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-fresh-prepared--2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Fresh prepared-runtime experiment and production candidate (#1717)","First normal production-path qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#first-normal-production-path-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Fresh prepared-runtime experiment and production candidate (#1717) \u203a First normal production-path qualification]\n[PR run39726143474](https://github.com/obs-rust/obs-studio/actions/runs/39726143474)\npassed the required gate at `4b1dbbc82b65121abb341708f68cbc8a4da72f7c`.\nBoth consumers selected **prepared**, verified image inventory, and restored\n`tier2-ctest-cost-b095a8347f25d1178abc637f5fe99c2e19a868b2`.\n\n| Mode | Prepared setup | Complete CTest | Registered | Executed | Failed | Skipped |\n| --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| OFF | 19.627 s | 168.21 s | 355 | 352 | 0 | 3 |\n| ON | 30.455 s | 169.23 s | 355 | 352 | 0 | 3 |\n\nThe same Pulse monitor/restart/two-source cases skipped. This revision includes\none more registered case than the earlier setup experiment; coverage was not\nreduced. Setup includes release download, verification, decompression/load,\ncontainer creation/start and inventory verification. Host checkout, apt/history\ncache restore and compiled-tree download/unpack remain separate Actions steps.\nRaw per-mode measurements, step timestamps and full-log hash are preserved in\n[`2026-10-22-prepared-runtime-qualification.json`](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-prepared-runtime-qualification.json).\nThis is one qualification run on a different revision, not a matched population\nestimate. Runner allocation delays dominated portions of the run and remain\nseparate from setup execution. Final-head PR and queue validation, catalogue\npublication, and the final post-rollout day are still required.","chars":1688,"tokens_est":422,"sha256":"9784fdeeb62bf5dea6cdab85c83d969219895941290a2d9855f3a610ddfd1f3a"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-rollout-and-pos","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Rollout and post-merge qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#rollout-and-post-merge-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Rollout and post-merge qualification]\n#1717 merged through the normal queue on October22 at05:50:37UTC,\n`0e42adcfeff236099f7b8f7cecff054c267079ab`.\n[Queue run39729486071](https://github.com/obs-rust/obs-studio/actions/runs/39729486071)\npassed. The final PR run39728550270 tested merge checkout\n`05ef92bb97cfc543d7481534978b2bb33924eb3b`, rather than only its head SHA.\nCatalogue [obs-studio-libs#7](https://github.com/obs-rust/obs-studio-libs/pull/7)\nmerged at05:51:29UTC; the verified release asset was promoted without replacing\nbytes. This completes deployment, not the required representative-day analysis.\n\n| Qualification | Mode | Prepared setup | CTest | Registered | Executed | Failed | Skipped |\n| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| Final PR39728550270 | OFF |32.461s|168.39s|357|354|0|3|\n| Final PR39728550270 | ON |32.712s|192.13s|357|354|0|3|\n| Queue39729486071 | OFF |36.068s|166.39s|357|354|0|3|\n| Queue39729486071 | ON |34.629s|192.92s|357|354|0|3|\n| Later master39733445653 | OFF |16.337s|169.24s|359|355|0|4|\n| Later master39733445653 | ON |20.984s|194.38s|359|355|0|4|\n\nAll rows selected prepared and verified inventory. Master\n`5d0f6a7707f4c1386dd2e1e0ded18864191b9691` restored prior history,\nuploaded timing files, merged359reported non-separator lines per mode, and\nsaved `tier2-ctest-cost-5d0f6a7707f4c1386dd2e1e0ded18864191b9691`\nin trusted master job119676285297. This verifies publication, not just restore.\nThe full master run later concluded failure: Linux qualifications and trusted\ncache publication passed, while the Windows Tier2 job failed. Keep that overall\noutcome and platform runner cost in the day comparison.","chars":1743,"tokens_est":436,"sha256":"77c7bc55b79ce1928a552db4f27c7650f788f593524d09a82a2a30653e621f1e"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-rollout-and-pos~2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Rollout and post-merge qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#rollout-and-post-merge-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Rollout and post-merge qualification]\nThe latest source adds `test_pulse_monitor_samples` to the prior358-case\nregistry, removing no cases. Its fourth skip joins the three earlier Pulse\nprerequisite skips. These wrappers start private software sound servers and\nneed no hardware; they allow exit77 when software prerequisites are absent.\nThe prepared inventory contains `pipewire`, but lacks `wireplumber`,\n`pipewire-pulse` and `pulseaudio-utils` (which provides `pactl`/`parec`).\nPreserve case identities and source revisions in comparisons; do not describe\nthis source-added skip as a removed assertion or a hardware requirement.","chars":706,"tokens_est":176,"sha256":"59d6ac6405f2abcbf7c2049af08ed1e560bf5dbe888918711e9576a2b4ed395e"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-rollout-and-pos-2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Rollout and post-merge qualification","Unexplained portal alarm retained in results"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#unexplained-portal-alarm-retained-in-results","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Rollout and post-merge qualification \u203a Unexplained portal alarm retained in results]\n[Master39730342498](https://github.com/obs-rust/obs-studio/actions/runs/39730342498)\nat `8534113ae7b0ad5282c7c4c03a835363d016ed30` passed Linux ON, but OFF\nfailed `test_screencast_portal_teardown`: its unchanged child alarm delivered\nSIGALRM14 after20seconds. The full358-case suite executed355, failed1 and\nretained3Pulse skips; CTest took180.46seconds. Prepared setup/inventory\nverification succeeded. Both timing artifacts uploaded, and aggregation/cache\nsave correctly skipped because one suite failed. No blind CI rerun, increased\ntimeout, assertion change or skip was used to turn that observation green.\n\nThe exact artifact and test binary were exercised locally through bosn:\n\n| Environment | Isolated portal | Eight-process portal stress | Complete OFF |\n| --- | ---: | ---: | --- |\n| Prepared runtime |30/30passed|200/200passed|358registered,355executed,0failed,3skipped;202.75s|\n| Previous full-development-package image |\u2014|200/200passed|358registered,355executed,0failed,3skipped;192.05s|\n\nThe control satisfies all224required runtime pins. All486shared package\nversions match; it has203additional development packages. Every stress log\nconfirms one executed passing cmocka case and no inner skip, in addition to\nexit0. Each worker stops on failure; child20-second and outer60-second limits\nremain. These diagnostics do not reproduce or explain the hosted alarm and\nare not a fixed claim or causal image comparison. Local kernel6.18.48 differs\nfrom hosted7.0.0-1017-azure, complete-suite historical ordering differed, and\nthe stress runs eight copies of one fixture rather than a mixed suite.\nThe local full-package control image is not a published artifact; its locked\ninventory is preserved, but an immutable apt snapshot is not supplied.","chars":1912,"tokens_est":478,"sha256":"cbcdc8b46a202f3e3e4147e69ce35add685713c15d96c655f926d4a4e82cd738"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-runtime-package-closure-experiment-1694-1592-rollout-and-pos~2-2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Runtime package closure experiment (#1694, #1592)","Rollout and post-merge qualification","Unexplained portal alarm retained in results"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#unexplained-portal-alarm-retained-in-results","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Runtime package closure experiment (#1694, #1592) \u203a Rollout and post-merge qualification \u203a Unexplained portal alarm retained in results]\nA separate Windows failure predates this rollout: pre-rollout\nrun39728526955/job119660751156 and post-rollout\nrun39730342498/job119666870978 both fail linking `test_video_output_plan`\nwith unresolved `cm_print_error`. Keep platform failures and their runner cost\nvisible without attributing them to Linux runtime execution.\n\nPortable qualification records, locked control inventory, raw stress result\nrows and hashes are in\n[`2026-10-22-prepared-runtime-post-rollout.json`](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-prepared-runtime-post-rollout.json).\nThe original fixed24h protocol was superseded by the maintainer\u2019s request to\nuse the completed runs available now. The final comparison below records that\namendment and retains the original protocol rather than presenting a partial\nwindow as a full day.","chars":1037,"tokens_est":259,"sha256":"63c83b7a23f624e5490ee8232891af25b57a115f25ba75ff7ef94676a738b17a"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-batch-decisions-and-retrospective","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Batch decisions and retrospective"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#batch-decisions-and-retrospective","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Batch decisions and retrospective]\nThese implementation decisions precede the final population comparison. Phase\nmeasurements below overlap and must not be summed into a gate saving.","chars":205,"tokens_est":51,"sha256":"08fb616c8a0cc07a994008439929a565447f6ddc8384456a60303f5f70af7e4e"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-batch-decisions-and-retrospective~2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Batch decisions and retrospective"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#batch-decisions-and-retrospective","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Batch decisions and retrospective]\n| Area / owner | Decision | Evidence and limit |\n| --- | --- | --- |\n| Repeated setup / #1592 | Adopt shallow test checkout and reuse apt indexes (#1700) | Builder retains full source setup; initial checkout median10s is an opportunity, not an isolated measured saving. |\n| Dependency scheduling / #930 | Adopt independent test readiness (#1701) | Tests may start after their builder without waiting for Fast Gate; Fast Gate remains required. Baseline median opportunity was0s, so benefit depends on the run. |\n| Rust execution / #1286 | Adopt pinned nextest with separate Cargo doctests (#1706) | Same eight binaries and discovered cases; one local warm command96.34\u219264.89s. Hosted download, scope and overlap constrain gate benefit. |\n| Rust compilation / #1286 | Retain conditional dependency cooking; reject linker changes in this batch | Diagnostic links totaled2.17s across overlapping calls; changing linker identity forced a rebuild. This does not establish a beneficial compiler/profile change. |\n| Runtime closure / #1592 | Adopt exact runtime pins and batched ownership lookup (#1707) | Manifest unchanged; local lookup14.562\u21927.663s. Runtime fixture compiler and explicit dlopen providers remain installed. |\n| Prepared transfer / #1592 | Adopt qualified immutable runtime (#1708, #1717); retain mixed gate outcome | Three fresh trials per variant gave accounted setup medians55.604\u219224.510s. Publication cost, stock-model differences and hosted failures remain visible. |\n| Remaining CTest / #1694 | Reject deinterlace changes; preserve complete suites and isolation | Intended real-time pacing accounts for81.733s of observed82.60/82.88s. No substantial removable computation was established. |\n| Measurement / #1694 | Adopt nextest-aware collection and preserve historical comparison bases (#1710) | Missing counters remain unknown. Collector stayed frozen; the maintainer explicitly shortened the observation window. |","chars":1990,"tokens_est":498,"sha256":"0992608fedb29049aed0912c01d572b7970a1bc6197f04ed8b04473b0a2fd15d"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-batch-decisions-and-retrospective~3","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Batch decisions and retrospective"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#batch-decisions-and-retrospective","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Batch decisions and retrospective]\nThe useful process improvements are to measure the dependency path before\noptimizing a phase, include fresh-runner transfer and publication costs, and\nseparate source-added test cases from regressions in coverage. A successful\nLinux qualification cannot stand in for a successful platform run. Preserve\nfailed and canceled runner cost alongside successful latency, and investigate\nintermittent failures with exact artifacts and controls before assigning cause.\n\nPer-PR file inventories for all seven changes show no new workflow files,\nno C test source edits, no libobs header edits and no changes under\n`plugins/obs-websocket/`. This audit uses each PR's changed files; an aggregate\nmaster range also contains unrelated concurrent product work and cannot prove\nownership of changes. The final available-run conclusions follow; broader owning issues retain any\nunproven targets.","chars":936,"tokens_est":234,"sha256":"db2d8ed50af56bb3de7a2f0f0711753f9ecf327074e405543f11ec004c0fda89"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-final-available-run-comparison-october-22","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Final available-run comparison \u2014 October 22"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#final-available-run-comparison--october-22","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Final available-run comparison \u2014 October 22]\nThe maintainer explicitly waived the24-hour wait and requested results from\nthe merged PRs already available. The replacement created-at window is\n**October22,05:52:00\u201307:12:45UTC** (80minutes45seconds). Collection finished\nat07:15:39UTC using the unchanged frozen collector from `ee148335`.\nBoth workflow listings cover the window:36runs listed,29terminal records\ninspected,7queued/active runs retained in the listing but excluded from\nterminal metrics. This is a short-window observational comparison, not a\nfull-day or controlled causal estimate. No CI run was restarted for measurement.","chars":658,"tokens_est":164,"sha256":"b5f078f7b9ef9e08706f98baf904422cc6bcbbbc30725e8e399484f38401d476"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-final-available-run-comparison-october-22-same-selected-linu","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Final available-run comparison \u2014 October 22","Same selected Linux build lanes"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#same-selected-linux-build-lanes","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Final available-run comparison \u2014 October 22 \u203a Same selected Linux build lanes]\nMatch successful code runs by the exact active build-job signature: Fast Gate,\nLinux Tier2builder, complete OFFsuite and complete ONsuite. Exclude metadata,\nCI-mode and the Linux aggregate from the signature. Keep PR and merge-group\nevents separate; exclude Qt and native platform lanes from this comparison.\nThe baseline is the same October21,22:22:41\u2192October22,02:15UTC window,\nnow enriched to85terminal records without changing historical comparisons.\n\n| Metric | Before | After | Observed change |\n| --- | ---: | ---: | --- |\n| PR sample size |5|3|Same selected build lanes |\n| PR median gate |691s (11m31s)|555s (9m15s)|136s /19.7% faster |\n| PR sample p95 gate |849s|633s|25.4% lower |\n| PR median runner-minutes |19.783|18.417|6.9% lower |\n| Merge-group sample size |5|2|Same selected build lanes |\n| Merge-group median gate |526s (8m46s)|560.5s (9m20.5s)|34.5s /6.6% slower |\n| Merge-group sample p95 gate |709s|574s|19.0% lower |\n| Merge-group median runner-minutes |18.167|16.367|9.9% lower |\n\nSample p95 uses nearest rank and is the maximum in these small groups; it is\nnot a stable population tail. Runner-minutes sum observed non-skipped job\nstart\u2192finish time, including failed/canceled jobs in the outcome table below;\nthey are not billed minutes or CPU time. The raw run IDs, revisions, file\ncomparisons, job/step times and exact selection are preserved in the evidence.\n\nThe result supports lower PR latency and lower runner time in these cohorts.\n**It does not establish faster merge-queue throughput.** Do not substitute the\nbroad code medians849\u2192496s (PR) or709\u2192352s (queue): the after groups also\ncontain Qt-only and Fast-Gate-only changes, which ran fewer/different lanes.\nNative platform performance has no successful matched after cohort here and\ncannot be inferred from Linux.","chars":1902,"tokens_est":476,"sha256":"b341927605ac23112066f38e606f4c7aaadcbb1187753527a4d73350141cf593"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-final-available-run-comparison-october-22-where-the-time-wen","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Final available-run comparison \u2014 October 22","Where the time went"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#where-the-time-went","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Final available-run comparison \u2014 October 22 \u203a Where the time went]\n| Matched successful-job median | PR before\u2192after | Queue before\u2192after |\n| --- | ---: | ---: |\n| Fast Gate total |154\u2192297s|171\u2192166s|\n| Tier2builder total |381\u2192222s|208\u2192210.5s|\n| Actual builder step |249\u219296s|78\u219285s|\n| Complete OFF test job |251\u2192213s|248\u2192205.5s|\n| Complete ON test job |248\u2192240s|246\u2192237s|\n\nThe OFF job saves38\u201342.5seconds in these samples, while the ON job saves only\n8\u20139seconds. ON CTest itself grew from roughly168\u2013169seconds to190\u2013193seconds\nas source/tests changed; setup savings must not be mistaken for faster tests.\nThe after prepared setup observations span14.78\u201327.59seconds, with inventory\nverified in every matched mode. They complement the fresh transfer experiment\u2019s\n55.604\u219224.510second setup medians, rather than replacing it with resident-image\nmeasurements. The routine builder still installs its full package environment.\n\nSelected lanes do not imply identical work: the PR Fast Gate changed-crate test\nstep median was1second before and145seconds after. The latter includes broader\nRust work; builder compilation/cache state also differs. Thus the136-second PR\ngate improvement is an observed batch-era delta, not153seconds of causal\ncompiler savings. The controlled warm Rust experiment and ownership-lookup\nexperiment above provide separate phase evidence. Do not sum their savings.","chars":1406,"tokens_est":352,"sha256":"89c6ee39353a6876b42f34b353624005d30160abad6258a8ca219fd1635460b1"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-final-available-run-comparison-october-22-outcomes-coverage-","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Final available-run comparison \u2014 October 22","Outcomes, coverage and cache limitations"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#outcomes-coverage-and-cache-limitations","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Final available-run comparison \u2014 October 22 \u203a Outcomes, coverage and cache limitations]\nThese outcome counts/costs include every terminal code run in each event,\nincluding Qt/native selections; they are not restricted to successful matched\nLinux runs. Windows failures and a pre-window hosted portal alarm remain\nvisible in the qualification section. This sample does not establish unchanged\nfailure rates or explain the intermittent portal alarm.\n\n| Terminal code outcomes | Before count / runner-minutes | After count / runner-minutes |\n| --- | ---: | ---: |\n| PR success |11 /346.483|5 /77.316|\n| PR failure |2 /46.084|3 /75.001|\n| PR cancellation |7 /64.950|8 /189.134|\n| Merge-group success |11 /364.617|5 /58.550|\n| Merge-group failure |0 /0|1 /19.117|\n| Merge-group cancellation |0 /0|0 /0|\n\nThe periods differ in duration; do not compare these totals as equal-load daily\ncosts. Cancellation cost rose substantially and offsets savings elsewhere.\nNo canceled or failed work is removed from the evidence. Logs are unavailable\nfor17baseline and10after records, all canceled; their metadata/outcome costs\nremain, and missing counters remain unknown.\n\nAll20baseline matched mode runs registered353cases, executed350and retained\nthe same3Pulse prerequisite skips. The10after matched modes registered358\u2013360,\nexecuted355\u2013356, failed0, with3\u20134skips. New source adds the fourth software\nPulse prerequisite skip described above. Exact skipped identities and each\nrevision are recorded; increasing registrations are not evidence of identical\ntest work. The batch retains complete suites without adding a runner filter or sharding;\nregistration counts alone do not prove identical case contents.","chars":1714,"tokens_est":428,"sha256":"294f3e30eaec66f0e3fc9540b987051f637c854fccd214016acbf4542908a2b1"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-final-available-run-comparison-october-22-outcomes-coverage-~2","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Final available-run comparison \u2014 October 22","Outcomes, coverage and cache limitations"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#outcomes-coverage-and-cache-limitations","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Final available-run comparison \u2014 October 22 \u203a Outcomes, coverage and cache limitations]\nCache inventory at collection changed from10,726,575,303bytes/37entries to\n9,302,540,076bytes/40entries. These are point-in-time inventories, not transfer\nbytes or proof of equal warm-cache state. Per-run archive sizes, compiler and\nRust markers remain in the raw records; no uniform cache-hit-rate claim is made.\nThe published runtime asset is493,631,934compressed bytes; its producer\u2019s\n91.326seconds of explicit phases is amortized over reuse, not counted as free.","chars":577,"tokens_est":144,"sha256":"c257ae601079f197c040e10acb6d45b632736a81175a11caa79a698b489d9a97"},{"id":"docs-ci-speed-2026-10-22#next-ci-speed-batch-final-available-run-comparison-october-22-final-decisions","doc":"docs-ci-speed-2026-10-22","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Next CI speed batch","Final available-run comparison \u2014 October 22","Final decisions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md#final-decisions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-2026-10-22.md","text":"[Next CI speed batch \u203a Final available-run comparison \u2014 October 22 \u203a Final decisions]\nKeep the deployed setup, scheduling, runtime-closure and Rust-runner changes:\nthey have focused regression coverage, normal PR/queue qualification and measured\nphase or runner-cost benefits. Keep the existing cooking policy and reject an\nunsupported linker/deinterlace rewrite. The batch is implemented and measured\nunder the maintainer\u2019s amended scope. The broader under8-minute queue target\nin #930 and cache backlog in #1286 remain open. #1592 retains its stronger\nnet-gate adoption criterion: this mixed queue result does not prove that target,\neven though prepared setup and normal rollout are qualified.\n\nEvidence:\n[`2026-10-22-speed-batch-comparison.json`](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-speed-batch-comparison.json)\ncontains selection, samples, phases, coverage, outcomes and limitations;\n[`2026-10-22-speed-batch-short-window.json.gz`](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-speed-batch-short-window.json.gz)\ncontains all85baseline and29after normalized records, summaries and complete\nlistings, including the7unresolved runs at capture. Decompress with\n`gzip -dc docs/ci-evidence/2026-10-22-speed-batch-short-window.json.gz`.","chars":1377,"tokens_est":344,"sha256":"60ac3fca7ef35d9eeeccff78a1b7c18172f9a238df3fe41432c3ebe8947a6c86"},{"id":"docs-ci-speed-flatpak-1760#flatpak-performance-cef-debug-processing","doc":"docs-ci-speed-flatpak-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance: CEF debug processing"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md#flatpak-performance-cef-debug-processing","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md","text":"[Flatpak performance: CEF debug processing]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nTracked in [#1760](https://github.com/obs-rust/obs-studio/issues/1760).\nThis is the first candidate, not completion of the issue's full-job target.","chars":420,"tokens_est":105,"sha256":"fb76edbf26a6a15959b5cd53e6eb05fa55eb402523268013a9eb4770dbf2fce4"},{"id":"docs-ci-speed-flatpak-1760#flatpak-performance-cef-debug-processing-measured-bottleneck","doc":"docs-ci-speed-flatpak-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance: CEF debug processing","Measured bottleneck"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md#measured-bottleneck","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md","text":"[Flatpak performance: CEF debug processing \u203a Measured bottleneck]\n[Full build 39721238636](https://github.com/obs-rust/obs-studio/actions/runs/39721238636/job/119635024523)\ntook 15m11s. Its logs place 162.4 seconds between CEF's debug-compression\nmessage and stripping. Compilation, setup and export remain separate costs.\nThe manual extra rebuild in #1715 is not routine production work and is not\ncounted as a saving here.\n\nFlatpak Builder compresses changed ELF debug sections before splitting them.\nThe OBS install copies CEF from its cached dependency into the final plugin\ndirectory, so it receives that processing again. The dependency's existing\n`no-debuginfo` setting alone does not suppress processing of the installed copy\nby the later OBS module.","chars":758,"tokens_est":190,"sha256":"efd6211539a68a1b5b27f39c49f977e70e34b4ed68726fbdc8dba2453e1d3499"},{"id":"docs-ci-speed-flatpak-1760#flatpak-performance-cef-debug-processing-local-elf-experiment","doc":"docs-ci-speed-flatpak-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance: CEF debug processing","Local ELF experiment"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md#local-elf-experiment","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md","text":"[Flatpak performance: CEF debug processing \u203a Local ELF experiment]\nThe exact pinned CEF archive was verified against SHA256\n`8ffc64d06ea74da613eeda7f2aa5d4e98661af6fa3ed8c68724c9a6e4e89ea8e`.\nBoth local tasks ran through bosn with four CPUs. Each variant starts with the\nsame 2,031,350,672-byte ELF. Timings exclude extraction and copying inputs.\n\n| Variant, one observation each | Compression | Splitting | Total | Separate debug bytes |\n| --- | ---: | ---: | ---: | ---: |\n| Current zlib-gnu |128.894s|2.057s|130.951s|420,562,136|\n| No compression |0s|9.115s|9.115s|1,751,810,960|\n| Zstandard |8.705s|1.961s|10.666s|394,021,568|\n\nAll allocated ELF sections and the build ID remain identical. GDB resolves\nthe same source line for `cef_version_info` in all three variants. All variants\nalso report the same 41,344 unavailable DWO references already present in the\ninput; this does not establish complete Chromium source-level debug coverage.\nTool versions, identities, GDB log hashes and observations are retained in the\n[portable experiment](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-cef-debug-experiment.json).\n\nThe uncompressed CEF option adds about 1.33 GB of debug data and could move\ncost into exports or caches. It is not the selected CEF payload. Fast\ncompression is 120.3 seconds shorter in this local phase and produces a smaller\ndebug file, but that is not a demonstrated hosted Flatpak saving.","chars":1485,"tokens_est":371,"sha256":"adebcb031e2232abbc2d1d4399868516c0091797dd0d4b2ba4295657c55dd17f"},{"id":"docs-ci-speed-flatpak-1760#flatpak-performance-cef-debug-processing-candidate-and-remaining-qualification","doc":"docs-ci-speed-flatpak-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance: CEF debug processing","Candidate and remaining qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md#candidate-and-remaining-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md","text":"[Flatpak performance: CEF debug processing \u203a Candidate and remaining qualification]\nCompress CEF's debug sections with `eu-elfcompress -t zstd` inside its immutable\ndependency module, so that work can be reused from the dependency cache. Keep\nthat module's existing `no-debuginfo` setting: the final OBS installation still\nextracts debug files at the correct installed path. Set the OBS module's\n`no-debuginfo-compression` option to prevent conversion back to zlib. Its\nfirst-party debug information remains available for normal splitting/export;\nthe candidate does not disable debug extraction or enable destructive stripping.\n\nThis follows the distinct compression and extraction flags in\n[Flatpak Builder's post-processing implementation](https://github.com/flatpak/flatpak-builder/blob/bd35975d1b089960251809a5bec738ded3cd6f46/src/builder-module.c).\nThe exact production SDK (elfutils 0.195) processes the pinned CEF with the\nsame allocated sections/build ID and source-line lookup. Full export\n[39754042722](https://github.com/obs-rust/obs-studio/actions/runs/39754042722)\npasses existing Flatpak validators. Its complete Flatpak job takes 12m04s,\nincluding optional runtime-export upload; that is one observation with changed\nsource/dependency cache state, not a comparable warm-job speedup.","chars":1297,"tokens_est":324,"sha256":"d485029c4c1e69ee441c70299d8de8a2f1bebe5148bdcc121455e776c31612c9"},{"id":"docs-ci-speed-flatpak-1760#flatpak-performance-cef-debug-processing-candidate-and-remaining-qualification~2","doc":"docs-ci-speed-flatpak-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance: CEF debug processing","Candidate and remaining qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md#candidate-and-remaining-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-1760.md","text":"[Flatpak performance: CEF debug processing \u203a Candidate and remaining qualification]\nInstalled-package qualification\n[39763463067](https://github.com/obs-rust/obs-studio/actions/runs/39763463067)\nreuses that immutable export and passes app/Debug build IDs, GDB source lookup,\nauthenticated unchanged WebSocket v5, all four saved sources, clean shutdown\nand module loading. The 12.033-second recording passes screen/camera motion and\ncontinuous 440 Hz microphone tone checks. All 302 checked browser frames render\nthe green HTML patch. Browser software rendering is explicit; the preceding\ndefault-hardware fixture failed on a llvmpipe/no-DRM runner. Physical devices and\nGPU rendering are not covered, and the upstream missing DWO limitation remains.\nPortable identities, logs and the six qualification attempts are recorded in\n[the runtime qualification PR](https://github.com/obs-rust/obs-studio/pull/1771).\n\nThese observations qualify this debug-processing change's installed artifact;\nthey do not establish warm application-cache reuse, production publication cost,\nglobal retention, cold performance or the whole-issue speedup. The new combined\nconfiguration has its own full qualification run before further adoption.\n\nThe full goal remains at least 50% lower comparable warm job time, with cold\nand warm observations, required validators, complete application functionality,\nsafe incremental compilation and an honest cache budget. Compilation/PCH reuse\nis a separate candidate; no Rust compiler-wrapper safeguard changes here.","chars":1533,"tokens_est":383,"sha256":"3a10421ec16d161b753ead77fecd9fd37253833d28b1f605821d2bed42e64877"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#flatpak-pch-cache-qualification-1760","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760)]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nThis candidate activates the existing CMake ccache launcher so the existing PCH\nhelper supplies `-fpch-preprocess` and its bounded PCH settings. Explicit SDK\ncompiler paths avoid nesting the SDK's `/run/ccache/bin` masquerading wrappers.\nIt does not enable a Rust compiler wrapper or change cache transport.\n\nEnabling the launcher alone is unsafe: a real fixture changing `#define VALUE\n42` to `43` returned **42**, including with direct mode disabled. Ccache correctly\nrejected the direct manifest, then reused an old preprocessor result while\ncreating the PCH. The macro does not appear in that preprocessor output until\nused in the consuming translation unit. Dependency mode avoids this fallback;\ncompiler content checking also detects compiler replacement with preserved\nsize and modification time.\n\nThe manual diagnostic exercises the manifest's actual ccache settings and\nunchanged OBS PCH helper. Run inside the production SDK, with this checkout\navailable, and retain the new output directory:\n\n```sh\nuv run --no-project ci/flatpak_pch_probe.py --output /path/to/new-evidence-directory\n```\n\nIt compiles and executes a tiny C++ program, then requires correct output after\nsame-size, same-timestamp header, source and compiler changes, and after a\nconfiguration change. Each following clean build must reuse both cached objects.\nAn isolated cache prevents inherited counters from being mistaken for this run's\nhits. It intentionally preserves logs, counters and outputs for investigation.\nThis fixture is manual and is not a full application build or a timing gate.","chars":1843,"tokens_est":461,"sha256":"514b35ed85a0d27fc81aeacc8bc984873c3ff115181b5cc16546d8e4a48bbc33"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760~2","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#flatpak-pch-cache-qualification-1760","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760)]\nLocal GCC/ccache evidence: ten trials passed. The header, configuration and\ncompiler changes each caused two misses; a source-only change retained one PCH\nhit and missed the source object. All five warm builds had two direct hits.\nBaseline wrapper-only warm rebuild: 1.219 seconds with two PCH refusals; the\ninitial dependency-mode launcher fixture: 0.242 seconds with two direct hits.\nThese are single tiny-fixture observations, **not a claimed full-job speedup**.","chars":507,"tokens_est":127,"sha256":"134eeac5078b02d895442e2a7d2b4e425b3ff3f794c8920b949499623a16afaa"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-production-sdk-toolchain-check","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Production SDK toolchain check"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#production-sdk-toolchain-check","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Production SDK toolchain check]\nThe same ten trials pass with the production SDK's **GCC 16.2.0 and ccache\n4.14**, using its native binaries, libraries and headers in an isolated chroot.\nSee [portable SDK evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-pch-sdk-freshness.json).\nEvery following warm build has two direct hits; header, configuration and\ncompiler changes each miss twice; the source-only change misses once and retains\nthe PCH hit. The fixture's compiler wrapper changes actual executable output;\nthis is stronger than checking cache counters alone.\n\nThe local Flatpak namespace launch was denied by the container. The fallback\ninitially timed out copying the whole SDK, then exposed the SDK's empty passwd\nfile: ccache could not resolve its user identity. A separate root with a real\npasswd entry, as Flatpak normally supplies, fixes that setup failure. These\nfailures are recorded; they are not compiler freshness failures or full-job\nobservations. The diagnostic now retains failing command arguments and stderr.","chars":1155,"tokens_est":289,"sha256":"0a7c7306bc670a025a7e07b74189c2a47a92bf670f0f1dd79db641cd6777f157"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-restore-newer-compiler-metadata-last","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Restore newer compiler metadata last"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#restore-newer-compiler-metadata-last","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Restore newer compiler metadata last]\nThe builder archive contains `.flatpak-builder/ccache`, including mutable\nccache direct-mode manifests. Restoring a newer standalone compiler snapshot\nfirst, then extracting an older builder snapshot, discards newer manifest\nmappings even though the content-addressed result objects remain present.\n\nThe production SDK fixture reproduced this using actual GNU tar archives:\n\n| Restore order after header 42 \u2192 43 | Output | Direct hits / misses | Build |\n| --- | ---: | ---: | ---: |\n| New compiler snapshot only | 43 | 2 / 0 | 0.977 s |\n| New compiler, then old builder | 43 | 0 / 2 | 4.191 s |\n| Old builder, then new compiler | 43 | 2 / 0 | 0.899 s |\n\nEach trial uses a new cache directory, a clean build and zeroed statistics.\nThe header replacement preserves size and modification time; dependency mode\nkeeps every output correct. The snapshots are captured after the existing\nfixture's cold and header-warm stages. Extract each ordering with `tar -xf`,\nthen rebuild that same fixture with `CCACHE_DIR` pointing at the extracted\ncache. See [portable counters and timings](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-cache-overlay.json).\nAn independent file-overlay experiment agrees. This demonstrates lost reuse,\nnot stale executable output or a whole-job speedup.\n\nThe workflow now extracts the builder archive before the standalone compiler\nsnapshot and disables the builder action's second restore. `cache: true` still\npasses `--ccache`; master-only publication and architecture-specific fallbacks\nare preserved. The explicit builder restore's exact-hit output prevents an\nunnecessary save to an existing immutable key, since the action's internal\nrestore no longer supplies that information. No cache family, storage backend,\ncapacity allowance or pruning policy changes.","chars":1938,"tokens_est":484,"sha256":"1fdb9c1867bee78e7213bf8faa9d3464b9ca92fe30d14c23f00fe7c37e92220f"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-restore-newer-compiler-metadata-last~2","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Restore newer compiler metadata last"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#restore-newer-compiler-metadata-last","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Restore newer compiler metadata last]\nThe workflow resets only compiler statistics after both cache restores, before\nbuilding, so the reported hits/misses belong to that build. Cached results and\nmanifests remain intact. Existing historical reports with cumulative counters\ncannot establish a per-build hit rate. The reset runs inside the SDK already\nsupplied by the pinned build image and its cost remains within whole-job timing.\n\n## Adoption hold\nReal application freshness/reuse inside Flatpak, full-job warm/cold\nmeasurements and the packaged screen/camera/microphone/browser/debugger scenario\nare still required. Keep the PR draft until these are proven. This change alone\ndoes not complete #1760's 50% whole-job target.","chars":769,"tokens_est":192,"sha256":"37b2430c009811677fbbb018c18748885e612d1b103ca27e12946ba535a0fd62"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-manual-cold-builder-compiler-measurement","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Manual cold builder/compiler measurement"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#manual-cold-buildercompiler-measurement","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Manual cold builder/compiler measurement]\nRetired by phase A of #1801: the Flatpak builder state left the Actions cache,\nso every Flatpak build is cold and the `flatpak-cold-build` input is gone. The\ntext below records the earlier design.\n\nThe workflow accepted default-off `flatpak-cold-build=true` on an\nexplicit dispatch. It skips both current/legacy builder archives and the\nstandalone compiler restore, and suppresses both publications. A fresh hosted\nrunner therefore starts with no Flatpak builder/compiler state. The full app,\nccache enablement, counter reset, export and all validators still run. Ordinary\nPR/push/release selection and caching are unaffected; no cache is deleted.\n\nUse the same frozen source, manifest and container image for a corresponding\nwarm observation. Include the whole job and disclose every restore outcome.\nThis is cold **builder/compiler state**, not a claim that the internet, registry\nor preinstalled SDK is cold: the pinned build image already contains the SDK,\nand uv/tool input caches retain their existing policy. Other full-dispatch\nlanes still run and their runner cost must be reported separately. The controlled hosted observation below has executed this control.","chars":1254,"tokens_est":314,"sha256":"4c05552fe1ef0455d2b78a896d7339baf03103c383d233f817f825980aab4ab7"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-full-application-compiler-reuse-probe","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Full application compiler reuse probe"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#full-application-compiler-reuse-probe","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Full application compiler reuse probe]\nThe existing default-off `flatpak-pruned-build-probe` now also requests\n`--compiler-reuse`. The first isolated rebuild still copies only dependency\nOSTree state; original downloads, compiler results and transient state are not\nretained. After that rebuild creates its own compiler results, the probe resets\nonly its isolated counters and changes a post-install marker to force another\napplication build with identical source, SDK and configuration. All dependency\nmodules must hit, while the application module must actually rebuild.\n\nThe second build must report at least 100 compiler hits and an 80% cacheable\nhit fraction; a few CMake checks or a cached application module cannot pass.\nBoth output sets run the existing AppStream/build-directory/repository checks.\nThe source state stays read-only, and temporary state is removed on failure.\nThe report keeps cold/warm build phases and SDK counter data separate. These\nextra manual rebuilds are diagnostic cost, not routine full-job savings or a\nsubstitute for cross-runner transport/retention and invalidation evidence.\nThe hosted observation below has executed this compiler probe.","chars":1218,"tokens_est":304,"sha256":"0115f61a633842a33ff49fee62cb0c505a4b5202977a18ec1cec4e9b325405bb"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-hosted-full-application-compiler-reuse","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Hosted full-application compiler reuse"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#hosted-full-application-compiler-reuse","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Hosted full-application compiler reuse]\n[Run 39768771734 / job 119790889408](https://github.com/obs-rust/obs-studio/actions/runs/39768771734/job/119790889408)\nuses qualification source `2b253bc0dace3c35478d3a46664edc49f0db023f`.\nAll three builder/compiler restore steps were skipped and the statistics reset\npassed. The initial full builder action took **790 seconds**, with zero hits,\n330 misses and 16 uncacheable calls; all output validators passed.\n\nThe isolated probe then copied dependency OSTree state only. All six dependency\nmodules reused their cached stage while the application actually rebuilt:\n\n| Isolated application rebuild | Build seconds | Cacheable hits / misses |\n| --- | ---: | ---: |\n| No inherited compiler state | 728.798 | Not used as a warm observation |\n| Compiler state generated by the preceding build | 326.785 | 328 / 2 |\n\nBoth output sets passed the existing validators. The second build uses ccache\n4.14.1 and has no PCH refusal or preprocessor-cache fallback. Its 99.39% hit\nfraction demonstrates substantial real application reuse. The 55.16% reduction\nis for these paired **build phases**, excluding copy, fsck, SDK queries and\nvalidators; it is not the issue's median whole-job target.\n\nThe resulting compiler cache occupies 625,812 KiB (640,831,488 bytes). This\nis larger than the current 200 MB compiler-family allocation, but is not an\nActions archive measurement. Retention and global capacity must be qualified\nwith #1269 rather than silently raising the budget.\nCanonical tar/zstd proxies were 3,247,992,418 bytes full, 2,225,845,035 without\ndownloads and 1,589,558,859 without downloads/compiler state. They do not prove\nactual Actions transfer or authorize pruning. One warm/fresh source-fetch pair\nwas 0.048/10.065 seconds, not a representative performance cohort.","chars":1853,"tokens_est":463,"sha256":"3dc20d6c3793a52e79ded4a6918c7dbed8d9e37bca14f8bfe5314fb3b7f8b93b"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-hosted-full-application-compiler-reuse~2","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Hosted full-application compiler reuse"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#hosted-full-application-compiler-reuse","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Hosted full-application compiler reuse]\nThe overall workflow has a retained macOS C-reference seek failure, reported\non #1765. Fresh-runner installed-runtime job 119806132310 passed the exported app with\na saved screen/camera/microphone/browser profile and debugger checks. It uses\nsynthetic devices and software rendering, not physical devices or hardware GPU.\nThe whole diagnostic Flatpak job took 2,111 seconds, including both extra\nrebuilds and capacity probes. Buffered probe subprocess output means CI line\ntimestamps cannot attribute internal phases; use its monotonic build timers.\nKeep the\nadoption hold: this proof does not establish a retained cross-runner compiler\nconsumer, comparable warm whole-job measurements or the 50% whole-job target.\nPortable raw probe results and exact input/limit metadata are recorded in\n[the full-app compiler evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-full-app-compiler.json).","chars":1050,"tokens_est":262,"sha256":"441494b2711cc2844d600936007a93ff87278317a92216c02a21cc4fb3d2d153"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#explicit-fresh-runner-compiler-transfer-experiment","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment]\nDefault-off `flatpak-compiler-transfer-probe` packages the completed producer's\ncompiler cache as an explicit Actions artifact retained for one day. The cache\nresults are already compressed, so the tar and artifact avoid another compression\npass. It records actual archive bytes, digest, payload occupancy and pack time.\nThe experimental bound is 2 GiB payload and 100,000 ordinary files; it is not a\nproduction-family allocation increase. The caller forwards this input only for\nan explicit manual dispatch.\n\nA separate fresh-runner job restores dependency state first, then downloads and\noverlays the compiler artifact. Before changing its cache, it checks the complete\narchive digest/inventory, rejects links and unsafe paths, and requires an exact\nsource SHA, manifest digest, SDK commit, compiler hashes/cache version and\narchitecture match. It resets statistics, builds the full application, requires\nat least 100 hits and 80% cacheable reuse, and runs all three output validators.\nThe builder action cannot restore over the artifact or publish either cache.\nConsumer restoration/counters and producer metadata are retained separately.\n\nThis uses a visible same-run Actions artifact, not a new production transport or\ncache family. Report artifact storage/transfer, both full job durations and all\nselected workflow costs. It does not establish production retention, changed-source\nfreshness or representative medians. No hosted run has yet executed this route;\nthe adoption hold remains. The independently qualified runtime scenario and SDK\nfreshness trials remain required evidence alongside it.","chars":1698,"tokens_est":424,"sha256":"5c7b511e9c94a69192d1c491daa645a7bbcce2fdb74543b6aa48013d392ce132"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp-2","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","First transfer trial: builder passed, wrapper scaffolding rejected"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#first-transfer-trial-builder-passed-wrapper-scaffolding-rejected","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a First transfer trial: builder passed, wrapper scaffolding rejected]\n[Run 39776059128 / producer 119815324383](https://github.com/obs-rust/obs-studio/actions/runs/39776059128/job/119815324383)\nbuilt and validated the full application, then failed during artifact packing.\nNo compiler artifact was published and neither fresh consumer nor runtime\nqualification ran. The failure and all selected job costs remain part of the\nexperiment; this is not cross-runner reuse proof.\n\nThe source cache includes `bin/cc`, `bin/c++`, `bin/gcc` and `bin/g++` symlinks to\n`/usr/bin/ccache`, created by\n[flatpak-builder 1.4.9](https://github.com/flatpak/flatpak-builder/blob/1.4.9/src/builder-context.c)\nin `builder_context_set_enable_ccache`. Its hosted inventory reports 60 bytes\nunder `ccache/bin`, matching those four launcher links. The ordinary-file-only\npacker rejected this generated scaffolding. The initial fixture omitted these\nlinks; the new RED regression reproduces the real source and destination layout.\n\nThe corrected experiment omits only these exact wrapper paths with the exact\nupstream target, records their omission, and preserves matching destination\nwrappers. It rejects every archive entry under `bin`, all archive links, and\nunexpected source/destination links. This prevents a regular archive entry from\nbeing copied through an existing compiler wrapper. Profile/digest checks,\nsubstantial-hit requirements and production adoption holds remain intact.\nA changed-source trial is required; no unchanged rerun was requested.","chars":1627,"tokens_est":407,"sha256":"a148a1da5c4ad560899031bb40c342eb50d5e2d222763200da181a90585ee740"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp-3","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","Second transfer trial: packed cache omitted from upload"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#second-transfer-trial-packed-cache-omitted-from-upload","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a Second transfer trial: packed cache omitted from upload]\n[Run 39779603900](https://github.com/obs-rust/obs-studio/actions/runs/39779603900)\nuses source `030daf8b0e2e218109a55eb32e5fcff7b3bf3a16`. The producer built and\nvalidated the app, and the wrapper fix packed 1,300 ordinary files into a\n699,105,280-byte tar (698,094,555 payload bytes; 2.014 seconds). However, the\npublished artifact was only 1,488 bytes: it contained metadata at\n`__w/_temp/flatpak-compiler-transfer/manifest.json` and no compiler tar. The\nupload log reports a least common root of `/` and one file. Packing success\ntherefore did not establish transport success.\n\nThe fresh consumer separately failed before artifact download: its combined\nbootstrap/vendor step could not find `soldr`. The bootstrap writes `GITHUB_PATH`,\nwhich Actions applies to subsequent steps. The established producer already\nseparates those commands. The installed saved-profile runtime job passed, but\nneither cache download nor cross-runner compiler reuse was proven.\n\nThe next revision uploads a single controlled producer directory. Consumer JSON\nreports are staged into a separate single directory, avoiding another upload of\nthe large compiler archive. Bootstrap and vendoring are separate steps. Focused\nRED regressions reproduce the missing upload/step boundaries; the corrected\nconfiguration still requires a changed-source hosted trial. Production transport,\nbudgets and adoption holds remain unchanged. See\n[the second transfer evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-transfer-v5.json).","chars":1731,"tokens_est":433,"sha256":"f4c68e43d1b3dfc4a1c605a1689621a679f66f5bcc6d5cf8120ca559cf75843a"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp-4","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","Cross-runner trial v6: download passes, profile guard rejects"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#cross-runner-trial-v6-download-passes-profile-guard-rejects","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a Cross-runner trial v6: download passes, profile guard rejects]\nRun [39784005854](https://github.com/obs-rust/obs-studio/actions/runs/39784005854)\nat `c907b9ef1` is terminal failure. Producer119842391321 passed all validators\nand uploaded two files: the actual compiler artifact is698,963,464 bytes\n(tar698,961,920 bytes;697,941,503 payload bytes;1,300 files;2.378s packing).\nWhole producer975s includes optional transport/runtime export; both builder\nrestores missed and isolated compiler counters were0hits/330misses. This is\nnot a warm performance sample.\n\nConsumer119850594734 downloaded the artifact successfully and matched its\npublished digest, then rejected the profile before overlay or application\nbuild. Both jobs pulled image digest`6ed6921bb5a9e1a916989971844f159b854b7b225880c381fa34f7a158863039`.\nThe producer builder explicitly updated SDK/runtime before compiling, whereas\nconsumer profile validation ran before equivalent dependency preparation.\nThe correction uses bounded dependency-only builder preparation before\nprofile validation; remaining drift still fails. A mismatch report now retains\nboth identities and differing fields. Focused RED/GREEN checks cover the\npreparation order and rejection before destination mutation.\n\nInstalled saved-profile runtime119850594274 passed separately. The full trial\ncost135.9333 runner-minutes across22successful and2failed active jobs, with\nno cancellations; skipped jobs excluded and no billing multipliers. See\n[portable evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-transfer-v6.json).\nActual compiler reuse, retained capacity, and routine whole-job savings remain\nunproven. The runtime fixture uses synthetic devices/software rendering.","chars":1881,"tokens_est":470,"sha256":"c5679a3b54910c72968201dabfda350abe551732e6921347964149cafb12323d"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp-5","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","Optional actual OSTree cache transport qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#optional-actual-ostree-cache-transport-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a Optional actual OSTree cache transport qualification]\n`flatpak-dependency-transfer-probe` defaults to false and requires the compiler\ntransfer probe. It adds an actual tar/zstd archive of `.flatpak-builder/cache`\nto the same-run experiment, with one-day artifact retention. This is a cache-only\nprojection; application stage objects can remain. It is not a minimal dependency\ngraph or a production writer/allocation change.\n\nThe helper accepts only the observed `bare-user-only` repository mode, preserves\nchecksum-shaped symlink objects as opaque payloads, rejects structural links,\nand runs real OSTree fsck before packing and after staged restoration. Inventory,\nprofile and digest checks precede destination publication. Bounds are8GiB logical\npayload,2GiB compressed archive,100,000members and bounded subprocesses; these are\nexperimental limits, not approved cache allocations. Packing/fsck/archive bytes\nand restore time are recorded. Local roundtrip fixtures exercise real tar/zstd\nbut mock fsck; actual hosted OSTree preservation is still unproven.\n\nThe fresh consumer skips ordinary builder-cache restoration for this experiment.\nIt prepares SDK state separately, restores the transferred cache first and compiler\nresults last, and forces application work without changing compiler inputs. A\nPATH wrapper records the existing pinned builder action while preserving argument\nand failure status. Require all dependency module hits, an actual application\nrebuild, substantial compiler reuse and unchanged three validators. Measurement\nuploads retain JSON and builder log without reuploading either large input archive.\nThe producer export's runtime test does not prove the separately rebuilt consumer\nartifact; installed-profile qualification of that artifact remains necessary before\nany shipping decision. Actual transport/reuse/retention and whole-job savings\nmust be established before adoption.","chars":2002,"tokens_est":500,"sha256":"810c7bfe7b183746594014ad6840cc3bc65b25c3a2cfac6cdb1769a699ad8d7b"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp~2","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","Optional actual OSTree cache transport qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#optional-actual-ostree-cache-transport-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a Optional actual OSTree cache transport qualification]\nWhen both dependency transfer and runtime qualification are selected, only the\nrebuilt consumer publishes `flatpak-runtime-repo`, after its validators pass.\nThe saved-profile job explicitly waits for that consumer and runs the unchanged\ninstalled-artifact harness on its export. Ordinary runtime-only qualification\ncontinues to use the producer export; an unselected compiler consumer must not\nskip that job. Runtime reuse of the same run ID also selects this unique artifact.\nThis wiring closes the planned consumer-output coverage gap; actual hosted\nsaved-profile execution of that output remains unproven until the combined trial.","chars":783,"tokens_est":196,"sha256":"636f0e9d76254bbc57bcae9a9b802f3f190ad003c28e9bc167ad9d565e33f4ed"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp-6","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","V7: actual compiler reuse, package-setup timeouts retained"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#v7-actual-compiler-reuse-package-setup-timeouts-retained","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a V7: actual compiler reuse, package-setup timeouts retained]\n[Compiler consumer119865322923](https://github.com/obs-rust/obs-studio/actions/runs/39788434414/job/119865322923)\npassed327hits/3misses, all6dependencyhits, a full application rebuild and all3\nvalidators. Whole consumer418s; builder214s; compiler download11s; helper restore\n1.158s; normal builder seed2,715,273,348B restored in42s. This establishes one\nsame-run artifact fresh-runner compiler reuse result, not retained production\ncache transport or the routine warm cohort. Production cache publication and\nruntime-export packaging were not part of that consumer clock.\n\nThe workflow ended cancelled: Qt exceeded30minutes and runtime infrastructure\ninstallation exceeded25minutes, both during Ubuntu package downloads. The runtime\napplication/profile test never ran. All selected active jobs total194.6833\nrunner-minutes:21success,1failure,2automatic timeout cancellations; skipped jobs\nexcluded and no billing multipliers. No manual cancellation or unchanged retry.\nSee[portable v7 evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-transfer-v7.json).","chars":1290,"tokens_est":322,"sha256":"a1e6e106b7eb61730d82aba6277a6a5bf69e3c0c95ae7744a03afc354bcc1209"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp-7","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","Actual OSTree preservation and v8 producer evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#actual-ostree-preservation-and-v8-producer-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a Actual OSTree preservation and v8 producer evidence]\nThe local bounded container fixture passed real OSTree2025.7 commit/fsck before\nand after archive restoration, same commit/ref, checkout data, symlink payload\nand executable mode. This is a small real repository, not the hosted SDK/cache.\nThe first setup was rejected for a nested-manifest Dockerfile context before the\nfixture ran; corrected setup501 and fixture502 passed. Raw identities and exact\nfixture source are in[local evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-ostree-local.json).\n\nLive[v8](https://github.com/obs-rust/obs-studio/actions/runs/39792586176) producer\n119872197788 succeeded in899s, including optional experimental work. Actual\nproducer fsck passed10commits/19,089objects. Its cache-only archive retained70\nopaque object links,19,367members and3,375,738,776 logical bytes; tar/zstd size\n1,626,857,574B, published artifact1,626,859,156B. Packing including fsck took29.008s.\nCompiler tar700,098,560B/published700,100,104B took3.045s to pack. Combined published\ninput artifacts total2,326,959,260B. These actual archives are not a minimal\ndependency graph, production Actions-cache size measurement or retention proof.\nConsumer119879152813 was queued at capture; restoration/reuse, consumer runtime\nand full trial cost remain pending. See[producer snapshot](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-transfer-v8-producer.json).\nThe prior section's statement that local fixtures mock fsck describes the unit\nfixtures; the separate native fixture here now supplies additional real evidence.","chars":1824,"tokens_est":456,"sha256":"285420ce643831a3a6a49474ef0977b67b0f344bdb21425657990bf42b1b5477"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp-8","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","Qualified v8 consumer and projected production cache"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#qualified-v8-consumer-and-projected-production-cache","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a Qualified v8 consumer and projected production cache]\nCompleted consumer119879152813 logs and its measurement artifacts prove restored\nOSTree fsck, all6dependencyhits, real application rebuild,327compilerhits/3misses\nand all3validators. Dependency helper restore25.902s; compiler restore1.411s.\nInstalled consumer runtime119883556478 passed saved screen/camera/microphone/browser\nrecording with310verifiedbrowserframes, modules, unchanged C++WebSocket and debugger\nchecks. App commit`dcec8109ee89db6fa5affbf9556d290ad39a2632e8fc879c1132bec1abaaa9a6`\nand Debug commit`1efed457995d1935bd3b52e79aa1dfd6b4e658a9b318fa6935c3aeb3ed871e9c`\nmatch the consumer export log. Synthetic/software coverage limits remain. Status\nAPI lagged completed logs/artifacts; full selected-job cost is still pending.\nSee[qualified evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-transfer-v8-qualified.json).\n\nThe production change uses one existing Actions builder-family archive containing\nonly `.flatpak-builder/cache` and `.flatpak-builder/ccache`, with a versioned\narchitecture/manifest/source-generation key. All legacy restores are suppressed\non any new-state hit. A miss retains the old builder-then-compiler migration order.\nThe pinned action keeps ccache enabled and disables its automatic restore/save;\nexplicit master-only publication follows existing one-build ccache pruning and\nall validators. The standalone compiler family becomes a migration input without\na new writer. Cold mode disables every production restore/publication.","chars":1697,"tokens_est":424,"sha256":"4e8615dfea4ecdb44ab05338ba074e8272a44f2351c8b22847f455d4958d3273"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-explicit-fresh-runner-compiler-transfer-exp~2-2","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Explicit fresh-runner compiler transfer experiment","Qualified v8 consumer and projected production cache"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#qualified-v8-consumer-and-projected-production-cache","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Explicit fresh-runner compiler transfer experiment \u203a Qualified v8 consumer and projected production cache]\nBackend, family/global allocations and janitor policy stay unchanged. The actual\nexperimental pair2,326,959,260B supports this bounded projection; it does not prove\nthe exact future Actions archive size or retention. Inspect the first trusted\nproduction publication and retained consumers after normal merge, then collect\nthe required routine warm before/after cohort. Neither the418s v7 consumer nor\nv8's diagnostic consumer proves the parent's50%median target by itself.","chars":622,"tokens_est":156,"sha256":"af980ffdd3ac96e64347422a37dcd82c4d98f625c5e7b87537674bb089b3aab9"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-production-result-and-next-compiler-attribu","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Production result and next compiler attribution (#1760)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#production-result-and-next-compiler-attribution-1760","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Production result and next compiler attribution (#1760)]\nMerged #1767 published a trusted 2,266,246,245-byte projected Actions cache\n(id9351848007) after validators. The compiler-cold seed job119934657726 in\nrun39810319992 succeeded in651s with six dependency hits and0/331compiler\nhits. Its enclosing workflow later cancelled the remaining macOS job under\nexisting master-dispatch concurrency; all selected work cost112.1runner-min.\n\nActual retained consumer119942032116 in run39812201578 restored that exact\ncache and genuinely rebuilt OBS with329directhits/2misses. All validators\npassed; the whole job took480s. This single observation is about47% below\nthe historical905s median, but exceeds450s and is not the required three-job\ncomparison. Exact-key publication was skipped; different source generations\nmust include publication costs. The issue remains open.\n\nThe default-off `flatpak-compiler-diagnostics` dispatch input attributes the\nremaining compiler work. It adds only `CCACHE_LOGFILE` to the generated OBS\nmodule environment and retains build directories for that diagnostic job.\nThe pinned action supports `keep-build-dirs`; those directories are excluded\nfrom the existing projected publisher. Compiler flags, freshness settings,\nRust wrapper bypass, shipped outputs and validators are preserved.\n\nThe report artifact `flatpak-compiler-diagnostics-<run>` contains only bounded\nrepository-relative source labels, result codes, unsupported option names\n(with option values omitted), and observed log spans. Raw commands and\nenvironment logs stay in the runner's transient build directory. At most\n16MiB across eight module logs are read; oversized or missing observations\nfail the requested diagnostic. Interleaved invocations and PID reuse are\nhandled separately. Spans are wall intervals, not CPU time, and uncacheable\ncalls can exec the compiler after logging ends. Concurrent spans must not be\nsummed into job time. This diagnostic does not itself establish savings.","chars":2028,"tokens_est":507,"sha256":"8b17b62e9ef3807765ed36db131fb9a8a9b4f277aee56c4e5eeae63726b52ff2"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-production-result-and-next-compiler-attribu-2","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Production result and next compiler attribution (#1760)","Actual compiler-rejection attribution"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#actual-compiler-rejection-attribution","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Production result and next compiler attribution (#1760) \u203a Actual compiler-rejection attribution]\nCorrected diagnostic run39820372855/job119969902046 at9cbb3247e passed\nin472s. Artifact12443864404 reports347calls:327directhits,4misses and\n16unsupported-option calls. Every rejection is an obs-browser source with\n`-fmodules-ts`; sources and sanitized option names are now attributed.\nCMake's automatic C++20 module scanning enables that flag, while the project\ncurrently declares no `CXX_MODULES` file sets. This identifies a separate\nconfiguration opportunity; no scan setting changes in this diagnostic PR.\n\nPortable evidence: `docs/ci-evidence/2026-10-22-flatpak-compiler-reasons.json`.\nThe first report's missing attribution is retained as a limitation and was\nfixed with RED92c06356d/GREEN9cbb3247e. Fallback log spans exclude actual\ncompiler execution; they are not the duration of the rejected compile.","chars":951,"tokens_est":238,"sha256":"f401ac1c514ae73acc3298f07874226e6f6cf812766855a1d9afeab13b5284b5"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-production-result-and-next-compiler-attribu-3","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Production result and next compiler attribution (#1760)","C++20 browser cache rejection"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#c20-browser-cache-rejection","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Production result and next compiler attribution (#1760) \u203a C++20 browser cache rejection]\nCorrected hosted diagnostic39820372855 attributes all16 uncacheable compiler\ncalls to obs-browser sources rejected for `-fmodules-ts`. CMake automatically\nscans C++20 targets under CMP0155; the repository declares no named-module file\nsets. The Flatpak OBS config disables automatic module scanning while keeping\nC++20, PCH and normal header dependency tracking. This is a recipe-only setting.\n\nThe real Freedesktop26.08 SDK fixture reproduces the rejection before the change:\ncold output42, then warm output42 with1 direct hit and1 unsupported option,\nfailing the required2-hit assertion. With scanning disabled, all10 trials pass:\nsource/header/compiler changes with preserved size and mtime, configuration\nchange, and the subsequent2-hit warm build after each. No unsupported options\nremain. See [portable SDK evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-cpp20-cache.json).\nThese isolated fixture timings are not whole-job savings. Full application cache\nconsumer and installed saved-profile qualification remain required before adoption.","chars":1259,"tokens_est":315,"sha256":"da5830fba5ee29a2aee6a53d0392c0a09c5dcba127e917da3bc88faddb3fc1db"},{"id":"docs-ci-speed-flatpak-pch-1760#flatpak-pch-cache-qualification-1760-production-result-and-next-compiler-attribu-4","doc":"docs-ci-speed-flatpak-pch-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak PCH cache qualification (#1760)","Production result and next compiler attribution (#1760)","Full C++20 cache and installed-package qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md#full-c20-cache-and-installed-package-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-pch-1760.md","text":"[Flatpak PCH cache qualification (#1760) \u203a Production result and next compiler attribution (#1760) \u203a Full C++20 cache and installed-package qualification]\nRun39824614077 at frozen d511b0a84 passed the full producer, fresh compiler/\ndependency consumer and installed saved-profile runtime jobs. Consumer119988550402\nverified10OSTree commits/19,088objects, all6dependency hits, a genuine OBS rebuild,\n343direct compiler hits/3misses and0unsupported options. All3validators passed.\nThe producer's first browser rebuild had327hits/19misses; the subsequent consumer\ntherefore demonstrates the16newly cacheable browser calls rather than only a\nfixture assertion. These experimental transport jobs are not routine timing samples.\n\nRuntime119993180570 passed the actual consumer App/Debug refs, saved screen,\ncamera, microphone and browser recording (303verifiedbrowserframes), CEF debugger\nchecks and unchanged C++WebSocket v5. Synthetic/software coverage limits remain.\nThe rebased recipe/fixture/tests are byte-identical to the qualified source;\nonly adjacent documentation needed conflict resolution with merged diagnostics.\nSee [full qualification](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-cpp20-qualified.json).\n\nThe enclosing workflow also had the known Windows callback declaration parity\nfailure tracked in #1549/#1541 (664pass/1fail). Its seed/log and cost are retained;\nno unchanged rerun or test exclusion was used. Normal PR CI passed separately.\nThe parent50%/450s median target still needs a new production cohort after merge.","chars":1613,"tokens_est":403,"sha256":"775d7342b46d0d2b4d454d036df5df5b78a7787696456f7e0a14a1809d9d860b"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#flatpak-performance-retrospective-1760","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760)]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\n## Measured performance result\n| Metric | Historical baseline | Final configuration |\n| --- | ---: | ---: |\n| Warm whole-job samples | 702s, 905s, 911s | 437s, 434s, 447s |\n| Median | 905s (15m05s) | **437s (7m17s), 51.71% lower** |\n| Nearest-rank sample p95 | 911s | 447s |\n| Sample size | 3 | 3 |\n| Matched current cold | \u2014 | 846s |\n\nThe final three warm full-job observations are **437s, 434s and447s**.\nTheir median is **437s (7m17s),51.71% lower** than the historical905s\n(15m05s) baseline median. This meets the >=50% and <=450s performance target.\nNearest-rank sample p95 is447s versus911s before; with n=3 these are sample\nmaxima, not stable population-tail estimates. Matched cold is846s.\nAll selected final workflows failed independently on #1816; successful Flatpak\njobs do not establish healthy whole-workflow CI. At this report revision, final retention, reporting,\nreview/merge and owned cleanup remain. The closing report on #1760 records\nthose terminal verification results after normal queue maintenance.\n\nImplementation PRs #1763 (CEF), #1771 (installed saved-profile validation),\nand #1767 (safe compiler reuse and projected cache) merged through the normal\nqueue. #1803 adds default-off compiler attribution and has merged normally.\n#1806 restores browser C++20 cacheability and merged normally after SDK, full\nconsumer and installed saved-profile qualification passed.\nNo new workflow files were introduced. The original three-sample cohort and\nmatched cold measurement are complete, as is the final C++20 production cohort.\nThe issue remains open for settled retention, reports, review/merge and owned cleanup.","chars":1905,"tokens_est":476,"sha256":"2d67454367b9a4fb59fe47524c17b767be5b2bbb024ac025ae03f9521baa27ee"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760~2","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#flatpak-performance-retrospective-1760","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760)]\nThe completed table below describes the intermediate configuration before #1806.\nThe final-configuration result is reported above and below.\n\n| Metric | Before | Interim measurement (before #1806) |\n| --- | --- | --- |\n| Warm full-job observations |702s,905s,911s|480s,421s,475s |\n| Median |905s (15m05s)|475s (7m55s),47.51% lower; misses target |\n| Nearest-rank sample p95 |911s (n=3 maximum)|480s (n=3 maximum), not a stable population tail |\n| Warm compiler result |Old reports were restored cumulative counters|Cacheable calls:329/331,327/330,328/330 direct hits after reset;16unsupported calls excluded in each |\n| Actual projected archive |Legacy builder2,715,273,348B plus59,423,648B compiler in production seed|2,266,246,245B seed;2,266,212,985B next generation |\n| Current cold whole job |Historical explicit cold builder790s;2111s diagnostic whole job included extra probes|Matched090c8ad cold-only39820593708:921s,SDKpreinstalled |\n\nFirst warm run39812201578/job119942032116 genuinely rebuilt OBS, passed all\nvalidators in480s and its complete selected workflow passed with112.75\nrunner-minutes. Second run39816841905/job119958260969 genuinely rebuilt and\npublished a new source generation in421s; its complete workflow passed,118.65runner-minutes.\nThird run39821239168/job119973699055 passed475s and115runner-minutes.\nAll three selected workflows passed without failure/cancellation,346.4runner-minutes\ntotal. Matched cold39820593708 passed921s/120.55selectedrunner-minutes,\nwith0compilerhits/330misses/16unsupported; SDKimage inputs remain preinstalled.\nIts source090c8ad includes the portal shortcut-set port #1800 relative to\n2bc7b591 in the first sample. Manifest/browser/CEF profile is unchanged;\ncompile call counts and source differences remain disclosed. These are\nobserved before/after cohorts, not a matched-source causal estimate.","chars":1897,"tokens_est":474,"sha256":"0390043a9c33ebafb7ff523b73e288937b6bb7da9cfe376ff4f24117f390a9c3"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-final-configuration-seed-and-measurement-","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Final configuration seed and measurement routing"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#final-configuration-seed-and-measurement-routing","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Final configuration seed and measurement routing]\nTrusted manual master seed [39831165145](https://github.com/obs-rust/obs-studio/actions/runs/39831165145)\nused source `e1b649910c0d082b482bd3adfe58c67436b3e82a`.\nThe full Flatpak job passed in **455s**, with six dependency hits, a genuine\napplication rebuild, 315 direct compiler hits, 30 misses and zero unsupported\ncalls. It published archive `9358763488`, **2,274,967,809 bytes**, after the\nrequired validators. This producer seeds newly cacheable browser objects and\nis excluded from the final warm cohort.\n\nThe complete workflow failed in Fast Gate on the shader sampler C oracle's\nstrict sign-conversion compilation ([#1816](https://github.com/obs-rust/obs-studio/issues/1816)).\nAll selected jobs consumed **81.47 runner-minutes**; the failure is retained,\nwith no unchanged retry. A successful Flatpak job does not imply a successful\nwhole workflow.\n\nActual merged path scope did not select a full Flatpak job on master push;\nthe manual seed corrects the original automatic-seed assumption. Before any\nfinal warm sample, the [amended sampling plan](https://github.com/obs-rust/obs-studio/issues/1760#issuecomment-6348807912)\nproposes the default-off manual routing mode in #1817. That mode keeps the\ncomplete Flatpak job and Fast Gate while omitting unrelated native matrices.\nIts branch qualification passed the complete Flatpak job in392s, with342direct\nhits/3misses, all six dependencies reused and all three artifact validators\npassing. Fast Gate reproduced #1816 and the final gate correctly failed;\nwhole workflow cost14.033runner-minutes, no cancellations or retries.\n[Portable routing evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-measurement-routing.json)\nrecords the source and skipped native matrices. The branch retains existing\ntrusted-master publication restrictions and is excluded from the production cohort. Routing\nsavings cannot count toward the Flatpak job's performance target.","chars":2085,"tokens_est":521,"sha256":"0daffb1ee0200b307871a76caf358de59752c813072c546bd3df366603ded4cf"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-final-production-cohort","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Final production cohort"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#final-production-cohort","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Final production cohort]\nNormal routing PR #1817 merged as `9b6f1f74835cfb852d70dd10abfb0c070058d8d5`.\nThe [first final warm run](https://github.com/obs-rust/obs-studio/actions/runs/39837821816)\npassed its complete Flatpak job in **437s (7m17s)**, including required new\ncache publication. All six dependencies were reused, OBS genuinely rebuilt,\nand the compiler reported342directhits/3misses. All three artifact validators\npassed. Restored archive9358763488 was2,274,967,809B; new archive9360891151\nis2,274,822,651B. The complete workflow failed on known #1816 and consumed\n14.967runner-minutes. No cancellation or retry was used.\n\nWarm2 passed434s with343directhits/2misses, all six dependency hits and all\nthree artifact validators. It restored archive9360891151 and skipped immutable\nexact-key publication. Its whole workflow failed on #1816,17.45runner-minutes.\nExact-source cold passed846s with0hits/345misses, all artifact validators,\nand all four builder/compiler restore steps skipped. Publication was disabled;\nthe SDK image remained preinstalled. The cold workflow failed on #1816 and\nconsumed20.567runner-minutes. Third warm39840480759 passed447s,331directhits/14misses,\nall six dependency hits and all validators, including new-generation publication.\nIt includes #1815 scene-audio extraction relative to the first two samples;\nrecipe/browser/CEF are unchanged. Its workflow failed #1816,17.017runner-minutes.\nThe final median437s meets the target; selected warm workflows cost49.433runner-minutes\nwith three failures, no cancellations or unchanged retries.\n[Portable cohort evidence](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-final-cohort.json)\nretains all three observations and their whole-workflow outcomes.","chars":1849,"tokens_est":462,"sha256":"aee667039cfdc7f5b051982253b45520482e54375f06ef3bbef68849e6dea37e"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-where-the-time-went","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Where the time went"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#where-the-time-went","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Where the time went]\nObserved nonoverlapping log intervals for reference39721238636/job119635024523\nand production warm 2, run39816841905/job119958260969:\n\n| Phase | Reference: 911s | Warm 2: 421s |\n| --- | ---: | ---: |\n| Setup/restores/dependencies through OBS module start |207s|174.34s |\n| OBS checkout/configure/compile/install |340s|116.97s |\n| Debug processing through build-stage commit |210s|10.39s |\n| Stage commits/cleanup/export through counter report |121s|77.89s |\n| Stats/validators/publication/final cleanup |33s|41.41s |\n\nFor the final configuration, [three completed warm phase observations](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-final-phases.json)\nshow167\u2013192s setup/restores,81\u201389s configure/compile/install, about14s debug\nprocessing,117\u2013120s commits/export and28\u201350s counters/validators/publication/cleanup.\nThese sum to the complete437s/434s/447s jobs; setup and export dominate remaining\nwall time. First stripping messages mark the observed debug phase.\n\nThese are buffered-log wall intervals, not CPU profiles. In the interim table above, the final phase\nincludes required new-generation publication on warm2; warm1 had an exact\nkey hit and skipped immutable-key publication. Do not add independent\nfixture/probe percentage savings together.","chars":1395,"tokens_est":349,"sha256":"908126dc1775416834de0f59ae48d4257bc97e02b612f5c76eb8910a867d90f0"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-changes-adopted","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Changes adopted"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#changes-adopted","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Changes adopted]\n- CEF keeps usable build IDs/debug source lines, with zstd-compressed ELF\n  debug data and first-party no-debuginfo-compression. The isolated pinned\n  CEF comparison was130.951s to10.666s; real export/runtime checks preserve\n  browser loading, the unchanged C++ WebSocket v5 and required modules.\n- Compiler caching uses real compiler paths, PCH-aware CMake launchers,\n  dependency mode and compiler-content validation. Ten SDK trials cover\n  preserved-size/mtime source/header changes, compiler/config changes and\n  following warm hits. Rust compiler wrappers stay disabled; Rust targets\n  are not retained in the projected archive and actual rebuild logs show\n  the Rust crates compiling.\n- One trusted master publisher saves only dependency OSTree and compiler\n  state after validators and successful existing pruning. New-state hits\n  suppress legacy overlays. The pinned action and standalone compiler\n  writers are disabled. Existing backend, budgets and janitor policy stay.","chars":1043,"tokens_est":261,"sha256":"7c4819b8d9a52d344cea5ceefd8f50c287b618988085026a35a5c5e8e26cc784"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-techniques-measured-and-deferred","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Techniques measured and deferred"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#techniques-measured-and-deferred","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Techniques measured and deferred]\n| Technique | Evidence | Disposition |\n| --- | --- | --- |\n| Disable transient cache fsync |Upstream builder already disables per-file cache fsync|No change |\n| Lower archive zlib level6 to1 |Full real payload, four ABBA trials:6=[25.08,50.41]s;1=[21.40,23.76]s;all five refs/17,914objects verified;49,173,191B larger|Defer: noisy local15.17s median difference, no demonstrated whole-job gain |\n| Custom production transport |Actual combined experimental consumer/runtime succeeded, but existing Actions projection fits declared family|Existing backend preserved |\n\nThe first full-export experiment correctly rejected a screenshots ref mismatch:\nthe source summary referenced an older commit than the source loose ref.\nCorrected experiment535 imports exact immutable commit IDs and retains all-ref\nidentity/fsck guards. It verifies the original artifact SHA256 before unpacking.\nNo packaging setting changed from this local experiment.","chars":1014,"tokens_est":254,"sha256":"55b1763c5a544fad13d495055a91ad1692ec591b20c580faa7cde595e0071696"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-runtime-and-invariants","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Runtime and invariants"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#runtime-and-invariants","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Runtime and invariants]\nV8 consumer export App dcec8109... /Debug1efed457... matched the installed refs.\nThe saved screen/camera/microphone/browser profile passed actual recording,\n310browser frames, tone/motion checks, authenticated unchanged C++WebSocket v5,\n23module inventory, CEF build ID/GDB source line and clean shutdown. Synthetic\ndevices and software rendering do not establish physical-device/GPU coverage.\nExisting C tests and public headers were not changed for these units. Default\nrelease bundles and debug artifacts remain intact.","chars":591,"tokens_est":148,"sha256":"c5814b0baa7345b73ddeece0b5e26ea8473b79e8a4fae1d05064ac29efcef9c9"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-capacity-and-transfer-accounting","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Capacity and transfer accounting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#capacity-and-transfer-accounting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Capacity and transfer accounting]\nPinned ci-lint interprets GB as1024^3: global10,737,418,240B;\nbuilder2,684,354,560B. Each real2.266GB archive fits the unchanged builder\nallocation. Two retained production consumers prove useful reuse. The later complete snapshot9,186,986,336B contains one projected generation\nand fits the existing global limit. Janitor119982543166 succeeded and reports\none builder entry; it deleted three superseded non-Flatpak entries. Ownership\nremains with #1269; the earlier seed eviction actor is not established. Normal janitor LRU overflow/newest-entry\nprotection is preserved; no manual cache deletion or invented capacity.\n\nArchive sizes are actual cache/artifact payload observations. They are not\ncomplete NIC/TLS transfer totals. Excluding downloads means source archives\nare fetched again: warm2 logs seven source downloads and1,026,740,380B apparent\ndownload-directory inventory. That inventory is not wire bytes, and reduced\ncache archive size alone is not a claim of lower total network traffic.","chars":1078,"tokens_est":270,"sha256":"a294dc29c23b39533b0176d5b35b40826be523bc9a651493a6cd27d010081261"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-cost-and-failure-accounting","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Cost and failure accounting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#cost-and-failure-accounting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Cost and failure accounting]\nAll measurement workflow job intervals (all attempts) are retained in\ncost-ledger/summary.json, with raw responses per run. The three baseline\nselected workflows cost374.033runner-minutes; their Flatpak jobs alone\ncost41.967runner-minutes. Completed nonbaseline workflows currently account\nfor2199.017runner-minutes, excluding a cancelled seed workflow whose\n112.117known runner-minutes have one inconsistent cancelled placeholder. This is runner-interval\naccounting, not an invoice. PR/merge-group CI and local bosn work are explicitly\noutside this ledger scope.\n\nThe production seed Flatpak passed651s with0hits/331misses, but its remaining\nmacOS job was automatically cancelled when the next master dispatch took the\nsame workflow concurrency slot. The raw all-attempt API also contains one\nunexpanded cancelled matrix placeholder with a reversed1s interval; report\nthis inconsistency rather than silently adding negative time. Later master\nmeasurements wait for their entire predecessor to become terminal.\n\nFailures are preserved: wrapper-link packing, incomplete container upload,\nbootstrap PATH, SDK-profile mismatch, harness readiness/profile/recording\nchecks, and native media-seek/package-acquisition failures. V7 Qt/runtime\npackage setup timed out automatically. No unchanged workflow was retried to\nobtain a passing result. Changed-code trials and their extra native/transport/\nruntime costs remain separate from routine Flatpak improvements.","chars":1528,"tokens_est":382,"sha256":"d1d80e915299e09c7328065e2a4f0617156ae83815d48e0bcfd5b7d871a8a981"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-post-cohort-cache-observation","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Post-cohort cache observation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#post-cohort-cache-observation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Post-cohort cache observation]\nThe [post-cohort inventory](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-post-cohort-retention.json)\ncontains39entries/11,139,864,070B, above the10GiB global budget. Its two projected\narchives total4,549,850,337B, above the2.5GiB family budget. This is a transitional\nsnapshot, not settled capacity proof. The newest archive9361847609 is2,275,027,686B\nand fits individually; final warm2/3 actually consumed9360891151. No claim is made\nthat the newest archive has a later consumer. Existing janitor maintenance at\nnormal merge-group/master events must demonstrate settled retention; its terminal\nlog/inventory and final reporting are recorded in #1760's closing report. Backend,\nbudgets and age protection are unchanged; no cache was manually deleted.","chars":902,"tokens_est":226,"sha256":"73f58d61a5b4c46c6f4a8c45700863c59fcba7de84f118235996ca11a5e595e8"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-handoff-checkpoints-at-this-report-revisi","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Handoff checkpoints at this report revision"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#handoff-checkpoints-at-this-report-revision","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Handoff checkpoints at this report revision]\n1. Finish the final portable evidence review against raw records; all three\n   final warm observations and exact-source cold are complete.\n2. Preserve the historical and interim cohorts, source/toolchain differences\n   and the distinction between Flatpak success and failed whole workflows.\n3. Verify retained production consumer reuse and current family/global capacity;\n   preserve all run costs, failures, cancellations, bytes and source differences.\n4. Commit portable final evidence and publish final1760/1667reports, including\n   the measured target result and remaining CI failure; audit all original criteria.\n5. Finish only owned branch/worktree cleanup. The original checkout now holds\n   another active release change; preserve that work and its branch.","chars":854,"tokens_est":214,"sha256":"135bf7a378d2b907a84f9a11a4c93d7f1826fea37a6aac30c9610c9ec892ed7c"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-current-browser-compiler-follow-up","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Current browser compiler follow-up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#current-browser-compiler-follow-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Current browser compiler follow-up]\nCorrected diagnostic39820372855 attributes all16unsupported calls to obs-browser\n`-fmodules-ts`. Recipe-only CMAKE_CXX_SCAN_FOR_MODULES=OFF retains C++20 and\nheader dependency tracking. RealSDKRED545warm1hit/1unsupported fails; GREEN549\npasses all10source/header/compiler/configuration freshness trials and warm2hits.\nThe original production cohort median475s misses the450s/50% target; preserve\nallthree samples and measure the new configuration separately after qualification.\n\nAfter normal1803queue merge, cache snapshot records36entries/9,186,986,336B,\nbelow the binary10GB global limit; one projected generation9354045170 remains\nat2,266,212,985B, below the binary2.5GB family limit. Do not infer which actor\nevicted older generations solely from this inventory; inspect janitor logs.","chars":870,"tokens_est":218,"sha256":"de4bd9c0f12e7e86236ed7040bddc44c5640d81c0dfab09b7138639309913799"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-c-20-full-qualification-outcome","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","C++20 full qualification outcome"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#c20-full-qualification-outcome","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a C++20 full qualification outcome]\nProducer119984644801 passed470s with327hits/19misses. Fresh consumer119988550402\npassed558s with343hits/3misses/0unsupported, all6dependencies, genuine OBS rebuild,\nfsck10commits/19,088objects and all validators. Dependency and compiler restore\nhelpers took18.905s and2.285s; these exclude download time. Actual input artifacts\nwere1,627,039,061B dependency and648,930,822B compiler; exported repository artifact\nwas1,095,997,602B. Installed saved-profile runtime119993180570 passed133s, with\n303verifiedbrowserframes and exact consumer App/Debug identities, CEF debugger\nand unchanged C++WebSocket checks. Synthetic/software limitations remain.\n\nThe enclosing qualification39824614077 cost133.3667runner-minutes and failed\nonly the known Windows callback parity test (664pass/1fail, #1549/#1541); its seed\nand log were preserved without rerunning or changing tests. Normal1806PRCI and\nmerge-result CI passed independently. The PR has merged through the normal queue. The later production cohort establishes the final performance target, with\nwhole-workflow failures and source differences retained.","chars":1178,"tokens_est":294,"sha256":"e43dd53064faf1717be999806315f663e7fe663d22700b0b242a0e71589c99d5"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-process-improvements-for-the-next-ci-batc","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Process improvements for the next CI batch"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#process-improvements-for-the-next-ci-batch","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Process improvements for the next CI batch]\n- Manual full-matrix experiments spend most runner time on unrelated native jobs.\n  #1817 adopted a tested manual lane selector in the existing workflow, retaining\n  the full Flatpak job and Fast Gate while preserving routine PR/release gates.\n  These routing savings are separate from the measured Flatpak job speedup.\n- Freeze qualification source identity and fetch completed artifacts alongside\n  lagging status APIs. A timeout observing a run is not a build failure or retry.\n- Record all compiler calls, including unsupported calls; reporting only cacheable\n  hits hid16expensive browser compiles behind a99%hit figure.\n- Inspect GitHub mergeability early when PR checks are absent. This unit had an\n  adjacent documentation conflict after the diagnostic PR merged; resolving it\n  preserved byte-identical recipe/fixture/test code and allowed normal PR checks.\n- Keep one primary reviewer through follow-ups and one RED/GREEN unit per PR;\n  preserve failed full-workflow costs separately from successful Flatpak scope.\n\nHistorical media-seek failures in v2/v3 were tracked by #1765/#1774 and fixed\nindependently in #1775 (b39a4e0a8). Those qualification branches predated the fix;\nretain their actual failed outcomes/costs rather than attributing them to Flatpak\nconfiguration. The later Windows callback-parity failure remains a separate\nknown issue. No C test was modified by the Flatpak performance units.","chars":1503,"tokens_est":376,"sha256":"7ec4825559683ee92c01175ebba6a3d8035a6dd2eecee2b3a28baeaf4cbdb34d"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-evidence-index","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Evidence index"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#evidence-index","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Evidence index]\n- [Completed interim production cohort](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-interim-cohort.json):\n  all three observations, cold run, identities, costs and failed target.\n- [C++20 SDK RED/GREEN](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-cpp20-cache.json):\n  all ten invalidation/reuse trials.\n- [Full C++20 qualification](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-cpp20-qualified.json):\n  actual fresh consumer and installed App/Debug/profile identities.\n- [Earlier transport qualification](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-transfer-v8-qualified.json):\n  original combined transport/runtime evidence and limits.","chars":1003,"tokens_est":251,"sha256":"5e8e440aa22b2dc5f6528ea020b7b4c136dd721ae44ea5b2ffb65a13b89d144b"},{"id":"docs-ci-speed-flatpak-retrospective-1760#flatpak-performance-retrospective-1760-final-cohort-status","doc":"docs-ci-speed-flatpak-retrospective-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak performance retrospective (#1760)","Final cohort status"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md#final-cohort-status","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-retrospective-1760.md","text":"[Flatpak performance retrospective (#1760) \u203a Final cohort status]\n#1806 merged normally as e1b649910c0d082b482bd3adfe58c67436b3e82a.\nThe trusted manual master seed [39831165145](https://github.com/obs-rust/obs-studio/actions/runs/39831165145)\npassed455s with all optional inputs off. It is excluded from the warm cohort.\nActual merged ci/ci_scope.py returns full=False for path-based master pushes,\nso no automatic full Flatpak seed is selected; earlier scheduling assumptions\nwere corrected before observing any final warm timings. The first three routine\nwarm jobs and matched cold are now complete:437/434/447s and846s respectively.\n\n- [Workflow cost ledger](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-workflow-costs.json):\n  all completed measurement runs, including final seed/cohort observations,\n  and the cancelled seed metadata anomaly.","chars":923,"tokens_est":231,"sha256":"a282a67bdc65220325d5f5296d6c8fc7a4f9a6fffd701c10a68131a18c5b0214"},{"id":"docs-ci-speed-flatpak-runtime-1760#flatpak-packaged-runtime-qualification-1760","doc":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak packaged runtime qualification (#1760)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md#flatpak-packaged-runtime-qualification-1760","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md","text":"[Flatpak packaged runtime qualification (#1760)]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nThe existing `ci.yml` manual entry point accepts `flatpak-runtime-test=true`.\nIt preserves the full build, AppStream/build-directory/repository validators\nand release bundle policy. After validation, the opt-in path transfers the\nexported OSTree repository to a fresh Ubuntu 26.04 job. Neither routine PRs nor\nroutine full builds run this additional qualification by default.\n\nThe test installs the actual application and matching Debug extension from that\nrepository into an isolated XDG data directory. It verifies their commits and\nCEF build IDs, and resolves `cef_version_info` source lines through GDB using\nthe installed Debug extension. It then runs `flatpak run` with a saved profile,\nnot the builder's staging directory or an empty first launch.\n\nThe profile includes PipeWire screen and camera capture, a PulseAudio microphone,\nand an actual CEF browser source. The unchanged AppImage testkit supplies a\nScreenCast/Camera portal and microphone tone. Screen/camera producers supply\nmoving images. The unchanged C++ WebSocket plugin must authenticate over v5,\nreport the saved sources, start a recording and stop it successfully.\n\nThe recording passes the existing AppImage verifier: moving screen and camera,\ncontinuous 440 Hz microphone audio, sufficient frames and clean decoding. An\nadditional pixel check requires the browser's green HTML rectangle throughout\nthe decoded recording. The app must load every packaged OBS module, except the\nhardware-only decklink/NVENC exceptions and explicitly diagnosed absent AJA devices, and exit cleanly. These are\nsynthetic devices with software rendering; physical hardware is not covered.","chars":1919,"tokens_est":480,"sha256":"928bdffd492c51c71e308cd86bc454fd15e966875a877c308ccb32eda3571edc"},{"id":"docs-ci-speed-flatpak-runtime-1760#flatpak-packaged-runtime-qualification-1760-cost-and-evidence","doc":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak packaged runtime qualification (#1760)","Cost and evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md#cost-and-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md","text":"[Flatpak packaged runtime qualification (#1760) \u203a Cost and evidence]\nThis is additional qualification work. The build logs the uncompressed export\narchive size; Actions records upload/download, setup and runtime-test durations.\nThe test retains installed app/debug commits, module inventory, logs, recording\nand elapsed time in the seven-day runtime evidence artifact. The temporary\nrepository artifact expires after one day. There is no new cache family,\nregistry publication or external storage.\n\nCount archive/upload and the separate job's setup, download, runtime and cleanup\nwhen reporting qualification runner cost. Keep the routine no-probe build table\nseparate, and do not count removing this opt-in test as a routine speedup. Runtime\nqualification does not establish #1760's warm/cold full-job performance target.","chars":822,"tokens_est":206,"sha256":"8787356d0ab9433e9d78699fdea6a9f7cabef4abefe0bc92b88b35b1ec95efc8"},{"id":"docs-ci-speed-flatpak-runtime-1760#flatpak-packaged-runtime-qualification-1760-local-feedback","doc":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak packaged runtime qualification (#1760)","Local feedback"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md#local-feedback","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md","text":"[Flatpak packaged runtime qualification (#1760) \u203a Local feedback]\n`uv run --no-project python -m unittest ci.test_flatpak_runtime` checks negative\ncapture/plugin evidence, absent/insufficient/wrong browser frames, matching Debug refs,\nand saved-profile construction. It does not replace the live packaged run.\nThe local gate cannot attest this hosted opt-in job; ordinary PR CI remains the\nmerge gate. Keep performance PRs draft until a real qualification run succeeds.\n\nA local FFV1/YUV420p video round trip confirms the browser pixel check accepts\n180 green-patch frames and rejects 180 frames without the browser patch. The\nfirst local encoder fixture could not run because the SDK's FFmpeg lacks\nlibx264; that failure is retained. The FFV1 fixture validates decoding/crop/color\nchecks, not CEF rendering or the actual packaged H.264 recording.","chars":847,"tokens_est":212,"sha256":"cd614a01c07060a6a91010a24bdd34e08ec65fefb86ac3bbc04e438d6fb23b3b"},{"id":"docs-ci-speed-flatpak-runtime-1760#flatpak-packaged-runtime-qualification-1760-recheck-an-existing-export","doc":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak packaged runtime qualification (#1760)","Recheck an existing export"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md#recheck-an-existing-export","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md","text":"[Flatpak packaged runtime qualification (#1760) \u203a Recheck an existing export]\nFor harness-only fixes, `ci.yml` accepts `flatpak-runtime-reuse-run=<run-id>`.\nIt skips the build-project invocation, downloads the same-repository run's\nimmutable export, and runs the current harness against it. CI format/data checks\nand the final gate still run. The final gate includes this consumer's result.\nThe read-only Actions token downloads the artifact; no cache is published.\n\nThe result records the package source SHA from the producer run, the harness\nSHA and producer run ID separately. An old artifact cannot qualify a later\npackaging change: build a new export whenever shipped inputs change. The archive\nexpires after one day; retain the downloaded evidence for the retrospective.\nThis mode saves a repeated full build, not the fresh runtime session setup.\n\nThe first hosted attempt built/exported successfully but stopped before install:\n`remote-ls` returned `app/` and `runtime/` kind prefixes, unlike the installed-ref\nlisting used during local investigation. The exact hosted output now has a\nregression. Only valid app/Debug kinds are normalized; branch/architecture and\nDebug-extension matching remain strict. No live capture pass is claimed yet.","chars":1248,"tokens_est":312,"sha256":"b83aa73a4e53140905cb99bce1aaf4b28749b240354c9cb4109ddd64e0efdd7f"},{"id":"docs-ci-speed-flatpak-runtime-1760#flatpak-packaged-runtime-qualification-1760-hosted-qualification-failures-retain","doc":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak packaged runtime qualification (#1760)","Hosted qualification failures retained"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md#hosted-qualification-failures-retained","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md","text":"[Flatpak packaged runtime qualification (#1760) \u203a Hosted qualification failures retained]\nThe first exported repository qualified in run `39754042722`; its runtime\nharness stopped before installation on typed remote refs. Run `39758270223`\nreused that immutable export with the corrected parser, installed the app and\nDebug extension, confirmed the CEF build ID and resolved `cef_version_info`\nsource lines with GDB. It then failed to connect to WebSocket: OBS had opened a\ndefault profile. Flatpak resets protected XDG variables after `--env`, so that\noption did not select the saved fixture. The harness now uses the installed\nruntime's `env` command inside the sandbox to set the fixture config root before\nexecuting the same packaged `/app/bin/obs`. It grants only the existing fixture\ndirectory, and neither changes HOME nor modifies the packaged executable.\nSee [Flatpak XDG conventions](https://docs.flatpak.org/en/latest/conventions.html).\nThese failures are retained; no saved capture/browser runtime pass is claimed yet.\n\nRun `39759412764` confirms the saved-profile launch correction: the unchanged\nWebSocket plugin loads its saved authenticated configuration, and OBS creates\nall four saved sources. The initial GetVersion request arrived before scene\nloading completed and received the plugin's explicit `207 NotReady` status.\nThe harness now waits up to 60 seconds for that read-only readiness check;\nother errors and all recording commands fail immediately. Existing failed-run\ncapture warnings occurred during cleanup and do not prove capture failure.\n\nThat package also includes AJA modules. The hosted runner has no AJA hardware,\nand the real log explicitly reports both the absent devices and module\ninitialization failures. The harness records these as unavailable hardware only\nwhen both exact diagnostics are present; a missing library or unexplained\nplugin failure still fails. Browser and unchanged WebSocket loading remain\nmandatory. This does not claim physical AJA, camera or microphone coverage.","chars":2023,"tokens_est":506,"sha256":"d7b7c6fadb24f75e3e44d0fa35422b771f3239d9f83985e3cc33f3b2ec25349c"},{"id":"docs-ci-speed-flatpak-runtime-1760#flatpak-packaged-runtime-qualification-1760-hosted-qualification-failures-retain~2","doc":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak packaged runtime qualification (#1760)","Hosted qualification failures retained"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md#hosted-qualification-failures-retained","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md","text":"[Flatpak packaged runtime qualification (#1760) \u203a Hosted qualification failures retained]\nRun `39760870691` passed readiness, authenticated GetVersion and the exact saved\ninput inventory; microphone capture opened `obs-test-mic`. The harness then\nqueried recording status immediately after successful StartRecord, observed\ninactive and shut down before the queued recording transition completed.\nIt now sends StartRecord once and polls only GetRecordStatus for up to 20 seconds.\nA never-active recording still fails; no mutation is retried. Full recording,\nscreen/camera streaming and browser-pixel verification remain outstanding.\n\nRun `39762495293` completes a 12.166-second, 365-frame recording and clean app\nshutdown. Screen and camera motion, continuous 440 Hz microphone tone, portal\nstreaming, plugin inventory and installed CEF debug checks pass. Browser pixels\nfail: the decoded frame contains the underlying screen bars where the green\nHTML should appear. This failure is retained; module loading is not treated as\nproof of browser rendering.\n\nThat runner reports llvmpipe and no DRM render node, while the frontend's browser\nhardware setting defaults to true. The next fixture explicitly selects the\nuser-visible `BrowserHWAccel=false` setting in its saved global configuration,\nmatching the declared software-only environment. The green-pixel threshold\nremains unchanged. This is a hypothesis to validate, not a confirmed cause or a\nbrowser pass; hardware browser rendering is outside this synthetic coverage.","chars":1521,"tokens_est":380,"sha256":"a98298b4f9070a19de24628208c7820ea390bb504bae9c6755846f95cecfd588"},{"id":"docs-ci-speed-flatpak-runtime-1760#flatpak-packaged-runtime-qualification-1760-successful-installed-package-qualifi","doc":"docs-ci-speed-flatpak-runtime-1760","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Flatpak packaged runtime qualification (#1760)","Successful installed-package qualification"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md#successful-installed-package-qualification","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-speed-flatpak-runtime-1760.md","text":"[Flatpak packaged runtime qualification (#1760) \u203a Successful installed-package qualification]\n[Run 39763463067](https://github.com/obs-rust/obs-studio/actions/runs/39763463067)\npasses the complete installed-package scenario with the unchanged export from\nproducer `39754042722`, package source `8ff154c45`, and harness `eb36fc7b5`.\nThe app records 361 frames over 12.033 seconds; screen/camera motion and the\ncontinuous 440 Hz tone pass the unchanged recording verifier. All 302 decoded\nbrowser frames after the two-second startup allowance meet the original green\npixel assertion. Authenticated unchanged WebSocket v5, module inventory,\nclean shutdown, installed CEF build IDs and GDB source lookup pass.\n\nSee [portable runtime evidence and attempt costs](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-installed-runtime.json).\nFive failed attempts are retained; no cancellation or unchanged retry was used.\nThis proves software browser rendering on the synthetic runner, not the failed\ndefault hardware setting or physical device/GPU behavior. Upstream missing DWO\nwarnings remain; source-line lookup is not complete Chromium symbol coverage.\nThe earlier failed-run entries above are historical evidence, not current holds.\n\nThis runtime hold is satisfied for the recorded package. Normal PR CI and the\nmerge queue still apply. The next full build must qualify the combined cache\nrestore/reset controls, and the issue's three warm observations, cold measurement\nand 50% whole-job target remain unproven. Do not close #1760 on this runtime pass.","chars":1620,"tokens_est":405,"sha256":"7822e789c227033d772ef7592cb090259c40ee6496a698089c9a82aebdeb54f3"},{"id":"docs-ci-tier2-queue-capacity#tier-2-runner-capacity-on-the-merge-queue-2026-11-07","doc":"docs-ci-tier2-queue-capacity","group":"docs","tier":"process","kind":"prose","breadcrumb":["Tier 2 runner capacity on the merge queue (2026-11-07)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md#tier-2-runner-capacity-on-the-merge-queue-2026-11-07","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md","text":"[Tier 2 runner capacity on the merge queue (2026-11-07)]\nThe queue keeps both complete Linux Tier 2 backends, but schedules one runner\nper backend on PRs and merge groups. Background/main/nightly/release runs keep\nthe six partitions. This reduces test-runner requests by 67% without removing\nassertions, changing the aggregate gate, or extending the 60-minute deadline.","chars":369,"tokens_est":92,"sha256":"5def457037a10651b1e718a235ffa6b84b54496d8393f90856415b0163f3f03d"},{"id":"docs-ci-tier2-queue-capacity#tier-2-runner-capacity-on-the-merge-queue-2026-11-07-measurement","doc":"docs-ci-tier2-queue-capacity","group":"docs","tier":"process","kind":"prose","breadcrumb":["Tier 2 runner capacity on the merge queue (2026-11-07)","Measurement"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md#measurement","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md","text":"[Tier 2 runner capacity on the merge queue (2026-11-07) \u203a Measurement]\nFetched with `gh api` on 2026-11-07, using\n`repos/obs-rust/obs-studio/actions/runs?event=merge_group&created=>=2026-11-06T16:20:00Z&per_page=100`\nand each run's `/jobs?per_page=100` endpoint. The response contained 90 runs\n(all master queue refs), from November 6 19:01:41Z through November 7 16:27:07Z.\nNo additional page was needed (90 total runs; at most 41 jobs per run).\n\nThe local CSV `docs/ci-evidence/2026-11-07-merge-group-jobs.csv` contains\n1,056 non-skipped job records with timestamps and computed seconds. It stays\nuntracked under the repository's measurement-output policy (#2686). Skipped jobs consumed no runner. For allocated\njobs, queue seconds = `started_at - created_at`; runtime seconds =\n`completed_at - started_at`. Never subtract workflow creation: that would\ncount dependency wait. Unassigned/pending/cancelled jobs have blank durations;\nthey are not zero-second successes. Collection is a non-atomic snapshot: run\nmetadata and job status can differ when a run finishes between API calls.\nSummary below includes only allocated jobs with both timestamps, including\nfailed/cancelled jobs. It is descriptive, not a controlled benchmark.","chars":1229,"tokens_est":307,"sha256":"823bc746f315ff782c504a89acacbb9af8a5802d779d0b379dec2a65599141e5"},{"id":"docs-ci-tier2-queue-capacity#tier-2-runner-capacity-on-the-merge-queue-2026-11-07-measurement~2","doc":"docs-ci-tier2-queue-capacity","group":"docs","tier":"process","kind":"prose","breadcrumb":["Tier 2 runner capacity on the merge queue (2026-11-07)","Measurement"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md#measurement","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md","text":"[Tier 2 runner capacity on the merge queue (2026-11-07) \u203a Measurement]\n| Job | Completed allocated jobs | Queue median / max (s) | Runtime median / max (s) |\n|---|---:|---:|---:|\n| CI Mode \ud83d\udec2 | 89 | 90 / 882 | 24 / 29 |\n| Event Data \ud83d\udd0e | 88 | 85 / 1268 | 16 / 24 |\n| Rust Tier 2 Linux \ud83d\udc27 (build) | 53 | 57 / 1046 | 307 / 653 |\n| Fast Gate \u26a1 | 85 | 17 / 1089 | 313 / 482 |\n| Rust Tier 2 Linux \ud83d\udc27 (tests ON) | 48 | 125.5 / 1381 | 217 / 242 |\n| Rust Tier 2 Linux \ud83d\udc27 (tests ON, serial-1-of-2) | 48 | 55.5 / 1922 | 148 / 182 |\n| Rust Tier 2 Linux \ud83d\udc27 (tests OFF, serial-1-of-2) | 48 | 108 / 2093 | 149.5 / 168 |\n| Rust Tier 2 Linux \ud83d\udc27 (tests OFF, serial-2-of-2) | 48 | 183 / 1698 | 142.5 / 171 |\n| Rust Tier 2 Linux \ud83d\udc27 (tests ON, serial-2-of-2) | 48 | 173 / 1976 | 142 / 157 |\n| Rust Tier 2 Linux \ud83d\udc27 (tests OFF) | 48 | 91 / 1531 | 215 / 275 |\n| CI Gate \u2705 | 86 | 16 / 928 | 14 / 23 |\n| Cache Janitor \ud83e\uddf9 | 81 | 5 / 1699 | 13 / 33 |\n| Qt Frontend Linux \ud83d\udc27 | 9 | 19 / 1037 | 205 / 308 |\n| Cross Compile \ud83e\uddf0 (mac-arm64,win-x64) | 17 | 3 / 150 | 180 / 209 |\n| Rust Cross Lint \ud83e\udd80 (aarch64-apple-darwin) | 8 | 3 / 518 | 293 / 331 |\n| Rust Cross Lint \ud83e\udd80 (x86_64-pc-windows-msvc) | 8 | 3 / 663 | 324.5 / 356 |\n| Rust Cross Lane Proof \ud83e\uddfe | 2 | 38.5 / 75 | 4 / 5 |","chars":1230,"tokens_est":308,"sha256":"faa4b50e5de740f4b5c29470162bedcaae9056c4603015ec28a3e3b5d90ddeae"},{"id":"docs-ci-tier2-queue-capacity#tier-2-runner-capacity-on-the-merge-queue-2026-11-07-measurement-coordinator-s-e","doc":"docs-ci-tier2-queue-capacity","group":"docs","tier":"process","kind":"prose","breadcrumb":["Tier 2 runner capacity on the merge queue (2026-11-07)","Measurement","Coordinator's example: run 42386260200"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md#coordinators-example-run-42386260200","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md","text":"[Tier 2 runner capacity on the merge queue (2026-11-07) \u203a Measurement \u203a Coordinator's example: run 42386260200]\nAll eight quoted queue/runtime pairs are independently confirmed, plus the\nremaining Tier 2 partition:\n\n| Job | Queue seconds | Runtime seconds |\n|---|---:|---:|\n| Tier 2 OFF serial-1-of-2 | 2093 | 158 |\n| Tier 2 ON serial-2-of-2 | 1976 | 144 |\n| Tier 2 OFF serial-2-of-2 | 1698 | 149 |\n| Tier 2 OFF suite | 1531 | 235 |\n| Tier 2 build | 417 | 293 |\n| Fast Gate | 152 | 411 |\n| Tier 2 ON suite | 48 | 223 |\n| Tier 2 ON serial-1-of-2 | 215 | 139 |\n| CI Gate | 177 | 11 |\n\nThe six test jobs are the dominant fan-out (six of seven Tier 2 runners).\nThis confirms severe recent runner waits, but **not** that every entry over\nthe whole day was close to ejection: many earlier jobs waited 2\u20135 seconds.\nThe aggregate maximums above also show other Linux orchestration jobs waiting.\nNeither runtime nor fan-out alone guarantees a future hosted allocation time.","chars":964,"tokens_est":241,"sha256":"80b80cd95288b03d8a310ec1abf005d77ce9b72df31e422e84c65533b31041d3"},{"id":"docs-ci-tier2-queue-capacity#tier-2-runner-capacity-on-the-merge-queue-2026-11-07-decision-and-expected-effec","doc":"docs-ci-tier2-queue-capacity","group":"docs","tier":"process","kind":"prose","breadcrumb":["Tier 2 runner capacity on the merge queue (2026-11-07)","Decision and expected effect"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md#decision-and-expected-effect","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md","text":"[Tier 2 runner capacity on the merge queue (2026-11-07) \u203a Decision and expected effect]\n- **Choose compact execution, not omitted tests.** `ci/tier2_matrix.py` emits\n  OFF/ON \u00d7 `all` on PRs and merge groups; elsewhere it keeps OFF/ON \u00d7 suite,\n  serial-1-of-2, serial-2-of-2. An explicitly full caller also keeps partitions.\n  Applying the compact layout on PRs both reduces the shared runner demand\n  and exercises the same execution path before queue admission.\n- `all` explicitly clears every CTest part/shard/CPU partition selector.\n  The existing harness executes the entire registry and CTest still honors\n  `RUN_SERIAL`. Both C reference (OFF) and hybrid Rust (ON), export parity,\n  unchanged C assertions, Fast Gate and Rust differential tests remain required\n  whenever selected. No tests are deferred: only the six-runner scheduling\n  layout stays on background events. A full backend takes longer on its own\n  runner; it avoids four allocations, setups and tree downloads per entry.\n- **Before/after expectation:** six test allocations become two; including\n  the unchanged build, seven Tier 2 allocations become three. At queue depth\n  five, test allocations fall from 30 to 10 (35 to 15 including builds).\n  Current partition runtimes in the example total 1048 runner-seconds;\n  the longest partition takes 235 seconds. Complete execution can add serial\n  runtime to that critical path. Savings in hosted wait cannot be predicted\n  from the recorded queue delays; measure after rollout rather than promising\n  a 35-minute reduction or a hard upper bound.\n- **Do not add same-head attestation.** A PR head SHA does not identify the\n  synthetic merge tree. Existing input-keyed lane proofs already cover safe\n  reuse; exact-input and trusted-run checks remain unchanged.\n- **Do not increase the timeout.** Long runner waits are the demonstrated\n  bottleneck, and reducing four allocations per entry addresses the demand.\n  The measured low-wait jobs do not justify declaring a larger merge budget.","chars":2007,"tokens_est":502,"sha256":"af695ac36616ba3090810098d6d44677bd879e0e4aa6c917a3458137289c1894"},{"id":"docs-ci-tier2-queue-capacity#tier-2-runner-capacity-on-the-merge-queue-2026-11-07-gate-and-background-proof","doc":"docs-ci-tier2-queue-capacity","group":"docs","tier":"process","kind":"prose","breadcrumb":["Tier 2 runner capacity on the merge queue (2026-11-07)","Gate and background proof"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md#gate-and-background-proof","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tier2-queue-capacity.md","text":"[Tier 2 runner capacity on the merge queue (2026-11-07) \u203a Gate and background proof]\nRuleset 25065309 was read, never written: active, sole required context\n`CI Gate \u2705` (integration 15368), ALLGREEN/SQUASH, max build/merge entries 5/5,\ncheck timeout 60 minutes. No ruleset payload or migration is needed.\n\nThe aggregate gate and `ci/gate_jobs.py` are unchanged. Real merge-group\n[run 42382595386](https://github.com/obs-rust/obs-studio/actions/runs/42382595386)\nshows Tier 2 ON job 128435760394 failing and `CI Gate \u2705` job 128436702367\n**failing**, both the direct needs check and the run-jobs check. This is real\nfailure propagation evidence for the preserved gate, not a synthetic passing\ncheck. Any future change to that gate requires observing its new version fail.\n\nAll six background test partitions actually **ran and passed** on master push\n[run 42383307878](https://github.com/obs-rust/obs-studio/actions/runs/42383307878):\nOFF suite 128440506750, OFF serial-1 128440506732, OFF serial-2 128440506729;\nON suite 128440506686, ON serial-1 128440506722, ON serial-2 128440506662.\nThe same matrix is retained for push, schedule and full release callers;\nregression tests exercise event selection. These historical runs prove current\nexecution, not post-merge execution of this unmerged proposal. The coordinator\nshould compare first post-merge main/nightly runs and queue waits before\nclaiming a measured speedup.","chars":1418,"tokens_est":354,"sha256":"e49f953c2a6797dc3d5c04d5de54ee8aa44a48370b5bf5ad481ebab97359f5db"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#ci-and-build-tooling-how-not-to-drown-the-machines","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nMany agents and people work on this repo at once, on shared machines and a\nshared pool of GitHub runners. Every unnecessary cold build, raw Docker run or\n\"just re-run CI\" multiplies across all of them. This repo uses a set of\npurpose-built tools so that work is cached, shared, run locally where possible,\nand skipped in CI when it has already been proven. This document says what\neach tool is for and what you should do.","chars":704,"tokens_est":176,"sha256":"b173aa3fc83c70f2d0fe1e5cbf9944c81ab37cde997482cbcbc62eead773eb38"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-a-proto-tool-still-evolving","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","A proto-tool, still evolving"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#a-proto-tool-still-evolving","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a A proto-tool, still evolving]\nThese tools are not separate utilities that happen to coexist. Together they\nform one tool that isn't finished yet:\n- soldr caches the build;\n- setup-soldr brings that cache to CI;\n- bosn bounds the local Docker load;\n- act2 replays CI jobs locally;\n- zackees/ci.yml sets the protocol;\n- ci.toml (or, here, `local-gate.toml` and `ci/ci_scope.py`) decides what\n  runs for which change;\n- attestation lets CI skip what was already proven.\n\nThey are still changing. Interfaces move, gaps exist, and this repo doesn't use\nevery piece yet.\n\nThe goal is to evolve how OBS-Studio-Rust is built until its CI is fast, by\nfollowing that general protocol rather than inventing repo-specific shortcuts.\nWhen something here is slow or awkward, prefer the fix that moves the repo\ncloser to the protocol: adopt the next piece, or report the gap upstream in the\ntool's repo (zackees/soldr, zackees/setup-soldr, zackees/bosn, zackees/act2,\nzackees/ci.yml). One-off workarounds in this repo are a last resort. Treat this\ndocument as a snapshot. When a tool changes, update the guide in the same PR\nthat adopts the change.\n\nRead it before you build, test or push. It complements\n[AGENTS.md](../AGENTS.md), [testing-policy.md](rust-port/testing-policy.md)\nand [coordination.md](rust-port/coordination.md); where they set a rule, they\nwin.","chars":1403,"tokens_est":351,"sha256":"8620e283efab1ae93422eaf878c3d3f1727968a8d86a4332b90f395a43b29566"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-rules-in-one-screen","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The rules in one screen"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#the-rules-in-one-screen","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The rules in one screen]\n1. **Build Rust only through `soldr`.** `soldr cargo \u2026`, never bare `cargo`,\n   `rustc`, `rustup` or `rustfmt`. Run it from the repository root (the cargo\n   workspace), not from `rust/`. Python goes through `uv run` / `uvx`, never\n   bare `python`.\n2. **The local gate is optional.** If you run it, push the stamped commit\n   with a valid signature on final HEAD. Only complete selected client gates\n   plus verified-member identity grant fast admission; otherwise real PR checks run.\n3. **Don't use GitHub as your test runner.** Don't push to \"see if CI passes\",\n   don't re-run whole workflows to debug, and don't look for a label to\n   force more CI: no label changes what runs, only the changed paths do.\n4. **Don't hit Docker directly for long or parallel work.** Docker on the shared\n   machines is meant to be managed by `bosn`; never `docker system prune`.\n5. **The gate lock is shared per clone.** If the gate says another gate is\n   running, wait and retry; don't kill other people's gates.\n6. **Expensive work belongs to the release gate**, not to every PR: full OBS\n   app builds, Flatpak, and macOS/Windows packaging run nightly and on release.","chars":1238,"tokens_est":310,"sha256":"292128ab3a2a1795ea284fc3b9f77a15c46b3b0ffaf69ac2cde8d0c1e877cbe8"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#soldr-the-rust-build-front-end","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end]\n[zackees/soldr](https://github.com/zackees/soldr) wraps cargo and rustup behind\nthe toolchain pinned in `rust-toolchain.toml`. It bundles **zccache**, a\ncontent-addressed compiler cache shared across branches and worktrees, so the\nsame crate is not rebuilt for every checkout. It also manages the\ncross-compilation SDKs that let a Linux host check and link the Windows and\nmacOS targets.\n\nWhat to do:\n\n- `soldr cargo build|test|clippy|fmt \u2026`, always from the repo root.\n- `soldr rustup target add <triple>` for an extra target. Don't add targets to\n  `rust-toolchain.toml`.\n- `soldr status`, `soldr doctor` when something looks wrong; `soldr gc` when it\n  warns about disk space. The local gate wants 10 GiB free.\n\nWhat not to do:\n\n- Bare `cargo` / `rustc`. A hook (`ci/hooks/tool_guard.py`) denies them, and\n  `ci/test_tool_guard.py` fails scripts that use them.\n- Bump `rust-toolchain.toml` past what the CI soldr supports natively.\n  `ci/test_toolchain.py` enforces this; bump soldr first.\n- Running cargo inside `rust/`. The workspace is the repo root, and cargo then\n  fails to load the workspace (`failed to load manifest for workspace member\n  rust/target`).","chars":1265,"tokens_est":316,"sha256":"68d1f2b95e8c29e82f9ed577b0dc3f437f622e289fbdb98f537f7432c204de4b"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#soldr-the-rust-build-front-end","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end]\nKnown pitfall: zccache has replayed stale Rust compiler output. Both the build\nand release workflows set `SOLDR_RUSTC_WRAPPER=none` for setup/cook and native\nRust consumers; the local gate sets it too (`OBS_GATE_ZCCACHE=1` opts back in\nlocally). Pinned soldr 0.9.54 defaults to the managed wrapper without this\noverride, and [zccache#1943](https://github.com/zackees/zccache/issues/1943)\nremains unresolved. This safeguard preserves standalone C/C++ compiler\ncaching and soldr cook/target archives. All seven setup-soldr callsites also\nset `build-cache: false`: the full-run audit observed no embedded session\nacross all eight expanded build lanes, despite transferring compiler-store\narchives (42.9 MB and 1.1\u20132.2 s in the inspected Linux host jobs). This input\nremoves embedded compiler-store transport; it preserves cook, registry and\ntoolchain layers (the Tier 2 builds set `prebuild-deps: none`: Linux compiles Rust only in\nCorrosion's own target dir, #3027, and macOS/Windows only there and in\n`--target <triple>` build trees, #3034). The unused `setup-soldr:build-cache` retention family is\nalso retired, allowing the janitor to reclaim legacy archives rather than\nprotecting them as a family's newest entry. The October 18 inventory held\nthree such archives totaling 183,330,575 bytes. This is reclaimable storage,\nnot proof of repository-wide headroom or a measured CI speedup. Reconsider\nthe layer and declare its family again only when the compiler correctness probe\npasses and a consumer demonstrates useful reuse. The release callsite follows\nthe same bypass policy; no release runtime comparison is claimed.\nSoldr 0.9.38 fixes source mtime truncation during archive replay (#1359).\nRegenerated local `obs-util` full and base plus delta archives preserve the\nexact nanosecond timestamp and report Fresh with the wrapper disabled. The\npinned setup action's cook keys include the Soldr version, so archives of an\nolder Soldr cannot match the new base key or delta restore prefixes.\nThe pinned setup-soldr action defaults to Soldr 0.9.52; the workflows name the\nversion explicitly. See the [probe and limits](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-20-soldr-source-mtime.md).","chars":2355,"tokens_est":589,"sha256":"3e0c3cdce2598e047a73c9a7994ee652c47aa5d5fed03c1c56686f0d83e636f1"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#soldr-the-rust-build-front-end","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end]\nFor opt-in Rust compiler-cache qualification, run\n`uv run ci/cache_source_probe.py --directory build_ci_audit/source-probe --soldr /absolute/path/to/soldr --expected-version X.Y.Z --timeout 120`.\nUse a new directory for each run. The probe records the selected executable,\nrequires an unchanged cache hit, then checks that a same-size/same-mtime\n`compile_error!` fails through both the cache and an independent uncached\ncontrol. It disables porcelain output so diagnostics remain visible and keeps\npartial logs and `safe: false` results on timeouts. A passing Rust probe alone\ndoes not qualify the native GCC rapid-edit case required by #3437; keep the\ncompiler-cache bypass until every required freshness check passes.","chars":819,"tokens_est":205,"sha256":"8dc8c2e7e80014d481aa14ef4395770a4256e3a6ecc15f14d2fe0ff1a02298c8"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#soldr-the-rust-build-front-end","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end]\nSoldr 0.9.41+ keeps a **verdict ledger** (soldr#3894): a `clippy`,\n`fmt --check`, `dylint` or doctest run whose exact inputs (git blob ids, or\ncontent hashes for uncommitted files, plus toolchain, argv and environment)\nalready passed is replayed instead of re-run, narrowed per workspace member.\nsetup-soldr carries it between CI runs (`verdicts: auto`, the default): master\npublishes, PRs restore. Every setup-soldr step in `build-project.yaml` sets\n`verdict-scope: build-project`: the manifest scope otherwise hashes the\ncalling workflow (`push.yaml` on master, `ci.yml` on PRs), so PRs never found\nmaster's verdicts (forge-ci/setup-soldr#604, `ci/test_verdict_scope.py`).\nIn CI the first master run with it (40159829966) published 8 verdicts under\nscope `b88ba65d043f3f19`, the scope PR and merge-queue Fast Gate runs read.\nIt is content-keyed, so it does not depend on the\nwrapper bypass above. `SOLDR_VERDICTS=off` forces a run; Build and Format set it for merge groups. The gate's source\nprobe sets it, because before forge-ci/soldr#3913 a scratch crate in an ignored\ndirectory (`target/`) keyed on none of its files and replayed a stale pass.\nThe lint lane runs the Dylints through `soldr dylint` with soldr's managed\ndriver (`SOLDR_FORCE_MANAGED_CARGO_SUBCOMMANDS=1`) in `target-dylint/`, beside\nthe stable Clippy steps (#2293).\nThis does not solve the separate\nrestored-target fingerprint hazard documented in the cache audit. If a\nbuild behaves impossibly, retry with that variable set before debugging the\ncode.","chars":1622,"tokens_est":406,"sha256":"8149d16976dce086ecfd5c696faeabb048e1488bc75e9c41983bda617ca859b5"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Linux C/C++ and PCH caching"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#linux-cc-and-pch-caching","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Linux C/C++ and PCH caching]\nUbuntu app compiler snapshots restore only within the same runner, architecture,\nRust mode and build configuration. An observed opposite-mode fallback yielded\nonly 43 cached compilations out of 361 calls and accumulated 9,526 MiB, exceeding\nthe 8,192 MiB save guard and preventing an OFF seed. A missing compatible seed\nstarts cold; publication remains subject to the post-build size guard and\nretention policy. This restriction does not establish that both modes fit the\ncurrent pooled nightly retention allowance.\n\nThe Ubuntu build, AppImage, sanitizers and Tier 2 use the standalone zccache\npinned in `rust/tools/linux-validate/install_zccache.py`, with SHA-256 checks\nfor both Linux architectures. Version 1.15.5 restores a byte-identical PCH\ninput header's recorded mtime before clang loads it; real content changes\nremain subject to clang's validation. This fixes `#pragma once` redefinitions\nafter touches or checkouts without relaxing PCH validation.\n\nThe pinned soldr 0.9.54 embeds zccache 1.15.14, including the wrapper\nselected by the optional `ENABLE_ZCCACHE` CMake module. Updating the standalone\ninstaller alone does not update that embedded wrapper. Matching the versions\ndoes not establish Rust compiler-cache correctness: the Rust wrapper bypass\nabove remains enabled.","chars":1415,"tokens_est":354,"sha256":"918cefb43031ca286dc922844ca192237f34bb4816c0b46d1dddbc8089570d7f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~2-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Linux C/C++ and PCH caching"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#linux-cc-and-pch-caching","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Linux C/C++ and PCH caching]\nHosted Linux Tier 2 wraps its build in `ci/tier2_front_cache.py` (#4988).\nA checksum-pinned ccache 4.14.3 binary provides a fresh, job-local 512M front\ncache with `CCACHE_PREFIX=zccache`. This shares identical private-fixture C\ncompiles with different output paths while retaining zccache for misses. The\npinned zccache salts user depfile keys with output/target arguments; a local\n24-output probe reported 24 cold calls versus 1 cold call and 23 front hits.\nBoth caches still validate headers and compiler flags. No sloppiness is enabled;\nthe front cache has its own empty configuration and is never uploaded. The\nDell's explicit empty launcher bypasses the helper. Rust caching, all test\nassertions, sanitizer flags and OFF/ON suites retain their existing policy.\nThe expected hosted saving is an estimate until a completed job measures it.","chars":972,"tokens_est":243,"sha256":"ccda95594fc64292d500e205ae60535bc938167fe578bb3cf44bd101c2c1e763"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil-3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Qt compiler snapshot publication"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#qt-compiler-snapshot-publication","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Qt compiler snapshot publication]\nQt compiler snapshots use `qt-ccache-linux-inputs-v2-<digest>` rather than a\nnew key for every commit. On the clean CI checkout, the digest includes staged\nfile identities except `docs/`, Markdown, `.github/`, `ci/`, and `ci.toml`;\nthe build workflow and `ci/linux_qt_frontend.py` are explicitly included again.\nThus CI policy/test metadata does not cause an upload, while workflow settings,\ndependency installation and the Qt build commands remain publication inputs.\nThe digest also includes the runner image, pinned Qt/FFmpeg\narchives, and installed C, C++, CMake, ccache and Ninja versions. An exact restore\nskips the upload; changed inputs can restore the existing `qt-ccache-linux-`\nfallback and publish a new snapshot on master. Older archives are not purged.\n\nThis is a publication identity, not a build or test attestation. Compilation\nand Qt tests still run, and ccache validates current compiler inputs. Generated\ncommit-version objects can still miss after docs-only commits; avoiding another\n~1.16 GB archive for those objects is intentional. It does not make deeper Rust\ntest archives safe or solve repository-wide retention by itself. Runtime\npublication/reuse measurements remain required after deployment.","chars":1357,"tokens_est":339,"sha256":"8311182b95471d2f0e9eca7fa13fdba74be9eaa42542ac22fb5de99462715b9d"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~2-3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Qt compiler snapshot publication"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#qt-compiler-snapshot-publication","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Qt compiler snapshot publication]\nAfter the Qt build/tests, the runner's compiler cache evicts entries unused\nsince preparation began, with a one-minute margin, then applies its existing\n650M size limit. The measured pruned warm working store is 508,489,050 bytes;\n650M leaves over 25% working headroom, with a 750MB retention allowance in\n`ci.toml` (ci-lint interprets MB as MiB). Hits refresh ccache entry timestamps, so current-build hits\nand misses remain eligible for the next snapshot while stale objects can be\nremoved. Missing preparation timestamps skip age eviction. Before/after byte\ncounts are logged on PRs as well as master; remote uploads remain master-only.\nThese filesystem counts are not compressed archive sizes or proof of the next\nconsumer's hit rate. Required builds/tests always run and failed jobs do not\npublish a cache.","chars":946,"tokens_est":236,"sha256":"225f3d0498fec94dc7108dd1bd2e388cdde68289f8f67c62ce557175d4ac8239"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil-4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Cross-compile check: Windows and macOS C from any host"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#cross-compile-check-windows-and-macos-c-from-any-host","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Cross-compile check: Windows and macOS C from any host]\n`cmake/cross/` compiles libobs for another OS on this machine, with no Windows or macOS runner.\n- **Toolchain:** soldr's LLVM and the SDK soldr provisions for that OS (the Apple SDK, or the xwin MSVC CRT + Windows SDK).\n- **Dependencies:** the same prebuilt Windows/macOS dependencies the real build uses (pinned in `CMakePresets.json`, unpacked into `.deps/`).\n- **Sources:** the same file lists as the real build (`libobs/cmake/sources.cmake`), including both the C build's ported files and the Rust build's C halves.\n- **Output:** objects only by default; it compiles and links nothing. `-DOBS_CROSS_LINK=ON` adds a shared libobs (`obs.dll` / `obs.dylib`) per alias, from the same sources the shipped hybrid links (including the `libobs-rust` staticlib, `deps/libcaption` and the generated version/core-module objects), against the prebuilt `.deps` import libraries. It stays opt-in because the link needs those inputs and a working cross linker, which not every host has.\n\n```sh\ncmake -S cmake/cross -B build_cross_win-x64 -G Ninja -DOBS_CROSS_TARGET=win-x64\ncmake --build build_cross_win-x64\n# link a real libobs (DLL/dylib) for the alias:\ncmake -S cmake/cross -B build_cross_win-x64 -DOBS_CROSS_LINK=ON\ncmake --build build_cross_win-x64 --target libobs-cross-shared\n# or from a configured OBS build:\ncmake --build build --target cross-win-x64      # cross-mac-arm64, cross-mac-x64, cross-all\n```","chars":1558,"tokens_est":390,"sha256":"03db6755d5324d3c02f2e21d0d1a3c760bd3bfce2657bf711308e777c048979b"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~2-4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Cross-compile check: Windows and macOS C from any host"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#cross-compile-check-windows-and-macos-c-from-any-host","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Cross-compile check: Windows and macOS C from any host]\n- **Only Docker on the host:** `uv run --script cmake/cross/docker.py mac-arm64 win-x64` runs the same check in a container (through `uv run --script ci/docker_task.py`).\n  - The checkout is a copy-on-write overlay at `/src`.\n  - Writable caches are named volumes the next run reattaches: `/build` per checkout; soldr's LLVM and SDKs and the prebuilt deps shared.\n  - `--clean` starts the build volume over.\n - **Warnings** are reported; `-DOBS_CROSS_WERROR=ON` makes them errors.\n  The [dependency warning boundary](../BUILD.md#dependency-warning-boundary-decision-of-2026-11-06-2625)\n  exempts third-party headers through SYSTEM includes while keeping OBS headers\n  and source strict. `ci/test_cross_conversion_ratchet.py` enforces it in\n  `ci.yml`'s required `Format \ud83d\udd0d / checks` job (`ci/ Self-Tests \ud83e\uddea`), not in the\n  external `zackees/ci.yml` repository. No additional workflow step is needed.\n - **Getting soldr:** `cmake/common/soldr.cmake` uses soldr from `PATH`, or downloads the version CI pins and checks its SHA256 (`ci/test_soldr_pin.py` keeps that pin equal to the workflows').\n - **Finding the toolchain:** `cmake/common/soldr.cmake` asks soldr for it (`soldr cc --target <triple> --print-cc/--print-cxx/--print-linker/--print-sysroot/--print-ar/--print-rc`), so a soldr layout change no longer breaks the check (`ci/test_soldr_cross_toolchain.py`).\n - **In PR CI:** the `Cross Compile \ud83e\uddf0` job in `build-project.yaml` runs it, compile-only, for the aliases `ci/ci_scope.py` selects (`cross_targets`).\n  It runs when a change touches a Windows or macOS file in libobs or a component the cross `CMakeLists.txt` names by `DIR`, or the check itself (`cmake/cross/`, `cmake/common/soldr.cmake`); full runs build both (#1294).\n  The frontend's Windows and macOS Qt groups are in it (#2408): the target's prebuilt Qt6 headers, with `ui_*.h` from the pinned Linux `uic`; moc is skipped, since nothing links.","chars":2069,"tokens_est":517,"sha256":"cac9d4a31eecd1f539ad4ff6803e853bdb90e7eebd0fe8aacd3a69439a865b72"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~3-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Cross-compile check: Windows and macOS C from any host"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#cross-compile-check-windows-and-macos-c-from-any-host","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Cross-compile check: Windows and macOS C from any host]\n- **No `win-arm64`:** `util/threading-windows.h` uses MSVC-only ARM64 intrinsics that clang lacks.\n - **Cost, measured 2026-10-31:** a cold cross build *with* the link \u2014 a fresh build tree, `ZCCACHE_DISABLE=1`, including that alias's `libobs-rust` staticlib \u2014 took `win-x64` 32 s / 41 s, `mac-arm64` 117 s / 32 s and `mac-x64` 134 s / 26 s (two samples each, `-j 4` on a 16-thread host shared with other worker checkouts; the slower sample in each pair is the one that also rebuilt 14\u201318 workspace crates, and the rest of the spread is co-tenant load). The native `Build OBS-Studio-Rust` steps it stands in for are 12m25 (Windows x64), 8m01 (macOS arm64) and 7m50 (macOS x86_64) in release run 41007587429; signing and packaging stay native.","chars":898,"tokens_est":224,"sha256":"08e040eccc08752ba813567a36fd7c0f683fcdf3683b55ba3f0b9cd8d5d25abe"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil-5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Tier 2 pre-queue links (#5189)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#tier-2-pre-queue-links-5189","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Tier 2 pre-queue links (#5189)]\nThe Linux-hosted Tier 2 Link Check matrix links hybrid libobs and every\nconfigured Rust-static cmocka executable independently for Windows MSVC x86_64 and Darwin arm64\nwhen `LANES[\"cmocka_link\"]` selects the\nchange. This includes libobs, its linked crates, obs-build registration/support,\ncmocka, Cargo inputs and the check's own implementation. Unrelated changes keep\nthe eight Rust category links in the independent Windows Link Check. The same check runs on PRs and merge groups;\nselected cmocka links also run on fully attested member PRs because existing\nclient proofs do not attest this CMake pass. Category-only work keeps its\nexisting admission policy.\n\n```sh\nuv run --no-project --with cmake==3.31.10 --with ninja==1.13.0 ci/cmocka_link_check.py\nuv run --no-project --with cmake==3.31.10 --with ninja==1.13.0 ci/cmocka_link_check.py --alias mac-arm64\n```","chars":996,"tokens_est":249,"sha256":"e421c7907c6d7b3ad8dff7a12063aa03021a765e11634f9ae16928a35c3317d9"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~2-5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Tier 2 pre-queue links (#5189)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#tier-2-pre-queue-links-5189","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Tier 2 pre-queue links (#5189)]\nThe root CMake cross-link mode includes the unchanged cmocka graph and deferred\nsupport fragments. CMake's file-api discovers executable targets after host\nconditions have been evaluated, including consumers without a `_rust` suffix.\nImported Corrosion archives are discovered through generated link arguments as\nwell as target dependencies; an empty Rust inventory fails. The check uses\n`RelWithDebInfo`, matching native Tier 2. Windows static consumers retain the\ncore's headers and demand-linked real C support without its full DLL import\nlibrary. The check rejects that import/static mix even if LLD accepts a link\nthat native MSVC LINK would reject (#5246). The check builds\nagainst real target cmocka and SDK libraries, never executes target programs,\nand saves `link-targets.json` in its build tree. It always refreshes the Rust\narchive through soldr so source-only edits cannot reuse the cross project's\nmanifest-only custom-command result. Ninja uses the process CPU budget, capped at\nfour workers. Each alias uses a fresh 512M ccache from the checksum-pinned\n`ci/tier2_front_cache.py` installer to share identical support-file compiles\nwithin that pass. No cache is uploaded, no relaxed policy is inherited, and\nthe cache never stores link results. The matrix disables fail-fast so one failing alias cannot\ncancel the other. Both aliases are independently required by `ci/gate_jobs.py`,\nincluding attested PRs; CI Gate waits for the entire reusable build workflow.\nThe jobs retain the 30-minute deadline and existing Linux heavy-pool routing.\nThe local `ci/windows_link_check.py` default still runs categories and both\ncmocka aliases; CI sets `OBS_CMOCKA_LINK=false` only on the category job.\nPinned CMake 3.31.10/Ninja 1.13.0 uv wheels avoid apt setup on this path\n(#5224). CMake 3.31 uses clang-cl `/showIncludes`; CMake 4.3\nforwards dependency flags that the pinned ccache rejects as uncacheable.\nDarwin uses the production hidden-symbol list and the Rust crate's existing SDK\nframework imports. Library discovery stays in the Apple SDK and target deps;\nhost Linux libraries cannot satisfy Darwin probes. A successful link does not\nprove runtime recording/allocator behavior or every binding/order error whose\nfinal link succeeds.","chars":2376,"tokens_est":594,"sha256":"4eb96586b19f3171284cbbaf5b15ea10fc4f3467ee0a1f437cec666a3fd7b811"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~3-3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","Tier 2 pre-queue links (#5189)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#tier-2-pre-queue-links-5189","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a Tier 2 pre-queue links (#5189)]\nEarlier Release measurements before #5246's complete inventory and static-only\nWindows support (four Ninja jobs on a shared Linux worker, 2026-11-19):\n\n| Target | Fresh CMake/Corrosion tree | Warm tree |\n|---|---:|---:|\n| Windows MSVC x86_64 | 367.80 s | 82.49 s |\n| Darwin arm64 | 418.54 s | 73.69 s |\n\nSDKs, prebuilt target dependencies and the Cargo registry were already installed;\nthese are build-tree cold timings, excluding first-host downloads. The original\neight Windows category binaries also linked (128.53 s with partial Cargo reuse).\nThese local timings are not a hosted critical-path guarantee.\n\nStandalone Rust-static support is selected for every consumer, including tests\nthat also link shared libobs or inherit Rust through an interface target.\n`test/cmocka/build/rust-static-support.json` owns the real private adapter members\nfor both CMake and Cargo-native fixtures. Linux resolves Rust and support as a\nrescan group so newly selected members can call back in either direction.\nFixture-owned adapters keep their compile definitions and take precedence over\nthe shared fallback members.\nAdd new shared adapters there as separate\nlazy archive members; fixture-owned definitions retain precedence. CMake inherits\nthe native owner (`libobs-objects`) link interface rather than maintaining host\nlibraries per test. Cargo's production Rust-archive dependency carries its native\npackage interface. Both paths put Rust before MSVC import providers so allocator\nand parser symbols are selected consistently; ELF/Darwin retain the fixture's\ndeclared DSO binding order. Link checks prove linking only;\nnative runtime checks still own recording callbacks and allocator behavior.","chars":1820,"tokens_est":455,"sha256":"b71a855c33fbac2b4ad22c899952c7371e3ea94c8f4a26a1ee26f157181efc16"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil-6","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nThe maintainer chose **STRICT** on 2026-11-17: nothing compiles on hosted\nmacOS runners. The Rust-test producer runs on Linux with soldr's LLVM and Apple\nSDK targeting `aarch64-apple-darwin`; macOS loads and runs its artifacts. This\nalso applies to obs-build's native-build and Qt integration contracts. Compiler\ndiscovery assertions apply to the Linux-hosted cross toolchain targeting Darwin;\ntheir load and execution assertions still run on macOS. Keep every assertion,\nincluding profile switches, source/flag mutations and unity/PCH rebuild decisions.\n\nThe Rust-test bundle is prepared by `ci/macos_test_artifact.py`:\n\n```sh\nuv run --no-project ci/macos_test_artifact.py build --output build_macos_tests\n# PR selection, identical to local_gate.test_diff's affected-crate selection:\nuv run --no-project ci/macos_test_artifact.py build --output build_macos_tests --base BASE\n# Extract the complete bundle into the consumer checkout root first:\nuv run --no-project ci/macos_test_artifact.py run --manifest manifest.json\n```\n\nThe producer links the category tests and helpers with `soldr cargo test\n--no-run`, verifies arm64 Mach-O executable headers and every ad-hoc SHA256\nCodeDirectory page, and retains build-script output. It then compiles the same\nselected crates' doctests with `soldr cargo test --doc --target\naarch64-apple-darwin`. Stable rustdoc `--test-runtool` copies each temporary\nexecutable before cleanup. The SDK-aware linker comes from `soldr cc --target\naarch64-apple-darwin --print-linker`: Cargo's target rustflags alone do not\nconfigure rustdoc's test linker. No nightly flags or `RUSTC_BOOTSTRAP` are needed.\nThe producer disables verdict replay so a previous doctest verdict cannot hide\nmissing runtime artifacts.","chars":1877,"tokens_est":469,"sha256":"3367261a5042660bc4a1a9658ba985f3fc45ce7d78b450b0d0bc210dd5f032be"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~2-6","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nRustdoc checks `compile_fail` and `no_run` cases on Linux. The retained 2024\nmerged harness checks runnable cases, including `should_panic`, on macOS. A\nstandalone `should_panic` case that rustdoc cannot merge fails preparation rather\nthan silently passing without execution. The manifest marks doctests complete\nonly after the entire compilation command succeeds. A producer success proves\ncompilation and compile-fail assertions; execution is proven only by the consumer.\n\nBuild and execution require **the same absolute, real checkout root**, including\nthe target directory. `ci/macos_test_workspace.py place` moves both real checkouts\nto `/opt/obs-ci-<run-id>-<attempt>/src` before setup or execution, leaving the\noriginal Actions workspace as an alias. `/opt` resolves identically on both hosts;\nDarwin's `/tmp` resolves through `/private/tmp`. Placement supports separate runner\nmounts and rejects a symlinked destination parent. The always-run restore step\nreturns the checkout before action post steps, retaining caches without leaving\nlarge relocated trees on the Dell. Rust embeds `CARGO_MANIFEST_DIR` and `CARGO_BIN_EXE_*`;\nchanging environment variables after compilation cannot relocate them. The runner\nrejects a mismatched root. The manifest retains package cwd, Cargo package/build\nenvironment, test arguments and helper permissions, and hashes all transported\nfiles. Missing artifacts, corrupt files, incomplete doctests and failed test\nexits fail the consumer. Preparation requires an empty output directory.","chars":1667,"tokens_est":417,"sha256":"072e0450843e749b8d24ded280d180d1042783647fcd46fe26d4d62b3a4b9829"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~3-4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nThe native-fixture slice adds `ci/macos_native_fixtures.py`. The producer calls\nit whenever the Application category is selected; it uses that category's existing\nLinux executable to prepare 17 Darwin fixture contracts. It covers profile and\nassertion switches, shared-core/plugin dependencies, static archives and executable\nlinks, explicit groups, independent C/C++ flags, Objective-C/Objective-C++ ARC and\nmanual groups, all unity/PCH combinations, transitive headers, source/flag changes,\nSwift bridge/modules/headers and the independent CMake graph consumers. The\nWindows resource/MSVC contracts and Linux-only runtime modules keep their existing\nplatform gates. Configuration-only fixtures use `project(... NONE)` or explicitly\ndisable compiler probing; they still run on macOS. Qt integration contracts use\nthe preparation helper below.\n\nIndependent native fixtures use a thread pool on the Linux producer, with at most\ntwo workers by default (one on a single-CPU host). Set\n`OBS_NATIVE_FIXTURE_WORKERS` to a positive integer to override this budget; it is\ncapped by `os.cpu_count()` and the fixture count. Use `1` for serial measurements.\nEach fixture's ordered rebuild/mutation sequence stays in one subprocess. The\nfirst observed failure reports that fixture's captured output, cancels pending\nwork and prevents a completed index; already running fixtures finish before exit.\nThe test inventory retains its existing order and signed-image paths are sorted\nin fixture order, then by path, regardless of worker completion order.","chars":1677,"tokens_est":419,"sha256":"3ca27e9d5338bd05975408f74d13362d5889f6eb57846ac7ee673e96ad978b6f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~4-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nFor serial/parallel comparisons, reuse the same absolute bundle/work paths.\nExisting toolchain nondeterminism affects snapshot blobs for `prefix.pch`\n(serialized header metadata/order), `CMakeDetermineCompilerABI_C.bin` and\n`CMakeDetermineCompilerABI_CXX.bin` (random `cmTC_*` probe names),\n`CMakeConfigureLog.yaml` (random probe paths), `.ninja_deps`, `.ninja_log` and\n`LastTest.log` (timestamps/timings), and `NativeSwiftFixture.swiftmodule`,\n`NativeSwiftFixture.swiftsourceinfo` and `libfixture-swift.dylib` (temporary\nSwift/PCH paths and derived debug data/UUID/signature). Those files' snapshot\n`file`/`sha256` fields and corresponding `index.json` signed-image references\nmay differ. Compiler-command stdout also records CMake's elapsed configure time.\nNormalize only these fields when comparing evidence; retain requests, inputs,\nrecipes, rebuild decisions, event order, destinations and all other file hashes.\nTransport and replay always verify the original hashes and signatures, without\nnormalization.","chars":1152,"tokens_est":288,"sha256":"37f8a529cd648cf4cb7b069fcb89e5a4d39531ae81c4edc98124baa4cade0194"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nPreparation discovers soldr's Darwin C/C++ drivers, archiver, LLVM linker and Apple\nSDK on Linux. Swift uses an explicit `SWIFTC` override or the SHA256-pinned Linux\nSwift 6.1.2 distribution, with soldr's LLVM tools for linking. Its Darwin bridge\nstill uses the same Apple SDK. A private tools directory also supplies `dsymutil`,\nwhich Swift needs for debug builds and soldr's primary LLVM bundle omits. It uses\n`DSYMUTIL`, an existing LLVM/host tool, or the checksum-pinned dsymutil from soldr's\nLLVM-tools 20.1.7 payload. The fallback reuses soldr's verified installed tool or\ndownloads the pinned 474,401,547-byte archive and extracts only dsymutil; this is\nproducer setup cost, not consumer payload. Python 3.14 supplies zstd extraction.\nMissing tools or invalid checksums fail preparation; no Swift assertion is skipped.\nThe dsymutil fallback persists under\n`$RUNNER_TOOL_CACHE/obs-darwin-dsymutil/<archive-sha256>` (locally,\n`target/macos-native-toolchains/obs-darwin-dsymutil/<archive-sha256>`).\nBoth archive and executable checksums must pass before atomic publication;\nevery reuse verifies the executable again. The archive is discarded, and\ninterrupted extraction cannot expose a cache hit. Separate log timings cover\nthe soldr driver/SDK queries, Swift version probe and dsymutil provisioning,\nincluding its download, to distinguish network/setup cost from compilation.","chars":1521,"tokens_est":380,"sha256":"6c0849cc2a49cddec9ae8a7cfdcb9bab8c36d7380b3cf8228090b7aa0fa01f53"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~6","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nThe pinned Swift installation is reused across clean checkouts under\n`$RUNNER_TOOL_CACHE/obs-darwin-swift/<archive-sha256>` when Actions supplies its\ntool cache; local runs fall back to `target/macos-native-toolchains/` with the\nsame content key. Download and extraction happen in a private staging directory;\nonly a checksum-verified extraction containing the compiler is atomically\npublished. Interrupted installs cannot become cache hits. The archive is discarded\nafter installation. This caches only the immutable compiler distribution: every\nfixture, mutation and snapshot is still prepared on every run. Logs distinguish\nSwift installation/cache hits and time toolchain preparation, the host Application\ncategory build, and fixture contracts with snapshots separately.\nCompiler-discovery assertions therefore describe\nthe Linux-hosted Darwin toolchain. Every successful test writes a completed\nmanifest with `BUILD_HOST` (Linux), `BUILD_TARGET` (`aarch64-apple-darwin`), the\ncompiler recipes, input hashes, target-specific rebuild decisions, checksummed\nsnapshots of every intermediate variant and deferred runtime expectations.\nSnapshot blobs are deduplicated by SHA256. A failed preparation never writes a\ncompleted manifest or bundle index.","chars":1390,"tokens_est":348,"sha256":"26e684c5c84f09d5e7939e90adadc6fa96e9e1ffec89d6f6e04491f961919e71"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~7","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\n`OBS_NATIVE_FIXTURES` selects replay. The same test bodies assert the recorded\ncompiler results, restore the corresponding variant and really load or execute it\non macOS, including fresh-process loader probes and CTest's environment/working\ndirectory checks. They reject missing/corrupt files, changed recipes, incompatible\nhost/target evidence and unconsumed events. Only compiler commands are replayed;\nload/run assertions remain pending until the consumer succeeds. With neither\nfixture environment variable set, local and Linux tests retain their native\ncompilation path. `OBS_NATIVE_FIXTURES_PREPARE` is the producer-only counterpart;\ndo not set both variables. Native manifests and signed arm64 dylibs, bundles and\nexecutables are included in slice (a)'s final checksummed bundle.\n\n`rust-tests-macos-build` in the existing build workflow prepares the full bundle\non Linux. It uses the existing per-job `mq-heavy-labels` routing with\n`ubuntu-26.04` fallback. Both hosted and Dell producers upload the same gzip\narchive and SHA256 sidecar; the job outputs its immutable artifact ID and real\ncheckout parent, so a macOS-only rerun retains the producer's original attempt; neither uses local runner handoff. The archive keeps\nhidden build-script files and permissions. The consumer verifies the archive\nbefore extracting, then verifies all manifest file checksums before any test.\nPRs retain `rust_scope.affected` selection through `--base`; merge groups and\nnondeferred events build the workspace. Qt preparation and `--require-qt` replay\nshare the existing `qt_sdk` scope. A missing Qt payload fails before execution.","chars":1762,"tokens_est":440,"sha256":"a4832df6c2aac32ea87ae7ddfb4016a2b4d0e1911ad2a07a0d921c09adac9752"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~8","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nThe existing `Rust Tests \ud83e\udd80 (macos-26)` check needs a successful producer and only\nruns the bundle. Its setup consists of checkout for source/fixture assertions\nand uv's prebuilt Python 3.14 for verification/helpers. CMake and CTest from the\nrunner image configure language-free projects and run existing tests. There is\nno soldr setup, dependency cook, Qt SDK installation, compiler discovery or\ncompilation on this consumer. The published-SDK resolver and the four original\nQt graph/CMake contracts run on Linux against the Darwin SDK, recording their\ntarget executions for macOS. Analysis outside #4999's queue replacement runs on\nthe Linux producer against the Darwin target. CI Gate requires the selected\nproducer and the unchanged macOS check; failed/missing/corrupt artifacts or failed\nentries cannot satisfy it. Graph self-tests enforce these dependencies and the\nabsence of compile steps. Tier 2 macOS remains separate work in #5009.\n\nThe supplied hosted baseline spent 288\u2013294 seconds compiling/linking Rust tests\nand 42\u201361 seconds setting up soldr: **5.5\u20135.9 macOS minutes avoided per selected\njob before transport overhead**, without double-counting #4999's analysis saving.\nThis excludes unmeasured native-fixture/Qt compilation savings. The 2026-11-17\nintegration run on shared Linux took 520.71 seconds for Rust/doctests/native\nfixtures and 154.95 seconds for Qt preparation, **11.26 Linux minutes total**\nbefore archive/upload/setup overhead. That run used existing caches but rebuilt\nchanged test harnesses and downloaded Qt SDKs; earlier slice timings (8.66 seconds\nfor warm Rust/doctests and 58.59 seconds for warm Qt contracts) describe different\ncache states. These are local costs, not a hosted speedup or critical-path claim.\nOnly this PR's CI can prove the real common-root handoff, hosted macOS execution,\nrunner-image dependencies and net runner time on hosted and Dell routes.","chars":2043,"tokens_est":511,"sha256":"c94c62c4b6a7ef6c6a62360c6e37a01b5612d39f91875f5f4c7b3caec6b9dcdf"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-soldr-the-rust-buil~9","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","soldr: the Rust build front end","macOS Rust execution artifacts (#5008)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#macos-rust-execution-artifacts-5008","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a soldr: the Rust build front end \u203a macOS Rust execution artifacts (#5008)]\nThe Qt infrastructure slice adds `ci/macos_qt_artifact.py`: matching published\nDarwin Qt libraries and Linux moc/uic/rcc tools, both original native/CMake\ncontract consumers, signed arm64 output, and runtime entries in the same bundle.\nSee [the Qt contract inventory and producer command](ci-macos-qt-artifacts.md).\nPreparation success leaves runtime pending; macOS must execute those entries.","chars":534,"tokens_est":134,"sha256":"c7606305d69408e49f572a74322485c976d0d70cc4a2bbeeecffdd244241203d"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-setup-soldr-soldr-i","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","setup-soldr: soldr in GitHub Actions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#setup-soldr-soldr-in-github-actions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a setup-soldr: soldr in GitHub Actions]\n[zackees/setup-soldr](https://github.com/zackees/setup-soldr) is the action\nthe workflows use to install soldr, the pinned toolchain and its caches. Its\ncache layers:\n\n- the toolchain;\n- the cargo registry;\n- a \"cook\" layer of prebuilt dependencies, keyed on `Cargo.lock`, the rustc\n  release and the soldr version;\n- the zccache compiler cache, which lets a branch reuse its parent's artifacts.\n\nRemote caches are saved only when the run ref is `refs/heads/master`,\nincluding master pushes and nightly/manual runs on master. PRs, merge groups\nand feature-branch release verification restore but do not save. Every\nsetup-soldr call sets `save-cache-remote` explicitly: its upstream `auto`\ndefault excludes PRs but still permits queue and feature-branch uploads.\nLocal act/act2 cache saves stay enabled. A PR's first build depends on\nmaster's cache being warm.\n\nWhat to do: keep the pinned action SHA and the `version:` input in\n`.github/workflows/build-project.yaml` in step with your local soldr and\n`rust-toolchain.toml`. Change them together, in one PR.","chars":1161,"tokens_est":290,"sha256":"a3fcd272c46e50e25e8b5089fa520a9998f0931d20bb082ca6e368cb04d56de2"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-bosn-docker-under-s","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","bosn: Docker under supervision"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#bosn-docker-under-supervision","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a bosn: Docker under supervision]\n[zackees/bosn](https://github.com/zackees/bosn) is a machine-wide daemon that\nowns Docker on a shared host. It keeps a registry of containers, volumes and\nleases, runs jobs in a bounded pool of runner slots (each capped in CPU), and\ntears down what a job leaves behind. It exists so that many agents on one\nmachine don't each start unbounded Docker work.\n\nWhat to do:\n\n- `bosn jobs` to see what is running before starting heavy work.\n- `bosn ci run --workflow <file> --job <job> --trigger pr --wait`, then\n  `bosn ci report <run>`, to run a CI job locally (through act2, below) instead\n  of on GitHub.\n- `bosn ci doctor` when the local runner looks unhealthy.\n\nWhat not to do:\n\n- `docker system prune`. It destroys everyone's warm caches.\n- Install bosn unasked, or add stacks to `bosn.toml` without a reason. It's\n  manifest-driven, and the machine owner decides what runs.\n\nThe repo's `bosn.toml` declares the AppImage stack `appimage-228`, the\nglibc 2.28 image (`build-aux/appimage/manylinux/Dockerfile`) the workflow\nbuilds on.\n`bosn run --task appimage` builds the AppImage locally on the 2.28 image by\nrunning `build-aux/appimage/build.py`, the same script the AppImage workflow\ncalls, with no act and no GitHub involved. The source is bind-mounted, the zccache\nand cargo caches live in bosn volumes, and the AppImage lands in\n`build_appimage/` (#899). (`bosn ci run` can't run that job through act: its\n`ubuntu-26.04` label isn't supported there.)","chars":1553,"tokens_est":388,"sha256":"1f4d88a5b3722c47d6b2974ddd6d50333e7e2a167afc4de4c27851b5586c82e0"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-bosn-docker-under-s~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","bosn: Docker under supervision"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#bosn-docker-under-supervision","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a bosn: Docker under supervision]\nTier 2 Linux in CI builds once in `rust-linux-tier2-build`, using the pinned\nstock Ubuntu job container and full `apt-packages.txt` development inputs.\nIt transfers both implementations' compiled tree and an exact runtime-package\nmanifest. `rust-linux-tier2` runs one complete suite per OFF/ON matrix mode,\nwith no shards. Its host invokes `rust/tools/linux-validate/ci-runtime.py`:\nthe helper downloads and verifies the immutable prepared runtime pinned in\n`prepared-runtime.json`, then runs `validate.sh` in a four-CPU container with\nthe original source/build paths and writable CTest timing history. Source is\nread-only. Each suite retains eight CTest workers and existing serial isolation.\n\nA changed package closure or unavailable release asset selects installation\nin the same pinned stock base. Archive size/checksum, image identity or inventory\nerrors fail the job. The existing apt cache remains available for fallback;\ntest jobs never publish it. Runtime assets use the existing public\n`obs-rust/obs-studio-libs` release/catalogue route without additional CI\ncredentials. Producer and cold-transfer measurements are recorded in\n[the speed report](ci-speed-2026-10-22.md#fresh-prepared-runtime-experiment-and-production-candidate-1717).\nThe intended local equivalent is bosn running the job through act2:\n\n```sh\nbosn ci run --workflow build-project.yaml --job rust-linux-tier2 --trigger pr --wait\n```\n\nIt does not run yet: bosn accepts only the `ubuntu-latest`, `-24.04` and\n`-22.04` labels (zackees/bosn#642), so it marks the\njob's `check-event` and `ci-mode` dependencies unsupported and skips Tier 2\n(\"some jobs need runners bosn cannot supervise\"). Until it does, use\n`./unittest` (the Docker lane below) locally.","chars":1825,"tokens_est":456,"sha256":"3c76b812bc68aa4f7fbe56c37018bf2c15ef0420bee2036aaea966fbc9553f44"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-bosn-docker-under-s~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","bosn: Docker under supervision"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#bosn-docker-under-supervision","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a bosn: Docker under supervision]\nThe local gate's Tier 2 lane (`./unittest`) uses\n`rust/tools/linux-validate/run.py` and `ci/docker_task.py` (through\n`uv run --script`), the current stand-in\nfor zackees/bosn#666. It has per-checkout build volumes and container ownership,\nshared compiler/crate caches, and explicit storage budgets. Run local Docker\nwork through bosn as described below; the prepared CI consumer does not change\nthe local build harness or its development-package inputs.","chars":552,"tokens_est":138,"sha256":"25eeef62eeaa051ec1b8c8d3529c651d83c40aa57113439d6860bc925ea83be7"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-act2-github-actions","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","act2: GitHub Actions, locally"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#act2-github-actions-locally","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a act2: GitHub Actions, locally]\n[zackees/act2](https://github.com/zackees/act2) is a fork of nektos/act that\nruns workflow jobs on your own machine, with fixes for soldr's and\nsetup-soldr's caching. bosn drives it; you don't call it directly. Use it, via\n`bosn ci run`, when you need to know whether a real workflow job passes:\ndon't push a commit just to find out. A cold run is slow (tens of minutes),\nso it's an on-demand check, not part of every push. Remote-only jobs (for\nexample macOS) are reported as such, not faked.","chars":591,"tokens_est":148,"sha256":"df2e3b6c67019a66118ef08ba75a8aef608b32dc41a22161ce953590d7677d53"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-zackees-ci-yml-the-","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","zackees/ci.yml: the CI policy and its checker"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#zackeesciyml-the-ci-policy-and-its-checker","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a zackees/ci.yml: the CI policy and its checker]\n[zackees/ci.yml](https://github.com/zackees/ci.yml) is the set of rules this\nrepo's CI follows, plus `ci-lint`, its checker and local-gate runner. The core\nideas:\n\n- **Two cycles.** The dev cycle (every PR and push) runs a quick, mostly-Linux\n  gate. The release gate (nightly and on release) runs everything: every\n  platform, full app builds, Flatpak, packaging. Expensive jobs live in the\n  release gate.\n- **Local first.** The quick remote gate must be something you can run locally\n  with one command, so a green local run predicts a green PR.\n- **Attest instead of repeat.** A local run stamps the commit; CI trusts the\n  stamp and skips what it already proved (below).\n\nAlways use the pinned version from [AGENTS.md](../AGENTS.md):\n\n```\nuvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint local-gate run\n```","chars":974,"tokens_est":244,"sha256":"e45e43438c697f7f9f39455513a07fa40bf7f0e94722264d1cb993a0cf74518d"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-toml-and-local-g","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","ci.toml and local-gate.toml: what runs for which change"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#citoml-and-local-gatetoml-what-runs-for-which-change","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a ci.toml and local-gate.toml: what runs for which change]\nIn ci.yml, `ci.toml` (schema 3) declares a repo's platforms, test suites and\nthe paths that select them, so a change only triggers the tests it can affect.\n**This repo has no `ci.toml`.** It uses two pieces that do the same job:\n\n- **`local-gate.toml`** declares the local lanes and what they attest:\n  - `lint`: formatters, clippy, dylints, the `ci/` Python tests;\n  - `rust-test`: Rust Tiers 1-3;\n  - `cross`: clippy, dylint, and a link of every test binary\n    (`test --no-run`) for the Windows and macOS targets, cross-compiled from\n    Linux with soldr;\n  - `tier2-linux`: the cmocka suite against libobs and libobs-c-reference, in\n    Docker. It declares `group = \"docker\"`, its own heavy chain, so it runs\n    beside the host lanes instead of after them (#2769); the gate's wall time\n    is the longer chain, not the sum.\n  - `macos-native` / `windows-native`: what the macOS and Windows Rust test\n    and Tier 2 jobs run (tests, clippy, formatting, then the host's Tier 2\n    validation, `rust/tools/tier2-validate/validate.sh|ps1`). Each is\n    `optional` and exits 75 (`EX_TEMPFAIL`) on any other host, which `ci-lint`\n    reports as \"not applicable on this host\": a Linux gate passes without\n    attesting them, and only a Mac or Windows host can. Windows needs\n    `vcpkg install cmocka:x64-windows` and `CMOCKA_PREFIX` (or\n    `VCPKG_INSTALLATION_ROOT`), macOS needs `brew install cmocka`.","chars":1526,"tokens_est":382,"sha256":"1735e163b1a518077bb37ab80b9c95a30d1aaf09ada193e77fc8f0341a268073"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-toml-and-local-g~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","ci.toml and local-gate.toml: what runs for which change"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#citoml-and-local-gatetoml-what-runs-for-which-change","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a ci.toml and local-gate.toml: what runs for which change]\n- **`ci/ci_scope.py`** maps changed paths to jobs, by path alone (#897). The\n  Fast Gate always runs; Linux Tier 2 runs for the paths in its `LANES` row\n  (table below). A changed file that belongs to a platform\n  (`ci/platform_paths.py`: path tokens such as `win-capture/`,\n  `platform-osx.mm`, `rust/*/src/platform/windows/`, or extensions such as\n  `.m`, `.rc`) starts that platform's Rust tests and Tier 2. POSIX/Unix files\n  (`*-posix.c`, `unix/`, and `libobs/util/platform-nix.c`) belong to Linux\n  and macOS, so changing one starts macOS too. Core files carry no platform\n  defines or OS headers (`ci/platform_ifdef_ratchet.py` enforces it, and\n  fails a platform file that names another OS), so a core PR runs on\n  Linux and Windows (#3637 step 2); file contents are never read. Windows runs\n  the existing native Rust tests and Tier 2, including both C reference and\n  hybrid libobs. macOS core PR coverage remains a separate rollout. A module\n  whose name doesn't say its OSes\n  (`coreaudio-encoder`, `obs-text`, ...) is listed in `ci/platform_paths.py`\n  with its `PLATFORMS` from `plugins/CMakeLists.txt`; upstream paths are\n  never renamed for this (#1051). `libobs/cmake/os-<os>.cmake` starts only\n  its OS. Shared and so every platform:\n  `.github/`, `cmake/common/`, `cmake/finders/`, the rest of `libobs/cmake/`, the root\n  CMake files, crate-root `rust/<crate>/build.rs`, `platform/mod.rs`,\n  `test/cmocka/CMakeLists.txt` and the C++\n  cmocka tests with their `tests.d` registrations (#610). A master push adds the lanes a PR\n  defers (Linux Tier 2, Qt, the workspace tests) and runs macOS/Windows\n  Rust tests and Tier 2 for paths that select them **and for core code**\n  (`libobs/`, `rust/`, Cargo files). This retains coverage for native core\n  regressions (#2916, #2910). Merge groups execute selected heavy checks on the cumulative diff\n  from the target branch's merge-base to the event head,\n  including both native Rust/Tier 2 hosts for core/shared changes, selected\n  platf","chars":2124,"tokens_est":531,"sha256":"946e99110cb29a1b3360007f20ca2eab4a0608486db082bb5e490dcd480d6d8f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-toml-and-local-g~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","ci.toml and local-gate.toml: what runs for which change"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#citoml-and-local-gatetoml-what-runs-for-which-change","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a ci.toml and local-gate.toml: what runs for which change]\norm paths, Linux Tier 2 OFF/ON, Qt and C/C++ cross work. Every non-docs\n  group also runs Windows MSVC test linking and all-six-target clippy/Dylint:\n  host, the two linked cross targets and three lint-only targets. Native app\n  builds remain on nightly/manual/release events.\n  CI Gate resolves the queue's full scope directly from the merge-group\n  event's target-branch merge-base/head git diff, independently of reusable-workflow outputs.\n  Missing event fields, unavailable commits and failed scope selection fail\n  closed with named diagnostics. Cancelled jobs with no assigned runner and\n  no steps are reported as runner-capacity conditions and still fail the gate;\n   they are never converted to success. The existing AI rebase maintenance\n   workflow runs `ci/mq_acquire_retry.py` in a separate `capacity-recovery` job\n   on completed **Pull** `workflow_run` failures/cancellations, plus master push,\n   dispatch and the :17/:47 schedule as a three-hour backstop. Recovery does not\n   wait behind conflict resolution. It uses only default-branch code and API\n   evidence, never the triggering head or its artifacts. Each event also scans\n   recent completions, covering bursts where GitHub replaces a pending recovery\n   job; the schedule remains the backstop for delayed or missing events.","chars":1424,"tokens_est":356,"sha256":"8c7bc52e2f7f0f6fdf47e2daa686d7066b2255f2d7e1c8121f7a97d4a3059ac6"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-toml-and-local-g~4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","ci.toml and local-gate.toml: what runs for which change"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#citoml-and-local-gatetoml-what-runs-for-which-change","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a ci.toml and local-gate.toml: what runs for which change]\nA PR run gets **one failed-jobs rerun** (attempt 1 only). A capacity-failed\n   group that is still present at the exact tested SHA also gets one failed-jobs\n   rerun, with fresh membership/PR-head checks. GitHub may mark that entry\n   `UNMERGEABLE` even though the PR has no conflict: capacity classification uses\n   exact annotations and CI Gate diagnostics, never that queue state. Run\n   44351072142 (#5111, cancelled macOS job 134968894019, gate 134992644660) is\n   the recorded example; it stayed queued until a manual removal/re-addition.\n   A real PR conflict still blocks recovery. An ejected merge\n   group gets a **fresh queue execution**, not a rerun of its departed synthetic\n   head: the tool checks the latest removal belongs to that exact group, proves\n   prior queue intent and an unchanged PR head, refuses conflicts, manual\n   removals/disarms, holds and new queue transitions, and re-arms with\n   `--match-head-commit`. A comment reserves one automatic retry per PR head\n   before enqueueing; it shares the older ejection handler's retry marker.\n   Each recovery still requires every selected job and CI Gate to pass.\n\n   Both paths require exact hosted acquisition annotations and CI Gate capacity\n   diagnostics for every unsuccessful job. Missing/unknown/incomplete evidence,\n   independent gate failures and real test failures never authorize recovery.\n   `github.token` (`actions: write`, `checks: read`, `contents: read`) suffices\n   for PR and still-live group reruns. Re-arming ejected groups requires the\n   token minted each run from the **obs-rust-ai-rebase** GitHub App\n   (`vars.AI_REBASE_APP_ID`, `secrets.AI_REBASE_APP_PRIVATE_KEY`): enqueues\n   with GITHUB_TOKEN do not trigger merge-group workflows. Without the App, PR\n   and still-live group reruns still work; ejected-group re-arming emits a\n   warning and leaves the PR alone. (Until 2026-11-22 this was a stored\n   `AI_REBASE_TOKEN` secret, which was saved blank, so nothing was re-armed.)","chars":2104,"tokens_est":526,"sha256":"252f8d38d1e76e57920ee262d3091d6c0b0064651099db5d2c866a641e06e703"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-toml-and-local-g~5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","ci.toml and local-gate.toml: what runs for which change"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#citoml-and-local-gatetoml-what-runs-for-which-change","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a ci.toml and local-gate.toml: what runs for which change]\nThe older `ci/ai_rebase.py --requeue-ejected` remains a scheduled/push/dispatch\n   backstop for broader proven infrastructure failures, now also guarded by\n   the ai-rebase App. It inspects recent latest removals (three hours), binds the\n   PR head via its timeline, classifies all associated workflow failures, and\n   spends one per-head comment marker before re-arming. It skips armed, active,\n   held or conflicting PRs. Runnerless cancellations are reserved exclusively\n   for the strict capacity tool; the broader handler cannot bypass its refusal.\n   Its broader policy does not run on `workflow_run`.\n   The old capacity tool only scanned live queue heads at :17/:47/master pushes:\n   once CI Gate ejected a group it was invisible, and PR runs were never scanned\n   (#5115; merge-group runs 44306825758, 44318842478, 44323352759, 44329655339,\n   44341056238; PR run 44318137015). A running CI workflow cannot rerun itself;\n   external completed-run recovery keeps CI Gate's fail-closed behavior intact.\n  Scope-policy edits (`ci/ci_scope.py`) also select Windows on PRs to exercise\n  the routing on hosted CI. A failed or runnerless selected Windows job still\n  blocks that PR. Selected queue jobs must also execute successfully; missing,\n  skipped or unfinished expected matrix legs fail the gate. No required check\n  is exempted and native master coverage remains in place.\n  Evidence and the tradeoff are recorded in\n  [the queue decision](ci-merge-group-scope.md).\n  A master push builds no OBS app. Every platform and every app build runs on schedule,\n  workflow_dispatch, tags, release branches and in the release gate; no PR\n  path selects the full builds.\n  Packaging and submodule moves are still compiled on Linux (touched targets)\n  on the PR. `.github/` edits start no platform job.","chars":1925,"tokens_est":481,"sha256":"2bebc167d6fa866c14272067a832fa846dd6803f7f16b017a15f52e38b3fead2"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-path-to-lane-table-","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","Path to lane table (fast gate)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#path-to-lane-table-fast-gate","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a Path to lane table (fast gate)]\nA trusted complete ordinary member PR allocates Event Data, CI Mode and\nCI Gate for compile/test admission. Independent governance/pre-work retains its\nown event policy. Format, Swift, Validate Data and compile/test jobs skip before\nrunner allocation when their selected contract is satisfied. Fallback PRs run\nFormat/self-tests, Fast Gate and selected native/link/Qt/Tier 2 work. Every\nnon-docs fallback also runs all-six-target clippy/Dylint, including the three\nextra lint-only targets. Fast Gate still compiles touched Linux targets on\nfallback PRs; the complete member path defers those builds to the queue and\nnever claims a lint stamp proves a native target build.\n`LANES` in `ci/ci_scope.py` selects the rest by path:","chars":824,"tokens_est":206,"sha256":"0a7686db36d939361f8420591b63e800616f3a58e2738877978939946a48d102"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-path-to-lane-table-~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","Path to lane table (fast gate)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#path-to-lane-table-fast-gate","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a Path to lane table (fast gate)]\n| Paths | Lane |\n|---|---|\n| everything | Fast Gate: 1) fmt, clippy, Dylint; 2) unit tests of the touched crates; 3) Linux build of touched `plugins/<x>`/`shared/<x>` targets (ENABLE_FRONTEND=OFF, no Qt) |\n| `libobs/` (not platform-only files), crates linked into libobs, `test/cmocka/`, `deps/`, `rust/tools/linux-validate/`, Cargo files | Tier 2 Linux: compilation overlaps Fast Gate; OFF/ON tests wait for the Tier 2 build, with one complete suite per mode |\n| core (`libobs/`, `rust/`, Cargo files), `ci/ci_scope.py` | Windows Rust tests and Tier 2 on PRs; both native platforms on master pushes and merge groups |\n| `frontend/`, Qt-linked tests, `shared/qt`, the Qt job's own files | Qt Frontend Linux (the only Qt). Frontend platform files start no Windows/macOS Rust or Tier 2 job; Windows/macOS Qt lanes are a follow-up |\n| files matching `/platform[/-](windows, macos, linux, posix)[/.]` (posix = linux+macos), legacy OS names, shared build files (`cmake/common`, `cmake/finders`, `libobs/cmake`, root CMake, crate-root `build.rs`, `platform/mod.rs`, C++ cmocka tests) | macOS / Windows Rust tests, Tier 2, cross lint |\n| `build-aux/`, `.gitmodules`, submodules | compiled on Linux only; no full build from a PR |\n| `docs/`, `.github/`, `ci/` | lint and the ci/ self-tests |\n\nNo path selects a sanitizer lane. ASan (and TSan, valgrind) run only in\n`sanitizers.yaml` on its nightly schedule and on `workflow_dispatch`, never on a\npull request or in the merge queue (maintainer directive 2026-11-09; the\nratchet-PR `Sanitize \ud83e\uddea` job of #2923 is gone). A diagnostic only asan reports\nnow surfaces in the nightly run; dispatch `sanitizers.yaml -f tools=asan` on a\nseparate ref to check a risky PR first.","chars":1806,"tokens_est":452,"sha256":"0ffe428787584bb3f038b639dffc854438b930cb85b43f34d602ef3fdce925ad"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-path-to-lane-table-~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","Path to lane table (fast gate)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#path-to-lane-table-fast-gate","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a Path to lane table (fast gate)]\nThe macOS, Windows and cross jobs wait for Fast Gate. Qt starts on an\nindependent runner after successful scope detection; its compilation and tests\ncan overlap Fast Gate (#1581). Tier 2 Linux compilation also overlaps on an\nindependent runner after scope/proof checks. OFF/ON execution requires a\nsuccessful Tier 2 build and a non-canceled workflow; it can overlap remaining\nFast Gate work. A failed or skipped build starts neither suite. Fast Gate\nremains independently required by the final gate, so its failure prevents\nmerging even if both suites pass. This trades possible wasted compilation,\nTier 2 and Qt tests on a red PR for a shorter successful queue path;\nindependent work can finish after Fast Gate fails.\nMeasure runner cost and actual gate time rather than treating the theoretical\noverlap as a proven speedup (#930, #1286).","chars":938,"tokens_est":234,"sha256":"500ec3a7e958f5305d66e98ca071237e8f318a6bf9d9cdbb47cd6e1fe399eedf"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-path-to-lane-table-~4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","Path to lane table (fast gate)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#path-to-lane-table-fast-gate","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a Path to lane table (fast gate)]\nTier 2 uses one complete suite per mode on PRs and merge groups, each in its\nown runner environment: two test jobs rather than six. Queue groups always use\nthese two complete suites, including when a caller requests full coverage.\nMain pushes, nightly and release runs retain the suite plus two serial partitions\nper backend.\nThe [runner-capacity measurement](ci-tier2-queue-capacity.md) explains the\nearlier tradeoff: fewer allocations while retaining every test in that lane.\nDeinterlacing retains\n`RUN_SERIAL` because CI still dropped fields with bounded software-renderer\nworkers. The other nine former barriers\nare removed: eight tests already own their resources, and XSHM now uses a\nprivate Xvfb (serial fallback when unavailable). Linux tests pin\n`LP_NUM_THREADS=1`; see the [concurrency audit](ci-serial-audit-2026-10-21.md).\nThe build job produces one tree for both backends. PR/queue test jobs run the\nentire CTest registry without a shard selector, with up to eight binaries\nconcurrent within each suite; CTest honors `RUN_SERIAL`. Background partitions\ntogether cover that same registry. A failed or canceled backend cannot publish a passing lane\nproof. Timings have unique per-mode artifacts and merge on master; recorded\ncosts still order the longest tests first. Optional local sharding tools remain\navailable, including their complete-partition checks.\n\nThe change removes two repeated runner setups and artifact downloads. A full\nsuite can take longer than an individual shard, so fewer jobs alone do not\nprove a shorter CI gate. Compare actual gate time, queue delay, coverage and\nrunner cost in the broader #1581 study before claiming a workflow speedup.\n\nUnchanged lanes are cached by the gate, so a re-run after a small fix is fast.","chars":1853,"tokens_est":463,"sha256":"771cf588e3a454b389a9757c73c3974acf1923890e0647b177658c688ed145c4"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-path-to-lane-table-~5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","Path to lane table (fast gate)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#path-to-lane-table-fast-gate","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a Path to lane table (fast gate)]\nQueue formatting starts after runner selection, alongside the Build reusable\nworkflow, rather than waiting for every heavy lane to finish (#4983). Queue\nchecks accept no client skips. Swift selection uses the whole group's diff\nfrom its target-branch merge-base, including earlier entries; scope errors fail\nthe formatting job. The mutually exclusive PR call still waits for Build's\nimmutable-base admission outputs, preserving skips before runner allocation.\nBoth calls retain the executed `Format \ud83d\udd0d / checks` and Swift check names,\nand CI Gate waits for formatting as well as every selected build lane.\nThe measured baseline added 103\u2013286 seconds of formatting execution after\nheavy work in successful queue samples. Overlap can remove that tail, subject\nto runner contention; hosted after-change timing remains to be measured.","chars":928,"tokens_est":232,"sha256":"1a7e7918dd7271d7c8a05a036f53f2d4642126629ac70eecdeb3e3d10ea1e5cd"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-lane-proofs-histori","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","Lane proofs: historical diagnostics"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#lane-proofs-historical-diagnostics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a Lane proofs: historical diagnostics]\nHosted input-key lane proofs and old `Local-Gate:` trailers remain readable\nhistorical diagnostics. Neither suppresses real selected PR fallback or queue\nexecution. Publication jobs allocate only when an executed lane supplies a\nnonempty new proof name; an attested skip cannot publish a fresh execution pass.\nCompiler and dependency caches remain enabled. Command verdict replay is off on\nPR and queue events so fallback analysis actually executes.","chars":553,"tokens_est":138,"sha256":"b57de832b62804a3151e2d099a2fa021166d2a5ca85fcf01f4820ddabb70f04c"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-attestation-skip","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","CI attestation: skipping what's already proven"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#ci-attestation-skipping-whats-already-proven","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a CI attestation: skipping what's already proven]\n`./push` resolves the CI-pinned soldr wheel through `uv run --no-project --no-build --with soldr==<pin>`\n(cached by uv), using `cmake/common/soldr.cmake`'s version, which self-tests keep equal\nto every setup-soldr workflow input. Its directory leads PATH only during attestation;\nyour installed tools stay unchanged. Proof commands clear inherited `SOLDR_*`,\n`RUSTUP_TOOLCHAIN`, Rust executable/wrapper selectors and their `CARGO_BUILD_*` equivalents,\nso the repository toolchain and lane settings apply. To use an already installed copy,\nset `PUSH_SOLDR=/absolute/path/to/soldr` (or `soldr.exe`); it must report the exact CI version.\nBootstrap/version failures use ordinary PR CI, or refuse with `PUSH_REQUIRE_ATTESTATION=1`.\n\nCI Mode extracts `ci/pr_attestation.py` from the immutable PR BASE and runs it\nthrough uv in isolation from head code. That executable loads its prooft source\npin, gate declarations and freshness/input policy from the same base git objects.\nThe untrusted head commit/tree/message is data. Workflow-call outputs carry that\none decision to Format/Swift and Validate Data before runners allocate. Event\nData selects Swift from immutable base/head names, so a skipped Format checks\njob cannot hide Swift work. CI Gate independently reruns the base verifier and\nrequires every expected fallback job to have executed successfully. Missing CI\nMode or unexpectedly skipped/missing/cancelled/runnerless work fails admission.","chars":1558,"tokens_est":390,"sha256":"6407244c8c3065c79f42b4805235030ea661509a170c552c4127cbca7a75e446"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-attestation-skip~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","CI attestation: skipping what's already proven"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#ci-attestation-skipping-whats-already-proven","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a CI attestation: skipping what's already proven]\nThe fast path requires a same-repository PR whose author AND authenticated\nfinal HEAD signer are active obs-rust org members. GitHub must report that exact\ncommit signature valid. Authenticated public-membership checks require no extra organization permissions\nfor public resources ([GitHub API contract](https://docs.github.com/en/rest/orgs/members#check-public-organization-membership-for-a-user));\nprivate membership uses the authenticated active-state endpoint when permitted; denial, unknown identities, API errors or verifier\nerrors mean real selected PR checks, without expanding token permissions.\n`author_association` and collaborator write access are insufficient.\n\nEvidence is self-reported, not signed execution proof: a trusted member can lie\nabout running a command. prooft checks freshness (24 hours), tree/parents or\nbase-declared input keys, provenance and each gate. Stamping amends the message:\n**stamp first, then sign the final commit**. An old signature is never credit for\nthe amended object. Rebase, content edits, stale/wrong-tree/malformed records,\nmissing gates and edits to trust surfaces (`push`, `ci/**`, `.github/**`,\n`local-gate.toml`, `ci-attestations.yml`, manifests/toolchain/config) run real CI.\nLegacy-only and partial legacy evidence never earns complete admission.","chars":1418,"tokens_est":354,"sha256":"0e48d7cf6317970f7a3a3104853e18046236bc6e4899fc5f85f6ea181ddfae46"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-attestation-skip~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","CI attestation: skipping what's already proven"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#ci-attestation-skipping-whats-already-proven","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a CI attestation: skipping what's already proven]\nTrust-surface rejection and the admission fallback scope selector use the same\nmerge-base-relative PR path set (`git diff BASE...HEAD`, with renames disabled).\nChanges made only on master after the branch point, including changes brought\ninto the PR by merging master, are not attributed to the PR. The PR's own trust\nedits still force fallback. Missing merge bases (including shallow or unrelated\nhistory) and diff errors run real checks; an unknown scope selects every\nadmission check. This changes only path attribution: policy and verifier pins\nstill come from the exact immutable BASE, and evidence still binds HEAD. The\nmerge queue always builds and tests the actual combined result with its selected\nheavy lanes, so interactions with newer master changes remain covered there.\n\nThe complete client contract includes full self-tests, Flatpak and Qt XML\nvalidators, general lint, Linux x64 host unit/differential tests, and clippy AND\nDylint for exactly these targets (all through soldr):\n\n- Linux x64: `x86_64-unknown-linux-gnu`\n- Linux arm64: `aarch64-unknown-linux-gnu`\n- Windows x64 MSVC: `x86_64-pc-windows-msvc`\n- Windows arm64 MSVC: `aarch64-pc-windows-msvc`\n- macOS x64: `x86_64-apple-darwin`\n- macOS arm64: `aarch64-apple-darwin`\n\nSwift formatting and compatibility/services JSON gates are additionally required\nwhen the base-owned selector finds those files. A complete check can use its own\ntrusted gates; heavy native/link/Qt/Tier 2 work only defers under the full selected\ncontract and the base-owned `heavy-v1` queue placement policy. The existing Fast\nGate and main cross jobs also own native compilation/linking, so partial client\nevidence conservatively runs them in full. Cross lint never proves native tests,\nTier 2 runtime or ABI/hardware/package behavior.","chars":1896,"tokens_est":474,"sha256":"b2fdb640c971851d3a7b79b9ea17178ea61622d52eebc496bc97c3216386b9d8"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-the-tools-ci-attestation-skip~4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","The tools","CI attestation: skipping what's already proven"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#ci-attestation-skipping-whats-already-proven","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a The tools \u203a CI attestation: skipping what's already proven]\nOn merge groups with explicit cumulative `cross_lint` scope, the macOS Rust\nTests job leaves formatting to Fast Gate and Clippy to the required macOS\narm64 cross leg (#4999). That linked cross leg lints `--workspace --all-targets`,\nincluding the category tests and C oracle; its Dylint scope stays unchanged.\nCI Gate requires both replacement jobs to execute successfully on the merge\nresult. Missing/false scope, measurement-only modes and other events keep Darwin\nanalysis on the Linux artifact producer (#5008). Rust tests, runnable doctests and every Tier 2\npass still execute on macOS. The two inspected jobs spent 155\u2013162 seconds in\nnative Clippy plus 8\u201311 seconds in formatting; this is the expected native\nrunner saving, pending hosted validation, with extra test/oracle analysis on\nthe existing Linux cross runner.\n\nOutsiders need no client tools. `./push` warns and falls back if local tools or\nsigning are unavailable; `PUSH_REQUIRE_ATTESTATION=1` is the opt-in strict mode.\nA complete stamp is required for this fast path, never for contributing RED PRs.\nThe implementation's own trust-surface PR must run real checks. A later ordinary\nsource PR is needed to observe verification-only allocation after this base policy\nlands. Record actual job IDs/execution and runner wait separately for the member,\nfallback and queue examples; fixtures prove routing, not measured speed gains.","chars":1506,"tokens_est":376,"sha256":"424363181455725aa954fe87d989ea59f3381a0dd45751cc85bb1de63ad8117e"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-before-you-push","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Before you push"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#before-you-push","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Before you push]\n`./push` runs prooft through `uv run --no-project --with` using the immutable\n`PROOFT_SOURCE` pin in `ci/pr_attestation.py`, shared with the base-owned\nverifier. The pin includes upstream commit `d08d58be`, which adds the `data`\nand `swift` ecosystems declared in `ci-attestations.yml`. Released prooft\n0.1.0 and 0.2.0 reject those gates before running a proof command; an older\nprooft on `PATH` is therefore ignored. uv caches the pinned environment\nwithout replacing the installed tool. A pin download or proof failure still\nuses ordinary PR CI, or refuses publication with `PUSH_REQUIRE_ATTESTATION=1`.\n\nFor a focused CI/configuration bug fix, keep the RED and GREEN commits and\nrecord the local failing and passing commands, but push them together when\nthe fix is ready. A separate remote RED run is not required. This avoids\nspending runner time on an already-fixed failure; see\n[coordination.md](rust-port/coordination.md#4-pull-requests).\n\n`./push` uses gh's configured default repository as the PR base and resolves\nGit's actual `origin` push URL, including a separate `pushurl`. Fork heads use\nthe destination owner's name; new PRs target `master`. An existing open PR for\nthe same destination and branch is reused, including a stacked PR. Configure\nexactly one push destination on the same GitHub host as the base; ambiguous\ndestinations and repository-resolution errors stop before the push.\nIf the selected base is a fork, explicitly choose it with\n`gh repo set-default OWNER/REPO` or `GH_REPO`; captured repository queries cannot\nask gh's interactive fork-selection question.","chars":1660,"tokens_est":415,"sha256":"18a84f2e912f5203723ec0096dcd89cfa7279d1a3da3abf968c938b8b6d2640d"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-before-you-push~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Before you push"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#before-you-push","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Before you push]\nWhen stamping amends an already-published HEAD, `./push` uses an exact\n`--force-with-lease=<branch>:<pre-stamp-sha>` only if the push destination\nstill names that pre-stamp commit and the amended commit preserves its tree\nand parents. A concurrent remote update rejects the lease. New branches and\nordinary fast-forward updates use a plain push; divergent history is refused\nby default. The publication message reports which case applies.\n\nTo publish intentionally rewritten history (for example, a rebase or a stacked\ndraft reset onto master), use `./push --replace-remote-head <old-sha>`, naming\nthe exact full SHA of the remote commit you intend to replace. Review the\ncommits being replaced first. `./push` still runs its proofs and signs the final\nHEAD, then checks the actual `origin` push destination, including `pushurl`.\nIt refuses if that branch is absent or its head differs from `<old-sha>`.\nOnly a match enables `--force-with-lease=refs/heads/<branch>:<old-sha>`;\nGit also rejects a concurrent update after the check. Abbreviated SHAs and\nsymbolic refs are rejected. No unconditional force option is supported.","chars":1195,"tokens_est":299,"sha256":"1974c4dad8fc9991aab17416d7fa425fc7ed18cc3fa68980dedbdf2cffb40b31"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-before-you-push~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Before you push"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#before-you-push","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Before you push]\n1. Claim the issue and check open PRs ([coordination.md](rust-port/coordination.md)).\n2. Commit RED, then GREEN.\n3. `./lint --fix`, then commit what it changed.\n4. Check `git diff --cached` for an unintended `plugins/obs-websocket` pointer\n   change. A pointer that doesn't descend from master's is rejected, and stale\n   pointers have reverted merged fixes before.\n5. Optional: run the local gate from a clean, committed tree. If it reports\n   another gate running for this clone, wait and retry.\n6. If you ran it, push the stamped commit as-is: no amend, no rebase, no\n   \"Update branch\" afterwards. Rebase before stamping, not after. If you\n   didn't, just push; PR CI runs the Linux jobs itself.\n7. There is no label to force CI. A `build-aux/` or submodule change is\n   compiled on Linux only; the full builds run on schedule,\n   workflow_dispatch, tags and the release gate.","chars":952,"tokens_est":238,"sha256":"14c60b70bba3a913779a627636aef34fb28de2e0be642b74a866c06746c5b84f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-c-lint-report-frontend","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","C++ lint report (frontend)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#c-lint-report-frontend","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a C++ lint report (frontend)]\nThe Qt frontend has a C++ lint report (#5453), `ci/cpp_lint.py`:\n\n- clang-tidy (`clang-tidy==22.1.8` through uvx) with the checks in\n  `frontend/.clang-tidy`, on the unity groups that the change touches. A\n  changed implementation file runs its group. A changed header runs the groups\n  that include it (see the gate below). A change to the config, the script or\n  the baseline runs every group.\n- clazy (Ubuntu's `clazy` package, `clazy-standalone`): level 0 and 1 without\n  `connect-by-name` and `qproperty-without-notify` (upstream's Designer\n  patterns), on the same groups and in the same time budget as clang-tidy.\n  The Qt lane installs it with `apt-get` only when there are groups to lint\n  (about 80 MB with its LLVM); `./lint` uses it when it is on `PATH`.\n- lizard (`lizard==1.26.1`): the cyclomatic complexity (CCN) and length (NLOC)\n  of every new or changed function in the changed frontend files, with the\n  values before the change.\n\n**The gate** (#5453 step 3): `ci/cpp_lint_baseline.txt` holds the findings\nmaster has, one sorted line per key with its count. A key has no line number,\nno machine path and no number that moves with an edit, so moved code is not\nnew. In a PR or merge group the Qt lane fails when a key goes above its count\n(`ci/cpp_lint.py --gate`, exit 3, the only exit code that fails the job); the\nreport names the baseline line. Fix the finding, or add its line only for a\nfinding you keep on purpose. A finding gone from a changed file is listed (lower\nor delete its line) but does not fail. A tool that did not judge every group\n(not available, a timeout, over the budget) or has another version than the\nbaseline records judges nothing. A change to the baseline, the config or the\nscript runs every group. `--update-baseline` rewrites the file from such a run.","chars":1884,"tokens_est":471,"sha256":"4dc0aa209758cb4dcb60b75b2a2fe689261b13b18b4dc9cc315460da43d11e4a"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-c-lint-report-frontend~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","C++ lint report (frontend)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#c-lint-report-frontend","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a C++ lint report (frontend)]\nIn the Qt lane the build's own dependencies (`ninja -t deps`) map a changed\nheader to exactly the groups that include it. Without them (`./lint` with\nanother generator) the precompiled-header rule applies.\n\n`./lint` stays report only.\n\n- **Qt lane:** `ci/linux_qt_frontend.py` exports `compile_commands.json` and\n  runs the report after the tests. The changed files come from the GitHub\n  event: the PR's base, the merge group's base, or the push's `before`.\n- **`./lint`:** runs the report when `OBS_CPP_LINT_BUILD` names a build dir\n  with `compile_commands.json` (configure with\n  `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` and the Ninja or Makefile generator,\n  then build once). Otherwise it prints a skip line. The changed files are the\n  changes since the merge-base with `origin/master`, including uncommitted and\n  untracked files.\n- **By hand:**\n  `uv run --no-project ci/cpp_lint.py --build <dir> [--base <rev>]`.","chars":1001,"tokens_est":250,"sha256":"711581a1c07afdbf5af0da6068377daa939cc0f1e469fe890f6b87478a919f78"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-when-ci-fails","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","When CI fails"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#when-ci-fails","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a When CI fails]\n- Read the failing job's log first: `gh run view <run> --job <job> --log-failed`,\n  or the job log via the API while the run is still going.\n- Reproduce locally (`./unittest`, the relevant gate lane, or `bosn ci run` for\n  a workflow job), fix, re-stamp, push once.\n- Re-run a single job only for a clear infrastructure flake (a network\n  timeout, a runner image download): `gh run rerun --job <id>`. Never re-run a\n  whole workflow to \"see if it passes this time\".\n- Platform-only failures (macOS, Windows) can't be reproduced on Linux. The\n  Tier 2 harnesses print crash stacks (`cdb` on Windows, `lldb` on macOS) to\n  read in the log; use those before pushing guesses.","chars":741,"tokens_est":185,"sha256":"f3d4408a4c4efbc00a7285108822e7de3117fec67a6cdc4971ecdd727ec47de4"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-pre-work-cache-maintenance-an","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Pre-work, cache maintenance and cancellation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#pre-work-cache-maintenance-and-cancellation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Pre-work, cache maintenance and cancellation]\n`ci-pre.yml` is the general entry point for pre-work. Pull calls it for every\nPR and merge-group run; Push calls it on master. Put each operation's event\ncondition on that operation's job. Do not skip the whole entry point merely\nbecause one maintenance operation does not apply.\n\nThe cache janitor runs only for `merge_group` or a `push` to\n`refs/heads/master`. `ci-pre.yml`'s janitor sweeps master pushes. The merge\nqueue sweeps at the end of the run, in `ci.yml`'s final `cache-janitor` job\n(`needs` every other job, `if: always()`), never at the start (#1854). The\nqueue serializes master's cache writes, so that sweep has the cache to itself\nand sees what the run saved. Pinned to zackees/ci.yml#405, it evicts the\nleast recently accessed entries until the repository total fits\n`[cache].budget`, keeping each family's newest entry and anything younger\nthan 10 minutes, so GitHub's own LRU eviction never chooses what to drop.\nDeclared family maxima may add up to more than the budget; the end-of-queue\nsweep is what keeps live usage under it. Fork PR tokens cannot delete\nrepository caches, so PR pushes must skip both janitor jobs. Keep cache deletion out of untrusted PR\nevents; do not switch to `pull_request_target` to obtain a write token.","chars":1351,"tokens_est":338,"sha256":"2038c673e25b49cbefeeb93cf72a4be658f42227396e9502ee90d0c1387c8038"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-pre-work-cache-maintenance-an~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Pre-work, cache maintenance and cancellation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#pre-work-cache-maintenance-and-cancellation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Pre-work, cache maintenance and cancellation]\nThe Tier 2 apt family has one master-push writer in `rust-linux-tier2-build`.\nIts restore/save and the OFF/ON consumers use the same image/package-list key\nand literal relative path `../../_temp/apt-archives/*.deb`. The default checkout\nlayout puts that directory under `RUNNER_TEMP` on host and container runners;\napt scratch stays outside the checkout. Actions also versions entries by\ntheir input paths: an absolute `runner.temp` path changes between hosted and\nDell runners even with an identical visible key. The previous writer added a\ntrailing hyphen that the test consumers did not request. The first hosted master\nbuild after this correction seeds the portable version; until then consumers\ninstall normally. Only completed packages travel, and apt locks stay job-local.\nDell builds retain their marker-backed shared archive and skip remote saves.\nThe existing `tier2-apt` 400MB allowance and janitor policy are unchanged.\n\nThe app builds keep no Actions cache (phase A of #1801): the macOS Xcode\ncompilation cache, the Windows ccache, the Ubuntu zccache and the Flatpak\nbuilder state held 5.71 GiB and served only nightly, dispatch and release\nruns, while `deps`, `zccache-tier2` and `tier2-apt` serve every PR and queue\nrun. `ci/test_cache_family_budget.py` checks that the declared family maxima\nfit in `[cache].budget`. The release-asset transport (#782) can bring the\napp-build caches back outside the budget; its dispatch-only seed goes from\nthe app build to the transport job as a one-day artifact.","chars":1615,"tokens_est":404,"sha256":"7da1fac15989ec0ec9e87785a40602b949e32151c8cadb26a93543988a10d5ff"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-pre-work-cache-maintenance-an~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Pre-work, cache maintenance and cancellation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#pre-work-cache-maintenance-and-cancellation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Pre-work, cache maintenance and cancellation]\nA branch dispatch of the `asan` pass restores only the archive master saved, so that archive has\nits own family, `zccache-sanitize-asan`. `tsan` and `valgrind` keep no archive.\nMaster builds fresh and never restores: a restored archive kept the old entries\nbeside the new ones and outgrew the family. The nightly saves one, and a master\npush calls `sanitizers.yaml` with `build_only` when `ci/asan_cache_state.py` finds\nno archive or one older than 6 hours (#3501). A restored archive builds in about\n4 minutes under 6 hours old and about 8 at 6-15 hours, against about 24 cold.\n\nCache cleanup is best-effort maintenance. It has no dependents in the Pull\nor Push workflow and is excluded from `CI Gate \u2705` (the end-of-queue sweep\nruns after the gate, which never waits on it). Its own failures remain\nvisible for investigation, but cannot delay builds, queue cancellation or\nmerging. Keep the repo-wide `cache-janitor` concurrency group with\n`cancel-in-progress: false`. A future pre-work job that is required for\ncorrectness needs its own explicit dependency design; the janitor's policy\ndoes not make all future pre-work optional.\n\nMerge-queue throughput takes priority over housekeeping. Superseded-run\ncancellation must start without waiting for cleanup. Let workflow\nconcurrency eagerly cancel obsolete PR runs; if a superseded run still\noccupies the slot, request its cancellation rather than waiting for a known\nobsolete result. GitHub cancellation is asynchronous, so confirm the old\nrun has stopped before calling it canceled. Cancel obsolete work, not a\ncurrent required check simply because it is red. A janitor failure is a\nmaintenance incident; a failure of the current required gate blocks normal\nqueueing and needs investigation.","chars":1844,"tokens_est":461,"sha256":"f302001a486ea56052015ed47ef69c884f5362c376d4e2f6ce129d7ce9e57cb2"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-pre-work-cache-maintenance-an~4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Pre-work, cache maintenance and cancellation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#pre-work-cache-maintenance-and-cancellation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Pre-work, cache maintenance and cancellation]\nChanges to this policy need corresponding updates in `ci/test_ci_pre.py`\nand the workflow call sites. Decisions and evidence for the current behavior\nare tracked in [#1269](https://github.com/obs-rust/obs-studio/issues/1269)\nand [#1270](https://github.com/obs-rust/obs-studio/pull/1270).\n\n`setup-uv` follows the same remote writer policy: each call sets\n`save-cache: ${{ github.ref == 'refs/heads/master' }}` while keeping restores\nenabled wherever caching was already enabled. The pinned action otherwise\nsaves on PR and queue refs, producing archives the janitor later reclaims.\nThe [retention snapshot and offline executor reproduction](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-cache-retention.md)\nrecord that churn separately from the still-open whole-budget allocation and\ndurability work. A current inventory below the global budget does not prove\nthat useful seeds survive the next nightly writer burst.\n\nThe [24-hour PR and merge-group cohort](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-ci-cache-day-cohort.md)\nrecords gate latency, failures, cancellations and incomplete timing proxies\nseparately for each event. Its companion and offline reproduction preserve\nthe API evidence; the mixed population does not establish code-only latency\nor billed runner cost.\n\nThe [janitor report acceptance audit](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-janitor-report-disposition.md)\nmaps the original incident criteria to hosted evidence and continuing owners.\nGlobal capacity and useful-seed durability remain tracked in #1801; the report\ndoes not certify the broader CI backlog as complete.","chars":1904,"tokens_est":476,"sha256":"56b93a2f1cd8b5730022e53d50ec55fbbc91aa42d21d46af1d88826df05d5659"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-where-this-is-going-open-gaps","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Where this is going (open gaps)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#where-this-is-going-open-gaps","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Where this is going (open gaps)]\nFor a reproducible traffic/cache snapshot, run the read-only collector:\n\n```sh\nuv run ci/cache_metrics.py --output build_ci_audit/metrics \\\n  --start 2026-10-16T17:00:00Z --end 2026-10-17T17:00:00Z\n```\n\nIt retains raw API responses, actual changed-file cohorts, sample IDs,\nlisting coverage, per-lane job/setup medians, gate wall time and canceled\nrunner-minutes. Compare code PRs and merge groups separately from docs and\nCI changes. Unknown source diffs remain unknown; sparse samples and changes\nto source/configuration between windows need to be reported. Its cache\ninventory describes collection time, not historical inventory at the end\nof a past window. See the [2026-10-17 audit](ci-cache-audit-2026-10-17.md).\n\nEach gap is a step toward the full protocol, and a good issue to pick up:\n\n- **Docker through bosn.** The Tier 2 Linux harness\n  (`rust/tools/linux-validate/run.py`) drives Docker directly, so concurrent\n  local gates run unmanaged. Running it under bosn's bounded runner slots is\n  the biggest single relief for shared machines. (The AppImage build already\n  runs under bosn: `bosn run --task appimage`.)\n- **A real `ci.toml`.** Path selection lives in `ci/ci_scope.py`, outside\n  ci.yml's checker. Moving it into a schema-3 `ci.toml` lets the protocol's\n  tooling validate and evolve it.\n- **Native lane capacity.** The heavy queue requires selected native runtime\n  coverage, even with complete client cross-lint evidence. Runner shortages fail\n  admission; they do not grant queue proof credit.\n- **Warm PR caches.** setup-soldr restores but doesn't save on PRs, so a\n  branch's first build depends on master's cache being warm.\n- **Feed lessons back.** Problems found here, such as the stale zccache\n  replay or the gate lock contention, belong in the tool's own repo, so every\n  project using the protocol benefits.","chars":1929,"tokens_est":482,"sha256":"e9734f27de3a775446ef155d24fea24b2c68ef6bf234b809f769483c377a31e0"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-cook-profiles-and-post-job-sn","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Cook profiles and post-job snapshots"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#cook-profiles-and-post-job-snapshots","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Cook profiles and post-job snapshots]\nAll setup-soldr consumers declare their cook policy. Static-library and\nrelease jobs cook release dependencies. Native test and cross-check jobs\nuse the dev profile; cross checks still install their target standard\nlibraries through the existing gate, and host cooking does not imply\nthat a cross-target dependency tree is prebuilt.\n\nThe Linux `cross-compile` job skips cooking (`prebuild-deps: none`) and keeps\n`cargo-registry-cache: true` (#3767). Its default C/C++ compile-only check has\nno Rust consumer; the optional `OBS_CROSS_LINK` path builds a cross-target\nrelease staticlib, not host dev artifacts. Baseline PR run\n[42310800738, job 128211841721](https://github.com/obs-rust/obs-studio/actions/runs/42310800738/job/128211841721)\nrestored an 18.7 MB host cook, loaded 714 files in about 13 seconds, then\ncooked `--profile dev`; the subsequent compile-only check printed zero Rust\n`Compiling` lines. Edits to `build-project.yaml` select both cross aliases so\nPR CI validates this job's setup changes. The macOS/Windows app and release\njobs retain their existing cooks pending measured consumer evidence.","chars":1204,"tokens_est":301,"sha256":"82300bc417d987f1a7d4abc2a8378c398d44012f668b6e532edfa1fe4e51f74b"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-cook-profiles-and-post-job-sn~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Cook profiles and post-job snapshots"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#cook-profiles-and-post-job-snapshots","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Cook profiles and post-job snapshots]\nFast Gate cooks the dev profile with `--tests`, on every event: its consumer\nis `cargo test`, so a release cook there is never reused. Measured on ten Fast\nGate jobs on 2026-10-31 (#2661): the four jobs that still cooked `--release`\n(push and merge-group core runs) then rebuilt the `test` profile from scratch,\n1m09s-1m37s and 256-442 `Compiling` lines, while the six jobs cooking\n`--profile dev -- --tests` finished that build warm with no profile line at\nall (192 lines). The cook step cost the same either way, 11.3-15.6 s. The\nolder policy came from the local post-job benchmark (#1317), which timed the\ncook step (57.259 s release, 36.170 s dev, 72.136 s without cook) and not the\nconsumer it feeds; core rebuild medians favored release but varied widely.\nThe action hashes profile flags into the cook cache key, so changing them\nstarts a new archive generation that master has to seed.\n\nThe action saves the cook snapshot after consumers run. Thus a release\narchive can also carry dev artifacts. Keep dependency cooking enabled\nunless setup plus consumer measurements demonstrate that removing it is\nfaster; do not decide from the profile name alone.","chars":1250,"tokens_est":312,"sha256":"6264064d000cf96b930ba8e140fbaafdaaa09e70441be9bb3295c9472a218c18"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-background-master-build-concu","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Background master build concurrency"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#background-master-build-concurrency","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Background master build concurrency]\nMerge-queue CI remains the required merge check. Full post-merge master\nbuilds warm caches and validate deferred lanes, but overlapping generations\ncompete with the queue for runners. The Push workflow therefore applies\nconcurrency only to its `build-project` reusable-workflow call: one active\nmaster build finishes, and GitHub retains only the newest pending build.\nTag/release-branch calls use unique run IDs and remain independent.\n\nKeep `cancel-in-progress: false`: continuous merges must not repeatedly\ninterrupt active cache saves and prevent warming. Intermediate pending\nmaster build calls can be cancelled as superseded; all required PR and\nmerge-group checks still run under their own policy. This trades per-commit\nbackground coverage for latest-snapshot validation and less runner\ncontention. A plugin change in a superseded pending generation may wait\nfor later work to warm that scoped plugin cache. Measure runner wait and\nqueue wall time before claiming a throughput gain.\n\nDo not move this group to Push workflow scope. `ci-pre` remains an\nindependent general pre-work entry point, and its janitor keeps its own\nnon-cancelling repository-wide concurrency policy. A completed run's\n`cancelled` pending janitor job is not evidence that its deletion script\nfailed: inspect whether it ever started before attributing the outcome.\n\nGitHub documents [job concurrency on reusable-workflow calls](https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations)\nand [the default single-pending concurrency behavior](https://docs.github.com/en/actions/concepts/workflows-and-actions/concurrency).","chars":1732,"tokens_est":433,"sha256":"c957754d7105a2dde02a61d35337a34cef01412ea1e281de5aad73fa38a31015"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-background-master-build-concu-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Background master build concurrency","Compiler and cache log evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#compiler-and-cache-log-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Background master build concurrency \u203a Compiler and cache log evidence]\nAdd `--include-logs` to `ci/cache_metrics.py` to collect sampled terminal\nruns' latest-attempt logs alongside the existing API responses. Raw logs\nare cached per run/attempt, and each record/summary includes recognized\nper-job archive byte observations, compiler reports, saved keys and CTest\ncounts. Missing logs or counters remain unknown.\n\nFlatpak's pinned builder can restore cumulative ccache statistics along with\nthe build state. Those reports carry `counter_scope: restored-cumulative`\nand `job_delta_available: false`; their raw counts are preserved, without\ninventing a baseline after the action's final restore. Do not present them\nas compiler hits from that job alone.\n\nThe existing full Ubuntu app lane captures a native zccache session journal\nto diagnose misses such as the observed 137 cold OFF calls. Its IPC endpoint\nand cache stay inside that job's workspace. Only a bounded, sanitized JSON\nsummary is uploaded as `native-cache-ubuntu-<mode>-<run>` for two days:\nworkspace-relative source candidates, outcomes, known miss categories, diff\nfield names and latency counters. Raw arguments, environment values, raw\njournals and diff values are not uploaded. Missing, malformed or truncated\nevidence is marked explicitly. Diagnostics are non-blocking; compilation and\nintegrity tests retain their normal failure behavior. This full-build lane\ndoes not add work to PR or merge-group admission.","chars":1533,"tokens_est":383,"sha256":"c8dbfafd4a299a133b7c4bbc810f9d26deb17f3cc092d5c11227739da252c873"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-background-master-build-concu~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Background master build concurrency","Compiler and cache log evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#compiler-and-cache-log-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Background master build concurrency \u203a Compiler and cache log evidence]\nThe summary retains numeric compiler `child_peak_rss_bytes`, sampled\n`tree_peak_rss_bytes` and their source, exit codes and termination signals when\nthe journal supplies them. The child high-water mark can be just the compiler\ndriver; the sampled tree includes its compiler descendants. Neither measures\nthe cache daemon's RSS or the simultaneous host peak. Missing fields are unknown,\nand requests lost before journaling have no completion measurement. It also\nretains bounded, allowlisted lifecycle events from the job-owned cache, without\nmaking daemon control requests. Missing death\nevents cannot distinguish SIGKILL, a crash, or a connection-handler failure.\nIn particular, run [41785304209](https://github.com/obs-rust/obs-studio/actions/runs/41785304209/job/126426654456)\nretained only 34 completed misses and simultaneous client disconnects: it does\nnot establish OOM. Track the daemon investigation in\n[zccache#2064](https://github.com/forge-ci/zccache/issues/2064); a retry succeeding\nis not evidence that its cause was fixed.\n\nA restored archive does not imply compiler hits: one observed zccache\nrollout restored 278 MB but reported 772 cold compilations. Keep C/C++\nbuild totals separate from soldr session counters and ccache reports;\ntheir scopes differ. Archive messages can repeat and must not be summed\nas network transfer totals. Stratify compiler-version rollouts and cold\ncache seeds before comparing warm lane performance.\n\nMaster build coalescing retains changed paths since the latest successful\nancestor Push run, rather than only the latest push's parent. A replaced pending\nmaster build therefore cannot drop plugin/platform cache warming. If no recent\nsuccessful ancestor can be established, scope all tracked paths conservatively;\nAPI failure must not silently omit work. This changes master warming only;\nPR and merge-group scope still use their own bases.","chars":2013,"tokens_est":503,"sha256":"846e43cf53c7c267e1a10d0d13fa8d0d5ae0e5e3f7630cf3f5d4c270140316f1"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#merge-queue-admission-policy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy]\nThe merge queue is the heavy gate (#4747, maintainer direction in #4743).\n`ci/ci_scope.py` selects lanes from the merge-base of the event's target\n`base_ref` and immutable `head_sha`, diffed against `head_sha`. The target is\nfetched from origin, recovering full history for shallow checkouts. This includes\nearlier queue entries even when `base_sha` names the preceding entry's head\n(#4964). Unknown scope selects all work; CI Gate still rejects unresolved scope.\nIt runs Fast Gate merge-result Rust tests,\nhost formatting/clippy/Dylint and touched Linux targets, selected C/C++ cross\ncompilation, complete Linux Tier 2 OFF and ON suites, Qt, and selected native\nWindows/macOS Rust tests and Tier 2. Shared/core changes select both native\nhosts, matching core master-push coverage; platform paths retain their existing\nselection. Every non-docs group runs Windows MSVC test linking and all six\nclippy/Dylint targets. Main Windows x64/macOS arm64 cross legs retain test\n`--no-run`; the extra three targets lint only. GNU-oracle linking remains in\nFast Gate when its inputs select it. Docs-only groups retain their Fast Gate skip.\n\nClient trailers, hosted lane proofs and command verdict caches cannot suppress\nselected queue execution. `SOLDR_VERDICTS=off` disables soldr verdict replay;\nrestored compiler/dependency artifacts remain allowed. PR coverage is retained\nfor fallback contributors; complete verified-member PRs now use base-owned admission.","chars":1536,"tokens_est":384,"sha256":"52533dc0b079faf23f5e1307ab193b5affc7211d5c7b70270f1f2a7e9b366b30"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#merge-queue-admission-policy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy]\n`ci/gate_jobs.py` recomputes an expected execution manifest from that same exact\ndiff, with full checkout metadata, independently of reusable outputs. Each\nselected matrix leg and both complete Tier 2 modes must finish successfully.\nMissing, unexpectedly skipped, unfinished, cancelled, failed or runnerless jobs\nreject admission. True out-of-scope jobs may skip. API/scope errors fail closed;\nrunner-capacity diagnostics remain errors, including unavailable native runners.\n`CI Gate \u2705` remains the sole required context. Only cache-heavy Linux jobs use selected\n`MQ_RUNNER_LABELS` with hosted fallback; other jobs retain hosted runners.\nConcurrency cancellation and independent cache maintenance are preserved.\nSanitizers, security scans, full app builds, packaged/hardware qualification and\nrelease work retain their existing nightly/manual/release placement.\n\nSecurity analysis (CodeQL, vulnerability/dependency audits and static security\nscanners), release packaging validation, signing, publishing and distribution\nchecks belong in the existing nightly workflows, with manual dispatch available\nfor diagnosis. They must not run on PR pushes or `merge_group`, even as optional\nbackground jobs: they compete for runner capacity. Explicit release/tag actions\nmay still validate and publish releases outside the merge queue.\n\nGitHub CodeQL **default setup must remain disabled** in repository settings;\nit creates automatic PR/push scans outside the versioned workflow graph.\nThe existing `scheduled.yaml` owns nightly CodeQL for Actions, C/C++, Python\nand Rust. Any new security integration must be reviewed for its event triggers,\nrequired-check settings and runner use before enabling it. Do not add a security\nscan to `CI Gate`, merge rules or queue cancellation dependencies. Nightly\nfailures are investigated through nightly reports rather than blocking the queue.","chars":1956,"tokens_est":489,"sha256":"87385c605f73906ccdad9f9a5c5ed01bc8c4771f554359ae4470e8230cd682e6"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#merge-queue-admission-policy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy]\nPackaged virtual-camera audio hardware qualification lives in the existing\n`vcam-audio-hardware.yaml`: daily at `17 10 * * *` (10:17 UTC) and by manual\n`workflow_dispatch`, with scheduled jobs restricted to `obs-rust/obs-studio`.\nIt never runs for PRs (including hardware harness/workflow edits) or\n`merge_group`, and has no dependency on `CI Gate` or attestation shortcut.\nBoth Windows VB-Cable and macOS OBS Virtual Microphone jobs select the newest\nsuccessful scheduled master package, or the optional manual `build_run`.\nEach summary records the package name and build run ID; this qualifies that\npackage, not the PR or merge-group tree. Package, driver and audio validation\nfailures remain visible, with bounded job timeouts and failure artifacts.\n`ci/test_vcam_audio_hw_events.py` checks this routing and retained recording\nchecks without claiming an executed hardware pass.","chars":965,"tokens_est":241,"sha256":"7c5d0086a0b6888b308b2836483e5a563d8571080064f55fb0ef5f460b658195"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#opt-in-merge-queue-runner","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner]\nSet the repository Actions variable `MQ_RUNNER_LABELS` to a JSON array such as\n`[\"self-hosted\",\"linux\",\"x64\",\"obs-mq\"]` to route cache-heavy Linux jobs on `merge_group`\nto online runners matching **all** those labels. The supported credential is the\nGitHub App `obs-rust-mq-runner-probe`, installed on the `obs-rust` organization\nwith access to this repository. Give the App repository **Administration: read**\nand organization **Self-hosted runners: read** permissions. Set the repository\nActions variable `MQ_PROBE_APP_ID` to its App ID (`5736334`) and the repository\nActions secret `MQ_PROBE_APP_PRIVATE_KEY` to its private key. The hosted selection\njob creates a short-lived installation token only for `merge_group` when both\n`MQ_RUNNER_LABELS` and `MQ_PROBE_APP_ID` are nonempty. Token creation is allowed\nto fail; an absent App token falls back to the optional legacy\n`MQ_RUNNER_STATUS_TOKEN` secret (a PAT with the same read permissions). Both repository-level and organization-level runners are supported. The `select-mq-runner` job calls `GET /repos/{repo}/actions/runners` and\n`GET /orgs/{owner}/actions/runners` (owner is the repository prefix) before\nselecting labels; matching capacity across the available lists qualifies according\nto `MQ_RUNNER_MODE`. Its workflow token has **Actions: read** for the separate\nrun/job commitment probe; the runner-probe App needs no additional permission. The `heavy-labels` output goes only to Build's `mq-heavy-labels` input. An organization API 403/404 (for example,\nwhen the token lacks organization scope) emits a warning and keeps the repository\nresult. API failures in either scope warn without discarding a match in the other. If App token creation fails and no legacy token is available, selection falls\nback to hosted runners. Missing tokens, invalid label JSON, or no matching online\nrunner in either available list emit a warning and keep each job's original hosted label.","chars":2046,"tokens_est":512,"sha256":"7b3cb33b5fef5b7c99d9939714c16ee6930b20fe3e7b749746a6d9c23eed8668"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#opt-in-merge-queue-runner","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner]\nThe probe\nchecks at most five pages of 100 entries per list, with a ten-second timeout per\nrequest and **210 attempts total**, shared by runner, run and job probes including\nretries. This covers two runner scopes, two run statuses and ten active runs\n(the ruleset's five build entries times two for regroups), each with up to five\npages and three attempts per page. Timeouts, connection failures, HTTP 5xx and 429 get at most two retries\nwith short jittered backoff; Retry-After (seconds or HTTP date) is capped at five\nseconds. Other HTTP 4xx responses are never retried. A shared 45-second deadline\ncaps requests and backoff across the selection, well inside the job's two-minute\ntimeout; an expired deadline discards even an earlier matching scope. Active-run pagination ends at a short page, rather than trusting a changing\n`total_count` to end a full page. A count mismatch or duplicate ID retries the\ntraversal from page one, at most twice within the same request budget/deadline. A traversal with consistent counts, or two consecutive short-ended traversals\nwith identical unique run IDs, completes the collection even if the count is\nstale. Collections that keep changing or exceed the page limit select hosted;\nincomplete job lists still select hosted. If the jobs budget runs out\nafter active runs are listed, each unprobed active run instead reserves the\nrequired runner capacity (or its larger observed queued-job count) and one run slot. Warnings name the failed probe step\nand include validation reasons, including incomplete collections and limits. An unset or empty variable skips the\nprobe steps. Outside `merge_group` the selection is empty unless member PR\nrouting is explicitly enabled below. Master pushes, manual/release runs,\nand macOS/Windows jobs keep their current hosted runners. Linux matrix entries\nretain their matrix and hosted fallback. Required job/check names are unchanged.","chars":2021,"tokens_est":505,"sha256":"c076ecc3b5b4da91808306cecd82ba9f9fb3789ffe0954e537c6ee34fdb7da99"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#opt-in-merge-queue-runner","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner]\nRust Tier 2 Linux build, its OFF/ON test jobs, Rust Cross Lint\n(two main targets plus the release-target job), and the Linux macOS Rust artifact\nproducer and Windows Link Check use that selection. Build and tests share the selected pool so local handoff remains valid. Event Data, CI Mode, Format, Fast Gate, Cross Compile,\nQt, app builds, proof publication, queue cancellation and CI Gate use hosted\nrunners. Empty outputs and probe/setup errors keep every heavy job hosted.\n\nOn `merge_group` the selector job itself runs on the org's `forge-quick` admin\nrunners when the repository variable `FORGE_QUICK_LABELS` holds their labels\n(`[\"self-hosted\",\"forge-quick\"]`), so a queue run's routing decision never waits\nin the hosted queue (#5376). forge-quick runs one job per ephemeral container\nwith a 120-second wall clock, 256 MiB (its tmpfs workspace included), half a CPU,\nno Docker and no LAN; the job therefore checks out `ci/` blobless and pins\n`setup-uv` to the image's cached uv 0.13.7. PR, push and scheduled runs keep\n`ubuntu-latest`. Kill switch: delete the variable\n(`gh variable delete FORGE_QUICK_LABELS -R obs-rust/obs-studio`) and the next\nrun selects on hosted again.","chars":1295,"tokens_est":324,"sha256":"950303ccf62d14f58c56b43f4790358317a6e63d08780968f705b7c19cd3893f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy--2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\nThe maintainer approved same-repository member PR routing on 2026-11-19\n(Refs #4839, #4896). Set the repository Actions variable `DELL_PR_ROUTING=on`\nto opt in; unset, `off`, or any other value keeps PR jobs hosted. This change\ndoes not set any repository variables. Forks, non-members, pending memberships,\nAPI errors and `pull_request_target` events always stay hosted. Eligibility uses\nthe immutable `pull_request` event's head/base repository identities and author,\nthen the admission verifier's authenticated public/private active-membership\ncheck against obs-rust. The hosted selector checks out the PR's BASE SHA and\nextracts both `ci/select_mq_runner.py` and `ci/pr_attestation.py` with `git show`\ninto an isolated directory. It never imports the PR's routing code. The runner\nprobe App/token must be able to read membership; denied private membership uses\nhosted without expanding permissions. Probe credentials remain on hosted runners.","chars":1109,"tokens_est":277,"sha256":"19c91c2abad00faf89946d030bbc7751f4bc80b2cfe973a6ddeba627650335be"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~2-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\n`MQ_PR_RESERVE` keeps matching idle runners free for the queue, defaulting to\n`MQ_RUNNER_DEMAND` (currently `6`). A PR must fit its entire required capacity\nafter queued commitments and this reserve are subtracted. Unset/empty uses the\ndefault; a nonnegative integer overrides it, and invalid values select hosted.\nPRs have a separate `MQ_PR_DEMAND`: unset/empty defaults to `13`, the complete\nexpanded PR job inventory, including both sequential Tier 2 phases. This count\nis a **hard admission floor**, checked against every expanded job that can\nreceive Dell labels for `pull_request` in `build-project.yaml`. Selection does\nnot throttle or restrict jobs after admission: Fast Gate, Cross Compile, Qt,\nlink jobs and the existing heavy jobs can all receive those labels. A smaller\npositive override is clamped to the full inventory (and logged); it cannot turn\nthat thirteen-job graph into a two-job allocation. Larger overrides reserve\nmore capacity. Invalid/nonpositive values use hosted. The effective PR demand\nis the maximum of this inventory, `MQ_PR_DEMAND` and the MQ requirement, and is\nalso used for in-flight PR commitments. Update the inventory floor and its\nregression whenever the workflow graph changes.\n\n**Six-runner Dell:** keep `DELL_PR_ROUTING=off`, `MQ_PR_RESERVE=3` and\n`MQ_PR_DEMAND=13`. There is no PR-demand setting that safely admits the current\nthirteen-job graph with a three-runner queue reserve on six runners; at least\nsixteen online/idle runners are needed. In particular, the reported\n`MQ_PR_DEMAND=2`, `MQ_PR_RESERVE=3` configuration must select hosted. Useful PR\nrouting on six runners needs a separately bounded job subset or execution\nlimit before reducing the inventory floor. With reserve six, nineteen matching\nidle runners are needed. `MQ_RUNNER_LABELS`, `MQ_RUNNER_MIN_IDLE`,\n`MQ_RUNNER_DEMAND` and `MQ_RUNNER_MODE` retain their meanings.\nNo variable is changed by merging this default-off feature.","chars":2102,"tokens_est":526,"sha256":"72d7fc91b92e7fae0327caf87ac20f1d76e48c9d414857ec1745d215344c77e0"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~3-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\nWhen enabled, both selectors account for live PR and queue job commitments.\nUndecided queue runs have priority over every PR, regardless of creation time;\nundecided PRs use oldest-first ordering. Commitments are weighted by each\nevent's required runner capacity, so a large PR cannot count as one small MQ\nrun. For MQ admission the budget is `MQ_RUNNER_MAX_RUNS * required`; PR admission\nkeeps the online-capacity limit and idle floor after subtracting the MQ reserve.\nQueue admission does not subtract the PR reserve. This remains a bounded\nsnapshot, with the same API visibility and\nsimultaneous-selection limitations as queue admission, not a preemption system.\nAlready-running PR jobs finish normally. Turning the kill switch off stops new\nPR routing; allow existing PR jobs to drain before relying on queue-only census.\n\nExisting heavy Linux jobs accept the selected labels on PR events. Fast Gate,\nCross Compile and Qt Frontend Linux also accept them for PRs only; their queue\nand other-event placement is unchanged. Event Data, CI Mode and lightweight\nadmission/gate jobs stay hosted, and macOS/Windows jobs keep their native hosts.\nThe reusable workflow caller passes empty repository secrets to Dell-routed PR\nruns, and selected jobs also suppress credential inputs on that path. They retain\nonly the event's `GITHUB_TOKEN`, with `contents: read` and `actions: read`; no\npermission increase or container-isolation change is introduced. Hosted/non-PR\nsecret handling stays unchanged. No new workflow files or required checks.\n\nBoth the default threshold mode and `MQ_RUNNER_MODE=prefer` use the same\nbounded Dell queue admission. Prefer remains accepted for existing configurations;\nunknown modes fall back to hosted.","chars":1888,"tokens_est":472,"sha256":"069f5320ea4ab089721db60913739cb6d6715409dbd0f66adda3f1119c252843"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\nSet the optional repository Actions variable `MQ_RUNNER_DEMAND` to tune the\nper-run idle-capacity requirement without a workflow change. Unset or empty\nuses the unchanged conservative default `6` (checked by `ci/test_ci_scope.py`).\nIn #4980's per-job routing, the Dell-routed heavy work in\n`build-project.yaml` is one Tier 2 Linux build, two complete Tier 2 test jobs\n(OFF/ON), two main Cross Lint legs, one release-target Cross Lint job, and the\nLinux macOS Rust artifact producer (#5008). These are seven jobs in total, with\n**a peak of six concurrent heavy jobs**: the two Tier 2 tests wait for their build\nand can overlap all three Cross Lint jobs and the Darwin producer. The release\njob runs its three targets within one job. The unchanged default demand `6`\ncovers that peak; an earlier override of `5` no longer covers it. A demand of `7`\nis the conservative total-job bound. Before the Darwin producer, #4980's six-job\ntopology had a peak of five. These counts describe those topologies, not a fixed\nadmission constant.","chars":1191,"tokens_est":298,"sha256":"512a9d84ee566754cc64fabf8c4ef8dc704156b055c60c50c442afaf3e26b33f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\n**Revisit `MQ_RUNNER_DEMAND` whenever heavy jobs are added or their dependencies\nchange.** Inventory every job using `mq-heavy-labels` in\n`.github/workflows/build-project.yaml`, expand its matrix, and account for\n`needs` dependencies when estimating concurrent demand. A job count alone is\nnot the peak: Tier 2 build and tests run in successive stages. A demand above\nthe Dell's online capacity intentionally selects hosted. The selector uses the\nconfigured demand and actual queued-job labels; it does not hard-code a five-job\npeak or automatically infer future jobs before they appear in the API. The same\nconfigured requirement applies when path scope skips some heavy jobs.\n`MQ_RUNNER_MIN_IDLE` is an optional repository Actions variable (default `1`);\nthe idle fast case requires `max(MQ_RUNNER_MIN_IDLE, MQ_RUNNER_DEMAND)` runners\nafter subtracting queued Dell jobs. Online capacity must cover that requirement\neven for busy admission, so offline or undersized pools still select hosted.\n\n`MQ_RUNNER_MAX_RUNS` caps concurrent committed Dell merge-group runs, including\nthe new admission. Unset or empty defaults to **3**; nonpositive or noninteger\nvalues select hosted. Below this cap, use the idle fast case when available,\notherwise queue on the busy Dell. At the cap, select hosted even if the runner\ncensus is idle. This cap replaces `floor(online / required)`; busy runners and\nqueued jobs no longer force hosted fallback while a run slot remains.","chars":1621,"tokens_est":405,"sha256":"5529a78d25943256d539c470a9a91b9407e7e41215a3fbb219d410105e8c9d49"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~6","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\nThe default comes from the six-runner Dell measurements on 2026-11-19 (reports\n22/23, Refs #4896): 6 of 13 runs went hosted because 4\u20136 runners were busy with\nrequired capacity 3. Dell completion had a 27.8-minute median against hosted's\n46.3 minutes, while Dell job queue wait was p90 349 seconds and max 615 seconds.\nAdding even that observed maximum wait to Dell's median gives 38.05 minutes,\n8.25 minutes ahead of hosted's median. Three concurrent runs is a bounded first\nstep above the old two-run cap; tune the variable from subsequent completion\nmeasurements rather than assuming this estimate is a measured overcommit result.\nThis queue policy does not authorize PRs to consume their reserved MQ capacity;\nmember-PR routing (#5279) retains its separate idle floor and queue reserve.\nWith PR routing enabled, retain capacity-weighted commitments and use a queue\nbudget of `MQ_RUNNER_MAX_RUNS * required` so a larger PR cannot count as one\nsmaller queue run. The cap does not relax PR admission, even with a zero reserve.\n\nRunner IDs visible in both scopes count once (a busy observation wins). The job\nsummary records online/busy/idle counts, required capacity, queued Dell jobs,\ncommitted runs, run limit, idle run slots and the idle/busy admission reason.\nQueued/in-progress `ci.yml` merge-group runs and latest-attempt jobs establish\ncommitments:","chars":1519,"tokens_est":380,"sha256":"b610a8612c6fccdab85806f0e8a2bf00e80e9ad52a7728ccab2f6aed72951b0b"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~7","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\n- Live Dell-labelled jobs commit one run slot, including newer runs. Completed\n  heavy jobs establish the route but release capacity when no Dell jobs remain,\n  including runs waiting only for hosted macOS work.\n- Older undecided runs reserve a slot, ordered by creation time then run ID.\n  Identical snapshots therefore admit the same oldest runs, including runs\n  created in the same second. A successful selector still has an unknown route\n  until heavy-job labels appear: its output is not exposed by the jobs API.\n  Keep its provisional reservation through that visibility gap (also when its\n  conclusion is missing), preferring brief under-use over overcommit. Hosted\n  choices, unsuccessful/skipped selectors with no live Dell jobs, and terminal\n  runs release reservations. Inspect jobs even for workflows reporting `queued`.\n- A stable retried run listing may omit the current run (run `44586086466`). Without\n  its timestamp, count every undecided peer as older, and log the missing run ID\n  rather than raising `KeyError`. Missing run timestamps sort before known peers;\n  a missing current timestamp reserves every undecided peer. Missing run IDs\n  hold a slot without a jobs lookup. Missing event/status fields use the filtered\n  endpoint's values. Missing job fields similarly reserve that\n  peer's run and required demand, with the missing key named in the warning.\n  Run `44586086466` logged a bare `KeyError` after a snapshot retry; its API\n  response was not retained, so tests reconstruct both missing-current and\n  missing-field shapes rather than claiming an exact historical payload.\n- Jobs-budget exhaustion reserves each unprobed run and at least its required\n  demand (or its larger observed queued-job count). API errors, missing Actions\n  identity/token and unresolved collections still select hosted.","chars":1991,"tokens_est":498,"sha256":"ccbfff0893941d755cb10ec455c8f2665252ff7b301e742549e02a468a159155"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~8","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\nCapacity-driven hosted routing is identified in the log and summary. This is a\nbounded snapshot, not an atomic reservation: API visibility lag or runners going\noffline after selection can still change capacity. Existing fixtures reproduce\nthe four-run burst, hosted backlog and collection races in `ci/fixtures/`.\nReport 15 measured 168 idle Dell minutes (six idle runners, required three),\nwhile 78 Dell-routable hosted jobs waited over five minutes (803 job-minutes),\nand only 3 of 19 queue runs used the Dell. Read-only selector logs for\n[44359171975](https://github.com/obs-rust/obs-studio/actions/runs/44359171975/job/134995483499)\nand [44367435932](https://github.com/obs-rust/obs-studio/actions/runs/44367435932/job/135024874840)\nshow committed counts five and three despite six idle runners. Run\n[44367448224](https://github.com/obs-rust/obs-studio/actions/runs/44367448224/job/135024915358)\ninstead fell back on a short queued-runs page with a mismatching count; bounded\nsnapshot retries now cover that race. The response-shape fixtures and peer job\ntimings in `ci/fixtures/mq-probe-races.json` reproduce #5181's collection failures\nand the completed-selector visibility gap. Improved hosted timing and utilization still require\nmeasurement after deployment.\n\nThe intended host is a NixOS netbooted Dell PowerEdge, which may be powered off.\nRun the runner and its job processes inside its Ubuntu container image / FHS\nenvironment with Ubuntu apt available: the existing jobs expect Ubuntu package\nand toolchain prerequisites, not native NixOS commands. An offline PowerEdge\nautomatically falls back to hosted CI at selection time. This is a snapshot,\nnot a reservation: a host going offline after selection can still delay jobs.","chars":1900,"tokens_est":475,"sha256":"18b40cc5cb9f375ea37b82f02ef194cf4c83e9f1c053457594b0556973d68b74"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~9","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Opt-in merge-queue runner","Idle Dell capacity for member PRs (default off)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#idle-dell-capacity-for-member-prs-default-off","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Opt-in merge-queue runner \u203a Idle Dell capacity for member PRs (default off)]\nThe Tier 2 Linux build mounts `/var/cache/obs-runner` and selects a per-runner\npersistent slot only when `.persistent-cache` exists and `RUNNER_NAME` is set.\nOn this Dell path, the build step sets `OBS_TIER2_LAUNCHER` to an empty value\nto compile C/C++ without a launcher; hosted runners keep `zccache`. The\nvalidation script uses `${OBS_TIER2_LAUNCHER-zccache}`: unset defaults to\nzccache, a nonempty value selects another launcher, and empty omits both\nlauncher `-D` arguments and clears old launcher cache entries in a reused\nCMake tree. zccache stats, daemon shutdown and recovery run only when zccache\nis selected; the uncached path reports that stats were skipped.\n\nThis bypass follows the measured Dell daemon bottleneck (2.2 active compilers\nwith 65.8 waiting clients at 8.6 compiles/s; Refs #4954 and\n[zccache#2209](https://github.com/forge-ci/zccache/issues/2209)). Dell A/B build\ntiming is pending while the host is offline for its hardware change. No\nno-launcher speedup has been measured.\n\nOn the Linux x64 host chosen by the maintainer, open repository **Settings \u2192\nActions \u2192 Runners \u2192 New self-hosted runner**, select Linux/x64, and follow the\nshown download and verification commands. Use the temporary registration token\nshown there to register the runner:\n\n```sh\n./config.sh --url https://github.com/obs-rust/obs-studio --token <temporary-token> --labels obs-mq\n```\n\nThe runner adds the `self-hosted`, `linux`, and `x64` default labels. Install/start it as a service\nusing the runner's documented service commands, then set `MQ_RUNNER_LABELS`\nonly after it is online and the App credential is configured. Container\njobs require Docker installed and usable\nby the runner account; the Tier 2 build and Flatpak jobs use `container:`, though\nthey are not selected on the trimmed queue path. This change neither registers\nnor configures a runner. Clear the variable to return to hosted Linux runners.","chars":2076,"tokens_est":519,"sha256":"d15fee35482790a4758d87688bfbcd6a6f8392c0c3ab547256b19524a51d178f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy--3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Kept Tier 2 configure reuse"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#kept-tier-2-configure-reuse","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Kept Tier 2 configure reuse]\nOnly the marker-backed kept-tree path sets `OBS_TIER2_KEEP_CONFIGURE=1`.\nIt disables the libobs module cache, including its restore/save steps: Dell\nmeasurements restored 0/7 modules in five jobs, while enabling the imported\nmodule list required a second configure. Hosted runners keep the existing\nconfigure and module-cache behavior.\n\n`ci/tier2_configure.py` stores `.tier2-configure.json` inside `tree/`, so the\nexisting crash-safe kept-tree save/restore carries it with `CMakeCache.txt`.\nThe SHA-256 input fingerprint covers the complete argument vector (preserving\nargument boundaries and order): source/build paths, generator, every `-D`/`-U`,\ncompilers and launchers, build type, test/reference switches, extra flags and\nversion/build-number overrides. It also covers the working directory; PATH,\nHOME, compiler/linker flags, locale, DISPLAY and SDK variables; every CMAKE_,\nPKG_CONFIG, OBS_, SOLDR_, RUST, CARGO_, CCACHE_, ZCCACHE_, UV_ and PYTHON environment input\n(including `OBS_TIER2_LAUNCHER` and the existing shell toolchain-version result); resolved\nCMake/Ninja/compiler/launcher/soldr/pkg-config/git/uv/Python/linker/archiver\nexecutable paths and contents;\nthe Ubuntu installed-package/version inventory; explicit toolchain\nfile contents; and Rust toolchain/Cargo configuration files.\n\nOBS embeds `git describe --always --tags --match '[0-9]*.[0-9]*.[0-9]*'\n--dirty=-modified` during configure. Its output is hashed too unless an explicit\n`OBS_VERSION_OVERRIDE` replaces it. A different commit/tag/dirty version must\nconfigure to avoid reporting a stale version: the first configure saving is\ntherefore limited to unchanged-version retries. Removing the module-cache\nconfigure also benefits changed revisions. The measured 128\u2013133 second Dell\nwarm configure is an opportunity, not a guaranteed per-commit saving.","chars":1943,"tokens_est":486,"sha256":"fd7471fc80d829e97ecdac5c63dfd498871e2d99af38b9ba0f635566d0d3c8dd"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~2-3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Kept Tier 2 configure reuse"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#kept-tier-2-configure-reuse","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Kept Tier 2 configure reuse]\nPreload scripts (`-C`, including their arbitrary includes), presets and\n`--fresh` conservatively retain explicit configure.\nReuse additionally requires matching contents of the cache, Ninja graph and\nrules, the cached compiler/toolchain binaries/files, and an enabled Ninja CMake\nregeneration rule. Missing/invalid stamps, trees, probes or any mismatch run\nconfigure. The stamp is invalidated before configure and written atomically\nonly after success. Module-cache use never permits reuse. CMakeLists/includes\nand `CONFIGURE_DEPENDS` changes remain Ninja's responsibility through\n`cmake --build`; no build or test result is cached by this decision.","chars":764,"tokens_est":191,"sha256":"a510c1b939351fbdd3d18b4abe1059a32e553556ffce3ee118bcd66bdfca6f3c"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy--4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Prebaked Dell Tier 2 packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#prebaked-dell-tier-2-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Prebaked Dell Tier 2 packages]\nThe independent master-push `tier2-image` job publishes the content-addressed\npublic GHCR package described in\n[`rust/tools/linux-validate/tier2-image/README.md`](../rust/tools/linux-validate/tier2-image/README.md).\nThe first master push after merge seeds it; Dell selection switches to its\nimmutable digest once the public manifest exists. Hosted runners keep their\ncurrent image paths. Probe errors fall back, and the required gate does not wait\nfor publication. Baked package versions are frozen until an image input changes;\nstock installs resolve current Ubuntu archive versions. Tests continue checking\nthe exact runtime package closure from their build artifact.\n\nPrepared-runtime delta installs use APT's native `Acquire::Retries=3` with\n15-second HTTP/HTTPS connection and data timeouts. Each update/install runs\nunder `timeout --kill-after=10s 180s`, allowing four times the observed roughly\n45-second normal setup. An unavailable pinned version triggers one index\nrefresh and one exact-version install retry. An install that the bound stops\n(exit 124 or 137, for example on a slow mirror) runs `dpkg --configure -a` and\nis retried once; the downloaded `.deb` files stay in the archive mount (#5504).\nAn update timeout and other errors fail at once. Persistent failures report the\ndelta packages and fail the job.","chars":1440,"tokens_est":360,"sha256":"3e769f45f5c9afde98dee66bd4811f96b1eac905867f50ffb8e1599ea0d03324"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~2-4","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Prebaked Dell Tier 2 packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#prebaked-dell-tier-2-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Prebaked Dell Tier 2 packages]\nThe Tier 2 containers fetch from one mirror at a time and change mirrors\nbetween attempts (#5510): first the runner's own (the first plain-HTTP,\nnon-security entry of the host's `/etc/apt/apt-mirrors.txt`, which the build\ncontainer mounts read-only at `/run/host-apt`), then `archive.ubuntu.com` and\n`mirrors.edge.kernel.org`, over HTTP because the stock container has no CA\ncertificates before `Install Git`. A mirror that accepts connections and never\nanswers keeps `apt-get update` past its bound on every index file, and apt's\n`mirror+file:` method never drops it, so a mirror list alone does not help.\n`ci/host_apt_mirrors.py` holds the list and the rule; the build step carries\nthe same rule as shell, and `ci/test_tier2_apt_cache.py` checks both against\nthe same cases. The runtime delta's timeout retry fetches the index from the\nnext mirror. So does each retry of the build's `Install Tier 2 Packages`\n(#5518): `Install Git` keeps its mirror order in `/etc/apt/ci-tier2-mirrors`,\nand a retry moves from the mirror `Install Git` ended on to the next one, since\na mirror can answer the bootstrap and then serve the ~400 packages too slowly\nfor the install's 300 s bound. The security pocket keeps `security.ubuntu.com`.\n\nThe separate prepared release runtime is refreshed manually. Its producer is\n`ci/tier2_setup_probe.py produce`, invoked by the existing `ci.yml`\n`tier2-setup-producer` job; it is not the GHCR `tier2-image` job. Request a\nrefresh when the consumer logs show more than four delta packages (the fallback\nlimit remains sixteen). A maintainer performs these steps:","chars":1704,"tokens_est":426,"sha256":"96ea97d4f8980c6359a0d3631d21f1a7db9cfd2c9f4eaae5dff8baf6b605bf0a"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~3-3","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Prebaked Dell Tier 2 packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#prebaked-dell-tier-2-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Prebaked Dell Tier 2 packages]\n1. Dispatch the existing `ci.yml` on `master` with `tier2-setup-probe=true`:\n   `gh workflow run ci.yml --repo obs-rust/obs-studio --ref master -f tier2-setup-probe=true`.\n   This runs normal validation and the setup experiment; do not replace the\n   current runtime until both succeed.\n2. Before their one-day retention expires, download `tier2-setup-image` and\n   `tier2-setup-metadata` from that run. The producer installs the new build's\n   exact `runtime-packages.txt` plus bootstrap tools into the pinned stock base,\n   commits the container, and saves the image. `bundle.json` records its image\n   ID, complete inventory, base, archive checksum/size and producer revision.\n3. Publish a **new, unique prerelease** via the existing `obs-studio-libs`\n   pack/add catalogue process, as in\n   [obs-studio-libs#7](https://github.com/obs-rust/obs-studio-libs/pull/7).\n   Package the Docker-save contents with flavor `ubuntu26.04-docker` and platform\n   `linux/x86_64`; this is an OCI archive, not a host library prefix. Never\n   overwrite the October asset. If repacking changes the compressed bytes,\n   compute the checksum and size of the final published archive.\n4. Open a PR updating `rust/tools/linux-validate/prepared-runtime.json`: use the\n   new immutable release URL, final archive checksum/size, `bundle.json` image\n   ID/base/full inventory/revision/run ID and new catalogue version. Retain\n   `platform: linux/amd64`. Run the runtime selection/delivery self-tests, then\n   qualify both complete OFF/ON suites through ordinary PR/queue validation,\n   checking `inventory_verified` and the remaining delta. Promote the release\n   and catalogue only after qualification, following the original rollout.\n\nThe consumer cannot publish or dispatch a refresh. No repository variable\nchange is required. Hosted GHCR selection remains deferred while the package\nis private; an anonymous manifest probe alone does not guarantee a subsequent\njob-container pull will succeed.","chars":2091,"tokens_est":523,"sha256":"8c528a43d795035dc8966b66165c8b7c4200fbc1c86142e4bd7354b4d96f5bf5"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~4-2","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Prebaked Dell Tier 2 packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#prebaked-dell-tier-2-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Prebaked Dell Tier 2 packages]\nPrepared release runtimes first inspect the descriptor's pinned Docker image ID\nand reuse an exact match. Dell runners use `/var/cache/obs-runner/assets` only\nwhen that directory and the `/var/cache/obs-runner/.persistent-cache` file both\nexist. Environment variables cannot bypass this check. Hosted runners without\nthe persistent marker and directory retain cold delivery.\n\nArchive filenames are their SHA256 (no extension). Reads copy into the job\ndirectory, verify size and SHA256, then refresh the cache entry's access time for\nhost GC. A miss downloads directly into `.<sha256>.<random>.part`, verifies it,\nsets mode `0644`, and atomically renames it into place. Existing entries remain\nuntouched for host GC, including corrupt files another uid may own. The job uses\na verified local copy. Any cache I/O error, including an access-time permission\nerror, falls back to downloading into the job directory. Downloaded bytes and\nloaded image IDs retain their integrity checks. Image and asset cache hits/misses\nappear in the setup log. The host owner reports all six Dell runners restarted\nwith the HDD-backed mount deployed on 2026-11-18.","chars":1259,"tokens_est":315,"sha256":"b0fe9aeefcca3ad6970267c37f2731723225f74d54a8eb81ee66e735919a8eb6"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy--5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Host Ubuntu package acquisition (#1269)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#host-ubuntu-package-acquisition-1269","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Host Ubuntu package acquisition (#1269)]\nThe existing Fast Gate, Qt frontend, full Ubuntu app and both Flatpak\nsaved-profile runtime jobs run\n`sudo -E \"$(command -v uv)\" run --no-project ci/host_apt_mirrors.py` before\npackage work (the jobs that reach it before any other uv step add a\n`setup-uv` step first, since the helper is Python; CI logic lives in Python,\nnot shell -- GEN-005, #962). It recognizes the\nrunner-image mirror list with Azure HTTP priority 1 and Ubuntu archive HTTPS\npriority 2, then swaps those priorities. All URLs and security fallback remain\npresent. Missing, linked, duplicate or unfamiliar layouts keep their original\nconfiguration; an actual rewrite failure fails the step. The helper needs no\ndownload of its own beyond the uv setup the step already has.\n\nFast Gate, Qt and both runtime jobs use command-line acquire bounds of one retry and 15-second\nHTTP/HTTPS timeouts, on both update and installation. Package lists, trust\nchecks, job limits and required tests remain unchanged. The motivation is the\nobserved Qt setup in run 39788036193: 104 MB took 19m25s with 347 ignored fetch\nrecords before successful fallback transfers. Hosted outcomes must still be\nmeasured; this observation is not a controlled speedup estimate or proof of\nthe underlying network fault.","chars":1379,"tokens_est":345,"sha256":"13733479d48d142bc471d088c1563cd84d46185eea7fcb06078ea3bb5f420708"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy--6","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Optional Windows cache budget experiment (#1269)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#optional-windows-cache-budget-experiment-1269","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Optional Windows cache budget experiment (#1269)]\nManual `ci.yml` dispatches accept `native-cache-probe` (default `false`).\nEnabling it preserves the full dispatch validation and adds four clean full\nWindows rebuilds per architecture after the normal app build. Use it only for\na planned cache experiment; PRs, queue runs, schedules and releases do not run\nthese additional rebuilds. No production cache limit changes automatically.\n\n`ci/native_cache_probe.py` copies the completed build's compiler cache into\nfour isolated directories and compares `2G`, `350M`, `350M`, `2G` in that order.\nEach trial starts from the same seed, explicitly cleans its own cache to its\nlimit, resets counters and invokes the existing Windows build preset with\n`--clean-first`. The original cache and its publication policy are unchanged.\nFour copies plus 1 GiB of free disk are required; insufficient disk or a failed\nrebuild fails the experiment and preserves a failure report. Only successful\nrebuilds are timing samples.\n\nEach `native-cache-budget-<architecture>-<run>` artifact contains `report.json`\nwith source/image, commands, preparation and rebuild times, filesystem bytes,\nand literal ccache statistics/version plus machine-readable counters. The\nprobe verifies the effective cache directory and rejects rebuilds with no\ncacheable C/C++ calls. The pinned ccache supports these inspection commands\nin its [manual](https://ccache.dev/manual/4.14.1.html). Artifacts expire after two days;\nrecord the useful numbers in the PR or issue comment before expiry; run\nmetadata is not tracked on `master` (#2686). Filesystem bytes\nare not compressed GitHub archive sizes. Two samples per size from one runner\ndo not establish representative-day latency, repository retention, or a\nuniversal size recommendation. Compare compile time and actual hits/misses\nbefore deciding whether to change the production limit.","chars":1978,"tokens_est":494,"sha256":"5cabbd44f1f767eb008296ac2bc680eb99b52daa76f52269973cbd54e0c18b6f"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy--7","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Optional native release-cache build qualification (#1269)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#optional-native-release-cache-build-qualification-1269","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Optional native release-cache build qualification (#1269)]\nManual `ci.yml` dispatches accept `native-cache-reuse-source` (default empty).\nSet it to a complete producer SHA only for a planned master qualification.\nIt uses the existing four native app builds, with no extra compiler unit or\ntest executable. Normal full-dispatch coverage runs unless the explicit\nmeasurement-only mode below is selected. Do not combine\nit with native transport publication or the Windows budget rebuild probe.\n\nEach native runner captures its own compiler/SDK/configuration identity and\nrequires an exact-source release-cache hit with that profile before building.\nThe restored directory replaces the Actions compiler cache for this run;\nneither compiler-cache save path publishes experimental state. A missing or\nmismatched profile fails qualification rather than becoming a hit. Tokens\nremain read-only in the native app jobs.\n\n`ci/native_cache_freshness.py` temporarily inserts a source/run-specific marker\ninto an existing frontend log literal, then checks for that marker in the\ninstalled main executable after the real build. It records source and binary\nhashes. The always-run cleanup restores the exact original source bytes and\nrefuses to overwrite an unrelated edit. Packaging is disabled for these builds.\nThe overlay is experimental evidence, not a shipped source change or an app\nruntime test. `native-build-reuse-<platform>-<architecture>-<run>` artifacts\nretain identity, restoration, overlay, binary verification and cleanup reports\nfor one day; preserve useful results before expiry.\n\nArchive restoration plus a fresh binary still does not prove compiler reuse\nor a net performance benefit. Retain the native compiler statistics, actual\nbuild/restore/setup times, failures and cold conditions, and compare costs\nagainst an appropriate control before adopting a backend. Routine PRs,\nqueue runs, pushes, schedules and releases leave this input empty.","chars":2033,"tokens_est":508,"sha256":"5b4edca1daaa516e0258d83eab63aa346d8ca15a2448b3a2d4ad141c12438276"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy--8","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Optional native release-cache build qualification (#1269)","Restricting a planned native measurement (#1801)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#restricting-a-planned-native-measurement-1801","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Optional native release-cache build qualification (#1269) \u203a Restricting a planned native measurement (#1801)]\n`native-cache-measurement-only` defaults to false. Set it only for a trusted\n`obs-rust/obs-studio` master `workflow_dispatch`, together with exactly one\nexisting native protocol: `native-cache-transport-probe=true` or a complete\n`native-cache-reuse-source` producer SHA. An explicit full/release gate,\nWindows budget probe, Flatpak option, runtime-reuse request or Tier 2 setup\nprobe conflicts with this mode and fails input validation. Conflicting\nstandalone Flatpak/setup jobs cannot start while native-only mode is set.\n\nThe mode retains both Windows architectures and both macOS targets, their\nexisting identity/integrity checks, actual builds and reuse-source freshness\noverlays, requested transport publication/consumers, formatting, Fast Gate,\ndata validation and required-result aggregation. It omits unrelated Ubuntu,\nFlatpak, cross-lint, native Rust/Tier 2 and Qt matrices. No job or workflow is\nadded. The existing experimental publication permission and exact-source/profile\nrequirements remain unchanged.\n\nThis is a scoped performance experiment, **not full-platform validation** or\nbackend adoption. Routine PRs, merge groups, master pushes, schedules, releases\nand ordinary dispatches retain their selection. Check for an existing manual\nmaster run before dispatch: the shared concurrency group can cancel it. State\nthe missing evidence, expected runner/storage cost and sample scope first;\npreserve failures and mismatches, and do not repeat a whole workflow merely to\nget green. No native run is needed to test the routing fixtures themselves.\n\nFor a separately planned producer or consumer, respectively:\n\n```sh\ngh workflow run ci.yml --repo obs-rust/obs-studio --ref master -f native-cache-measurement-only=true -f native-cache-transport-probe=true\ngh workflow run ci.yml --repo obs-rust/obs-studio --ref master -f native-cache-measurement-only=true -f native-cache-reuse-source=COMPLETE_PRODUCER_SHA\n```","chars":2119,"tokens_est":530,"sha256":"b829c56582222c8d5ea9c84785fde4b415205bcee4edfd89570c9d5e5281835d"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-merge-queue-admission-policy-~2-5","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Merge queue admission policy","Optional native release-cache build qualification (#1269)","Restricting a planned native measurement (#1801)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#restricting-a-planned-native-measurement-1801","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Merge queue admission policy \u203a Optional native release-cache build qualification (#1269) \u203a Restricting a planned native measurement (#1801)]\nThese commands remain opt-in. Changing routing alone demonstrates no cache\nspeedup, successful transfer, source freshness or global capacity solution.\n\nThe [first native build-reuse attempt](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-native-cache-build-reuse.md)\nfailed qualification: Windows profiles were cold, and successful macOS app\nbuilds lacked installed-binary freshness proof. Its retained evidence includes\nthe final failed gate and successful compatibility and protocol checks.","chars":754,"tokens_est":188,"sha256":"281be4eae83e41a93859994a3f46b0539c76564814457db9b28f6cc6c81d2bf3"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-cross-lint-and-fast-gate-over","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Cross lint and Fast Gate overlap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#cross-lint-and-fast-gate-overlap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Cross lint and Fast Gate overlap]\nThe debug cross-lint matrix starts after scope and immutable-base admission,\nalongside Fast Gate, as the release cross-lint lane already does (#4990).\nIt consumes no Fast Gate output or artifact; PR admission, cumulative queue\nscope, targets, commands and CI Gate's required execution manifest are unchanged.\nA failed or cancelled Fast Gate still blocks merging even if cross lint passes.\n\nThe November 17 sample of 30 completed `ci.yml` runs had 22 successful,\nfour failed, two skipped and two cancelled Fast Gates. A fixed-duration replay\nremoves 4.52\u20135.28 minutes from four of eleven successful hosted PR runs;\nother heavy jobs mask the saving in the remaining seven PR runs and all\nthree successful queue runs. This is an overlap estimate, not a hosted\nafter-change measurement, and earlier runner allocation can change contention.\nCross lint now also spends runner time when Fast Gate fails: the observed\nmedian combined debug-matrix execution was 11.87 hosted or 9.21 Dell\nrunner-minutes. All four failed Fast Gates used Dell runners, so full matrix\nexecution at that median would add about 36.83 runner-minutes across the\nsample (1.23 per run), before cancellation savings. Successful runs add no work.","chars":1298,"tokens_est":324,"sha256":"dfe91cc86e58fa4967cb15ed6ba3942310098f44c99b9843d047b59057f9fc5a"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-tier-2-execution-and-fast-gat","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Tier 2 execution and Fast Gate overlap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#tier-2-execution-and-fast-gate-overlap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Tier 2 execution and Fast Gate overlap]\nThe Windows and macOS validators opt into `OBS_BUILD_NATIVE_TIER2` and build\nthe single `tier2-native` target. Its dependencies are the unchanged native\ncore/reference, cmocka registry and platform graphics/capture targets. Asking\nthe Visual Studio generator to build those roots separately starts MSBuild\nonce per root and revisits their shared dependencies (Refs #4996). The\naggregate preserves each existing compile/link recipe and test pass. Separate\nconfigure/build markers make subsequent native job logs easier to measure;\nmacOS still redirects their detailed output to `build_rust.*.log`.\n\nThe complete OFF/ON test jobs start after successful Tier 2 compilation and\nscope/proof checks, without waiting for Fast Gate. No artifact from Fast Gate\nis consumed by these jobs. Fast Gate remains a required job in the reusable\nworkflow, and its failure/cancellation still makes the caller's required gate\nfail even when both CTest suites pass. A missing/failed build or workflow\ncancellation does not start tests. Partial Rust-only evidence conservatively retains Fast Gate and selected\nTier 2 work; complete client admission defers both to mandatory queue execution.\n\nThis removes a measured dependency wait: in the October 22 baseline, four\nof nine successful PR runs and four of nine successful queue runs with both\njobs finished Fast Gate after the build, by up to 133/127 seconds. The median\nopportunity across all nine in each event was zero. These are upper bounds\non the affected Linux path, not universal gate savings; native platform work\ncan still determine the final gate. Independent tests can consume runner time\non a change whose Fast Gate later fails. Record that extra failed-run cost\nalongside successful latency during the #1694 post-rollout day.","chars":1861,"tokens_est":465,"sha256":"8438b67b89b1bf92756bff8b814f2bd54158f78e5538bad121d77144410d4520"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-linux-rust-execution","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Linux Rust execution"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#linux-rust-execution","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Linux Rust execution]\nThe local gate's Linux Rust test commands use a checksum-pinned nextest\n0.9.143 binary to schedule the existing category tests globally, with at most\nfour concurrent tests. A host with more cores can raise that bound with\n`OBS_GATE_TEST_THREADS` (a positive integer); CI sets nothing, so CI keeps\nfour. The tool is installed in a local cache only when scope\nselects Rust tests; there is no new Actions-cache writer. Other hosts keep the\nexisting Cargo runner. All commands still go through `soldr cargo`, with the\nexisting Rust wrapper bypass.\n\nNextest executes the same eight category binaries, not another set of test\ntargets. Cargo still runs documentation tests separately, including after a\nunit-suite failure; neither failure can produce a passing lane. Scope applies\nto both commands, and no retries mask a failure. The explicit\n`ci/nextest.toml` configuration and runner installer are attested inputs and\nproof surfaces. Workspace execution must discover tests; a scoped crate with\nno test target retains Cargo's successful empty-suite behavior.\n\nSee the [experiment and limits](ci-speed-2026-10-22.md#rust-execution-schedule-across-existing-binaries)\nfor exact coverage and local timings. Native Windows/macOS workflow commands,\nC tests, OFF/ON execution, source assertions and Rust compiler/cache settings\nare unchanged.","chars":1407,"tokens_est":352,"sha256":"d2f2ec734decca9f950f0cf44ff2fd087233c5bc490dd906e1da3f4b71713a16"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-linux-rust-execution-rust-tim","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Linux Rust execution","Rust timing observations in CI reports"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#rust-timing-observations-in-ci-reports","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Linux Rust execution \u203a Rust timing observations in CI reports]\n`ci/cache_metrics.py --include-logs` records nextest and Cargo doctests as\nseparate command observations. It retains Cargo build/link summaries, time to\nthe first execution marker, the observed output span and nextest's explicitly\nreported execution duration. These are distinct from full setup or process\nruntime; missing markers remain unknown. Nextest passed/failed/skipped/not-run\ncounts are kept as reported, without inventing absent zeros or adding skipped\ntests to `tests_run`. Separate Cargo result summaries retain doctest coverage.\nThe regression evidence includes a parsed real hosted run in\nthe snapshot `docs/ci-evidence/2026-10-22-nextest-log-observations.json`\n(retired; at `c2af3f9c3`).\nWhen recollecting into the same output directory, unchanged run metadata retains\nits recorded historical comparison base. Later PR rebases or base-branch updates\nmust not silently reclassify a cached run. Updated run metadata still invalidates\nthe cache and fetches current job/attempt details.","chars":1115,"tokens_est":279,"sha256":"e4a9c505461b5f9245429700c19f1b4e991e0b0cc400ae55c21911af6fd2f947"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-linux-rust-execution-manual-f","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Linux Rust execution","Manual Flatpak measurement"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#manual-flatpak-measurement","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Linux Rust execution \u203a Manual Flatpak measurement]\nUse the existing manual workflow to observe the complete Flatpak job without\nlaunching unrelated native application, Qt, Tier 2 and cross-lint matrices:\n\n```sh\ngh workflow run ci.yml --repo obs-rust/obs-studio --ref master -f flatpak-measurement-only=true\n```\n\n`flatpak-measurement-only` defaults to false and is accepted only for\n`workflow_dispatch`. Ordinary PR, merge-group, push, schedule and release\nselection is preserved. Format/Fast Gate remain, and the entire Flatpak job\nis unchanged: setup, compilation, debug processing, export, validators,\npruning and cleanup all stay in its clock. Every Flatpak build starts cold\n(no Actions cache since #1801 phase A). Keep other probe inputs off for a\nroutine observation; optional Flatpak qualification probes remain separate\nextra work when explicitly requested.\n\nThis mode saves measurement runner time and waiting on unrelated jobs. Do not\ncount those omissions as a Flatpak build speedup. Record full job/source/cache\nidentities, failures and costs; do not restart a live observation on API lag.\nManual master dispatches share their existing cancellation group, so wait for\nthe entire preceding manual master workflow to finish before starting another.","chars":1313,"tokens_est":328,"sha256":"93b647f01d8acac54c4bf40a7764848db426446799bf815b73ec55d0e743954e"},{"id":"docs-ci-tooling#ci-and-build-tooling-how-not-to-drown-the-machines-linux-rust-execution-flatpak-","doc":"docs-ci-tooling","group":"docs","tier":"process","kind":"prose","breadcrumb":["CI and build tooling: how not to drown the machines","Linux Rust execution","Flatpak cache retention after migration (#1801)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md#flatpak-cache-retention-after-migration-1801","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/ci-tooling.md","text":"[CI and build tooling: how not to drown the machines \u203a Linux Rust execution \u203a Flatpak cache retention after migration (#1801)]\nThe production build restores one projected Actions archive containing\n`.flatpak-builder/cache` and `.flatpak-builder/ccache`. A miss builds cold;\nthe old whole-builder and standalone compiler migration restores are retired.\nCurrent builds reset counters after restoration and still execute the full\nbuild, export and validators before trusted publication.\n\nThe obsolete standalone compiler family no longer reserves 200 MiB. The\n[saved policy replay](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-flatpak-legacy-retirement.md)\nrecords the declaration reduction and unchanged deletion plans. This snapshot\nhas no standalone entries to reclaim; global overcommit and native architecture\nretention remain open in #1801.\n\nThe [allocation and version-retention follow-up](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-22-cache-allocation-followup.md)\nmaps all 25 remaining families, records overlapping publications and an actual\nregistry deletion across different host/container Actions versions, and links\nthe existing upstream identity defect. Its portable replay separates observed\ndeletions from hypothetical plans; global allocation remains unresolved.","chars":1412,"tokens_est":353,"sha256":"6974b8b579d2efcf02e2ec19d904cc86cdad75c432bd2f672f577f398792509a"},{"id":"docs-draft-pr-handoff-1845#zackees-draft-pr-handoff-obs-repository-only","doc":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Zackees draft PR handoff \u2014 OBS repository only"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md#zackees-draft-pr-handoff--obs-repository-only","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md","text":"[Zackees draft PR handoff \u2014 OBS repository only]\nTracking issue: [#1845](https://github.com/obs-rust/obs-studio/issues/1845).\nSnapshot: **2026-10-22 23:32 UTC**, master `582a4c3ed`.\n\nThe maintainer requested a handoff of Zackees's draft PRs in\n`obs-rust/obs-studio`. Work is limited to this repository. Do not resume earlier\nFastLED, fbuild, template, toolchain or other cross-repository tasks. This\nhandoff does not transfer another worker's active implementation claim.","chars":471,"tokens_est":118,"sha256":"cf212c91dfd1ceea67093bd2f75b8f096eef2b114e32e7097286c4cedcbeb91a"},{"id":"docs-draft-pr-handoff-1845#zackees-draft-pr-handoff-obs-repository-only-current-drafts-1723-independent-nat","doc":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Zackees draft PR handoff \u2014 OBS repository only","Current drafts","#1723 \u2014 independent native architecture cache retention"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md#1723--independent-native-architecture-cache-retention","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md","text":"[Zackees draft PR handoff \u2014 OBS repository only \u203a Current drafts \u203a #1723 \u2014 independent native architecture cache retention]\n- [PR](https://github.com/obs-rust/obs-studio/pull/1723), branch\n  `infra/1269-native-architecture-retention`.\n- Verified head: `1f7f7944854e35114fdf3b94c4c80bd8e48fdaed`.\n- Tracks [#1801](https://github.com/obs-rust/obs-studio/issues/1801) and\n  [#782](https://github.com/obs-rust/obs-studio/issues/782), under #1667.\n  The original #1269 is closed.\n- **Hold: revise; do not merge unchanged.** Splitting Windows/macOS architecture\n  families prevents one architecture replacing another's seed, but does not\n  supply global capacity. Preserve the recorded deletion/replay evidence.\n- The candidate's original arithmetic was 16,433,912,216 declared bytes against\n  10,737,418,240 bytes. Its body also records conditional later reservation\n  retirement. These are historical configuration calculations; recompute against\n  the actual current configuration before proposing adoption.\n- Next: reconcile all live writers, architecture variants, growth, overlap and\n  qualified transport under #1801. Do not shrink working compiler caches merely\n  to fit declarations, raise the budget or adopt unqualified release transport.","chars":1243,"tokens_est":311,"sha256":"b3f455dd7b59537ff7a1fd2008aa0325416316cfd21fd8f04dd5d06cd90d2599"},{"id":"docs-draft-pr-handoff-1845#zackees-draft-pr-handoff-obs-repository-only-current-drafts-1838-ci-performance-","doc":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Zackees draft PR handoff \u2014 OBS repository only","Current drafts","#1838 \u2014 CI performance handoff and native measurement scope"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md#1838--ci-performance-handoff-and-native-measurement-scope","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md","text":"[Zackees draft PR handoff \u2014 OBS repository only \u203a Current drafts \u203a #1838 \u2014 CI performance handoff and native measurement scope]\n- [PR](https://github.com/obs-rust/obs-studio/pull/1838), branch\n  `infra/1801-native-measurement-scope`.\n- Verified head: `72131b3a519b725d1a7a5d184611b3183ac387ac`.\n- **Maintainer-paused: do not queue or automatically launch experiments.**\n- Its detailed [handoff document at the captured head](https://github.com/obs-rust/obs-studio/blob/72131b3a519b725d1a7a5d184611b3183ac387ac/docs/ci-evidence/2026-10-22-ci-performance-handoff.md)\n  and compressed companion retain evidence, hashes, limitations and commands.\n  Use those rather than reconstructing experiments from this summary.\n- Scope is default-off routing for a future native-cache measurement. Its\n  reported local checks passed; the latest check query found no pending/failed\n  checks. That does not remove the explicit maintainer hold or qualify a backend.\n- Remaining subjects include capacity/version retention, AppImage publication\n  and freshness, strict native compiler/SDK matching, and full measurement costs.\n  Preserve failures and distinguish transfer/cache hits from actual compiler reuse.","chars":1191,"tokens_est":298,"sha256":"50bc48d71e48cf87b8a5996886e7c821d3295dcce5d2efcee5d3de412bb8314f"},{"id":"docs-draft-pr-handoff-1845#zackees-draft-pr-handoff-obs-repository-only-current-drafts-1844-native-c-langua","doc":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Zackees draft PR handoff \u2014 OBS repository only","Current drafts","#1844 \u2014 native C++ language standards in the shared test graph"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md#1844--native-c-language-standards-in-the-shared-test-graph","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md","text":"[Zackees draft PR handoff \u2014 OBS repository only \u203a Current drafts \u203a #1844 \u2014 native C++ language standards in the shared test graph]\n- [PR](https://github.com/obs-rust/obs-studio/pull/1844), branch\n  `infra/1332-native-language-standards`.\n- Verified head: `6b6ed3a0db97c76fb8ba936ff6e7d97721361348`.\n- Tracks [#1332](https://github.com/obs-rust/obs-studio/issues/1332).\n- RED contract: mixed C/C++20 executable in the existing application test binary;\n  preserve C compilation, require C++ `consteval`/`std::bit_width` and ISO mode,\n  exercise both CMake and Cargo consumers, reject invalid standards.\n- Reported local RED rejects the absent `cpp_standard` field. Initial RED commit\n  `bafc7a9b3`; the captured head tightens the CMake extension-property assertion.\n- [PR run 39871147510](https://github.com/obs-rust/obs-studio/actions/runs/39871147510)\n  has failed Fast Gate and required CI Gate. Inspect actual logs and current\n  implementation ownership before making changes; do not infer all failure\n  details from the local RED description.\n- Next implementation: carry typed C++ standards through the shared target and\n  both consumers, then migrate applicable unchanged Qt-free C++ tests. Preserve\n  all assertions, source/header contracts and the existing executable budget.\n  CMake remains authoritative; this does not complete #1332.","chars":1343,"tokens_est":336,"sha256":"4cebd431c5f5a1e5deef570daea3f6df02c9f308470d77041a8c9e8349b225f1"},{"id":"docs-draft-pr-handoff-1845#zackees-draft-pr-handoff-obs-repository-only-completed-items-that-must-not-be-re","doc":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Zackees draft PR handoff \u2014 OBS repository only","Completed items that must not be restarted"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md#completed-items-that-must-not-be-restarted","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md","text":"[Zackees draft PR handoff \u2014 OBS repository only \u203a Completed items that must not be restarted]\n- [#1772](https://github.com/obs-rust/obs-studio/pull/1772) merged as\n  `5208e989a3311f4cb295ff78e813af32465c4477` after refreshed native CI passed.\n  Its earlier macOS media-seek failure was a baseline issue fixed by #1775.\n- [#1805](https://github.com/obs-rust/obs-studio/pull/1805) is merged. Captured\n  final head: `f6b0c25127aac5bc835cb0fd45fc71823d7b26e2`. Earlier running jobs and\n  partial test-graph inventories are historical; inspect merged source for the\n  current graph before continuing #1844.\n- A duplicate local #1772 merge was never pushed: another worker published the\n  identical tree first. The temporary worktree/branch was removed after equality\n  verification. No unique implementation remains in that scratch checkout.","chars":836,"tokens_est":209,"sha256":"40e3c415a992723cf230711aeb61885f435e4ce0b9e0d7371d954b96d94d335c"},{"id":"docs-draft-pr-handoff-1845#zackees-draft-pr-handoff-obs-repository-only-resume-procedure","doc":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Zackees draft PR handoff \u2014 OBS repository only","Resume procedure"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md#resume-procedure","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md","text":"[Zackees draft PR handoff \u2014 OBS repository only \u203a Resume procedure]\n1. Read `AGENTS.md`, `.claude/skills/obs-worker/SKILL.md`, coordination and testing\n   policy, `docs/ci-tooling.md`, and `BUILD.md` when native sources/builds apply.\n   Read current issue claims and PR descriptions before choosing a unit.\n2. Start clean and fetch/rebase onto `origin/master`. Use an owned branch; do not\n   overwrite another worker's checkout or fresh claim.\n3. Query the direct PR API as well as individual PR records. A previous draft\n   search returned an empty list while direct records proved drafts still open.\n\n   ```sh\n   gh api 'repos/obs-rust/obs-studio/pulls?state=open&per_page=100' \\\n     --jq '[.[] | select(.draft and ((.user.login | ascii_downcase) == \"zackees\")) | {number,title,head:.head.sha}]'\n   gh pr view 1844 --repo obs-rust/obs-studio --json body,headRefOid,statusCheckRollup\n   gh pr view 1838 --repo obs-rust/obs-studio --json body,headRefOid,statusCheckRollup\n   gh pr view 1723 --repo obs-rust/obs-studio --json body,headRefOid,statusCheckRollup\n   ```\n\n   Follow pagination if there are more than 100 open PRs. Revalidate each exact\n   head and any newly opened drafts; this document is a snapshot, not live state.\n4. For a failure, inspect the current run/job log first. Re-poll confirmed live\n   handles; an observation timeout or inconsistent summary is not a terminal\n   result. Do not restart unchanged workflows to seek a passing result.\n5. Implement only the chosen authorized unit, RED then GREEN, with required\n   native/differential/protocol coverage. Use `soldr cargo` and `uv run`/`uvx`.\n   Do not edit existing C/C++ tests or public headers to accommodate a port.\n6. Keep #1723/#1838 held until their documented conditions are resolved. Do not\n   add workflows, dispatch expensive experiments, alter paid storage or bypass\n   merge gates as part of this handoff. Queue ready changes normally after the\n   actual required CI Gate passes.","chars":1964,"tokens_est":491,"sha256":"f752f73bafaf875a6d79db7bfbda0063b86da09089a31365a947232743f92ce4"},{"id":"docs-draft-pr-handoff-1845#zackees-draft-pr-handoff-obs-repository-only-handoff-validation-and-limits","doc":"docs-draft-pr-handoff-1845","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Zackees draft PR handoff \u2014 OBS repository only","Handoff validation and limits"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md#handoff-validation-and-limits","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/draft-pr-handoff-1845.md","text":"[Zackees draft PR handoff \u2014 OBS repository only \u203a Handoff validation and limits]\nThis change is documentation only. PR states, immutable heads, issue states and\ncheck results above were queried directly during handoff. No application code,\ntest assertion, workflow, cache policy or external repository was changed.\nNo new build or expensive experiment was launched. This handoff does not claim\nthe migration, global capacity work or remaining drafts are complete.","chars":463,"tokens_est":116,"sha256":"009fe33c93ffd1a7dd179ca61eadd6a6276df79a82d4b610bd7cbd94ecb1e589"},{"id":"docs-fallback-warning#fallback-warning","doc":"docs-fallback-warning","group":"docs","tier":"process","kind":"prose","breadcrumb":["Fallback warning"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md#fallback-warning","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md","text":"[Fallback warning]\nSome features of OBS-Studio-Rust have a safe mode and a less safe fallback\nmode. When the safe mode cannot work, the feature uses the fallback, so that\nthe user does not lose the feature. Examples:\n\n| Feature | Safe mode | Fallback |\n|---|---|---|\n| Browser source (#1092) | Chromium sandbox | No sandbox |\n| Streaming (#2205) | RTMPS | RTMP |\n\nThe fallback must never be silent (decision on #1092). This document gives\nthe rules for every fallback, and the shared code that applies them\n(obs-rust/obs-studio#2218).","chars":534,"tokens_est":134,"sha256":"bdacfb38a6128a01994800bd2aa14975f1de7af7d02786e9ffe82a967e4b5778"},{"id":"docs-fallback-warning#fallback-warning-rules","doc":"docs-fallback-warning","group":"docs","tier":"process","kind":"prose","breadcrumb":["Fallback warning","Rules"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md#rules","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md","text":"[Fallback warning \u203a Rules]\n1. Log the fallback at error level, once for each time it occurs. The log\n   line also goes to stderr.\n2. Warn the user in a dialog. The dialog shows what fell back and why, and a\n   countdown. When the countdown ends after 3 seconds, the dialog accepts the\n   fallback. The countdown pauses while another modal dialog is open, so the\n   dialog never accepts unseen.\n3. The dialog has an \"Accept anyway\" button. It has a Cancel button only when\n   the caller can stop instead of using the fallback. Then Cancel is the\n   default button.\n4. Each fallback shows its dialog once in an OBS session. The log line comes\n   every time.\n5. Do not show a dialog when the user cannot see it: before the main window\n   has loaded, and while another modal dialog is open (for example the\n   first-run wizard), the warning waits; with a hidden main window (OBS\n   started to the tray), the warning accepts at once.\n6. Each dialog says: \"This may become an error in a future version of OBS.\"\n   A fallback is a temporary help, not a supported mode.\n7. Do not fall back when a security check fails. For example, a certificate\n   that does not verify is an error, not a reason to use RTMP.","chars":1200,"tokens_est":300,"sha256":"1272ec7307e315965efa626330a78d2cb8b99f6e92a14bdc01864bf9d7f29cd7"},{"id":"docs-fallback-warning#fallback-warning-wording","doc":"docs-fallback-warning","group":"docs","tier":"process","kind":"prose","breadcrumb":["Fallback warning","Wording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md#wording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md","text":"[Fallback warning \u203a Wording]\nEvery fallback uses the same words, so the user knows the case at once:\n\n- **Title:** what runs, and without what. For example \"Browser source\n  without the sandbox\", \"Streaming unencrypted (RTMP)\".\n- **Message:** what failed, what OBS does instead, and what the user can do\n  about it, in this order. One or two short sentences each.\n- **Terms:** \"sandbox\" for the Chromium sandbox, \"unencrypted\" for a\n  connection without TLS. Do not use \"insecure\" or \"unsafe mode\".\n- **Buttons:** \"Accept anyway\" and \"Cancel\". The frontend supplies them.\n- **Id:** `<plugin>.<fallback>`, for example `browser.sandbox`,\n  `rtmp.unencrypted`. It is in the log line.\n\nA new fallback uses this helper, not a dialog of its own. Existing\nwarnings change to this wording case by case.","chars":794,"tokens_est":198,"sha256":"638e5c037845f0c1ba621a08173c821ed0e922c71c36ca18c305f26a117041b5"},{"id":"docs-fallback-warning#fallback-warning-how-to-use-it","doc":"docs-fallback-warning","group":"docs","tier":"process","kind":"prose","breadcrumb":["Fallback warning","How to use it"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md#how-to-use-it","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md","text":"[Fallback warning \u203a How to use it]\nA plugin calls `obs_frontend_warn_fallback()` from `obs-frontend-api.h`:\n\n```c\nstatic void sandbox_answer(void *param, bool accepted)\n{\n\t/* accepted: continue in the fallback mode. */\n}\n\nobs_frontend_warn_fallback(\"browser.sandbox\", obs_module_text(\"SandboxFallback.Title\"),\n\t\t\t   obs_module_text(\"SandboxFallback.Message\"), false, sandbox_answer, data);\n```\n\n- `id` is a stable name. Use `<plugin>.<fallback>`.\n- The caller translates `title` and `message`.\n- `cb` is called once. While OBS runs, it is called on the UI thread and\n  never inside the call. Keep `param` valid until then. `cb` can be NULL.\n- Without the OBS frontend (another host of the plugin), and after OBS has\n  begun to shut down, the call logs and calls `cb` with `true` inside the\n  call.\n\nThe API reference is in\n[reference-frontend-api.rst](sphinx/reference-frontend-api.rst).","chars":887,"tokens_est":222,"sha256":"141c733d596bdf1b86bde8db85ab62c1138d439868098b34fc4ba5555c59fb26"},{"id":"docs-fallback-warning#fallback-warning-code","doc":"docs-fallback-warning","group":"docs","tier":"process","kind":"prose","breadcrumb":["Fallback warning","Code"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md#code","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/fallback-warning.md","text":"[Fallback warning \u203a Code]\n| Part | Location |\n|---|---|\n| Decisions: show or accept, what each end means, the countdown, the log line | `rust/obs-fallback-warning` (Rust, tested in its crate) |\n| C ABI of the decisions | `frontend/utility/obs-fallback-warning.h`, linked through `rust/obs-frontend` |\n| Queue: log at once, wait for the main window, one dialog at a time | `frontend/utility/FallbackWarning` |\n| Dialog | `frontend/dialogs/OBSFallbackWarning` |\n| API | `obs_frontend_warn_fallback()` in `frontend/api` and `OBSStudioAPI` |\n\nWithout the frontend's Rust (the C rollback build), the frontend logs and\naccepts, and shows no dialog.\n\nTests: `test_fallback_warning_dialog`, `test_fallback_warning_queue` and\n`test_frontend_warn_fallback` in `test/cmocka` (Linux).","chars":772,"tokens_est":193,"sha256":"95655f4f3906b122ef009e062a8f843d56c576464aa6709ad8249a32865b3f5f"},{"id":"docs-feature-sources#feature-sources","doc":"docs-feature-sources","group":"docs","tier":"process","kind":"prose","breadcrumb":["Feature sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/feature-sources.md#feature-sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/feature-sources.md","text":"[Feature sources]\nOther projects we can borrow features, UX and code from. Before copying code,\ncheck that its license is compatible with GPL-2.0-or-later and keep its\ncopyright notice; borrowing an idea or a design needs neither.\n\n| Project | License | What to borrow |\n|---|---|---|\n| [omacom/monologue](https://github.com/omacom/monologue) | MIT | See below |","chars":362,"tokens_est":90,"sha256":"5e8d9b92db61707e6051f14f7d6604bc0a6105a18b12a0cc2a07cfbefdabc5dd"},{"id":"docs-feature-sources#feature-sources-omacom-monologue","doc":"docs-feature-sources","group":"docs","tier":"process","kind":"prose","breadcrumb":["Feature sources","omacom/monologue"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/feature-sources.md#omacommonologue","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/feature-sources.md","text":"[Feature sources \u203a omacom/monologue]\nA Qt 6 / C++17 webcam recorder for Omarchy (Linux). Its record-then-edit flow\nis much simpler than OBS's for a single camera take. Features worth copying:\n\n- **Take editor after recording:** stop a take and it opens in a built-in\n  editor: split it into clips on a filmstrip, trim each clip with handles,\n  remove clips, undo and redo. Edits never touch the original file.\n- **Pause marks:** pausing and resuming a take is recorded on the timeline,\n  and split points and trim handles snap to those marks.\n- **Device memory by ID:** the camera and microphone are remembered by device\n  ID, and a missing device is reported instead of silently switching to\n  another one.\n- **Automatic capture format:** picks the camera's highest advertised\n  resolution, preferring 30 fps at that resolution.\n- **Microphone meter:** live level with peak hold and clipping indication,\n  still running while paused, without monitoring through the speakers.\n- **Explicit \"No audio\" option** for silent recordings.\n- **Atomic save** of the H.264/AAC MP4, keeping the original recording.\n- **Keyboard-first controls:** Space records, pauses and resumes; Enter stops\n  and opens the editor; editor keys for split, remove, jump to the previous or\n  next pause, zoom and save.","chars":1289,"tokens_est":322,"sha256":"5dbf5d4c1dd4494fe49e806201ff2c5d03ad27495591d4503d36ca018a7055f4"},{"id":"docs-features#features-ledger","doc":"docs-features","group":"docs","tier":"reference","kind":"prose","breadcrumb":["Features ledger"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#features-ledger","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger]\nEverything OBS-Studio-Rust does differently from upstream OBS Studio, for a\nuser: new features, changed behavior, and fixed upstream bugs. A pull\nrequest announces a change once; this file keeps the list (#1250).\n\nIt covers every pull request merged up to 2026-10-17 (#1250): 698 merged\npull requests were sorted, and CI, test, build, port and refactoring work\nwas left out.","chars":392,"tokens_est":98,"sha256":"dd616d6234bd8f3623f6d2bd260c1f412b8eaaee756bac852c44c068e1ea41fd"},{"id":"docs-features#features-ledger-how-to-add-an-entry","doc":"docs-features","group":"docs","tier":"reference","kind":"prose","breadcrumb":["Features ledger","How to add an entry"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#how-to-add-an-entry","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a How to add an entry]\nA pull request with a user-visible change adds its line here, in the same\npull request ([coordination.md](rust-port/coordination.md), section 4).\nUser-visible means: new or changed behavior, a setting, UI, log output, a\nprotocol field, a supported platform or package, or a fix for a bug a user\ncan notice. CI, tests, ports with no change in behavior and refactors do\nnot get a line.\n\n- Put the line in the area that fits, or add an area.\n- One line per feature, not per pull request. A follow-up pull request adds\n  its link to the existing line, and updates the text if the behavior\n  changed.\n- Write what changes for the user, not how the code works.\n- Format:\n\n  ```markdown\n  - **Short name.** What changes for the user. *Platforms*, merge date.\n    Issue [#N](https://github.com/obs-rust/obs-studio/issues/N), PRs\n    [#N](https://github.com/obs-rust/obs-studio/pull/N).\n  ```\n\n  *Platforms* is `All`, or a list of `Linux`, `Windows` and `macOS`. The\n  merge date is the date of the first pull request that shipped the\n  feature (`YYYY-MM-DD`, UTC).\n- A fixed upstream bug goes in [Fixed upstream bugs](#fixed-upstream-bugs),\n  in its area and in merge order. It has no bold name: the line starts with\n  the symptom that is gone, and ends with the upstream issue\n  (obsproject/obs-studio#N, obsproject/obs-websocket#N) when there is one.\n- A fix for a bug that the fork itself added goes on the line of the\n  feature it fixes, not on a line of its own.","chars":1499,"tokens_est":375,"sha256":"01e7d614ef55a0d6b385b2d629d61efc0722a6791a58ac1b5aaa10bd39dce32f"},{"id":"ledger:1939","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features",""],"url":"https://github.com/obs-rust/obs-studio/pull/1939","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features]\n**Hybrid Rust/C application build.** Completed Rust ports replace their C equivalents in the normal application; unported components remain available. Property parameter destructors observe the original parameter during replacement (C API compatibility; #1938, #1939). Property destructors that remove or add groups run each callback once, and a removed group stays readable in its own destructor (C API compatibility; #1943). Settings retain valid JSON members when a plugin produces NaN or infinity, and recover valid backups when local JSON contains invalid UTF-8. *All*, 2026-10-21. Issue #1587, PR #1588. Plugin string edits preserve converted strings even when their recorded capacity is zero. Issue #1941, PR #1945. Persistence fix: issue #1940, PR #1946.","chars":791,"tokens_est":198,"sha256":"3f7b69ea616c31ea0db4bc2760def48ef05eefcffecb079396299885ea593db9"},{"id":"ledger:4466","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/4466","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**MCP starts without X11.** The headless host uses an available Wayland compositor or X server, and serves control requests without either display. Video operations report unavailability when no display can create graphics. *Linux*, 2026-11-09. Issue #4464, PR #4466.","chars":322,"tokens_est":80,"sha256":"cb243cdeee741e5d22f1a7b737f7854747326ac7e97b6eb02daad5684f28e099"},{"id":"ledger:4454","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/4454","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**Bounded MCP waits.** Agents can wait for typed output/source/media/metric conditions and request automatic waits on starts, without GUI interaction or fixed sleeps. Timeouts return the last observation. *All*, 2026-11-09. Issue #4447, PR #4454.","chars":301,"tokens_est":75,"sha256":"eb94c3372b5afb90fc991a22e30cb82996b66891c0cf59588ec0cc365c71fd1e"},{"id":"ledger:4452","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/4452","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**Virtual device and media control.** MCP can start/stop Virtual Camera, inspect its paired mic, restart media, inspect pipeline graphs and read/reset measured stage counters. Unmeasured device/sync values stay null. *All* (device support depends on the loaded plugin), 2026-11-09. Issue #4446, PR #4452.","chars":359,"tokens_est":90,"sha256":"1160335523f83ae7ec17a999f5792559ac60ab2672648df6f881daa11b4844a3"},{"id":"ledger:4450","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/4450","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**Typed MCP control.** Existing OBS MCP tools publish input and output schemas, structured results and machine-readable domain errors. Read operations carry annotations, and repeated output start/stop calls succeed with current state. *All*, 2026-11-09. Issue #4445, PR #4450.","chars":331,"tokens_est":83,"sha256":"963da1e0cd7238483cd19b32174aa5453c14526d585a300b6841b4e7c28e7289"},{"id":"ledger:810","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/810","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**`--disable-shutdown-check` works again.** After an unclean stop (power loss, OOM killer, a hard stop of the VM or container), OBS starts without the \"Crash Detected\" dialog and logs the unclean shutdown as a warning on line 1. *All*, 2026-10-15. Issue #809, PR #810.","chars":323,"tokens_est":81,"sha256":"5da03cd3ba4a040712de08b6422d5d7492c8d7bc6ce278fb9a50f7d1fa62f52a"},{"id":"ledger:816","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/816","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**Settings from before OBS 31 are migrated.** Settings without `LastVersion` no longer open the first-run wizard, which on a headless display was hidden and disabled all outputs. *All*, 2026-10-15. Issue #815, PR #816.","chars":273,"tokens_est":68,"sha256":"3a51175b3d13879cfec0f0b3da56ab4a8eb75fbbe7e65883f3a8a870d6c1e7fd"},{"id":"ledger:818","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/818","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**Refused output starts are logged.** A start of streaming, recording, the replay buffer or the virtual camera that is refused while outputs are disabled writes a log line, where before obs-websocket replied \"success\" and nothing happened. *All*, 2026-10-15. Issue #817, PR #818.","chars":334,"tokens_est":84,"sha256":"7b9ab511daf8f273404d6d98f0d0c5ea6034099d233cdb0896b153527def3fcd"},{"id":"ledger:812","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/812","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**obs-websocket changes are saved.** Requests that change the scene collection (volume, mute, input settings, transforms and others) save it, so a crash or a hard stop no longer loses them. *All*, 2026-10-16. Issue #811, PR #812.","chars":284,"tokens_est":71,"sha256":"eaaedb628418f87d02a85135628a5bd3cdc5e84e0640d0ef63536de398f2c14c"},{"id":"ledger:30","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Headless and automation"],"url":"https://github.com/obs-rust/obs-studio/pull/30","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Headless and automation]\n**`obs-stream-rust` command-line tool.** Starts, stops and toggles the stream of a running OBS and shows its status through obs-websocket v5, with password support, IPv6 hosts and a `--json` flag for scripts. *All*, 2026-10-10. Issue #96, PRs #30, #276, #277.","chars":314,"tokens_est":78,"sha256":"13e54bba4c82c78612795627c123e5bd1bd1756739b0f731baeb68735bb4ab50"},{"id":"ledger:890","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","GPU status"],"url":"https://github.com/obs-rust/obs-studio/pull/890","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a GPU status]\n**GPU acceleration light.** A light in the status bar shows whether OBS renders on a hardware GPU (green), in software on a machine without a GPU (yellow), or in software although a GPU is present, after a graphics failure or over the frame budget (red). Clicking it explains the state and quotes the graphics log lines, including the D3D11 adapter selected on Windows. Legacy Mesa Software Rasterizer and Apple Software Renderer are recognized as CPU rendering. The startup log and `GetStats.gpuAcceleration` in obs-websocket have the same state (gpu-status.md). *All*, 2026-10-15. Issues #846, #942, #943, #944, #946, #1003, #1005, #1225, PRs #890, #894, #929, #958, #960, #963, #1006, #1010, #1018, #1035, #1178, #1226.","chars":764,"tokens_est":191,"sha256":"ea141c88ecfc765f6ebfe5d09d754bb57c006eb89657ca3e34b1468af3011dd1"},{"id":"ledger:1194","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","GPU status"],"url":"https://github.com/obs-rust/obs-studio/pull/1194","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a GPU status]\n**`GPU: x%` label.** The light shows the render GPU's utilization next to the CPU usage, or `CPU rendering` in software; obs-websocket gets the same reading. NVML process sampling keeps a separate window for each GPU and PID, and falls back to the older API when a GPU cannot use the newer one. Sources: NVML for NVIDIA and `gpu_busy_percent` for AMD on Linux, IOKit on macOS, the PDH `GPU Engine` counters on Windows (every vendor). *All*, 2026-10-17. Issues #1020, #1021, #1022, #1024, #1025, #1026, PRs #1194, #1195, #1198, #1222, #1224, #1228, #1233, #1236, #1238, #1262, #1264.","chars":624,"tokens_est":156,"sha256":"cee57804366c8e58fa912f4d47a6267faa94e55466e840cfda14b31c6e4dc790"},{"id":"ledger:3525","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/3525","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**V4L2 settings updates preserve the running camera format.** Changing a live option keeps the negotiated resolution and framerate, including when their setting is Unchanged. Timeout and automatic reset changes apply while capture continues. *Linux*, pending merge. Issue #3506, PR #3525.","chars":333,"tokens_est":83,"sha256":"0744fc58a54c6d0c309a95a95ec7c32d00db6c45d17256032d7c1d6fdc5e9ff6"},{"id":"ledger:3517","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/3517","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**X11 screen capture keeps the graphics thread moving.** Screen capture repeats the last completed picture while the X server prepares the next one, instead of waiting for each image and cursor reply. Capture adds one graphics tick of latency. *Linux*, pending merge. Issue #3204, PR #3517.","chars":335,"tokens_est":84,"sha256":"aece476593ea19473fda1c3ee2246219d7f9599bd128d8d2c115e0edff277ff8"},{"id":"ledger:1534","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1534","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**reject duplicate inputs after scaler reentry.** One disconnect removes a video input even when scaler creation reenters registration. *All*, 2026-10-20. Issue #1529, PR #1534.","chars":222,"tokens_est":56,"sha256":"01dd7a3e029b87bfcec4eba863c79a61e7990ac4d919a0094a74a846ab0bfe58"},{"id":"ledger:800","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/800","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**Busy V4L2 cameras are recovered.** When another process holds a V4L2 camera, OBS names that process, offers a Force Camera button and opens the camera when it is free. *Linux*, 2026-10-15. Issue #799, PR #800.","chars":256,"tokens_est":64,"sha256":"89040165a95254b02fc81c1196136e9edc75fbf6fb1649b4bfc584573767b279"},{"id":"ledger:3725","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/3725","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**Camera-busy warning: Close it, Ignore, Always allow.** When a V4L2 camera OBS uses is busy, or another program opens it while OBS has it, OBS names every program holding it (app and PID) in a window of the main window and waits for a click: Close it (SIGTERM, then SIGKILL after 2 s), Ignore, or Always allow (never warn about that app again; kept in the user config). One warning per camera and app at a time, at most once a minute after an answer; each one is logged. It never takes the focus while OBS is in the background. *Linux*, 2026-11-05. Issue #3724, PR #3725.","chars":617,"tokens_est":154,"sha256":"3c5eca51d4a2aaed6e2b7dd99a9965d3043b97cbccd4139ed1d272b4c437cfee"},{"id":"ledger:camera-busy-warning-names-a-holder-found-on-a-re","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**Camera-busy warning names a holder found on a retry, and Quit asks first.** When the first look misses the program holding a busy camera, the next retry that finds it replaces the \"another program\" warning with one that names it (app and PID). The Close it button is now \"Quit <app>\" (\"Quit zoom\") and asks for confirmation before it ends the program; it is offered only for programs of the same user. *Linux*, 2026-11-06. Issue #3726.","chars":482,"tokens_est":120,"sha256":"720c4aa29a3cbf926707c485c8f3fa5e43521d1664a106cbcb91a8a2877a209e"},{"id":"ledger:386","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/386","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**Option to not restore V4L2 camera controls.** A V4L2 camera source has the option \"Restore camera controls when the camera connects\", so an external PTZ controller can keep control of the camera. *Linux*, 2026-10-12. Issues #385, #976, PRs #386, #977.","chars":298,"tokens_est":74,"sha256":"fee024bb7fa0e83b8e2e3fa6dd5c61f1aa562c55ab9181d53877c2f1b78091ba"},{"id":"ledger:1544","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1544","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Video capture]\n**Video scaler buffer ownership.** A video input replaced during scaling cannot inherit the old registration's scaler buffers. *All*, 2026-10-20. Issue #1540, PR #1544.","chars":213,"tokens_est":53,"sha256":"23b084ad8ee785f01aa7b688c73f187260b161fa2a24e228d4a841bab08776bd"},{"id":"ledger:1104","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/1104","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Audio]\n**ALSA captures 24-bit devices at 24 bits.** A USB audio interface that offers `S24_3LE` and `S16_LE` is opened at 24 bits, where before OBS tried 16 bits first. *Linux*, 2026-10-16. Issue #1103, PR #1104.","chars":242,"tokens_est":60,"sha256":"32a7b99772f533707d9bf50a712d6e7e1c4608e4f1387a63bf9525f372f41d90"},{"id":"ledger:2933","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/2933","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Audio]\n**ALSA audio comes back after a USB replug.** An Audio Capture Device (ALSA) source whose USB device is unplugged and plugged in again captures again within a few seconds, instead of staying silent with its capture thread at full CPU. The log says once that the device went away and once that it captures again. *Linux*, 2026-10-29. Issue #2924, PR #2933.","chars":392,"tokens_est":98,"sha256":"43f504260ade1212f380c985ca1924f4dd649e1e22054057cb2428c4613d6755"},{"id":"ledger:3752","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/3752","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Audio]\n**NDI audio on its own clock stays in the mix.** An NDI source whose sender stamps its audio and video on different clocks, such as NDI Test Patterns through DistroAV, is heard in the mix and in recordings again. Since 2026-10-13 its audio dropped out for minutes at a time, a source recording of it started late or not at all, and OBS could hang at quit with a source-record filter on it. *All*, pending merge. Issue #3747, PR #3752.","chars":471,"tokens_est":118,"sha256":"45585a310fff32902a15aebb22906b563662a618485981d35f0baf92e14447e8"},{"id":"ledger:ndi-audio-on-its-own-clock-stays-clean-on-a-busy","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Audio]\n**NDI audio on its own clock stays clean on a busy machine.** Audio stamped on a clock apart from its video keeps a timing of its own, so the video's frames no longer re-place each packet by when it arrived: on a loaded CPU the tone of such a source no longer breaks up into gaps and overlaps (73\u201389 % of the program instead of 93 %). *All*, pending merge. Issue #3747.","chars":406,"tokens_est":102,"sha256":"d3c6a660c688bc3e9baa43b346f5d6dc3d99d0c2a1f37abc4b5be5cb3ea9a85a"},{"id":"ledger:ndi-audio-on-its-own-clock-stays-in-sync-with-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Audio]\n**NDI audio on its own clock stays in sync with a fast sender.** Audio whose sender clock runs faster than the computer's no longer plays later and later (about 0.2 s an hour at 50 ppm, without a limit): OBS takes its timing again when it runs more than 70 ms ahead. Each such step skips about 60 ms of audio, once every 23 minutes at 50 ppm; a smooth correction is #4182. *All*, pending merge. Issue #4143.","chars":444,"tokens_est":111,"sha256":"124eeb2ae44acaca8c132d0bd58f34b82f220c7ecdca7b13b2116ba09f556d33"},{"id":"ledger:ndi-audio-on-its-own-clock-follows-a-drifting-se","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Audio]\n**NDI audio on its own clock follows a drifting sender smoothly.** For audio stamped on a clock apart from its video, OBS turns on the resampler's clock drift compensation by itself: it takes out a drift of up to about 0.1 % (1000 ppm, a real sender is about 50 ppm) by resampling, so the delay stays the same and the 60 ms steps every 23 minutes stop. Only a faster drift still steps at 70 ms. Audio on its video's clock (cameras, microphones, media files) is not changed. *All*, pending merge. Issue #4182.","chars":545,"tokens_est":136,"sha256":"692eb5b250006d3202293da4aec1cb7b761211f42c2073589b1557a0c346042b"},{"id":"ledger:1841","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1841","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**Missing encoder reasons.** When a profile names a VA-API or Intel QSV encoder this OBS does not have, the Missing Encoders dialog says why instead of \"Unknown\", and how to fix it. For VA-API it names the cause: no GPU render device, an NVIDIA GPU (use NVENC), no access to the render device (with the `usermod` command), or no VA-API driver installed (with the install command for Debian/Ubuntu, Fedora or Arch), and logs it as a `VAAPI:` line. On Linux, for QSV it reads the Intel GPU's device id and names the runtime that generation needs (Intel Media SDK up to Ice Lake, oneVPL GPU runtime from Tiger Lake) with its install command, or says the GPU is too old for Quick Sync, or that the iHD driver or render access is missing, and logs it as a `QSV:` line (#1925). A build without QSV (the AppImage) says to pick another encoder for Streaming and Recording. *All*, pending merge. Issues #1720, #1862, PRs #1841, #1872.","chars":990,"tokens_est":248,"sha256":"4c731bc726ebe4a730dbfad305f4ff8fc09666d362da6a452f6c5d83fa293413"},{"id":"ledger:1879","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1879","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**QSV probe log.** On Linux, the OBS log has one `QSV probe:` line per GPU render device, with whether VA-API opened it, its driver and whether it encodes HEVC and AV1. That is what decides which Quick Sync encoders appear, so a log from real Intel hardware is enough to check and pin that decision in a test. *Linux*, pending merge. Issue #1863, PR #1879.","chars":421,"tokens_est":105,"sha256":"f53df8b3a41e05f5b7c18525669f95f1a4665892c08a47305de020aaf796c2cc"},{"id":"ledger:1883","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1883","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**Missing source types.** When a loaded scene collection has sources whose plugin this OBS does not have, a \"Missing Source Types\" warning lists them instead of leaving them blank without a word: browser sources (not in this build yet, with the Window Capture workaround), VLC, or the plugin type, with how many sources each. The sources keep their settings. Safe mode only logs it. *All*, pending merge. Issue #1865, PR #1883.","chars":492,"tokens_est":123,"sha256":"c48f2cef8b5f953b97f78af13280b63f6a58982837c7e47abd986853d641c699"},{"id":"ledger:1527","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1527","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**let buffered queues fit one chunk.** Large buffered recording chunks complete when the configured queue limit is smaller than a chunk. *All*, 2026-10-20. Issue #1526, PR #1527.","chars":243,"tokens_est":61,"sha256":"4e3586eb3634082bbf8c1561f4a012260a0aa3f99d3e31c05574e938bfcccc54"},{"id":"ledger:1464","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1464","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**FFmpeg output retry and encoder errors.** FFmpeg output can retry after a connection attempt that finishes before thread creation returns, and missing FFmpeg video encoders report an error using initialized message storage. *All*, pending merge. Split from PR #1464.","chars":333,"tokens_est":83,"sha256":"74da70f1e27a9f52be31b507345b61b3b24545b812b4844f3b2933227d62eb21"},{"id":"ledger:1464+","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1464","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**FFmpeg muxer error handling.** The FFmpeg recording muxer reports seek positions and rejects unsupported seeks correctly, cleans up safely when the recording file cannot be opened, exits with an error when writing or reading a packet fails, and restores argument ownership when opening a split recording fails (prevents a Windows double free). *All*, pending merge. Split from PR #1464.","chars":453,"tokens_est":113,"sha256":"d82dd2541140a98852a7cf88e5a879b50db5065bc914efe98a7da6973966caf2"},{"id":"ledger:1333","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1333","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**Codec availability follows the build.** MP4 and MOV outputs do not advertise HEVC when it was disabled at build time. *Linux*, pending merge. PR #1333.","chars":218,"tokens_est":54,"sha256":"048851049216502b61ef692bf542801d73eb93ac927ac70e1087b69d340cd367"},{"id":"ledger:1536","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1536","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**wake buffered producers after disk errors.** Buffered recording producers wake and report failure after a disk write error. *All*, 2026-10-20. Issue #1533, PR #1536.","chars":232,"tokens_est":58,"sha256":"d40b44038e95f91f3cd7d7677a84841235a17708e8e831a14aca7b132ef7cf91"},{"id":"ledger:162","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/162","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**Enhanced Broadcasting encoder controls.** Enhanced Broadcasting stream settings can turn off B-frames and lookahead and set the preset and tuning, for lower latency than the service settings give, and show a read-only preview of the encoding ladder the service sends. *All*, 2026-10-11. Issue #19, PRs #162, #181.","chars":380,"tokens_est":95,"sha256":"19c1f58af6ec5d3894f9b81d3940800dc8a9971fd95700cbbac021c1eb0aea18"},{"id":"ledger:3800","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/3800","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Encoding, streaming and recording]\n**Encrypted streaming where the service supports it.** Twitch, Vimeo, niconico, BoxCast, Bitmovin, Eventials and EventLive.pro stream over RTMPS (port 443) instead of plain RTMP, on every server checked to accept it; existing profiles switch too, with no setting to change. The nanoStream Cloud / bintu global ingest and global transcoding ingest use their verified RTMPS endpoints on port 1937; regional hosts stay unchanged (#2216, PR #3800). Restream.io's Autodetect host (`live.restream.io`) also uses its verified RTMPS endpoint on port 1937; its regional hosts stay unchanged (#2216). If the encrypted connection cannot be made, the shared fallback warning (\"Streaming unencrypted (RTMP)\") counts down three seconds and then streams to the same server over plain RTMP, unless you cancel; the fallback is written to the log and to stderr. Without trusted root certificates on the system, the warning says so and suggests installing the system's CA certificates. A server certificate that does not verify stops the start instead. Custom servers are unchanged. *All*, pending merge. Issue #2205.","chars":1163,"tokens_est":291,"sha256":"08cdad9c38394ff32900364a33b0c0489c9154225a65d9625f682903a54884d8"},{"id":"ledger:1016","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1016","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Sources and filters]\n**Bundled default font for text.** The Text (FreeType 2) source uses the bundled JetBrainsMono Nerd Font as its default on every OS. *All*, 2026-10-16. Issue #1012, PR #1016.","chars":225,"tokens_est":56,"sha256":"edab812bedf27cc249485c7aabc280d89de29d0f42fa1584e920281fe790fb97"},{"id":"ledger:1948","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1948","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Sources and filters]\n**Chromium 156 with H.264/AAC for browser sources.** Linux x86_64 builds use CEF 8078 (Chromium 156), built by obs-rust with proprietary codecs, so browser sources and panels play H.264/AAC media. *Linux*, 2026-10-23. Issue #1864, PR #1948.","chars":291,"tokens_est":73,"sha256":"6b9b9ac4e2911967b425ce417036c60d6033dcd45e28bc258fe20b6733909954"},{"id":"ledger:2378","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/2378","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Sources and filters]\n**Chromium sandbox for browser sources on Linux and macOS.** Browser sources and panels run in Chromium's sandbox where it can work. On Linux: with unprivileged user namespaces, or with a `chrome-sandbox` helper that is setuid root. On macOS: each helper app sandboxes itself (Seatbelt) with `libcef_sandbox.dylib` from the CEF framework in the app. Where it can't (on Linux, OBS runs as root or neither is available; on macOS, the library is missing), they run without it as before, and OBS shows the fallback warning with the cause and what to change. *Linux*, 2026-10-25; *macOS*, pending merge. Windows: #2379. Issue #1092, PRs #2378, obs-rust/obs-browser#3, obs-rust/obs-browser#8, obs-rust/obs-browser#12.","chars":762,"tokens_est":190,"sha256":"ddf51a26f85d75241b12bd0eae9ad67ccbde1997935e8c0f51c81ba4d69697df"},{"id":"ledger:1532","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1532","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Scenes and UI]\n**accept C hexadecimal prefixes in config integers.** Configuration integer values accept the optional hexadecimal prefix after the sign, matching C. *All*, 2026-10-20. Issue #1531, PR #1532.","chars":236,"tokens_est":59,"sha256":"e9215da6a59abacf7bc7a0f7c2a35079ac0aa88ba5e0fdc3eae849bf94209f9a"},{"id":"ledger:245","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/245","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Scenes and UI]\n**Wayland global hotkeys.** On Wayland, hotkeys and push-to-talk work while another window has focus, through the desktop's GlobalShortcuts portal. Each shortcut is named by its actions in the desktop's shortcut list, Settings > Hotkeys shows whether global hotkeys work (with a marker on each key) and can open the desktop's shortcut editor. Cancelling the desktop's dialog after only a shortcut's description changed \u2014 an action moved onto an already-approved key \u2014 keeps the approved keys bound with the description they were approved with, instead of unbounding every key until Ask again. *Linux*, 2026-10-11. Issues #240, #255, #347, #408, #474, #790, PRs #245, #256, #348, #409, #475, #791, #2669.","chars":748,"tokens_est":187,"sha256":"ee11ec010433e340532757f33677cf8b6503ef20f1b4ba6e979a1e245f5a2b30"},{"id":"ledger:help-discord-opens-the-obs-rust-server-the","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Scenes and UI]\n**Help \u2192 Discord opens the OBS Rust server.** The Help menu's Discord item opens the OBS Rust Discord, where this build's bugs and questions belong, instead of upstream OBS Studio's server. *All*, 2026-10-24. Issue #2097.","chars":266,"tokens_est":66,"sha256":"5d7bb5b23962e535abda6a1bb8095c7d2dcd670e29c356a752d7f0a475b98358"},{"id":"ledger:2238","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/2238","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Scenes and UI]\n**Fallback warning.** When a feature falls back to a less safe mode so that it keeps working (for example a browser source without the Chromium sandbox), OBS logs it at error level and shows a warning with a 3-second countdown that accepts the fallback, once per session. Plugins call `obs_frontend_warn_fallback()` (fallback-warning.md); the browser source uses it when the Chromium sandbox can't work. *All*, 2026-10-25. Issue #2218, PRs #2238, obs-rust/obs-browser#8.","chars":515,"tokens_est":129,"sha256":"e8fceb64148499d18a7cee18a0cc70263e4b24a254fab6dde5dc8bc212518932"},{"id":"ledger:no-upstream-release-notes-or-donor-list-download","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Scenes and UI]\n**No upstream release notes or donor list downloads.** The What's New dialog, which showed upstream OBS Studio's release notes from obsproject.com, is off by default (`ENABLE_WHATSNEW=OFF`); a build that turns it on reads `whatsnew.json` from the obs-rust release assets (#1882). The About box no longer downloads upstream's Patreon list; it links to the obs-rust repository instead. Two obsproject.com data feeds stay on because they are data only and useful: the streaming-service list (`plugins/rtmp-services/data/package.json`) and the game-capture compatibility list (`plugins/win-capture/data/package.json`). `ci/test_no_upstream_runtime_feeds.py` keeps the allow-list. *All*, 2026-10-21. Issue #1732.","chars":752,"tokens_est":188,"sha256":"ea316007cae0badbe787f829bf94035d2197de23b2c66773846cedce7ef4e5be"},{"id":"ledger:1307","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Performance"],"url":"https://github.com/obs-rust/obs-studio/pull/1307","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Performance]\n**Volume meters repaint only when they change.** The audio mixer's meters no longer repaint 60 times a second while the mixer is hidden, OBS is minimized or every source is silent; a meter stops about 20 s after its last sound, when its peak hold falls back. *All*, 2026-10-17. Issue #1281, PR #1307.","chars":343,"tokens_est":86,"sha256":"902e0670ec3e2463ea5d52cfa276094592c72904eb173048014ddcfc09a59a42"},{"id":"ledger:1175","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Performance"],"url":"https://github.com/obs-rust/obs-studio/pull/1175","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Performance]\n**Faster launch on NVIDIA machines.** 4.3 times faster to the main window and 19 % less memory on an NVIDIA streaming machine (see the README): the VAAPI probe skips decode-only drivers, the NVENC test result is reused while the driver does not change, the AppImage loads only NVIDIA's EGL vendor, and the GPU status probe runs on a thread. *Linux*, 2026-10-17. Issues #1168, #1170, #1171, #1172, PRs #1175, #1176, #1177, #1178.","chars":471,"tokens_est":118,"sha256":"b47ba7dc9b3c16f33c57bb1aa691462e6bd2d07366177a51babeaf43941eed16"},{"id":"ledger:1461","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Performance"],"url":"https://github.com/obs-rust/obs-studio/pull/1461","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Performance]\n**Settings load and save faster.** Storing and reloading scene collections, profiles and source settings no longer takes about a third longer than the original C code: the JSON round trip is 28-32 % faster than before. *All*, 2026-10-19. Issue #1452, PR #1461.","chars":303,"tokens_est":76,"sha256":"ae7aefeccb4acb91a32a6f25eb568a461f73d5b95144a0bf394412b74330797e"},{"id":"ledger:1619","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Performance"],"url":"https://github.com/obs-rust/obs-studio/pull/1619","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Performance]\n**Formatted UI text builds faster.** Messages that substitute `$1`..`$4` values no longer rescan and rebuild the string once per value: 27 % faster for a short message and 5 % faster for a 4 KB one, both now ahead of the original C code. *All*, 2026-10-21. Issue #1296, PR #1619.","chars":322,"tokens_est":80,"sha256":"b5486cc54f7e1a5a7ac4d51ad5cac4099d448f32ed1627a1e1d7925297199a53"},{"id":"ledger:pipewire-capture-connection-failures-return-clea","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**PipeWire capture connection failures return cleanly.** A failed capture connection no longer risks hanging OBS while its capture thread starts. *Linux*, pending merge. Issue #3594.","chars":223,"tokens_est":56,"sha256":"40c6244d714fd7478a4769d291bb1646d94de897305edbce0ffa3677a8b66895"},{"id":"ledger:capture-sources-start-enabled-audio-capture-s","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**Capture sources start enabled.** Audio capture started by a source's create callback sees its initialized enabled state and flags; source creation no longer rewrites unchanged flags while capture is running. *All*, pending merge. Issue #3505.","chars":285,"tokens_est":71,"sha256":"8da2e03127e5deca5861ac79f956e996ab4b7c5861e67d0fca224984ad34e0c0"},{"id":"ledger:a-frozen-macos-screen-capture-says-so-in-the-log","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**A frozen macOS Screen Capture says so in the log.** When the source stops receiving frames, one warning every 30 s names the gap in seconds and whether frames stopped arriving or are arriving but cannot be published; the last frame stays on screen and the recording continues. *macOS*, pending merge. Issue #2223.","chars":356,"tokens_est":89,"sha256":"680117cf1b2e13a2a7d0d6138ea37dd7b8c3b9c934c1ad08d373284b3ecf0978"},{"id":"ledger:obs-ends-when-a-plugin-blocks-its-exit-when-o","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**OBS ends when a plugin blocks its exit.** When OBS has finished its shutdown but the process does not end within 10 s (for example, a plugin's static destructor waits for a thread that never stops), OBS writes `exit-watchdog: exit did not finish in 10 s ...` to its log and ends with exit code 124, instead of staying in the background without a window. *Linux, macOS*, pending merge. Issue #4065.","chars":440,"tokens_est":110,"sha256":"47520a3f448f34d360e4dd3a1790cd817703a8dc768c496aef1c29dd288424ca"},{"id":"ledger:the-exit-watchdog-names-the-plugin-the-line-n","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**The exit watchdog names the plugin.** The line names the library OBS waits in and the plugin that loaded it, also a library a plugin loaded itself, for example `... is blocking in libremidi.so.4 (loaded by advanced-scene-switcher.so); ending the process`. *Linux, macOS*, pending merge. Issue #4525. On *Windows x64* the line names the DLL too, also when a DLL blocks while Windows unloads it at exit: the helper process walks OBS's stack from outside. Issue #4589.","chars":508,"tokens_est":127,"sha256":"81410f065362d27304acb586a5823c8ea2a217abb9c76e40fdf07899d3ea73bd"},{"id":"ledger:the-exit-watchdog-on-windows-when-a-plugin-dl","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**The exit watchdog on Windows.** When a plugin DLL blocks while Windows unloads it at exit (for example, its static destructor waits for a signal that never comes), OBS still ends after 10 s, with the same `exit-watchdog: ...` line in its log and exit code 124. A small helper process, `obs-exit-watchdog.exe` next to `obs64.exe`, starts with OBS (log: `Exit watchdog: helper process started`) and ends it from outside. *Windows*, pending merge. Issue #4589.","chars":500,"tokens_est":125,"sha256":"ea286863b015691965798e3892666e8c010df2a7d495fab0fe4c1f26c8a77075"},{"id":"ledger:no-swscale-warning-for-every-jpeg-loading-a-j","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**No swscale warning for every JPEG.** Loading a JPEG image (Image Source, Image Slide Show) no longer logs FFmpeg's \"deprecated pixel format used, make sure you did set range correctly\" once per image or slide; the colours are unchanged. *All*, pending merge. Issue #2334.","chars":314,"tokens_est":78,"sha256":"d478f3a1a93edd45e35360928bc74d24faa9e3737baa210d3bda1b93c61baf08"},{"id":"ledger:1530","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1530","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**preserve empty item types for defaults.** Empty settings items retain their type when an incompatible default is supplied. *All*, 2026-10-20. Issue #1528, PR #1530.","chars":207,"tokens_est":52,"sha256":"66cc1c70993c04d29993f2a8acd828d64d80b057635696844b023bf16f839f9b"},{"id":"ledger:655","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/655","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**Diagnostics when video fails to start.** When video fails to start on Wayland, the log shows the EGL error and the display variables, and OBS cleans up without leaks. *Linux*, 2026-10-13. Issue #633, PR #655.","chars":251,"tokens_est":63,"sha256":"d12f265d21278032ac2f2585da750ee4e31de3d453534f4d6635049787a432fc"},{"id":"ledger:1287","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1287","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**Slow GPU usage sources do not stall the label.** After a slow reading the `GPU: x%` label is updated less often (up to every 30 s), a reading that is too old shows `GPU: n/a` with \"The GPU reading is late.\", and a source that is slow three times in a row is not asked again in that session, with one log line. *All*, 2026-10-17. Issue #1022, PR #1287.","chars":394,"tokens_est":98,"sha256":"c29da7914a79bf01f5bc87cd6ee5064241e6aa67f9a97cd5cfda24b0768f917e"},{"id":"ledger:recordings-no-longer-hold-the-stream-s-connectio","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**Recordings no longer hold the stream's connection or the QSV device.** A recording started while streaming no longer keeps a copy of the RTMP connection in its muxer, nor of the QSV encoder's GPU device on Linux, and a VA-API or QSV device that has no driver is closed again. *Linux, macOS*, pending merge. Issue #2305.","chars":362,"tokens_est":90,"sha256":"e757b0863eb55b7c84926806fb4988ab847ca6ae8694e788c12bc48d383c3c4f"},{"id":"ledger:profiles-with-the-same-name-are-all-listed-im","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**Profiles with the same name are all listed.** Importing a profile named like an existing one gives it a name of its own (for example \"Name2\"), and two profile folders with the same name both show up in the Profile menu, the second under a unique name with a warning in the log; before, one of them was hidden and could not be selected, renamed or removed. *All*, pending merge. Issue #2382.","chars":433,"tokens_est":108,"sha256":"092a19862b402d561435598841134a56724afbdff92210680cde648f587d41c8"},{"id":"ledger:qsv-encoders-release-the-gpu-when-they-stop-e","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**QSV encoders release the GPU when they stop.** Each QSV encoder start on Linux, including a failed one, no longer leaks the Intel VPL loader and session; a start that fails no longer keeps the VA display and the GPU device open. *Linux*, pending merge. Issue #2393.","chars":308,"tokens_est":77,"sha256":"62e85d724a925b7b8999363317086893c7714f4f69594f846e81feeacd5e94a3"},{"id":"ledger:failed-qsv-starts-release-what-they-took-a-qs","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Stability]\n**Failed QSV starts release what they took.** A QSV encoder start whose Intel VPL session can't be created no longer leaks the VPL loader, and on Linux a failed frame allocation no longer keeps its VA surfaces and textures. *All*, pending merge. Issue #2396.","chars":299,"tokens_est":75,"sha256":"ac4efc6e09d7fd3aa52fd1a7506e594e5e5215e43122974ed74773f9aa611098"},{"id":"ledger:signed-windows-releases-every-executable-dll","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Signed Windows releases.** Every executable, DLL and Python module in the Windows release ZIP, and the MSI installer once it ships, is signed with the project's Azure Artifact Signing certificate; stable releases fail rather than publish an unsigned binary. *Windows*, pending merge.","chars":339,"tokens_est":85,"sha256":"535a987f0cac243f5857e298096bba34aa35f9cf57dde389de894e78cb51479c"},{"id":"ledger:windows-beta-msi-installer-each-windows-relea","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Windows BETA MSI installer.** Each Windows release also ships an `OBS-Studio-Rust BETA` MSI for x64 and arm64 with an install folder choice, a Start menu entry and a clean uninstall; the zip stays the portable option. *Windows*, pending merge. Issue #3476.","chars":312,"tokens_est":78,"sha256":"1941eaf28fa972c6f669d9d5c0defb61cd358cc779e8513180b7e8886e1ac833"},{"id":"ledger:logs-and-crash-reports-stay-on-your-computer","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Logs and crash reports stay on your computer.** OBS-Studio-Rust no longer sends logs or crash reports to obsproject.com and has no log analyzer button. Help > Log Files > Upload and the crash prompt open the file's folder and ask you to attach it to a new issue at github.com/obs-rust/obs-studio/issues. *All*, 2026-10-21. Issue #1731.","chars":391,"tokens_est":98,"sha256":"b9fce3bbea959964ac4baf673e2359d635efd4be3e21be446ed7b977c77c0435"},{"id":"ledger:1538","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/1538","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**report buffered close errors when copying files.** File copies report buffered close failures instead of success for truncated output. *Linux, macOS*, 2026-10-20. Issue #1537, PR #1538.","chars":241,"tokens_est":60,"sha256":"fbfd39a81b803779440f44c1eb20cd370ff7be9d5010560e764156e1c1050636"},{"id":"ledger:67","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/67","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Own app identity.** The fork runs as OBS-Studio-Rust with its own logo, settings folder (`obs-studio-rust`) and version, next to the upstream OBS version it is based on, in the window title, log, About dialog, `--version` and package metadata. On first run it copies the upstream OBS settings without changing them. Plugins still see a valid OBS version. On macOS the browser source's helper apps take the app's name too, so adding a browser source no longer crashes OBS. *All*, 2026-10-10. Issues #111, #631, #632, #1087, #2386, PRs #67, #112, #510, #515, #657, #706, #1088, #2390, obs-rust/obs-browser#9.","chars":662,"tokens_est":166,"sha256":"e7f42221a0c82860ce5bc666e1cfbb15b46f5f459d4e9569f95c87d0c7619da3"},{"id":"ledger:639","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/639","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Daily beta packages.** A beta is published every day as the latest release: an AppImage for Linux, zips for Windows x64 (with the Visual C++ runtime) and ARM64, and DMGs for Apple silicon and Intel Macs. *All*, 2026-10-13. Issues #626, #627, #628, PRs #639, #642, #664, #679.","chars":331,"tokens_est":83,"sha256":"da7d8855f49a89523167ecd983d4f1e8d191411910c90d04a0e70f852b8510c6"},{"id":"ledger:obs-studio-rust-1-0-stable-release-the-certif","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**OBS-Studio-Rust 1.0 stable release.** The certified 1.0.0 release is available; the crate version is now 1.0.1 so daily `1.0.1-beta.<date>` builds sort after it. A maintainer dispatch of `release-rust.yaml` with `stable=true` publishes the next stable tag (`obs-studio-rust-v<crate>`) from master through every gate of the daily beta (builds, Tier 2, packaged-app smoke tests, AppImage), ready to certify. Its macOS `CFBundleVersion` is the UTC build date, so Sparkle offers it over the earlier certified beta. *All*, 2026-11-01.","chars":585,"tokens_est":146,"sha256":"009cdf405717edb0fdff8204bebbfa4247aed71a18f4aaf27106c7821d83701c"},{"id":"ledger:flatpak-bundle-with-each-release-every-beta-h","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Flatpak bundle with each release.** Every beta has an `OBS-Studio-Rust-<version>-linux-x86_64.flatpak` next to the .deb and the AppImage. It installs as `io.github.obs_rust.OBSStudioRust` beside upstream's Flatpak, and the release gate installs that file and runs it with a saved screen capture, camera, microphone and browser profile before it ships. *Linux (Flatpak)*, pending merge. Issue #2400.","chars":454,"tokens_est":114,"sha256":"de5afbfb7e25db1ec6bc0c2e85039149af92a72989798a6ed8a51da6ac1371b7"},{"id":"ledger:437","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/437","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**AppImage for most Linux distributions.** The AppImage is built on glibc 2.28 and uses the host's GPU and VA-API drivers, so it starts and encodes in hardware on older and current distributions. It bundles PipeWire, finds the host's CA certificates (HTTPS works on Debian, Ubuntu, Arch and Fedora), and does not load the plugins of a distribution's OBS on the same machine. *Linux*, 2026-10-13. Issues #426, #498, #621, #625, #926, #1084, #1085, PRs #437, #499, #650, #722, #927, #1227, #1234.","chars":548,"tokens_est":137,"sha256":"77e477b9af80974c315d2fbd2330fc39ca54773eb4d986fc97cfb43e73c76048"},{"id":"ledger:deb-version-is-the-release-version-a-release","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**.deb version is the release version.** A release .deb's package version is the OBS-Studio-Rust version (`1:0.1.0~beta.20261024`), not upstream's `git describe` string, so `dpkg -l` matches the About box and each daily installs as an upgrade. *Linux*, 2026-10-24. Issue #2299.","chars":331,"tokens_est":83,"sha256":"b18b0e456617b898ab5fdff90d51a434907bcb527e67b89154a7ab34c54a9c84"},{"id":"ledger:1871","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/1871","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**WHIP streaming in the AppImage.** The AppImage ships obs-webrtc and its libdatachannel, so WHIP appears in Settings > Stream > Service. *Linux*, 2026-10-23. Issue #1744, PR #1871.","chars":235,"tokens_est":59,"sha256":"f373718839e89de1f555fe8e65e8c826d16c15c065d14dbcc250ad2404056838"},{"id":"ledger:20","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/20","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**AppImage decodes alpha WebM and VP9-encodes with libvpx 1.17.0.** The bundled FFmpeg takes libvpx 1.17.0 instead of 1.14.1 \u2014 older than the 1.16.0 the AppImage had before \u2014 so the alpha-WebM decode path (Media Source and Stinger transitions) and Custom FFmpeg Output's libvpx-vp9 encoder carry CVE-2026-2447's fix and the 1.17 decoder fixes. *Linux (AppImage)*, pending merge. Issue #1134, PR #20.","chars":453,"tokens_est":113,"sha256":"2a3005a56ae5e457f7e8940260485f17c309745fd493e1414cb6ad28fa06bae7"},{"id":"ledger:appimage-names-a-missing-libwayland-egl-on-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**AppImage names a missing libwayland-egl.** On a host without libwayland-egl.so.1, the AppImage says which package to install (libwayland-egl1 on Debian and Ubuntu) instead of \"Failed to initialize video: Graphics module not found\". *Linux (AppImage)*, pending merge. Issue #2298.","chars":335,"tokens_est":84,"sha256":"43b75c5c3b2bc72177d822acb66cddeaed87ab80f1e6467e4d6c3ce96f9e1b8d"},{"id":"ledger:appimage-names-a-missing-libglx-on-a-host-wit","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**AppImage names a missing libGLX.** On a host without libGLX.so.0, the AppImage says which package to install (libglx0 on Debian and Ubuntu) instead of the dynamic loader's \"error while loading shared libraries\". *Linux (AppImage)*, pending merge. Issue #2337.","chars":315,"tokens_est":79,"sha256":"fd4898fcd46ecb55f0d5c02c8ee02dc3d8a144609260b4c93bd294f0119729c4"},{"id":"ledger:nvenc-in-the-appimage-on-nixos-without-appimage","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**NVENC in the AppImage on NixOS without appimage-run.** Run directly through nix-ld, the AppImage adds NixOS's driver libraries (`/run/opengl-driver/lib`) to nix-ld's search path, so NVENC finds the NVIDIA driver instead of reporting \"NVENC not supported\". *Linux (AppImage, NixOS)*, pending merge. Issue #891.","chars":365,"tokens_est":91,"sha256":"03c30d44f055aefbf74b511734bd61f2af30c9f8a329ff036c034c1d15fbc5e1"},{"id":"ledger:appimage-starts-on-nixos-wayland-the-appimage","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**AppImage starts on NixOS Wayland.** The AppImage points its keyboard library at the host's keyboard data (`/etc/X11/xkb` on NixOS) when `/usr/share/X11/xkb` is missing, so Qt's Wayland plugin no longer crashes at start with \"failed to create xkb context\". *Linux (AppImage, NixOS)*, pending merge. Issue #2437.","chars":366,"tokens_est":92,"sha256":"ae1c30cc443e62335bb457f6978946984bc80e8915e27ff3e174d8a673574159"},{"id":"ledger:1017","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/1017","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Builds with Qt 6.8.** The frontend builds against distribution Qt 6.8, for example on Debian 13. *Linux*, 2026-10-16. Issue #1015, PR #1017.","chars":196,"tokens_est":49,"sha256":"049ac09cc71f295c50ced2973e514372dfdde103916172bb74f158ff734f8a9c"},{"id":"ledger:454","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/454","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Rust libobs.** Parts of libobs are ported to Rust with the same exported symbols as the C libobs. It began as an opt-in `libobs-with-rust` build; since #1588 the hybrid Rust/C `libobs` is the application default (see \"Hybrid Rust/C application build\"), and the C-only `libobs-c-reference` is built only on request for tests. *All*, 2026-10-13. Issues #4, #453, #1065, PRs #454, #1086.","chars":440,"tokens_est":110,"sha256":"f5676eb4285de7fbc0e0e04b745e4fbc55b4e7b0228fe9cf0dc2715b6bb8c800"},{"id":"ledger:1727","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/1727","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**No updates from upstream OBS Studio on macOS.** The macOS app no longer checks upstream's update feed, so it can't offer to replace itself with upstream OBS Studio. Its in-app updater stays off until OBS-Studio-Rust has its own feed. *macOS*, 2026-10-22. PR #1727.","chars":320,"tokens_est":80,"sha256":"9aea2d07f60d98a4a9b0c30ff3e14c5a74c703706ddb13176d8fdc16400c5789"},{"id":"ledger:1742","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/pull/1742","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**In-app updates from certified OBS-Studio-Rust releases.** The Windows and macOS updaters are on and offer only certified releases from obs-rust/obs-studio, never a daily beta or upstream OBS Studio. Daily betas are GitHub pre-releases; a maintainer certifies one, which attaches an RSA-signed update manifest and EdDSA-signed Sparkle appcasts and makes it the Latest release. Only a daily whose release run passed every job and that has been out at least two days can be certified (#1757). Windows downloads the release ZIP, checks its SHA-256 against the signed manifest, installs it and restarts. *Windows, macOS*, 2026-10-22. PR #1742.","chars":694,"tokens_est":174,"sha256":"5fe133e154d692e9ea11201c270711f5eca2e952f9e3bdc43c19fd823547d808"},{"id":"ledger:appimage-updates-follow-certified-releases-th","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**AppImage updates follow certified releases.** The AppImage's embedded update information (AppImageUpdate, `.zsync` deltas) points at the certified Latest release, like the Windows and macOS updaters, instead of the daily `continuous` build. *Linux (AppImage)*, 2026-10-23. Issue #1881.","chars":341,"tokens_est":85,"sha256":"4a69e2099cecb8c6fac27752b8863c00fe7873abf20b2db86ffcc288badf25e2"},{"id":"ledger:opt-in-nightly-updates-settings-general-u","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Opt-in nightly updates.** Settings > General > Updates > Update Channel offers **Nightly** next to **Stable** (the default). On Nightly, the Windows and macOS updaters offer each day's build as soon as it passes the release gate, from a signed feed on the rolling `continuous` pre-release, instead of waiting for a certified release. Switching back to Stable never downgrades. *Windows, macOS*, 2026-10-22. Issue #1759.","chars":475,"tokens_est":119,"sha256":"2716d2686307d8fad64d387a5c61052e303caf9399a4f4c61261d6949882a916"},{"id":"ledger:hybrid-daily-builds-ship-as-nightlies-before-rel","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Hybrid daily builds ship as nightlies before release approval.** The daily OBS-Studio-Rust pre-release, the `continuous` AppImage and the nightly update feed publish while the hybrid release approval is pending. Certifying a release (Latest, the stable feed) still needs the maintainer's approved `hybrid-release-evidence.json` and dispatch. *All platforms*, 2026-10-22. Issue #1811.","chars":439,"tokens_est":110,"sha256":"e9cbcac01e97a1164278b57dd7b38854d5be1bcc12410b3cf36e5580839c0ee8"},{"id":"ledger:releases-ship-on-dispatch-with-automated-gates-o","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Releases ship on dispatch with automated gates only.** Nightlies always publish the hybrid build; a public release is published when the maintainer dispatches certify and the automated CI gates pass. The manual `hybrid-release-evidence.json` approval is gone; regressions are fixed forward and covered by new automated tests. *All platforms*, 2026-10-22. Issue #1818.","chars":423,"tokens_est":106,"sha256":"20a775fca8da0ef0bc2737a87a4f7d7aa7046c8d94146257523b18e1dda2ee3b"},{"id":"ledger:main-window-title-names-obs-studio-rust-the-t","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Main window title names OBS Studio Rust.** The title bar reads \"OBS Studio Rust <version>\": the release version, or for development builds the newest `obs-studio-rust-v*` tag plus `-dev+<commits>-g<sha>` (or `dev` without a tag). Profile, scene collection, safe mode and portable mode still follow; `--version` and Help > About keep the upstream base version. *All platforms*, 2026-10-23. Issue #1983.","chars":457,"tokens_est":114,"sha256":"a020063034a9dd2829bc6af07b7e2f5d3429ef1b1381b6c1f9486a9d7695701b"},{"id":"ledger:a-hung-recording-share-can-t-stall-obs-websocket","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**A hung recording share can't stall obs-websocket.** Free disk space answers within 200 ms: one query per path runs at a time, and while a network share hangs, callers get its last value (0 before the first). So clients polling `GetStats` no longer fill obs-websocket's worker pool and stop every request and event. *All platforms*, 2026-10-25. Issue #1345.","chars":412,"tokens_est":103,"sha256":"a152081f7a6f2e37817c5db229faaebbc2f3ae040ec6c0928030b194d8127df5"},{"id":"ledger:the-deb-brings-its-desktop-helpers-it-recomm","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**The .deb brings its desktop helpers.** It recommends xdg-utils and xdg-desktop-portal with a backend, so on a minimal Ubuntu install Show Recordings, log and dialog links, and Wayland capture work after `apt install`; it suggests v4l2loopback-dkms for the virtual camera. *Linux*, 2026-10-24. Issue #2301.","chars":361,"tokens_est":90,"sha256":"4d3a1985dd3e36f16f63bdadd25d88dfb8f3826e1871f025c4a66d690632a383"},{"id":"ledger:software-centres-link-to-obs-rust-the-linux-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**Software centres link to obs-rust.** The Linux AppStream metainfo names obs-rust as developer and points its homepage, bug tracker and source links at obs-rust/obs-studio, and the .deb's Homepage and Maintainer follow, so \"Report an issue\" in GNOME Software or KDE Discover reaches this project. *Linux*, 2026-10-24. Issue #2302.","chars":385,"tokens_est":96,"sha256":"274955df97dc49553f8efacba4883587ba814c5a68bc7a07b91090301e2d597d"},{"id":"ledger:the-deb-installs-next-to-the-distribution-s-obs","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-entry","breadcrumb":["Features ledger","Features","Platforms and packages"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#platforms-and-packages","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Features \u203a Platforms and packages]\n**The .deb installs next to the distribution's OBS.** On Linux the helpers are `obs-studio-rust-ffmpeg-mux` and `obs-studio-rust-nvenc-test`, so `apt install` no longer fails over `/usr/bin/obs-nvenc-test` when Ubuntu's obs-studio is installed, in either order. *Linux*, 2026-10-24. Issue #2296.","chars":349,"tokens_est":87,"sha256":"bd0ed0176d8119d6f4507d4afc2ab28b0bc52df57b99cd07e11ec93a41f121af"},{"id":"ledger:535","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/535","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nDeleting a scene in the Scenes dock sends SceneListChanged once, not twice. *All*, 2026-10-13. Issue #534, PR #535, upstream obsproject/obs-websocket#979.","chars":210,"tokens_est":52,"sha256":"8d12442c86f016a7277b7d573a90ff7b90703f3d1b508650e42537e0966e5dc6"},{"id":"ledger:550","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/550","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nSetting the Studio Mode T-Bar through the frontend API (obs-websocket SetTBarPosition) moves the T-Bar, and releasing it no longer cancels the transition. *All*, 2026-10-13. Issue #549, PR #550, upstream obsproject/obs-studio#11372.","chars":288,"tokens_est":72,"sha256":"31956e4bf3e0d0a41e76b7574cc8539b666620762b8ee755292fe122bd9b4575"},{"id":"ledger:569","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/569","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nRemoving the current profile now sends ProfileListChanged, and obs-websocket RemoveProfile removes the current profile without leaving a confirmation dialog open on the OBS machine. *All*, 2026-10-13. Issue #568, PR #569, upstream obsproject/obs-websocket#1267.","chars":317,"tokens_est":79,"sha256":"0582d96a8dee7647c84a16dc06d6d79a3c12b6fbae8f79bf5064e44a7308c490"},{"id":"ledger:589","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/589","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nobs-websocket SetSceneItemTransform accepts the transform that GetSceneItemTransform returns, with 0 bounds and OBS_BOUNDS_NONE. *All*, 2026-10-13. Issue #540, PR #589, upstream obsproject/obs-websocket#1299, obsproject/obs-studio#13124.","chars":293,"tokens_est":73,"sha256":"a9bab105d382460e2ea0a7aeb40d5b259adbdb0a09f3d359e2c3022c8b349912"},{"id":"ledger:652","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/652","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nobs-websocket GetSourceScreenshot labels jpg and other screenshots with the correct MIME type, for example image/jpeg. *All*, 2026-10-13. Issue #523, PR #652, upstream obsproject/obs-websocket#1298.","chars":254,"tokens_est":64,"sha256":"a9c0e60fe57b55650385c54b27dffefe9c15ba51d4428d28404d191c9bc9acc4"},{"id":"ledger:805","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/805","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nobs-websocket CreateProfile and RemoveProfile answer after the profile list has changed, so the next request sees the new profiles. *All*, 2026-10-15. Issue #804, PR #805, upstream obsproject/obs-studio#1283.","chars":264,"tokens_est":66,"sha256":"0f3340ebd7e09151730d53c092df24072c38ca0ad57374fd5037b71bf8034a78"},{"id":"ledger:1074","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/1074","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nA Parallel request batch returns each result with its own requestType and requestId, so clients get the correct data. *All*, 2026-10-16. Issue #813, PR #1074, upstream obsproject/obs-studio#1317.","chars":251,"tokens_est":63,"sha256":"4e94d8464c8e203a621f717c28d11f23b3783745b57bf9e671aa5197cdddac1b"},{"id":"ledger:1145","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/1145","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nThe Session Duration column in WebSocket Server Settings keeps counting after the first minute instead of going blank. *All*, 2026-10-17. Issue #1116, PR #1145, upstream obsproject/obs-studio#1208.","chars":253,"tokens_est":63,"sha256":"78d30059e1272bdcc90e13f97f81c2b1d53ee266212f4484708422244e730e99"},{"id":"ledger:1146","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/1146","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nGetSourceScreenshot and SaveSourceScreenshot of a 10-bit or 12-bit source return the colors that OBS shows, not a much darker picture. *All*, 2026-10-17. Issue #1141, PR #1146, upstream obsproject/obs-websocket#1213, obsproject/obs-websocket#1257, obsproject/obs-websocket#1298.","chars":334,"tokens_est":84,"sha256":"1c5dc56f7a2a3d526b56fe1b62d0afc58578258f0060ef0c64ef0cb9f0b43300"},{"id":"ledger:1256","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/1256","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nGetCurrentProgramScene no longer aborts OBS when the program scene was removed in Studio Mode; it returns null names and UUIDs. *All*, 2026-10-17. Issue #1254, PR #1256, upstream obsproject/obs-studio#1349.","chars":262,"tokens_est":66,"sha256":"ef6676542ab4d62efcd4a523384736dfc5501cd437cd398fb7dca76051229b0c"},{"id":"ledger:1996","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/1996","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nobs-websocket GetInputPropertiesListPropertyItems no longer aborts OBS when a list item has no name or no value, such as the placeholder at the top of the macOS Screen Capture display and application lists; those items are reported with empty strings. *All*, 2026-10-23. Issue #1266, PR #1996, upstream obsproject/obs-studio#13905.","chars":387,"tokens_est":97,"sha256":"adbc37cda1fb08668de665535046a95a1a15be756f1061dae4b18a1118979128"},{"id":"ledger:1996+","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/1996","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nA RequestBatch with the Parallel execution type no longer crashes OBS when its last request finishes. *All*, 2026-10-23. PR #1996.","chars":186,"tokens_est":46,"sha256":"03f5d5ef93d2863a17d15bea1c8b2ad358ed22b11a6e2578ae7ced78437f90dd"},{"id":"ledger:1996++","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/1996","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nobs-websocket GetStats reports each client's CPU usage since that client's own previous GetStats, not since the last one from any client, and clients polling at the same time no longer race on one shared state. *All*, 2026-10-23. Issue #1346, PR #1996.","chars":308,"tokens_est":77,"sha256":"cae6b4fe7a2db193852204b0652ef7d65d8eafafe09f5b31f3bd626332b765cd"},{"id":"ledger:the-cpu-usage-obs-reports-the-stats-dock-obs-web","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#obs-websocket","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nThe CPU usage OBS reports (the Stats dock, obs-websocket GetStats) is at most 100 %. Polled in quick succession it could read above 100 %, because the process and wall times tick at 10 ms. *All*, 2026-11-01. Issue #3367.","chars":276,"tokens_est":69,"sha256":"4c9d0f8ad96c84b0a6fef3012882011e67c1c90260f2f48f00d8e3970c2868b0"},{"id":"ledger:2196","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","obs-websocket"],"url":"https://github.com/obs-rust/obs-studio/pull/2196","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a obs-websocket]\nobs-websocket RemoveInput removes the scene items of the input at once, also in scenes that are not on program or preview, so GetSceneItemList and GetInputList no longer show the removed input. *All*, 2026-10-24. Issue #1613, PR #2196.","chars":291,"tokens_est":73,"sha256":"c55446aa38b0e78bd470ab66813b6902e14acce7cc18240820ff4e2ff55ab9e0"},{"id":"ledger:4132","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/4132","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nI420 recordings and raw video output no longer have sheared chroma when the output width is four pixels past a multiple of eight (for example 1364) with the OpenGL renderer. *Linux, macOS*, pending merge. Issue #4126, PR #4132.","chars":283,"tokens_est":71,"sha256":"18a67307cf549d304b3233d59ab53de141b34018c1b95999cd9c7cc781b22de8"},{"id":"ledger:a-macos-display-capture-no-longer-keeps-showing-th","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA macOS display capture no longer keeps showing the last frame after its display is unplugged, moved to another port or reconfigured: it notices the display configuration change, waits for the display it was created for, and recreates its stream when that display is back, logging the absence once. It never switches to a different display. *macOS*, pending merge. Issue #2838.","chars":433,"tokens_est":108,"sha256":"2e297091e68a1354cda118a0ff5c037a14c746a09c9abd0da17dc2f7345a7955"},{"id":"ledger:1539","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1539","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\n**deliver video after a callback disconnects.** A video callback that disconnects itself no longer causes the next subscriber to miss a frame. *All*, 2026-10-20. Issue #1535, PR #1539.","chars":240,"tokens_est":60,"sha256":"53048df3e65d8182d65a0ad15566e5fbd80c2eb6b20fe8b31530c1a1167fa049"},{"id":"ledger:1377","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1377","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nAn XComposite window capture no longer asks the X server whether its window exists once or twice per frame while holding the graphics context; it keeps the window's state from X events (map, unmap, destroy) and checks with the server at most once a second, so a busy or remote X server no longer stalls rendering. *Linux*, 2026-10-17. Issue #1356, PR #1377.","chars":413,"tokens_est":103,"sha256":"a2861ba7ab161b145b3c8366cb63036e599fa7f43f39c639ba1e85e7c2ded63c"},{"id":"ledger:1366","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1366","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nAn XComposite window capture whose window is minimized or on another workspace no longer searches every window and rebuilds its pixmap every 2 s; the search backs off to 30 s and runs at once when the window maps again or the settings change. *Linux*, 2026-10-17. Issue #1357, PR #1366.","chars":342,"tokens_est":86,"sha256":"cc9a7efa2adb37f66b0b7c93359ff17ecad1576ad0669b3d6353790170e308ff"},{"id":"ledger:109","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/109","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nAfter a PipeWire restart, PipeWire screen capture and PulseAudio audio sources reconnect automatically; the screen shows its last frame until capture returns. *Linux*, 2026-10-10. Issue #108, PR #109.","chars":256,"tokens_est":64,"sha256":"68f91d1bd60e385767d12206ab9683b0a2bdd2fc1cb11679e4510641d84f1b34"},{"id":"ledger:124","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/124","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA capture device that reports more audio buffers than OBS supports no longer corrupts the audio frame; the extra buffers are dropped with a log warning. *macOS*, 2026-10-11. Issue #92, PR #124.","chars":249,"tokens_est":62,"sha256":"1625bbfe63a58aa23f906bb44281e70e5004dcd1105f25ac294bfa98ae11b81c"},{"id":"ledger:125","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/125","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nRemoving or closing a macOS screen or audio capture (ScreenCaptureKit) source no longer crashes OBS. *macOS*, 2026-10-11. Issue #93, PR #125.","chars":197,"tokens_est":49,"sha256":"dc0029d4bbdc2f6497d1fa7077d0203fc85d6fb8e8bc108c070efade26608591"},{"id":"ledger:202","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/202","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA V4L2 Video Capture Device runs at the selected frame rate, and changing camera controls such as zoom or focus no longer restarts the capture. *Linux*, 2026-10-11. Issue #201, PR #202, upstream obsproject/obs-studio#13388, obsproject/obs-studio#13896.","chars":308,"tokens_est":77,"sha256":"995196b657775d05159e7b7c674021359ffca67dd69d3ea33ab10af7be2c6150"},{"id":"ledger:204","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/204","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nV4L2 devices whose input capabilities cannot be read are closed again, so cameras no longer stop opening with \"more than 16 video devices\". *Linux*, 2026-10-11. Issue #203, PR #204, upstream obsproject/obs-studio#5422.","chars":274,"tokens_est":68,"sha256":"ffae37ef873993607b59588458dd36419e363d8a0bf3c1f9150420de80f89410"},{"id":"ledger:the-linux-appimage-includes-the-audio-control-help","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Linux AppImage includes the audio control helper needed by the Virtual Microphone, including on desktops without PulseAudio command-line tools.","chars":203,"tokens_est":51,"sha256":"38490e9c1cb9ea01917f469a11bbd5c05b9115e7d842e8aaad5d2f3a84356af8"},{"id":"ledger:the-linux-virtual-camera-also-sends-obs-s-audio-mi","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Linux Virtual Camera also sends OBS's audio mix to an \"OBS Virtual Microphone\" (a PulseAudio/PipeWire pipe source loaded with `pactl`), so video calls and podcast recorders get picture and sound in sync from one output; without `pactl` it runs video-only as before, and one left by an OBS that crashed is removed at the next start. *Linux*, 2026-10-29. Issues #3011, #3014.","chars":433,"tokens_est":108,"sha256":"742f053fe5f929955293153c4d7c0484b1aef02f5c5e51f80632892b3ce9c1b5"},{"id":"ledger:the-macos-virtual-camera-also-sends-the-chosen-aud","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe macOS Virtual Camera also sends the chosen audio track to an \"OBS Virtual Microphone\" input device (a HAL plug-in in `/Library/Audio/Plug-Ins/HAL`) that meeting apps list as a microphone; without the plug-in it runs video-only and says so. OBS.app ships the plug-in and installs or updates it with one admin prompt the first time the camera starts with audio. *macOS*, 2026-11-01. Issues #3184, #3341.","chars":461,"tokens_est":115,"sha256":"178ebd2e234cf8f38b5de4cb038da2d7085d4b86d30edf38d09c6ebaf767a56a"},{"id":"ledger:the-virtual-camera-settings-dialog-can-turn-the-ob","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Virtual Camera settings dialog can turn the OBS Virtual Microphone off and pick which audio track it sends; both are saved with the scene collection and shown only where the virtual camera sends audio. *Linux*, 2026-10-31. Issue #3182.","chars":295,"tokens_est":74,"sha256":"f62b36902be2924da3ebe67901a3f5f38c46991ecd791bf8050eb04512eac4fd"},{"id":"ledger:a-first-launch-with-startvirtualcam-or-sta","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA first launch with `--startvirtualcam` (or `--startstreaming`, `--startrecording`, `--startreplaybuffer`) no longer opens the Auto-Configuration Wizard, which could deadlock with the output's failure box (both modal, neither dismissable). The wizard stays in the Tools menu. 2026-11-01. Issue #3325.","chars":356,"tokens_est":89,"sha256":"30ac8bae2d6f0b3926cf073ef39826a9385976b8d66589a9249fe3f885f6c115"},{"id":"ledger:the-linux-obs-virtual-microphone-follows-the-virtu","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Linux OBS Virtual Microphone follows the Virtual Camera dialog (on or off, and which audio track), and a second OBS running at the same time gets its own \"OBS Virtual Microphone (2)\" instead of a duplicate. *Linux*, 2026-10-31. Issues #3182, #3185.","chars":308,"tokens_est":77,"sha256":"32f19b057f0be4d8198d5dd534a7a62c05f64e74fe713541fc105cfa65c1e290"},{"id":"ledger:the-linux-obs-virtual-microphone-talks-to-the-soun","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Linux OBS Virtual Microphone talks to the sound server through libpulse, so it works without `pactl` installed; `pactl` is only a fallback. *Linux*, 2026-11-08. Issue #4057.","chars":233,"tokens_est":58,"sha256":"8de60e9b9dcf2760ac6bf62b0ebf77f09006d8514959da93e208e81de3e937f2"},{"id":"ledger:a-silent-obs-virtual-microphone-left-by-an-obs-tha","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA silent OBS Virtual Microphone left by an OBS that died is cleared when the Virtual Camera starts even with the microphone turned off, and the log says when `pactl` itself cannot run. *Linux*, 2026-11-06. Issue #3797.","chars":274,"tokens_est":68,"sha256":"af60b5604913d46863ef8598f61e8dbe01f726460a21e058387ee1cc861bf951"},{"id":"ledger:the-linux-virtual-microphone-now-listed-as-obs-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Linux virtual microphone, now listed as \"OBS Audio\", stays in sync with the Virtual Camera picture: each frame waits until its audio has gone out (audio used to trail by ~0.7 s), and an app that links later hears current audio instead of a stale backlog. `ci/vcam_av_sync.py` measures the offset over obs-websocket. *Linux*, 2026-11-08. Issue #4087.","chars":409,"tokens_est":102,"sha256":"02f69f1e4c1756337fdd3a58ff965efa9dcb8bf1a51f8edc8fe9326e0849c371"},{"id":"ledger:the-obs-virtual-microphone-no-longer-turns-into-no","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe OBS Virtual Microphone no longer turns into noise or swaps channels after the sound server falls behind: a packet the pipe takes only part of is finished before the next one. *Linux*, 2026-10-31. Issues #3180, #3185.","chars":276,"tokens_est":69,"sha256":"b1458d2e76507552f975c2c630a11734110d6f0e89e7029bb32a4a45268658e2"},{"id":"ledger:the-obs-virtual-microphone-works-in-the-flatpak-bu","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe OBS Virtual Microphone works in the Flatpak build: its pipe lives in a runtime folder the sandbox shares with the sound server, and an OBS that is still running keeps its microphone even when another one starts. *Linux*, 2026-10-31. Issue #3179.","chars":305,"tokens_est":76,"sha256":"9aca66cd1e50aa5236837aa81a8d4ca1779a9ac4007fc5ca0d125fc34e5bbd0a"},{"id":"ledger:the-windows-virtual-camera-also-sends-the-chosen-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Windows Virtual Camera also sends the chosen audio track to a virtual audio cable (VB-Audio \"CABLE Input\" or \"VoiceMeeter Input\"), so a meeting app that picks the cable's output as its microphone gets OBS's sound; with no cable installed it runs video-only and says so. The Virtual Camera dialog picks the device (Automatic chooses the cable). *Windows*, 2026-10-31. Issue #3183.","chars":439,"tokens_est":110,"sha256":"5e7154c355ced5febfb9bcd21cdf79fd5bf50f2aba243b0d27c6bb1497bb30ef"},{"id":"ledger:starting-or-stopping-the-linux-virtual-camera-no-l","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nStarting or stopping the Linux Virtual Camera no longer freezes OBS when the sound server stops answering: each `pactl` call for the OBS Virtual Microphone gives up after 3 seconds and the camera runs video-only. *Linux*, 2026-10-31. Issue #3181.","chars":302,"tokens_est":76,"sha256":"dee9caaf6180d0baa9df1363b23cde85aec981f27842ff491db94a444cc53b1b"},{"id":"ledger:213","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/213","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Linux virtual camera sends a correct picture to a v4l2loopback device with a fixed format of a different size. *Linux*, 2026-10-11. Issue #212, PR #213, upstream obsproject/obs-studio#12081.","chars":250,"tokens_est":62,"sha256":"e2e6e7b39bb4d9a0503a70f05cbc6933de2fc4e03ad9c7f2dea710d80c9aeab7"},{"id":"ledger:247","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/247","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA PipeWire screen capture no longer crashes OBS when a portal reply arrives while the source is removed. *Linux*, 2026-10-11. Issue #246, PR #247, upstream obsproject/obs-studio#13809.","chars":240,"tokens_est":60,"sha256":"9fb15fdb83ea8aeec6b455d6b1a430ca8d5e8c025fc4b4e3c57da71ea812b544"},{"id":"ledger:329","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/329","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nPipeWire screen capture no longer draws a black square around the cursor with Rec. 2100 (HDR) output. *Linux*, 2026-10-12. Issue #328, PR #329, upstream obsproject/obs-studio#13350.","chars":237,"tokens_est":59,"sha256":"a0cba3dce413804ff7694c7e550d989040310efc30c78507111202382c9aa1c2"},{"id":"ledger:331","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/331","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA V4L2 camera keeps capturing after a corrupt MJPEG or H.264 frame instead of stopping until OBS restarts. *Linux*, 2026-10-12. Issue #330, PR #331, upstream obsproject/obs-studio#12521.","chars":242,"tokens_est":60,"sha256":"7f395d783ecf515b6b475c3f289f934161b8358468dddc5abb8f6b2752835ac2"},{"id":"ledger:340","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/340","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nYou can change a V4L2 camera's resolution, frame rate or format while recording; the camera no longer stays busy. *Linux*, 2026-10-12. Issue #339, PR #340, upstream obsproject/obs-studio#12508.","chars":249,"tokens_est":62,"sha256":"14f8c7d621c1dfdeeb8b8a1a203d99d0fe134e8b6070f9a0c97c6e2d00287b45"},{"id":"ledger:364","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/364","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nSaved V4L2 camera controls (zoom, focus, exposure) are applied when OBS starts, when the camera reconnects and when a script changes them. *Linux*, 2026-10-12. Issues #363, #459, PRs #364, #460, upstream obsproject/obs-studio#11633, obsproject/obs-studio#3003.","chars":316,"tokens_est":79,"sha256":"3a17e240aeb427b1d7ab4f2af927c2a4e4b27159f3254d68e0b7133f1df18836"},{"id":"ledger:391","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/391","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA PipeWire camera that sends NV12 shows its picture instead of green bands or a crash. *Linux*, 2026-10-12. Issue #390, PR #391, upstream obsproject/obs-studio#13823.","chars":222,"tokens_est":56,"sha256":"0db24afb2278003abc9beeefdfb9305a2a04712b1e428dc86ad26fe06a8e3d9b"},{"id":"ledger:399","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/399","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA Wayland screen capture or window capture starts again by itself after the monitor sleeps, is unplugged, or the captured window animates, and does not stay frozen on the last frame. *Linux*, 2026-10-12. Issues #257, #398, PRs #399, #461, upstream obsproject/obs-studio#12063.","chars":332,"tokens_est":83,"sha256":"bf2c4c676321bf9be310fc0eaea3de4c29acdd16f4b06bf2bc84023fdfb81c53"},{"id":"ledger:407","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/407","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nPipeWire cameras that send only I420 or YV12 show a picture, also at odd widths, and the preview no longer stays black. *Linux*, 2026-10-12. Issues #406, #467, PRs #407, #468, upstream obsproject/obs-studio#13744.","chars":269,"tokens_est":67,"sha256":"e5ac7127b6b41eb9f082f9205c1a940541c048d507c0dcefe6ae1e05fa2a20cf"},{"id":"ledger:509","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/509","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nPipeWire screen capture from shared memory follows the buffer stride and offset, so padded or offset frames are no longer skewed and a short buffer no longer crashes OBS. *Linux*, 2026-10-13. Issue #508, PR #509, upstream obsproject/obs-studio#13318.","chars":306,"tokens_est":76,"sha256":"05d5e7ed2a5f95c26671b091c241422dbf1e5fa074948f4d8cf10cc134ec589d"},{"id":"ledger:612","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/612","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nPipeWire screen capture shows each frame once, without repeated and skipped frames. *Linux*, 2026-10-13. Issue #191, PR #612, upstream obsproject/obs-studio#13292.","chars":219,"tokens_est":55,"sha256":"759fd6969f59cbc553343794fbec30345d0fceab81408268c2002bce60093f9c"},{"id":"ledger:775","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/775","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nOBS no longer can crash at startup when the scene collection has a PipeWire Video Capture Device source. *Linux*, 2026-10-14. Issue #774, PR #775, upstream obsproject/obs-studio#13971.","chars":240,"tokens_est":60,"sha256":"1249a3c00a5f67a968494a39dd46cf3a01bd4393cb70e8b39c97aaca770c1203"},{"id":"ledger:820","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/820","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nOpening the Properties of a PipeWire camera no longer renegotiates the running stream, so libcamera cameras no longer drop or freeze. *Linux*, 2026-10-15. Issue #819, PR #820, upstream obsproject/obs-studio#10399.","chars":269,"tokens_est":67,"sha256":"0325f0ce0d1cffd09a7ecf68047b35949448446e36c1119ff795c4aa3b7f4d2c"},{"id":"ledger:829","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/829","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nCamera control sliders of a PipeWire camera can be dragged and moved with the mouse wheel again. *Linux*, 2026-10-15. Issue #827, PR #829.","chars":194,"tokens_est":48,"sha256":"782447c019b4f337904eb3d7236ae31881a05e09c57f45416ec25e17e4d99ee5"},{"id":"ledger:895","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/895","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nV4L2 camera controls that the camera refuses (for example manual exposure in an automatic mode) are disabled, so other sliders can be dragged again. *Linux*, 2026-10-15. Issue #827, PR #895.","chars":246,"tokens_est":62,"sha256":"76d5e039687f3d8ca8962a8e9829cdf36fa7e38358203c07d62d3bb5f973b87f"},{"id":"ledger:934","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/934","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA new resolution for a running PipeWire camera restarts the stream, so libcamera cameras no longer lose the stream. *Linux*, 2026-10-16. Issues #390, #933, PR #934, upstream obsproject/obs-studio#10399.","chars":258,"tokens_est":64,"sha256":"42f7e129a36350439190bbde560e57ba100cdad0c23f0b0a16feacff15cae395"},{"id":"ledger:1054","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1054","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nIn the Video Capture Device (PipeWire) source, a manual camera control is greyed out while its automatic mode is on, and menu controls such as Auto Exposure and Power Line Frequency show again. *Linux*, 2026-10-16. Issue #827, PR #1054.","chars":292,"tokens_est":73,"sha256":"677a2975c98243ea9d48b7620d77e0864c2e21bcfc2416d4f1d546fcae816061"},{"id":"ledger:1111","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1111","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA Screen Capture (PipeWire) source that is not showing keeps its stream paused, so several captures no longer slow down the desktop and OBS. *Linux*, 2026-10-16. Issue #1110, PR #1111, upstream obsproject/obs-studio#13836.","chars":278,"tokens_est":70,"sha256":"0144ef25a750d5570d6c88fe807b061c0d3f9f80bf708f990381de6a26b0c37e"},{"id":"ledger:1118","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1118","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA V4L2 camera from a scene collection saved by older OBS runs at the frame rate you picked, not at the camera's fastest rate. *Linux*, 2026-10-16. Issue #1117, PR #1118, upstream obsproject/obs-studio#14036, obsproject/obs-studio#201.","chars":290,"tokens_est":72,"sha256":"3e8d7e66d6757fe3861e0f6f4cb121da380265d69fff93b4d224c7dee442d084"},{"id":"ledger:1120","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1120","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nPicking a PipeWire camera format that does not have the picked frame rate no longer freezes the picture. *Linux*, 2026-10-16. Issue #1119, PR #1120, upstream obsproject/obs-studio#13783.","chars":242,"tokens_est":60,"sha256":"a97edebfee0c7cea80ca9d312036f6ca39b5dfedd371c4503035e028de25ec11"},{"id":"ledger:1217","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1217","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe format list of a PipeWire camera source shows each format and size once. *Linux*, 2026-10-17. Issue #1068, PR #1217.","chars":176,"tokens_est":44,"sha256":"78a195748d8d7e38617d953d6ba974eac7058f3803b549e61ddab09487338bb1"},{"id":"ledger:the-frame-rate-list-of-a-pipewire-camera-source-is","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe frame rate list of a PipeWire camera source is filled for the format the properties show when the source's settings have no format yet, and it lists each frame rate once. *Linux*, 2026-10-30. Issue #1068.","chars":264,"tokens_est":66,"sha256":"5df929e41191f4916e0c2c5732c93033cd7e097af7d424a9e9b7ad39fb73262b"},{"id":"ledger:window-capture-has-a-list-obs-windows-option-of","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nWindow Capture has a \"List OBS windows\" option (off by default) that adds OBS's own windows, such as projectors, to the window list so OBS can capture itself. *Windows*, 2026-10-24. Issue #2226.","chars":250,"tokens_est":62,"sha256":"f29ed43693d6c96d88aadeb0789519e082c43ed8ad031d538b583ec6592099c1"},{"id":"ledger:1495","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1495","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nScreen Capture (XSHM) follows a change of the screen's resolution: the capture is resized instead of freezing (screen made smaller) or staying cropped to the old size (screen made larger). *Linux*, 2026-10-20. Issue #1494, PR #1495, port of obsproject/obs-studio#12937.","chars":325,"tokens_est":81,"sha256":"ec43bcf5c0cdd2eefe5ad39449db6d38bc585cfb0ba87d8badd741b9e366e365"},{"id":"ledger:obs-no-longer-trips-a-pipewire-assertion-loop-r","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nOBS no longer trips a PipeWire assertion ('loop->recurse > 0') when it quits with a screen capture or camera source from PipeWire. *Linux*, 2026-10-26. Issue #2431.","chars":220,"tokens_est":55,"sha256":"fdd9ee4b814aaa8696109ccb4e01098efb6ff40b7e8bd6157fe8d4743958696a"},{"id":"ledger:screen-capture-xshm-draws-the-cursor-in-the-righ","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nScreen Capture (XSHM) draws the cursor in the right place after the captured monitor moves without changing size (a monitor plugged in or rearranged). *Linux*, 2026-10-24. Issue #2265.","chars":240,"tokens_est":60,"sha256":"4872143fc8ea4d418902b610d3cd8643d82bd80ad1316da392687725274c83b5"},{"id":"ledger:1638","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/1638","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe OBS Virtual Camera no longer burns about a millisecond of CPU per frame spinning inside the app that uses it (Zoom, Teams, a browser); it hands each frame to that app slightly earlier instead. *Windows*, 2026-10-21. Issue #1279, PR #1638.","chars":298,"tokens_est":74,"sha256":"46d6d946103fd4ec8d76e43362cdd96f584021ffc5beec940280e9485ca871f8"},{"id":"ledger:a-camera-or-other-async-source-rotated-by-a-multip","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA camera or other async source rotated by a multiple of 90 degrees other than 0, 90, -90, 180 or 270 (such as -180, -270 or 450, from a camera's autorotation or a plugin) is drawn turned in its place, instead of outside its box. *All*, pending merge. Issue #2121.","chars":319,"tokens_est":80,"sha256":"f46d8285a4de3ce0c5dd14437dc50deddb2c705e0e44fb83ed91c55eb66d3432"},{"id":"ledger:turning-off-autorotation-on-a-video-capture-device","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nTurning off Autorotation on a Video Capture Device source takes back the rotation it applied, instead of leaving the camera turned until OBS restarts or the source is recreated. *Windows*, pending merge. Issue #2137.","chars":272,"tokens_est":68,"sha256":"7b9ab53d9a68cad33125c77f4ab41658a779c48d27bad41f64a5e111febd97ea"},{"id":"ledger:2135","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/pull/2135","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA PipeWire screen or window capture of a stream with the Flipped or Flipped180 transform is mirrored left to right again instead of drawn upside down: `GS_FLIP_U` on a 2D texture (`gs_draw_sprite()`, and a full-size `gs_draw_sprite_subregion()`) flips it on u, not on v, as it did before upstream 7b8b51b29. *All*, 2026-10-24. Issue #2124, PR #2135.","chars":405,"tokens_est":101,"sha256":"c84b56c69d6e7a0aa21292424665b5184cc1461c5bf721b14152faece7615f34"},{"id":"ledger:a-v4l2-video-capture-device-follows-its-camera-no","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA V4L2 Video Capture Device follows its camera, not a /dev/videoN number: a camera replugged or renumbered under another number is captured again, and another camera that takes its old number is not captured in its place (the log says the source waits for its camera). The source saves the camera's name, bus and USB serial number next to the node; two cameras of one model without serial numbers are told apart by their USB port. *Linux*, pending merge. Issue #2262, upstream obsproject/obs-studio#3824, obsproject/obs-studio#4972.","chars":588,"tokens_est":147,"sha256":"8bae22c155db0d4b774e75c65e4d6b9968fe59aba051e8f8a5a8b6d661ed1bfb"},{"id":"ledger:a-v4l2-camera-that-stops-working-without-being-unp","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nA V4L2 camera that stops working without being unplugged (a firmware hang, an error after suspend and resume) no longer freezes its source on the last frame: OBS closes the camera and opens it again until it delivers frames. *Linux*, pending merge. Issue #2264, upstream obsproject/obs-studio#9434.","chars":354,"tokens_est":88,"sha256":"a15e85f25c4f017611c9cea8cfb087407d8f7c1d35b9090006b0ff9ce772e16d"},{"id":"ledger:the-virtual-camera-can-be-stopped-and-started-agai","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Video capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#video-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Video capture]\nThe Virtual Camera can be stopped and started again while recording: the recording no longer keeps the v4l2loopback device open, and no longer holds the VA-API encoder's GPU device either. *Linux*, pending merge. Issue #2278, upstream obsproject/obs-studio#14054.","chars":319,"tokens_est":80,"sha256":"5e9aec579a7bd7d5df3bb1e6090857b76070f450d6abfbb977d979733fb0be9b"},{"id":"ledger:194","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/194","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nPulseAudio audio input on pipewire-pulse no longer cuts out or stutters when audio packets arrive in bursts. *Linux*, 2026-10-11. Issue #190, PR #194, upstream obsproject/obs-studio#12835, obsproject/obs-studio#10808.","chars":265,"tokens_est":66,"sha256":"796dad6aeb65ec7e62c07b324758f9b8d73c3e862529f39098d37de38300249f"},{"id":"ledger:211","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/211","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nOn Wayland, push-to-talk and other hold hotkeys stay pressed while the key is held and an OBS window has focus, and are released when it is let go, also after the keyboard layout changed while it was held (it no longer stays pressed until OBS loses focus). *Linux*, 2026-10-11. Issues #210, #3069, PR #211, upstream obsproject/obs-studio#10701.","chars":392,"tokens_est":98,"sha256":"5bc3cb10ed38ea256cfae4bf5aead82b20bab9ac6f32a633c4bb110b2e6fe1da"},{"id":"ledger:252","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/252","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nVLC Video Source plays 5.1 and 7.1 audio through the correct speakers. *All*, 2026-10-11. Issue #251, PR #252, upstream obsproject/obs-studio#12579.","chars":196,"tokens_est":49,"sha256":"1aeb18350ca623df42cda1cd187cab8ee6f90d2c5b73351ac2b5228ce84fbc6f"},{"id":"ledger:271","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/271","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAudio capture devices on ALSA, JACK and PulseAudio no longer drop out every few minutes because their clock is slightly fast or slow. *Linux*, 2026-10-11. Issue #270, PR #271, upstream obsproject/obs-studio#4600.","chars":260,"tokens_est":65,"sha256":"8d62dc00126b4f6e4ec5827e32524433bfc80d69f9377c673a46948ad84453be"},{"id":"ledger:273","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/273","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nScene transitions fade the audio again when an output uses Rescale Output. *All*, 2026-10-11. Issue #272, PR #273, upstream obsproject/obs-studio#12912.","chars":200,"tokens_est":50,"sha256":"cb4a9f1de8c3df90021f974beb77e7b52ad5c7e4769cce75a5e4874405142bd0"},{"id":"ledger:275","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/275","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nThe audio monitoring device you choose stays in use when the system default output changes (PulseAudio and PipeWire). *Linux*, 2026-10-11. Issue #274, PR #275, upstream obsproject/obs-studio#10342.","chars":245,"tokens_est":61,"sha256":"2374fd8bcbc8207333dff78d1d35878875c9732085d0022bb1903c2a2c1453fd"},{"id":"ledger:287","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/287","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA Media Source keeps its audio sync offset when playback starts or restarts. *All*, 2026-10-11. Issue #286, PR #287, upstream obsproject/obs-studio#11640.","chars":202,"tokens_est":50,"sha256":"e3a13403fb2748c6586095805c5eb5079e8cb2781ffea1b508fed8cb938c0ff6"},{"id":"ledger:302","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/302","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA VLC Video Source playlist no longer cuts the last second of each audio track. *All*, 2026-10-12. Issue #301, PR #302, upstream obsproject/obs-studio#9345.","chars":204,"tokens_est":51,"sha256":"1b3be884ba520fec26924d9e910ef36bdb05d43dfa638690ba4817a532adfd69"},{"id":"ledger:334","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/334","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAn audio sync offset changed from 0 on a running source now takes effect, and a saved offset applies when a scene collection loads. *All*, 2026-10-12. Issue #333, PR #334, upstream obsproject/obs-studio#7912.","chars":256,"tokens_est":64,"sha256":"8c304f1ec2eec7aa02e3d54f40ee9977dae2bc8fb3793c32d440be88e975ec21"},{"id":"ledger:378","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/378","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAn audio input on PulseAudio or PipeWire records again after its stream dies, without a settings change or restart. *Linux*, 2026-10-12. Issues #377, #1029, #1056, PRs #378, #1031, #1057, upstream obsproject/obs-studio#10072.","chars":273,"tokens_est":68,"sha256":"436af4e7d1e6689fa531db505afa24d7c6ae49d6c6efcb2ce0358785a7d437b5"},{"id":"ledger:405","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/405","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nThe VLC Video Source sends its audio as it plays, so volume meters and audio callbacks no longer run up to 2 s early or reset every second. *All*, 2026-10-12. Issue #404, PR #405, upstream obsproject/obs-studio#2406.","chars":264,"tokens_est":66,"sha256":"a3a0624a7b6aceb98312791a4a47419666c0846af0d2e56d38e3ceeaf676708e"},{"id":"ledger:522","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/522","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA Video Delay (Async) filter of more than 2 s no longer breaks up the audio of the source into noise. The filter keeps its configured delay when graphics ticks skip frames, dropping expired queued pictures and holding the last picture across gaps instead of showing newer pictures too early. Audio also stays continuous when a graphics stall overflows the incoming video queue. *All*, 2026-10-13. Issues #521, #3368, PRs #522, #3515, #3653, upstream obsproject/obs-studio#13830.","chars":526,"tokens_est":132,"sha256":"9e9c8a0c01942edf9b6f252f9a103bf36b62077eb86991ea6e903f701793b481"},{"id":"ledger:532","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/532","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nTwo Audio Input Capture sources on the same device both record cleanly when PipeWire runs at a large quantum, and the second one is no longer mostly silent. *Linux*, 2026-10-13. Issue #531, PR #532, upstream obsproject/obs-studio#10808.","chars":284,"tokens_est":71,"sha256":"0d21d1c0574015e1278b2c661dafe3cf3ecc76d9ff59cde86fd0d8dc9d36fdac"},{"id":"ledger:546","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/546","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA restarted Media Source with a sample rate different from OBS no longer starts with a click from the end of its previous playback. *All*, 2026-10-13. Issue #545, PR #546, upstream obsproject/obs-studio#7063.","chars":256,"tokens_est":64,"sha256":"c72c677d092f002d965db2fceb8c483b38996bb076bf25061f467b858df384d8"},{"id":"ledger:603","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/603","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nIn Studio Mode, the Audio Mixer marks audio sources in groups and nested scenes of the previewed scene as Preview. *All*, 2026-10-13. Issue #602, PR #603, upstream obsproject/obs-studio#13297.","chars":240,"tokens_est":60,"sha256":"a0e3df5719c4c956711e32ed3ff8d479e4b0276143874dcd76e0d4e82845db9c"},{"id":"ledger:687","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/687","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nFade to Color with a switch point of 0% or 100% no longer produces broken (NaN) audio. *All*, 2026-10-14. Issue #488, PR #687.","chars":174,"tokens_est":44,"sha256":"22d0e192ad83befba62bba46177be2b00def7d3f0d7b4070cb5737533733f235"},{"id":"ledger:713","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/713","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nWhen a PulseAudio monitor reset fails, OBS keeps the working monitor instead of leaving freed state behind. *Linux*, 2026-10-14. Issues #486, #686, PR #713.","chars":204,"tokens_est":51,"sha256":"319be1fe34d9321b6a4b86ca6cc727a46266c28f448c3a5da9492c45599e8af3"},{"id":"ledger:771","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/771","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nRemoving an ALSA Audio Capture Device source whose device is missing no longer crashes or hangs OBS. *Linux*, 2026-10-14. Issue #770, PR #771, upstream obsproject/obs-studio#9322.","chars":227,"tokens_est":57,"sha256":"27211d92af315aa51dbf46fc1048a0d0a9df410ea2b0ba1bf6b605f546823218"},{"id":"ledger:779","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/779","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAudio monitoring on PulseAudio and PipeWire catches up after a playback stall or drift instead of staying seconds behind. *Linux*, 2026-10-15. Issue #778, PR #779, upstream obsproject/obs-studio#10548, obsproject/obs-studio#3525, obsproject/obs-studio#4531.","chars":305,"tokens_est":76,"sha256":"113c737f088819eddd49bb4b6c32e6125b9e53b77c52af5a9e0ee508cd0668b2"},{"id":"ledger:995","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/995","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nThe Expander filter at a 1:1 ratio no longer turns down the audio that follows silence. *All*, 2026-10-16. PR #995.","chars":163,"tokens_est":41,"sha256":"0236607ffc57fb5dbc5ce657e8ef00f1dc4d96f618169250df5281175f3dd7b9"},{"id":"ledger:1370","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/1370","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA disconnected macOS audio device no longer makes OBS retry CoreAudio every 300 ms or 2 s forever: retries back off to every 30 s and restart quickly when a device is plugged in or the default device changes. *macOS*, 2026-10-17. Issue #1358, PR #1370.","chars":300,"tokens_est":75,"sha256":"07115efdb4cd69228719cdc82acedf4b68a352c293245e82bd61864d6d150e00"},{"id":"ledger:1333+","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/1333","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAudio timestamp differences smaller than one sample no longer leave an invalid interval in the mixer. *All*, 2026-10-18. Issue #838, PR #1333.","chars":190,"tokens_est":48,"sha256":"f2a02152301463f8087c3af57c2538a6038fd88246cc2d0ee7832330b7fad14e"},{"id":"ledger:1709","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/1709","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAudio monitoring above 100% volume no longer distorts on PulseAudio and PipeWire outputs that play 16-bit, 32-bit or 8-bit integer audio: loud samples clip instead of wrapping around. *Linux*, 2026-10-21. Issue #1697, PR #1709.","chars":275,"tokens_est":69,"sha256":"b151c46178d3b6727a4e0b9268393aacc292e4db62c91b747944f203f38597b8"},{"id":"ledger:2058","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/2058","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA push-to-talk or push-to-mute delay too large to count in nanoseconds no longer wraps around and ends the moment the key is released; it holds for as long as it can. A negative delay in a scene collection loads as no delay. An audio balance outside full left to full right, from a scene collection, a plugin or a script, is clamped to that range (NaN is centred) instead of inverting or overdriving a channel. *All*, pending merge. Issue #2051, PR #2058.","chars":503,"tokens_est":126,"sha256":"3938498179b3fe496cbf63c3521c6335566de9efbcb2fb5e45a8d0c42d794770"},{"id":"ledger:a-source-volume-that-is-not-a-number-negative-or","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA source volume that is not a number, negative or infinite, from a scene collection, a plugin or a script, no longer silences or corrupts every audio track the source is in: NaN is read as 100%, a negative volume as 0% and an infinite one as 2000% (+26 dB), the most the volume controls allow. *All*, pending merge. Issue #2108.","chars":376,"tokens_est":94,"sha256":"5c45ad6ac860cd5da0189c41ecbce50ad96d1cfe2f2aee97357d4bce833bc404"},{"id":"ledger:2271","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/2271","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nDesktop Audio set to \"Default\" on PulseAudio no longer goes silent when the default output changes, and no longer records the microphone when the default output is unplugged: it follows the new default output. Saving its properties unchanged no longer restarts it. A transient monitor lookup error while PipeWire changes the default output is retried, so capture resumes without another device change. *Linux*, pending merge. Issues #3630, #2260, PR #2271, upstream obsproject/obs-studio#4828, obsproject/obs-studio#3211.","chars":569,"tokens_est":142,"sha256":"b6993a1dec48498f72009d28e48a2735b2094ae1467ee02ae125b1fdd7abe87a"},{"id":"ledger:a-browser-source-playing-sound-through-webaudio-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA browser source playing sound through WebAudio (alert boxes and the like) no longer goes silent for good when Chromium's audio service process dies; its sound comes back about 3 s later, without a page refresh or toggling \"Control audio via OBS\". A page that paused its own audio stays paused. *All*, pending merge. Issue #2328, upstream obsproject/obs-studio#10586.","chars":415,"tokens_est":104,"sha256":"a1c824e653c71e919a924bc208b0fca05d813d006d7e380b0971930a26e9dc14"},{"id":"ledger:a-browser-source-with-control-audio-via-obs-no-l","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA browser source with \"Control audio via OBS\" no longer raises the audio buffering of every source for good (up to 960 ms of added latency) when its audio arrives late under load. Audio that arrives too late to mix is dropped and logged instead: during such a stall the browser source is silent for about the stall's length (up to about a second), and other sources keep their latency. *All*, pending merge. Issue #2335.","chars":468,"tokens_est":117,"sha256":"405f3e4aace1a135821f57c0eb58ad58c20eeaf3ba9991f5fd32a516fdc3e23a"},{"id":"ledger:a-source-set-to-monitor-only-before-33-0-no-long","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA source set to \"Monitor Only\" before 33.0 no longer plays into the stream and recordings after the upgrade: it loads with monitoring on and muted, the 33.0 form of monitor-only. Sources saved by 33.0 are unchanged. *All*, pending merge. Issue #2444, upstream obsproject/obs-studio@646836a.","chars":338,"tokens_est":84,"sha256":"b28e12c0622fbfe58899f11db7caa2c1a93735a0dd0c20e47bc92c5a87ba75ff"},{"id":"ledger:14091","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/pull/14091","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAudio monitoring of a Media Source playing a song with embedded cover art keeps working after the source restarts (the scene is shown again, or the file loops), instead of going silent until monitoring is switched off and on. *Windows*, pending merge. Issue #2530, upstream obsproject/obs-studio#9428, obsproject/obs-studio#11739, obsproject/obs-studio#14091.","chars":407,"tokens_est":102,"sha256":"428cd1ea1c0c4405e2f5812fcfc0d146f46f4fc874219928de46e5ce6485cafa"},{"id":"ledger:audio-monitoring-to-a-playback-device-with-7-or-mo","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAudio monitoring to a playback device with 7 or more than 8 channels (a 6.1 speaker setup, or an audio interface with 10 or more outputs on one device) logs that OBS has no speaker layout for the device's channels, instead of failing with only a resampler error. Devices OBS could play to before get the same layout. *Windows*, 2026-10-27. Issue #2559.","chars":400,"tokens_est":100,"sha256":"329f7a73a6f826a10ceaffba0972c7c86d09bb0c5eea87d6d1b0d6a8c8def362"},{"id":"ledger:audio-monitoring-on-macos-no-longer-goes-silent-fo","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAudio monitoring on macOS no longer goes silent for good when CoreAudio refuses one buffer of audio: the monitor starts playing again with the next audio instead of staying silent until the monitoring device is changed. *macOS*, 2026-11-01. Issue #3328.","chars":301,"tokens_est":75,"sha256":"abbeb8d00606a95e9156095a345bcb571d24858fe77315d67086d3353e7670de"},{"id":"ledger:the-macos-monitoring-device-list-no-longer-reads-d","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nThe macOS monitoring device list no longer reads device ids CoreAudio never wrote when a device goes away while the list is being built, which could list a device twice. *macOS*, 2026-11-01. Issue #3359.","chars":251,"tokens_est":63,"sha256":"e143059447f5632c4264120dc91078fdf7013bba6db9685d9fb393a36aeb0ec4"},{"id":"ledger:a-scene-transition-s-audio-fade-no-longer-jumps-pa","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nA scene transition's audio fade no longer jumps partway through a block of audio, or puts the left and right channels at different points of the fade, when the transition moves while that audio is being mixed (for example while you drag the Studio Mode T-bar). *All*, 2026-11-02. Issue #3499.","chars":340,"tokens_est":85,"sha256":"7f1ac06c80d5912f16d0ebbe808d0ff5691da920f07e6ade10eae0fa66211a0b"},{"id":"ledger:an-audio-source-that-starts-or-stops-waiting-for-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Audio"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#audio","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Audio]\nAn audio source that starts or stops waiting for audio while the mix runs is no longer mixed for one more tick from a buffer being reset, or left out of the mix for a tick it had audio for: the audio tick reads that state under the source's audio lock. *All*, 2026-11-08. Issue #4068.","chars":332,"tokens_est":83,"sha256":"879e61107d14c3d66c2d36cb887ca3c1099a2456d25ce6bcd81e741bdeedb329"},{"id":"ledger:23","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/23","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA recording no longer fails with \"incomplete UTF-8 string\" when a long filename cuts a multibyte character at 255 bytes. *All*, 2026-10-09. Issue #21, PRs #23, #26, upstream obsproject/obs-studio#11211.","chars":278,"tokens_est":70,"sha256":"f6be62065956cd18bcd2718764fb5968ad104e10d67971877e74d8b1a50d94d5"},{"id":"ledger:63","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/63","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nThe SVT-AV1 encoder now uses CBR rate control when CBR is selected, and invalid SVT-AV1 options stop the encoder with an error. *All*, 2026-10-09. Issue #24, PR #63, upstream obsproject/obs-studio#13849.","chars":279,"tokens_est":70,"sha256":"4dba6a48648a38e67d9623d711aecf16c216fa15be36766c16c5b731dd16f18d"},{"id":"ledger:64","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/64","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nOBS no longer crashes when an RTMP server returns a connect error without a description. *All*, 2026-10-09. Issue #57, PR #64, upstream obsproject/obs-studio#13144.","chars":240,"tokens_est":60,"sha256":"0e758a5023ede63e344c41fc087f89b9d8d8537bccff83ad235b3aa0da211ec9"},{"id":"ledger:103","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/103","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nOBS no longer reads past the end of malformed or unusual AV1 packets, and AV1 headers with an extension byte and no size field get the correct size. *All*, 2026-10-10. PR #103.","chars":252,"tokens_est":63,"sha256":"51fdf80a33ec99ce3e8bea46bd803ff0e035372480c720a7096a502079e0ba81"},{"id":"ledger:110","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/110","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nStreaming over RTMP or recording to FLV no longer crashes on an empty packet on a secondary audio track. *All*, 2026-10-10. Issue #101, PR #110.","chars":220,"tokens_est":55,"sha256":"567314ec53dfde05bef9b3dbc2f55134c41b249f0df6e713771af37094d9e47f"},{"id":"ledger:198","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/198","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nFFmpeg VAAPI encoders start on the default device, with a log message, when the saved VAAPI device is not usable on this machine. *Linux*, 2026-10-11. Issue #197, PR #198, upstream obsproject/obs-studio#13773.","chars":285,"tokens_est":71,"sha256":"52e19d2bcb7eebfb5cc0db5bf6aa780b6697273c3ca48a5dd1d2b12f2c3b96a2"},{"id":"ledger:200","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/200","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nIn Advanced output mode, recording and split file names have characters such as : replaced, the same as in Simple mode. *All*, 2026-10-11. Issue #199, PR #200, upstream obsproject/obs-studio#13786.","chars":273,"tokens_est":68,"sha256":"3dbe0820dae09c07a73e54ad1ab39ef3e2e8a75d6179c290b381fad9b3b992bd"},{"id":"ledger:207","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/207","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nStarting a recording or stream with a VAAPI texture encoder and a color format other than NV12 or P010 no longer crashes OBS; it uses the CPU VAAPI encoder instead. *Linux*, 2026-10-11. Issue #206, PR #207, upstream obsproject/obs-studio#12731.","chars":320,"tokens_est":80,"sha256":"0cbd5b1435685e3e0ca4641105511bc72d1f73cb13bcc346c586296f2768cfdd"},{"id":"ledger:218","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/218","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nRecording with the FFmpeg VAAPI H.264 or HEVC encoder no longer crashes at the start when the first packet holds only headers. *Linux*, 2026-10-11. Issue #216, PR #218, upstream obsproject/obs-studio#13316.","chars":282,"tokens_est":70,"sha256":"9855161cf4739406093452e39b5a2cae16be4aed6b91b95761903968539448d1"},{"id":"ledger:224","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/224","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nThe replay buffer stops while a shared recording is paused, and OBS no longer hangs on exit in that case. *All*, 2026-10-11. Issue #223, PR #224, upstream obsproject/obs-studio#7249.","chars":258,"tokens_est":64,"sha256":"159b01ad45b4749b0bada7ad3040636bcf0d06a1ed378bfbe6f7e61998f4e56a"},{"id":"ledger:226","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/226","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWHIP streams at 23.976 or 59.94 fps no longer drift out of audio/video sync over time. *All*, 2026-10-11. Issue #225, PR #226, upstream obsproject/obs-studio#13970.","chars":240,"tokens_est":60,"sha256":"55fd7c54bbf78ed42d4150df84c460318c0dd91357049270e50ec7acb0810da8"},{"id":"ledger:237","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/237","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWhen a stream fails to start, OBS shuts down its encoders and releases hardware encoder sessions such as NVENC. *All*, 2026-10-11. Issue #236, PR #237, upstream obsproject/obs-studio#10651.","chars":265,"tokens_est":66,"sha256":"fdd36f7aa1841cee784018ce6d688902a2308a9835b7d22d608c1e4c3978933c"},{"id":"ledger:265","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/265","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWhen the recording muxer process stops during a recording, OBS now sees the write failure instead of discarding all later data in silence. *Linux, macOS*, 2026-10-11. Issue #264, PR #265.","chars":263,"tokens_est":66,"sha256":"7a7abe8aab42350006ccec3515379743f283f251a24f9ce5f9d9217fc64093d3"},{"id":"ledger:296","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/296","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA mono Opus audio track set above 256 kbps now starts (at 256 kbps, with a log warning) instead of failing. *All*, 2026-10-12. Issue #295, PR #296, upstream obsproject/obs-studio#12753.","chars":261,"tokens_est":65,"sha256":"99747ad35151e04fd85a6030ea2d954f06267a4e6d2ed4e8c0646dd69939c0d7"},{"id":"ledger:299","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/299","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nAn encoder error during a recording no longer freezes OBS or leaves an output that shares the encoder unable to start. *All*, 2026-10-12. Issue #298, PR #299, upstream obsproject/obs-studio#9946.","chars":271,"tokens_est":68,"sha256":"e3469e541ea543c068f07b3f0c401a74e7343f4eaf53e00ae0b5045b7bfeecb1"},{"id":"ledger:309","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/309","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nRecordings that start in the same second no longer write to the same file and overwrite each other. *All*, 2026-10-12. Issue #308, PR #309, upstream obsproject/obs-studio#10750.","chars":253,"tokens_est":63,"sha256":"9c81a98e60d54e447e7497e67ab343d9a34b090a9254c387b4e000ea57654947"},{"id":"ledger:311","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/311","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA custom FFmpeg recording to WebM/VP9 with the BGRA format now starts and keeps its alpha channel. *All*, 2026-10-12. Issue #310, PR #311, upstream obsproject/obs-studio#13785.","chars":252,"tokens_est":63,"sha256":"070985a54e0b722afc2db8eb755031d4d3e370326382eee39608a5a56bec2679"},{"id":"ledger:337","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/337","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith Rescale Output on, Stats counts frames skipped due to encoding lag and the status bar warns about encoder overload. *All*, 2026-10-12. Issue #336, PR #337, upstream obsproject/obs-studio#11078.","chars":274,"tokens_est":68,"sha256":"d6b13652aa6323e41d795563af109eed72a7f8f8aab9f9c10b1f54e1c0c1e8e2"},{"id":"ledger:341","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/341","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nCaption text longer than 128 bytes, also from obs-websocket SendStreamCaption, is wrapped and paged instead of cut off. *All*, 2026-10-12. PR #341.","chars":223,"tokens_est":56,"sha256":"6fd7c632958ea387e796d3ff39cfa79f4deccb1e109c4491eae8163c04f65f55"},{"id":"ledger:355","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/355","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nStopping a Custom Output (FFmpeg) recording no longer crashes or freezes OBS, for example with libvpx. *All*, 2026-10-12. Issue #354, PR #355, upstream obsproject/obs-studio#7536.","chars":255,"tokens_est":64,"sha256":"47a15e8bd0fd6ca0cbba201be2aab75c42530b4313b2467c63a56d78eeb25a22"},{"id":"ledger:360","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/360","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nRemuxing an MKV recording to MP4 or MOV keeps the audio sample-accurate, so it no longer crackles in QuickTime and Final Cut Pro. *All*, 2026-10-12. Issue #359, PR #360, upstream obsproject/obs-studio#13249.","chars":283,"tokens_est":71,"sha256":"b4178c28fe2c1a57d1454aa61cd9202ea5dee6abcba26c894f88bd392f4806c1"},{"id":"ledger:369","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/369","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nIn Advanced output mode, \"Ignore streaming service setting recommendations\" keeps your encoder settings, such as CQP or CRF. *All*, 2026-10-12. Issue #368, PR #369, upstream obsproject/obs-studio#4125.","chars":277,"tokens_est":69,"sha256":"5c2662cd1413ef0e649e89b5ffafedce24a81d7f522177040116e6d4e8d60550"},{"id":"ledger:375","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/375","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nFFmpeg output recordings that convert the pixel format no longer leak memory for each recording. *All*, 2026-10-12. PR #375.","chars":200,"tokens_est":50,"sha256":"8cd04ae01772f32f3eff57ac348171d0e3c0560d68d7584d98f40763784646f0"},{"id":"ledger:412","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/412","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA caption character that EIA-608 cannot encode (for example CJK or emoji) becomes a gap, and the rest of the caption row is still sent. *All*, 2026-10-12. Issue #376, PR #412.","chars":251,"tokens_est":63,"sha256":"6f2689766b60f61069dbe0300cd73b9cd45aaa0729c5d1fae03ee66bcf696842"},{"id":"ledger:495","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/495","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nHybrid MP4 recordings with 5.1 audio play with sound in VLC 3. *All*, 2026-10-13. Issue #494, PR #495.","chars":178,"tokens_est":44,"sha256":"26fe802c49c448108546523957013d58adb79af6fe5270503687310ab103adcb"},{"id":"ledger:527","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/527","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA recording with Custom Output (FFmpeg) set to \"Output to URL\" is no longer stopped for low disk space. *All*, 2026-10-13. Issue #526, PR #527, upstream obsproject/obs-studio#12952.","chars":257,"tokens_est":64,"sha256":"83cdbf8cdb8ccb5dd66f7f9ad2513ec8ed31d898fab5dfb567b6044dcacf72d1"},{"id":"ledger:575","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/575","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith dynamic bitrate on, a video bitrate that you change while live stays in effect after network congestion. *All*, 2026-10-13. Issue #574, PR #575, upstream obsproject/obs-studio#12235.","chars":263,"tokens_est":66,"sha256":"2ebe3187ce5168c4540c08066f93b0927711012ebf576fd0d26296b655c73237"},{"id":"ledger:581","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/581","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA source with Subtract blending no longer shows black in a rescaled recording or stream. *All*, 2026-10-13. Issue #580, PR #581, upstream obsproject/obs-studio#10746.","chars":242,"tokens_est":60,"sha256":"297f480dbfaf35168e222878eb9cf051935282a214dae5e9e87fcfe6ffee2547"},{"id":"ledger:584","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/584","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA saved replay uses the current filename settings, not the settings from when the replay buffer started. *All*, 2026-10-13. Issue #583, PR #584, upstream obsproject/obs-studio#10923.","chars":258,"tokens_est":64,"sha256":"b61de1f091c9f1b928eeec6d4df8c7e3b96a5f0a55ffa668f60f9db8cb5d6fe4"},{"id":"ledger:594","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/594","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA recording started while the replay buffer runs starts at once, instead of waiting for the next keyframe or leaving an empty file. *All*, 2026-10-13. Issues #593, #597, PRs #594, #598, upstream obsproject/obs-studio#12069.","chars":299,"tokens_est":75,"sha256":"1e4e3e6997b1017f4396a62116adc0daa5960bcfd4a9b5dc546f3bfff0d3002e"},{"id":"ledger:601","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/601","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nTools > Output Timer shows Start again after its timer stopped the output while the dialog was closed. *All*, 2026-10-13. Issue #600, PR #601, upstream obsproject/obs-studio#10900.","chars":256,"tokens_est":64,"sha256":"fcc85f9ebba5c87293e208b73f53435f8cb2502eafa2374baf4677895a65e323"},{"id":"ledger:704","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/704","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nRestarting the same output no longer makes its interleaving batch limit grow each time. *All*, 2026-10-14. Issues #487, #686, PR #704.","chars":210,"tokens_est":52,"sha256":"91d07631a713aba71bd2d4e9139fbc042e51a2689f369f089990a5a02f652d00"},{"id":"ledger:705","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/705","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA RIST stream that fails to open no longer can crash OBS by freeing its credentials twice. *All*, 2026-10-14. Issues #482, #686, PR #705.","chars":213,"tokens_est":53,"sha256":"94213c6332f071bcc00487c422c06f34bac65b65bb88bd5e8668a17bced5a17c"},{"id":"ledger:736","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/736","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA GPU encoder that starts while the last one on the same video mix stops keeps getting frames; before, it could stop receiving frames. *All*, 2026-10-14. PR #736.","chars":238,"tokens_est":60,"sha256":"1098d5ec50031599db9bae0567e0fd646bbc67343a084252a30f0d4a69d9b9ad"},{"id":"ledger:781","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/781","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nQuitting OBS while it records stops the recording correctly, so the end of the recording is not lost. *All*, 2026-10-15. Issue #780, PR #781.","chars":217,"tokens_est":54,"sha256":"985c32785f699176774b415ed9715b1d83d074a0bd57bd94659db72f8e1d6502"},{"id":"ledger:803","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/803","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nStart Recording no longer crashes OBS after an earlier attempt failed with \"Unable to write to\". *All*, 2026-10-15. Issue #802, PR #803, upstream obsproject/obs-studio#11940.","chars":250,"tokens_est":62,"sha256":"82264c639845bcd4d39aea17731550e69779fd4daa76c7c50ef26efb7588b2e1"},{"id":"ledger:918","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/918","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWhen the stream server name cannot be resolved, the log shows the real lookup error instead of \"Success\". *All*, 2026-10-15. Issue #903, PR #918.","chars":221,"tokens_est":55,"sha256":"4c61f5979c481780ef4237378a16ab61c1fd35cb7f702136d67f6f099ad19482"},{"id":"ledger:996","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/996","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith bitrate limiting on, the VideoToolbox encoder on macOS gets the configured limit values; before, it got wrong values. *macOS*, 2026-10-16. PR #996.","chars":228,"tokens_est":57,"sha256":"839d063cb7ecbe7986bdd603de9ab46e75dd5b6ff1a8154221608326c0ef08ae"},{"id":"ledger:1102","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1102","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nAn SRT stream that fails to connect no longer disconnects the other SRT streams and Media Sources in OBS. *All*, 2026-10-16. Issue #1101, PR #1102, upstream obsproject/obs-studio#12361.","chars":261,"tokens_est":65,"sha256":"644b02a10619db89040f29aa7c8bb8221ff192809aa982fd5bccf2098e75ff43"},{"id":"ledger:1125","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1125","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA recording or stream through the Custom FFmpeg Output keeps its last second of video and audio when it stops. *All*, 2026-10-16. Issue #1124, PR #1125.","chars":228,"tokens_est":57,"sha256":"800459a4acf5a7f629aac11054ffa0194d7d852e0b699f62a05fcee006a743fa"},{"id":"ledger:1138","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1138","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith the replay buffer on, a hotkey change in Settings no longer makes OBS log \"Failed reading json string\" each time the replay buffer is created. *All*, 2026-10-17. Issue #1137, PR #1138, upstream obsproject/obs-studio#14014.","chars":303,"tokens_est":76,"sha256":"c0d8edb44477da6c822d73876697f6c48bed2dd5d905cb09745cee017b11229f"},{"id":"ledger:1353","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1353","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nStarting a Twitch, Amazon IVS or Dacast stream while their ingest server list cannot be downloaded no longer stalls 3 s before connecting (5 s in the Auto-Configuration Wizard): the wait ends as soon as the download fails. *All*, 2026-10-17. Issue #1347, PR #1353.","chars":340,"tokens_est":85,"sha256":"966a0f186254979e3254c73d1e91e9c368a3c8e0ffb3506bd8f9e3a5de76a1ff"},{"id":"ledger:1422","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1422","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nStop Streaming stops an SRT listener stream that is waiting for its caller to come back, and OBS quits while a listener waits; before, the stream never stopped and OBS never finished quitting. *All*, 2026-10-18. Issue #1421, PR #1422, upstream obsproject/obs-studio#12250.","chars":348,"tokens_est":87,"sha256":"d47224f54134c65f8806d1f250de104a6649ec7fc409ac9117f93505b1dc28ac"},{"id":"ledger:1475","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1475","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nOBS no longer crashes when an SRT or RIST stream reconnects after its connection dropped; before, a packet left from the dropped connection could reach the new connection before its header and kill OBS. *All*, 2026-10-19. Issue #1423, PR #1475.","chars":320,"tokens_est":80,"sha256":"02be7c1960b92232871f242431ff72ebd814c896924e034f2555d452217424df"},{"id":"ledger:1477","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1477","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nAutomatic file splitting by time splits Hybrid MP4 recordings again: the next file starts at the first keyframe after the split time, as for MKV and MP4. Before, the recording stayed in one file unless a keyframe fell within 1 ms of the split time. *All*, 2026-10-19. Issue #1476, PR #1477, upstream obsproject/obs-studio#14051, port of obsproject/obs-studio#14052.","chars":441,"tokens_est":110,"sha256":"6479e109b8d2f5153cc1ade4676dce8f2c7feda66accb008a784aff926ce7935"},{"id":"ledger:1491","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1491","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nSettings > Output (Advanced) with a profile that names a video encoder OBS does not have (a profile copied from a machine with an AMD encoder, for example) selects a fallback encoder, x264 for most, and shows its settings. Before, the encoder settings read \"No properties available\", the streaming list showed an encoder that was not in use, the recording list was empty and OK only said \"No Encoder Selected\". The profile changes only when the output settings are saved. *All*, 2026-10-20. Issue #1490, PR #1491, upstream obsproject/obs-studio#3531.","chars":626,"tokens_est":156,"sha256":"db911ca15b9058b0b7f2047f474ac6ed6d8857b75b272333902171ef603acaf7"},{"id":"ledger:1508","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1508","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith Enhanced Broadcasting (multitrack video), the Broadcast Performance Metrics of a frame whose time falls on a whole second carry that time. Before, the time read 900 ms early (`\u2026:32.1000Z` for `\u2026:33.000Z`). *All*, 2026-10-20. Issue #1505, PR #1508.","chars":328,"tokens_est":82,"sha256":"1e181d7daeb3031935825fa5a70c3c1ba96d52abcd48727ead54ffa6a473443b"},{"id":"ledger:1562","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1562","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA plugin or libobs-based tool that builds a file name from a format with `%FPS`, `%CRES`, `%ORES` or `%VF` before video is set up gets `0`, `0x0` and `None` there. Before, those were formatted from uninitialized memory (names like `2880154539x2880154539`). *All*, 2026-10-20. Issue #1509, PRs #1562 and #1565.","chars":385,"tokens_est":96,"sha256":"96ee3a9ba217f53a5efa55fbc791d7c78506fdce9f42c423e8bbb7ed2f57ee31"},{"id":"ledger:1574","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1574","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nStreaming over RTMP no longer leaks memory each time the server drops the connection before the first video frame is sent, or sends a message OBS can't read before it drops the connection. *All*, 2026-10-20. Issue #1573, PR #1574, upstream obsproject/obs-studio#9972. #1509, PRs #1562 and #1565.","chars":371,"tokens_est":93,"sha256":"01aaa1a42bc006b19237300f03fa379c4ed888df2991f757b71d7506be832b40"},{"id":"ledger:1572","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1572","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith a stream delay, a stream started again after it stopped on its own (the connection dropped with Automatically Reconnect off, or an encoder error) shows as streaming again. Before, OBS and obs-websocket never reported it as started, and the delayed output passed packets on before it had connected. *All*, 2026-10-20. Issue #1571, PR #1572.","chars":420,"tokens_est":105,"sha256":"010f4e5e461b30fef724ae35e3c75532881da0f5719b7a80620bf51f8ae08c83"},{"id":"ledger:1612","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1612","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nAn output whose only video encoder is not in the first slot (a plugin that sets one with `obs_output_set_video_encoder2()` and an index above 0) starts on its first keyframe, with its timestamps starting at 0. Before, the first keyframe was never sent and the output started on a frame that is not a keyframe. *All*, 2026-10-21. Issue #1611, PR #1612.","chars":427,"tokens_est":107,"sha256":"f5daa88672b4a0affce613c552e04b75aa5343f1939cb27a635348317560647a"},{"id":"ledger:1778","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1778","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nCaptions sent to an output whose video codec cannot carry them (not H.264, HEVC or AV1, for example ProRes or a plugin's codec) no longer leak a copy of a video frame for each caption. *All*, 2026-10-22. Issue #1777, PR #1778.","chars":302,"tokens_est":76,"sha256":"9a7debf1d8f4e824f53c424bfbca84c095db650bd77f03e4204de7f7a8667e37"},{"id":"ledger:1964","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/1964","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA plugin or script that adds an encoder region of interest (ROI) that is upside down (bottom above top, or right left of left) or has a NaN priority gets it refused, as a too small one is; before, it was stored and passed to the encoder's quality map. An ROI edge that an upscaled encoder scales past the largest value an edge can hold gets that value instead of an undefined one, and a NULL encoder no longer crashes OBS. *All*, pending merge. Issue #1959, PR #1964.","chars":543,"tokens_est":136,"sha256":"b82330f52ac7e2d50bc232a77d42ee7f86091fc234ea40ce4290ce71135a51d8"},{"id":"ledger:changing-the-bitrate-of-a-qsv-encoder-while-stream","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nChanging the bitrate of a QSV encoder while streaming no longer races the other QSV encoders: the reset now takes the lock they share. A device that stays busy or stops finishing frames now stops the output with an error instead of leaving it connected at 0 kbps. Live bitrate changes now also apply in VBR and in CBR with \"low\" or \"normal\" latency, and settings that leave the bitrate alone no longer reset the encoder. *Linux, Windows*, pending merge. Issue #2291, upstream obsproject/obs-studio#13228.","chars":580,"tokens_est":145,"sha256":"2c8c1a12392391aafa040ab2d9e9ad8936153adbf5e28cb7a34bde5157477a5c"},{"id":"ledger:removing-the-video-encoder-from-an-output-that-has","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nRemoving the video encoder from an output that has a rescale size set no longer logs a NULL parameter for `obs_encoder_set_scaled_size()`, and an encoder set on an output while it is being destroyed no longer leaves a caption track behind in the slot it could not take. *All*, pending merge. Issue #2491.","chars":380,"tokens_est":95,"sha256":"63587d606c4eb2e9d574c53b4776f570305b049671c9665339182f87c9167981"},{"id":"ledger:2778","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/2778","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA Windows stream to an `rtmps://` service keeps \"Enable network optimizations\" and low-latency mode instead of turning both off with a log line. The optimized socket loop now waits for the TLS layer (a full buffer or a pending handshake) instead of spinning, reports a TLS failure with the Mbed TLS reason, and no longer drops queued bytes when it retries a write the transport had not accepted. *Windows*, pending merge. Issue #2220, PR #2778.","chars":520,"tokens_est":130,"sha256":"26ceefc88c7b2021cc40411970ed6f78a2f4cd4767ea378796cbb5ead9e2dff0"},{"id":"ledger:2926","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/pull/2926","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith Enhanced Broadcasting (multitrack video), an encoder rung that runs at a lower frame rate than the canvas (a frame rate divisor above 1) starts on the group's start frame instead of sending no frames at all. *All*, pending merge. Issue #2920, PR #2926.","chars":333,"tokens_est":83,"sha256":"b3608e9461b34a37d295dc4aca5875c47e44d79710bdc02a70a31ee7ef8fddbb"},{"id":"ledger:a-stream-whose-reconnect-settings-come-from-a-scri","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA stream whose reconnect settings come from a script, a plugin or a hand-edited profile no longer waits longer than 15 minutes before its first reconnect attempt, nor about 49 days for a negative delay, and a negative retry count stops the stream on a disconnect instead of starting a reconnect that gives up at once. Every wait between attempts now stays between 0 and 15 minutes. *All*, 2026-10-30. Issue #2990.","chars":489,"tokens_est":122,"sha256":"bbcbc308f95728a7ec1219af5c12c951084c26c3d919efb407f3108304695af1"},{"id":"ledger:pausing-a-recording-whose-one-audio-encoder-a-scri","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nPausing a recording whose one audio encoder a script or plugin set on two tracks no longer hangs OBS, and pausing an output in a libobs host that never set up video no longer crashes it. *All*, 2026-10-30. Issue #3020.","chars":294,"tokens_est":74,"sha256":"72f2fabd41d169fbc1d7bfd7086ad3e10e07b5cac98d44435a2a504e5481dd7d"},{"id":"ledger:a-recording-paused-and-resumed-in-quick-succession","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA recording paused and resumed in quick succession (a double press of the pause hotkey, a script or a websocket client) keeps its audio after the resume instead of losing it for the rest of the recording, and an encoder with a frame rate divisor resumes its video instead of staying paused. In both cases the output can be paused again. *All*, 2026-10-30. Issue #3033.","chars":444,"tokens_est":111,"sha256":"e2704532cb72c759873d07bb8923d20a7c09f093c34ea0bce85b95df3798c7ee"},{"id":"ledger:a-stream-or-recording-that-the-cpu-converts-to-a-4","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nA stream or recording that the CPU converts to a 4:2:0 format (NV12, I420, P010 and the like) at an odd output height no longer has a wrong-coloured bottom row: the scaler now copies the last chroma row it writes instead of leaving that row of the frame unwritten. *All*, 2026-10-31. Issue #3159.","chars":372,"tokens_est":93,"sha256":"36f3802126a6a5986d48a963208359c63927ed55b2bbec88cbc919595f310eb5"},{"id":"ledger:an-srt-media-source-in-listener-mode-reconnects-wh","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nAn SRT Media Source in listener mode reconnects while a recording runs; before, on Windows, it reconnected only after the recording stopped. The helper processes OBS starts, such as the recording's muxer, no longer inherit OBS's sockets and open files, so a socket a source closed is really closed. *All*, 2026-11-01. Issue #3449, upstream obsproject/obs-studio#4596.","chars":443,"tokens_est":111,"sha256":"9c94410d5e96dfe3c418c4ba30c159d03501abd774d838d55a8e544dba5b5ae9"},{"id":"ledger:with-remember-these-settings-on-in-the-youtube-b","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nWith \"Remember these settings\" on in the YouTube broadcast dialog, the \"Automatically stop\" checkbox comes back as it was saved, instead of as whatever \"Automatically start\" was, so a broadcast no longer ends, or stays live, against the user's choice. *All*, 2026-11-01. Issue #3448, upstream obs-studio issue 13856.","chars":392,"tokens_est":98,"sha256":"c50f0907029ad45ace9400b1f4192077b8e3909adebd9a77be9265948e51747a"},{"id":"ledger:obs-no-longer-hangs-on-exit-when-a-recording-was-s","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nOBS no longer hangs on exit when a recording was stopped before it got any data, such as a Source Record recording of a source whose audio had not started yet. Such a recording now stops at once and can start again. *All*, 2026-11-06. Issue #3739.","chars":323,"tokens_est":81,"sha256":"b33d00dbd4e0601b5d11d803503e2d39100bfe27c9ec2445d18cad434f11e0f3"},{"id":"ledger:obs-no-longer-crashes-when-a-recording-stops-or-fa","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nOBS no longer crashes when a recording stops or fails right after it was started, before it got any data, with an older Source Record filter (before 0.5.0): such a stop sent the output's stop signal twice, and the filter freed its data twice. *All*, 2026-11-13. Issue #3799.","chars":350,"tokens_est":88,"sha256":"1655972efbf8c2242dde579af273c2148d97d475d9c27f346287e598da07b931"},{"id":"ledger:obs-no-longer-hangs-on-exit-after-a-stream-was-sto","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Encoding, streaming and recording"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#encoding-streaming-and-recording","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Encoding, streaming and recording]\nOBS no longer hangs on exit after a stream was stopped while it waited to reconnect, such as an SRT stream (from OBS or from a Source Record filter) to a server that does not answer. The stop now finishes at once. *All*, 2026-11-07. Issue #3739.","chars":321,"tokens_est":80,"sha256":"9605e905286f90e4073a588c6fd291d0c2e8274e5cf9e49410ccca491db9a7ad"},{"id":"ledger:113","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/113","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nThe color grade filter loads 1D .cube LUTs correctly, and a .cube file with a very large size no longer crashes OBS or writes out of bounds. *All*, 2026-10-10. Issue #94, PR #113.","chars":241,"tokens_est":60,"sha256":"df88cec86f7ee89efbf70d0fd72e54cc8af8f916e52ac01b587546235a938a6b"},{"id":"ledger:121","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/121","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nText (FreeType 2) sources read UTF-16 text files correctly, without garbage characters, crashes or a stray byte-order mark. *All*, 2026-10-11. Issue #95, PR #121.","chars":224,"tokens_est":56,"sha256":"6e5aaa78c0983bddb7bb64a4b249187369cb6d5c7c6cb7bf6e4478fcbaaad5c9"},{"id":"ledger:193","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/193","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source playing an RTSP camera that goes silent now times out after about 10 seconds and reconnects when the camera comes back. *All*, 2026-10-11. Issue #189, PR #193, upstream obsproject/obs-studio#12958.","chars":274,"tokens_est":68,"sha256":"d21f690f1409efbe295a13c7570d2dd2beac5c74c83335bc80b299abd7766be6"},{"id":"ledger:196","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/196","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Text (FreeType 2) source whose text changes often no longer stops drawing new letters after a while. *All*, 2026-10-11. Issue #195, PR #196, upstream obsproject/obs-studio#11819.","chars":242,"tokens_est":60,"sha256":"74aa596e2f6d3402d003bdf2b7603bc24969ee011590bdd0fa6961bf16579981"},{"id":"ledger:250","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/250","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source that restarts when it becomes active no longer flashes its old last frame and shows its first frame at once. *All*, 2026-10-11. Issues #249, #321, PRs #250, #322, upstream obsproject/obs-studio#4667, obsproject/obs-studio#10488.","chars":305,"tokens_est":76,"sha256":"a83fd8c84479be164299c4f8d14006b4c23b3349ecd7d6c43d95b6dded4c0ffe"},{"id":"ledger:293","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/293","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Text (FreeType 2) source that reads from a file shows the whole file, also when the file contains NUL bytes. *All*, 2026-10-12. Issue #292, PR #293, upstream obsproject/obs-studio#7595.","chars":249,"tokens_est":62,"sha256":"afc7f3b4e3988556aedd749a61e8e055812a095d28f8463846006b4918846e9a"},{"id":"ledger:307","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/307","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source that plays once (Loop off), such as a GIF, now shows its last frames. *All*, 2026-10-12. Issue #306, PR #307, upstream obsproject/obs-studio#10425.","chars":224,"tokens_est":56,"sha256":"5f1938bc60440a2b19847ce95286decaccee2974828be12be59df819f7c5990c"},{"id":"ledger:313","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/313","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nSeeking in an audio file with embedded cover art continues from the new position instead of ending playback. *All*, 2026-10-12. Issue #312, PR #313, upstream obsproject/obs-studio#11195.","chars":248,"tokens_est":62,"sha256":"269d99fe0fe6dae87998848379552f95141531520f02bd6c03523fc968681c98"},{"id":"ledger:315","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/315","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nChanging the audio track, subtitle track or network caching of a VLC Video Source takes effect every time. *All*, 2026-10-12. Issue #314, PR #315, upstream obsproject/obs-studio#8346.","chars":245,"tokens_est":61,"sha256":"db37b27b2ff12eae1d40fc5e779b087c7ba363b31e10b3c9ee99cfe05176148c"},{"id":"ledger:5105","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/5105","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA VLC Video Source no longer shows subtitles while \"Enable subtitles\" is off, also when the file has a default subtitle track or a subtitle file beside it. *All*, 2026-11-18. Issue #5102, PR #5105, upstream obsproject/obs-studio#14199.","chars":297,"tokens_est":74,"sha256":"5d9d40c36be240a908fa52ee3bb3a2de8906367ac7fa4f0a831085b29a2fd8ad"},{"id":"ledger:317","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/317","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nYadif 2x deinterlacing shows bottom-field-first video in the correct order. *All*, 2026-10-12. Issue #316, PR #317, upstream obsproject/obs-studio#6061.","chars":214,"tokens_est":54,"sha256":"2ab0177208e3df9b681a7b11d2c6411e5c00dc7a83759fd8df8a3ec9e8653f8e"},{"id":"ledger:372","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/372","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nScale filtering works on rotated scene items instead of aliasing or making them transparent. *All*, 2026-10-12. Issue #371, PR #372, upstream obsproject/obs-studio#12625.","chars":232,"tokens_est":58,"sha256":"72648968803b3d53e16424cf38deb04627d8389cd4921854440d0b9350b8f4e6"},{"id":"ledger:374","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/374","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Stinger transition plays its whole clip when the clip's header gives a short or no duration. *All*, 2026-10-12. Issue #373, PR #374, upstream obsproject/obs-studio#9755.","chars":233,"tokens_est":58,"sha256":"02d95c11aff831ef4b0d1edf122c57d1428fa7ea0e5c6d4172b9b3e536b2f5e2"},{"id":"ledger:a-stinger-transition-set-to-monitor-only-before","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Stinger transition set to \"Monitor Only\" before 33.0 no longer plays into the stream and recordings after the upgrade: it loads with its monitoring restored and muted, the 33.0 form of monitor-only. A transition saved by 33.0 is unchanged. A new or edited Stinger can be set to Monitor Only again: \"Monitor Only (mute output)\" under \"Audio Monitoring\" keeps its clip in the monitor and out of the stream and recordings. *All*, pending merge. Issues #2638, #5391, upstream obsproject/obs-studio@646836a, obsproject/obs-studio#14144.","chars":595,"tokens_est":149,"sha256":"84b635ff3465c706e662557ddb06f422d110afcfbe3969451932c5f6072172f3"},{"id":"ledger:395","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/395","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nDouble-rate deinterlacing (Yadif 2x, Linear 2x, Discard 2x) shows every field when the source field rate is not the canvas rate, so 50i on a 60 fps canvas is no longer choppy. *All*, 2026-10-12. Issue #394, PR #395, upstream obsproject/obs-studio#3402.","chars":314,"tokens_est":78,"sha256":"c7e7ba18db3adeb6fcebc8bcc36684affc32fc75a93de798cf04141e2877de14"},{"id":"ledger:397","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/397","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA FreeType 2 Text source set to \"Read from file\" shows a file that is created after the source is loaded, without a restart. *All*, 2026-10-12. Issue #396, PR #397, upstream obsproject/obs-studio#3196.","chars":263,"tokens_est":66,"sha256":"bd06b1f9b29a5d9abb817ceaf4958dde261546e6d6670a4689e4d561a7f12ca7"},{"id":"ledger:466","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/466","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source no longer leaks memory each time a read fails, for example on a network timeout or at the end of a file. *All*, 2026-10-13. Issue #463, PR #466.","chars":221,"tokens_est":55,"sha256":"944c70702c19fb7d195831e27151bd0e06d73efaf43d96ea8d8dd11c64594d35"},{"id":"ledger:479","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/479","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source seek (seek bar or obs-websocket SetMediaInputCursor) goes to the requested time, not to the keyframe before it. *All*, 2026-10-13. Issue #478, PR #479, upstream obsproject/obs-websocket#1190.","chars":268,"tokens_est":67,"sha256":"23acdd7c144e1122715067360097073ad0e213eda19cc6169137838981bb1130"},{"id":"ledger:505","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/505","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nPlay after Stop or after the end of the file starts a Media Source again from the beginning, from the hotkey or obs-websocket TriggerMediaInputAction. *All*, 2026-10-13. Issue #504, PR #505, upstream obsproject/obs-websocket#1046.","chars":292,"tokens_est":73,"sha256":"5ce7a5dfc2f37cabecc88a78266ccec159588017db14b05f40345b91276a2e06"},{"id":"ledger:518","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/518","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source follows a stream whose frame size or pixel format changes, and the picture no longer freezes or becomes garbled. *All*, 2026-10-13. Issue #517, PR #518, upstream obsproject/obs-studio#5010.","chars":266,"tokens_est":66,"sha256":"6956c08e36fbf2b73edb916a7ed4355a1ef94a119037df63057fc0c7cf319054"},{"id":"ledger:548","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/548","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nAn Image source reloads an image file that is replaced within the same second. *All*, 2026-10-13. Issues #547, #564, PRs #548, #565, upstream obsproject/obs-studio#10700.","chars":232,"tokens_est":58,"sha256":"208e5354b8115d1e26eaaa97a04803c2e1883ee3d3321821e508b1479aa6be3a"},{"id":"ledger:573","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/573","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA cropped Media Source with show/hide transitions plays again when it is shown after it played to its end. *All*, 2026-10-13. Issue #572, PR #573, upstream obsproject/obs-studio#10852.","chars":246,"tokens_est":62,"sha256":"5c9d2590c46c259df417fe7e732df774869b622c45c6ddf52092bb994eb27e32"},{"id":"ledger:577","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/577","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA looped Media Source plays an .mp3 or a file that does not start at 0 again without a gap of silence and a held picture. *All*, 2026-10-13. Issue #576, PR #577, upstream obsproject/obs-studio#12028.","chars":261,"tokens_est":65,"sha256":"aabc6eef7c35e9fdad69f36b3134e94c3ea2788b5479b97a95cba7c13308beac"},{"id":"ledger:579","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/579","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nAn Image Slide Show set to an aspect ratio such as 16:9 gets a real size instead of 0x0. *All*, 2026-10-13. Issue #578, PR #579, upstream obsproject/obs-studio#11696.","chars":228,"tokens_est":57,"sha256":"d4baf1f7c79683e0951badf641f7934c81cc2574ab9ae669e17c82c785839dc6"},{"id":"ledger:711","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/711","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nChanging Antialiasing on a Text (FreeType 2) source that reads from a file no longer blanks its characters. *All*, 2026-10-14. Issues #484, #686, PR #711.","chars":216,"tokens_est":54,"sha256":"d731012fa00edad6d56de7bebc0f3f26cd771ea78d2a7fd87b85035b2f5edf6f"},{"id":"ledger:732","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/732","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA local Media Source that closes when inactive plays again when it is restarted at its end, instead of showing nothing. *All*, 2026-10-14. PR #732.","chars":209,"tokens_est":52,"sha256":"f25a1d4edee1870e65332d14414436327c0f5e33f62d7f5f628c0d3c524ded3d"},{"id":"ledger:733","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/733","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nChanging the settings of a Media Source no longer can crash OBS while the old file is still opening. *All*, 2026-10-14. PR #733.","chars":190,"tokens_est":48,"sha256":"b48cb807dab278cad29f59ec4505bcb63773c3b09875a519d39af1857c11d62b"},{"id":"ledger:766","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/766","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nUndo and Redo in the Filters dialog step through each change correctly when two settings change within half a second. *All*, 2026-10-14. Issue #765, PR #766, upstream obsproject/obs-studio#10628.","chars":257,"tokens_est":64,"sha256":"9b2ca09618efaf079f2dda3ae38f0023db530f0eba827db33bc0afa75b13daef"},{"id":"ledger:731","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/731","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nSeeking a paused local Media Source shows the new frame at once, also when it caches the file. *All*, 2026-10-15. PR #731.","chars":184,"tokens_est":46,"sha256":"5269020acffefa8f6a9f9b221083280385eeacc85ed2cade8a615e15554afcb0"},{"id":"ledger:735","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/735","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nAn emptied legacy slideshow clears and reports its end also in manual, paused and deactivated modes, without a deadlock. *All*, 2026-10-15. PR #735.","chars":210,"tokens_est":52,"sha256":"9698809208b1f6f989ba9d71d5fa3722969cc37a262449bef12539bfe869265c"},{"id":"ledger:793","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/793","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nNext on the last slide of an Image Slide Show in \"Once\" mode ends the slideshow instead of going back to the first slide. *All*, 2026-10-15. Issue #792, PR #793.","chars":223,"tokens_est":56,"sha256":"543c9cb4de90453d7cd180ca8b9b4293f0aa7d545f3814bd107230fc3af94d1b"},{"id":"ledger:798","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/798","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nThe Scroll filter shows sources wider or taller than 16384 pixels, such as long text tickers; before, they disappeared. *All*, 2026-10-15. Issue #797, PR #798, upstream obsproject/obs-studio#10034.","chars":259,"tokens_est":65,"sha256":"634c0daf67387552832683c3067c84760fd67942190557c969a4ee4f54945dfc"},{"id":"ledger:822","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/822","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nImage Source and Image Slide Show follow the EXIF orientation with FFmpeg 8.1 and later, so portrait photos are no longer sideways. *All*, 2026-10-15. Issue #821, PR #822, upstream obsproject/obs-studio#5223.","chars":270,"tokens_est":68,"sha256":"c31d0897fbe201b1f646645cc75bbe994c026e460c0d630f8209179dcd162777"},{"id":"ledger:1106","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1106","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nWhen you close a VST plug-in window with its own close button, the filter shows Open Plug-in Interface again and you can reopen the editor. *All*, 2026-10-16. Issue #1105, PR #1106, upstream obsproject/obs-studio#13580.","chars":281,"tokens_est":70,"sha256":"a64e0fcfe111baf21b256407e36755cd127898d17579be3f0d2a03acacfd0c02"},{"id":"ledger:1113","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1113","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nOBS no longer crashes when you pick a file, font or color in Properties after the source refreshed its properties while the dialog was open. *All*, 2026-10-16. Issue #1112, PR #1113, upstream obsproject/obs-studio#10423.","chars":282,"tokens_est":70,"sha256":"5a07c6d25f6371be54f6c14bef46dbdad3342bc820adf4800c08db94b0d5ecd8"},{"id":"ledger:1123","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1123","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source playing a file whose timestamps do not start at 0, such as MPEG-TS, shows the correct time and seeks to the correct position. *All*, 2026-10-16. Issue #1122, PR #1123.","chars":244,"tokens_est":61,"sha256":"606f71fd65543372005d93d9061dfe22425ca8e0bb4d8df5252323822b7fedbf"},{"id":"ledger:1132","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1132","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Media Source playing a WebM with alpha from a URL shows the video, not only the audio. *All*, 2026-10-16. Issue #1131, PR #1132.","chars":192,"tokens_est":48,"sha256":"f48167eaebf0bc43e3550d90300c8381595166bbc4d2e1df461975104456cea2"},{"id":"ledger:1472","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1472","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA Color Correction filter at its default settings leaves a high-precision (16-bit) source such as macOS Screen Capture as it is; before, it turned saturated colours (reds, greens) black or transparent. 8-bit sources look the same as before. *All*, 2026-10-19. Issue #1471, PR #1472, upstream obsproject/obs-studio#10403.","chars":382,"tokens_est":96,"sha256":"62865b803f9a90855edaab4c38e0bac51e8f0b97fe2e8579099daaeec93d973e"},{"id":"ledger:1474","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1474","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nAn Image source given a picture larger than the GPU's texture size limit fails at once, with a log line that gives the size and the limit, instead of using gigabytes of memory and freezing OBS for seconds. *All*, 2026-10-19. Issue #1473, PR #1474, upstream obsproject/obs-studio#3427.","chars":346,"tokens_est":86,"sha256":"69fa532844adb10309e65061af61dde7d5b8d60a1245a051b4bea585f799c409"},{"id":"ledger:1493","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1493","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nHDR Tone Mapping (and any filter that reads the colour space of what is below it) works whatever the filter order: an audio filter such as Gain or Noise Suppression below it no longer makes an HDR source look SDR. *All*, 2026-10-19. Issue #1492, PR #1493, port of obsproject/obs-studio#13761.","chars":354,"tokens_est":88,"sha256":"9aba3bef78f1010b939c1f96923e7ff7860672fc080e6da527c3dab5db53a203"},{"id":"ledger:1678","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1678","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nStopping a VLC Video Source playlist just as a track ends no longer crashes OBS, and no longer lets the next item start playing after the Stop. *All*, 2026-10-21. Issue #1677, PR #1678.","chars":247,"tokens_est":62,"sha256":"ff557161de4484cfe889d97f486a01bacfdffa4b8add77e60b67ba8a1dce1606"},{"id":"ledger:1995","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/1995","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nDouble-rate deinterlacing (Yadif 2x, Linear 2x, Discard 2x) shows both fields of the first frame when a source starts, restarts or comes back after a pause, instead of skipping the second field or holding the frame too long (an unbuffered source still moves straight on when its next frame is already waiting). *All*, pending merge. Issue #1965, PR #1995.","chars":417,"tokens_est":104,"sha256":"af16bb661ee1db6da31132c3bd977cd38d456f290728a5d10903c756bba2f314"},{"id":"ledger:2048","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/2048","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nDouble-rate deinterlacing (Yadif 2x, Linear 2x, Discard 2x) shows every frame of a buffered source after it falls behind and catches up, instead of sometimes skipping the fields of a later frame and showing the frame after it a frame early. *All*, pending merge. Issue #2009, PR #2048.","chars":347,"tokens_est":87,"sha256":"18cffbe483cd14f28e3c0fc533d7351b55883592d7f24c8e367eb5b225ffea10"},{"id":"ledger:a-camera-capture-card-or-media-source-whose-deint","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA camera, capture card or media source whose deinterlace mode is not one OBS knows (from an edited or generated scene collection, a plugin or a script) is drawn with deinterlacing off, instead of drawing nothing, and its Deinterlacing menu shows Disable. *All*, pending merge. Issue #2090.","chars":351,"tokens_est":88,"sha256":"9e880e18e27dcf0b6fe75a7c99f166f398d7cab23d857918d66fa645b69e7c07"},{"id":"ledger:2847","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/2847","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nDisplay Capture can follow the same monitor after a dock or output change during a session when its EDID manufacturer, product and serial identify exactly one connected display. *Windows*, pending hardware validation and merge. Issues #2839, #2224, PR #2847.","chars":320,"tokens_est":80,"sha256":"58bc6866f31e7a513b1edc83b50ed47c051a4402b73dceae29b1b31bc5ac8c43"},{"id":"ledger:screen-capture-xshm-keeps-capturing-the-monitor","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nScreen Capture (XSHM) keeps capturing the monitor it was set to when another monitor is unplugged or plugged in: it saves the RandR monitor's name, not only its place in the list, and shows no other monitor when its own goes away. *Linux*, 2026-10-25. Issue #2261, upstream obsproject/obs-studio#5502.","chars":363,"tokens_est":91,"sha256":"b255b10a90e93a97eeda24b01ed1764134bf72220416a2eced0fbb7849aa1de2"},{"id":"ledger:2390","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/2390","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nOn macOS, a first browser source created by obs-websocket (`CreateInput`) renders. Before, CEF started on obs-websocket's thread, and no browser source rendered for the rest of the session, also ones added in the UI later. If that first source arrives while OBS quits, after Qt's main loop has stopped, OBS leaves CEF uninitialized and quits, instead of hanging. *macOS*, 2026-10-25 (the quit part pending merge). Issues #2387, #2391, PRs #2390, obs-rust/obs-browser#10, obs-rust/obs-browser#11.","chars":557,"tokens_est":139,"sha256":"bcfee43338ff7e795ee2219e02e62de841ecb130dad945b08a09446681e967e1"},{"id":"ledger:2468","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/2468","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA frame of an animated GIF whose last LZW code ends on a byte boundary at the end of the frame's data no longer loses its last pixels (backport of libnsgif 2255b2f74). *All*, 2026-10-26. Issue #2465, PR #2468.","chars":271,"tokens_est":68,"sha256":"79c10677bdd91663e5a1521cf4ebe6544a98a6dda1c32d1cad482c92905d9e1d"},{"id":"ledger:image-sources-report-the-memory-their-picture-uses","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nImage sources report the memory their picture uses again, and an Image Slide Show saved before the slideshow rework keeps no more than about 400 MiB of slides decoded: the slides past that are loaded only around the one on screen, and every slide is still shown in order. Newer slideshows are unchanged. *All*, pending merge. Issue #2279, upstream obsproject/obs-studio#14076.","chars":438,"tokens_est":110,"sha256":"cb1f63f9aa98729b0b8995bb2345edc20d630b36eed55f5d5082f71715096ae6"},{"id":"ledger:in-such-a-slideshow-next-and-previous-report-the","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nIn such a slideshow, Next and Previous report the new slide's index (the `current_index` procedure) only once its transition has started, not while a slide past the memory cap is still being decoded. *All*, pending merge. Issue #3789.","chars":296,"tokens_est":74,"sha256":"b3b9ad073c0b7dd202e201970c03ba16c18be71ca5cc7e19662cda82909add20"},{"id":"ledger:shader-effects-that-give-an-int-or-bool-parame","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nShader effects that give an `int` or `bool` parameter a default value (in a plugin's shader filter or a custom `.effect` file) now draw with that default on Linux and macOS, instead of 0 or false with a \"Size of shader param does not match\" error in the log. *Linux, macOS*, 2026-10-27. Issue #2548.","chars":361,"tokens_est":90,"sha256":"880771264e9245666f85acea6f06444109a6959df7b91618ed433483cc198139"},{"id":"ledger:effect-int-values-past-the-int-range-an-int","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\n**Effect int values past the int range.** An `int` default or an array size in a shader effect (a plugin's shader filter or a custom `.effect` file) past the `int` range now reads as the nearest `int` on every platform: `3000000000` gives 2147483647 instead of -1294967296 on Linux and macOS, and `-2147483648` gives -2147483648 instead of -2147483647 on Windows. The same holds for the `int` defaults of a plain shader, read by the shader parser, while a plain shader's array size past the range is now a parse error, as a size that is not a number is, instead of wrapping to another size. Values inside the range are unchanged. *All*, 2026-11-02. Issues #3464 and #3468.","chars":734,"tokens_est":184,"sha256":"48139b577260e3c37406e404e0edd091e578a10b532efc5b3cdd59d2c184bdb8"},{"id":"ledger:2516","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/2516","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA frame read in parts, the way a Media Source scans an animated GIF, no longer makes the rest of the frame decode as a separate block when the read stops at the end of the frame's data: the next scan starts the frame again, so the frames after it decode instead of coming out corrupted. *All*, 2026-10-27. Issue #2515, PR #2516.","chars":390,"tokens_est":98,"sha256":"2bdcedf764212ad20cda868f32da026b996bded0757deef6025fb041d412c0de"},{"id":"ledger:a-plugin-source-that-lists-its-child-sources-only","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA plugin source that lists its child sources only as \"all sources\" (not as active ones) is now checked for loops: setting or starting a transition to it while it holds that transition, moving a scene item into a scene it holds, or adding it as an active child of a source it holds is refused, instead of being accepted and risking a hang. *All*, 2026-10-29. Issue #2942.","chars":432,"tokens_est":108,"sha256":"1d1eb3051831fe37e0e879233ed5a2041a984c90944d391e56ede2de2bd07f53"},{"id":"ledger:undoing-a-filter-change-on-a-source-that-has-a-fil","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nUndoing a filter change on a source that has a filter from a plugin that isn't loaded no longer brings that filter back as a public source (one that takes a place among the source names, and is renamed if a source already has its name). A script or plugin can no longer put one filter on two sources at once, leave a source's filters locked for good by adding a filter that is being destroyed, or set off a reorder of a source's filters with a movement that doesn't exist. *All*, 2026-10-30. Issue #2981.","chars":566,"tokens_est":142,"sha256":"d0aaa0d7a0f622a3c7497f594395b6eab764343d0fc488d4478687b31eb54d59"},{"id":"ledger:a-shader-effect-a-plugin-s-shader-filter-or-a-cus","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA shader effect (a plugin's shader filter or a custom `.effect` file) whose pass names a vertex or pixel function the file doesn't define now fails only that shader. The pass's other shader no longer leaves out the parameters the bad call named, so the log shows no extra undeclared-identifier errors pointing away from the typo, and loading the effect no longer leaks a little memory each time. *All*, 2026-11-04. Issue #3625.","chars":489,"tokens_est":122,"sha256":"af6649ede38bac961c57125ca2104f55de49de7a7d4d53c73d0d7ad819069ab2"},{"id":"ledger:3643","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/pull/3643","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nMedia Source status queries from the UI or scripts now synchronize with decoding when reporting playback time, frame count, stream availability and playback state. *All*, 2026-11-05. Issue #3572, PR #3643.","chars":267,"tokens_est":67,"sha256":"648390fd883f7b1f636eadfd0350a44076eeee24e8dbc309474be8cf4ff05a43"},{"id":"ledger:a-shader-effect-a-plugin-s-shader-filter-or-a-cus+","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA shader effect (a plugin's shader filter or a custom `.effect` file) whose vertex or pixel function takes two or more separately mapped parameters, such as `float4 pos : POSITION, float2 uv : TEXCOORD0`, now compiles. The generated `main()` used to run them together with no comma, so the shader failed with a syntax error in code the file doesn't contain. *All*, 2026-11-06. Issue #3768.","chars":451,"tokens_est":113,"sha256":"d1c45e3dbc6fedadca4d351b452cccc838bad7619d92e77e7539cd6480256cae"},{"id":"ledger:a-browser-runtime-that-never-finishes-starting-no","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA browser runtime that never finishes starting no longer leaves OBS waiting forever at quit. A startup warning names the CEF version and explains why browser sources and docks are unavailable. A slow runtime can still recover. *Linux*, 2026-11-07. Issue #3833.","chars":322,"tokens_est":80,"sha256":"2e8e68bd2a85bd18e9b76a0d11727a87c60fdd0c6efcfa6489091bed96462170"},{"id":"ledger:a-new-image-slide-show-plays-the-images-of-a-folde","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Sources and filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#sources-and-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Sources and filters]\nA new Image Slide Show plays the images of a folder in name order on Linux and macOS too (slide2 before slide10), instead of the filesystem's order. A Folder Order setting chooses Name (natural), Name (A-Z) or Filesystem order; slideshows saved before keep filesystem order. *All*, pending merge. Issue #3451, upstream obsproject/obs-studio#10382.","chars":409,"tokens_est":102,"sha256":"f497b07772bc6187b0273fee916059948114ef7c1f29d4018ee63f46bc30b732"},{"id":"ledger:edit-undo-is-no-longer-clickable-when-there-is-n","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nEdit > Undo is no longer clickable when there is nothing to undo; it was enabled again after loading a scene collection or closing the Filters dialog, even with an empty history. *All*, 2026-10-24. Issue #2222.","chars":266,"tokens_est":66,"sha256":"3fca224d84daecd7556c61c3c25ebd90788c044d12c7db97ed59d4451561b785"},{"id":"ledger:54","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/54","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nTheme metadata, theme string variables and effect annotation strings that contain escape characters no longer end with a stray closing quote. *All*, 2026-10-09. Issue #48, PR #54.","chars":235,"tokens_est":59,"sha256":"0f1a38296c3fd756f1e0566ebc55180f329e8d1f1e68c8ccdd8c0c72d595b39d"},{"id":"ledger:56","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/56","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nHotkeys from saved files or plugins can no longer be bound to the left or right mouse button, so a normal click does not trigger a hotkey. *All*, 2026-10-09. PR #56, upstream obsproject/obs-studio#13403.","chars":259,"tokens_est":65,"sha256":"7046ce452b15a368f25989b7321891864527a6d399e355047b14d81b5f78e16b"},{"id":"ledger:242","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/242","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA source moved into or out of a hidden group now becomes active or inactive correctly, so it no longer plays audio while hidden or stays silent while visible. *All*, 2026-10-11. Issue #241, PR #242, upstream obsproject/obs-studio#9961.","chars":291,"tokens_est":73,"sha256":"0d988b39400e1c78902d2e755f8e203bc6bc38d01da728e01a446b2c6a435089"},{"id":"ledger:280","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/280","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nMoving one child of a group no longer moves the other children of the group across the canvas. *All*, 2026-10-11. Issue #279, PR #280, upstream obsproject/obs-studio#9298.","chars":227,"tokens_est":57,"sha256":"fa4c6ba44c651888c6704b6ca0fd1120c36086092b45092a8087435bd193b42e"},{"id":"ledger:304","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/304","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nMoving a scene into a group that the scene contains is refused instead of crashing OBS. *All*, 2026-10-12. Issue #303, PR #304, upstream obsproject/obs-studio#10466.","chars":221,"tokens_est":55,"sha256":"0202ddc04fc212f7ca9659e3cf1291f7b264e8715281f8a553b6b41f7cf7989f"},{"id":"ledger:325","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/325","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nHiding a group now stops children that have show/hide transitions, so a hidden media source no longer plays. *All*, 2026-10-12. Issue #324, PR #325, upstream obsproject/obs-studio#5551.","chars":241,"tokens_est":60,"sha256":"3710a71e1a3c5a178c17f2c1b4e79ea44e9c47d1cda1753d17e39a3bfc082f77"},{"id":"ledger:346","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/346","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe Studio Mode Program view, a duplicated scene and an ungrouped item now draw scene items at the correct size. *All*, 2026-10-12. Issue #345, PR #346, upstream obsproject/obs-studio#12171.","chars":246,"tokens_est":62,"sha256":"5d09affa9db2d9f7a388e32e4783f1ba282f9dbd09504855caec1599767fbfa8"},{"id":"ledger:4052","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/4052","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nIn Studio Mode, the Program view follows the window to a screen with another pixel ratio (for example from a Retina display to an external display) and keeps its size and position, instead of keeping the old layout until the window is resized. Projectors and other previews follow too. *All* (seen on macOS), 2026-11-08. Issue #4010, PR #4052.","chars":399,"tokens_est":100,"sha256":"82983aa8a69c7bf66c0eefb34833f0a0954919efd10cb0c0c025c7ab8bc3038d"},{"id":"ledger:350","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/350","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOn X11 with a second keyboard layout, hotkeys on keys like [ and ] use the correct key instead of a number key. *Linux*, 2026-10-12. Issue #349, PR #350, upstream obsproject/obs-studio#12941.","chars":247,"tokens_est":62,"sha256":"3c6796cac4c26ea1e98da2c7036c2e67d522f89179dd1171c473feb1414373f4"},{"id":"ledger:358","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/358","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nIn Studio Mode, hiding a source that is only in the Preview now hides it, so \"Shutdown source when not visible\" works. *All*, 2026-10-12. Issue #357, PR #358, upstream obsproject/obs-studio#4120.","chars":251,"tokens_est":63,"sha256":"cbff15a47e866d27858c9073e2813f0c369d8a9bb4996589d5b05112b8a69272"},{"id":"ledger:362","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/362","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nCopy Transform and Paste Transform work with items inside groups and use canvas positions. *All*, 2026-10-12. Issue #361, PR #362, upstream obsproject/obs-studio#5478.","chars":223,"tokens_est":56,"sha256":"0cf5b781ac33e517fff11654b959e88514d345af5a82dd79e1db61662f0a85fe"},{"id":"ledger:366","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/366","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nPaste Filters pastes into every selected source, not only one. *All*, 2026-10-12. Issue #365, PR #366, upstream obsproject/obs-studio#4290.","chars":195,"tokens_est":49,"sha256":"23f14b36fcc20ffd4bff79094580c76f581cf4c4d13deccd16c08e1b86e35288"},{"id":"ledger:382","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/382","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe time in the media controls follows the media time, also on long files. *All*, 2026-10-12. Issue #381, PR #382, upstream obsproject/obs-studio#11183.","chars":208,"tokens_est":52,"sha256":"c69ab408db9b389671abe1edfc1e3c5eedb17fe591fa2c9b995990c3dd5f4997"},{"id":"ledger:388","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/388","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA source added to an empty group with a bounding box keeps a valid transform and is drawn in the group's box. *All*, 2026-10-12. Issue #387, PR #388, upstream obsproject/obs-studio#4245.","chars":242,"tokens_est":60,"sha256":"4784367a2ec8a8f4fd3fede3398531429fcf9abf5ce508932ef1afdb06240a31"},{"id":"ledger:419","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/419","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA fresh profile no longer logs a false \"Failed to rename basic scene collection file\" error. *All*, 2026-10-13. Issue #155, PR #419.","chars":188,"tokens_est":47,"sha256":"bb49b8bb32e8cd9353ae9b06d79dfcb6d1221b21b5efc479b05b254fedb3419c"},{"id":"ledger:421","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/421","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe Decklink Captions and Decklink Output tools show their real menu and button text instead of raw text keys. *All*, 2026-10-13. Issue #157, PR #421.","chars":206,"tokens_est":52,"sha256":"b221facba69f0ce0505724b7d712563176f4c118c39dd62ea3635d1c3323271d"},{"id":"ledger:425","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/425","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA normal shutdown no longer logs the warning \"Tried to call obs_frontend_remove_event_callback with no callbacks!\". *All*, 2026-10-13. Issue #156, PR #425.","chars":211,"tokens_est":53,"sha256":"5b3fc037f339093f9833af7c566dac99dda8444f74faf8195c8e7c8a7cfbe25b"},{"id":"ledger:481","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/481","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nTurning Studio Mode off no longer sends scene-changed events for scenes that did not go live, so obs-websocket clients and Advanced Scene Switcher see no false CurrentProgramSceneChanged. *All*, 2026-10-13. PR #481, upstream obsproject/obs-websocket#1150.","chars":311,"tokens_est":78,"sha256":"fabbd8ecef45edb634102e5f574bbbf14e2802ae64e4fb716e378a71ec50c709"},{"id":"ledger:556","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/556","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nSwitching scenes quickly when a scene has a transition override no longer locks the program output on one scene. *All*, 2026-10-13. Issue #555, PR #556, upstream obsproject/obs-studio#11914.","chars":246,"tokens_est":62,"sha256":"a2055160db3e380f6a6a2180c9fab3da3c87036198dc85bf69b1e446a25e20e5"},{"id":"ledger:561","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/561","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nIn Studio Mode, a preview scene set while a transition runs stays in the preview and is not replaced by the old program scene. *All*, 2026-10-13. Issue #560, PR #561, upstream obsproject/obs-websocket#1320.","chars":262,"tokens_est":66,"sha256":"383f16945ec604936f01bfa5cfd38f1450a8bae25fcfe60222a1792cf837ab89"},{"id":"ledger:5020","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/5020","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nIn Studio Mode, a program switch that is refused because a transition is still running no longer becomes the current program scene: the frontend API and obs-websocket keep naming the scene on the program, and turning Studio Mode off no longer cuts to the refused scene. *All*, 2026-11-18. Issue #5017, PR #5020, upstream obsproject/obs-studio#14217.","chars":405,"tokens_est":101,"sha256":"fad75c90824329e29cf7eefbe504a6744c6def635695d838eb5fcda48f88a317"},{"id":"ledger:586","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/586","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOn the Advanced Streaming tab, the Rescale Output resolution is greyed out when Rescale Output is Disabled. *All*, 2026-10-13. Issue #585, PR #586, upstream obsproject/obs-studio#11908.","chars":241,"tokens_est":60,"sha256":"83130bdf5f62c34af64820cb1cbac16cfe64c3e1d71974dc6dbfe65206c8a8a6"},{"id":"ledger:588","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/588","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nProfile and scene collection names that contain '&' show correctly in the menus. *All*, 2026-10-13. Issue #587, PR #588, upstream obsproject/obs-studio#12853.","chars":214,"tokens_est":54,"sha256":"eaf8923c3f419a59f132d04cd51d3fa8048b2340011161aa9c39cf68f6efc17b"},{"id":"ledger:591","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/591","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe selected built-in transition stays selected when you change the UI language. *All*, 2026-10-13. Issue #590, PR #591, upstream obsproject/obs-studio#11844.","chars":214,"tokens_est":54,"sha256":"de4ba27890f7967e3603849bf7a7453e79deb3136c86efd18e14b59a4a1fb8b0"},{"id":"ledger:605","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/605","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe Add Source dialog lists existing sources of a type by name again. *All*, 2026-10-13. Issue #604, PR #605, upstream obsproject/obs-studio#13947.","chars":203,"tokens_est":51,"sha256":"8efe8f557fd8024a5fb7786d3aafdb357ea134583ce937873db6bb98c28e2dec"},{"id":"ledger:609","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/609","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nIn Settings > Stream, \"Show all...\" in the Service list no longer enables Apply or causes a false unsaved-changes prompt. *All*, 2026-10-13. Issue #608, PR #609, upstream obsproject/obs-studio#9860.","chars":254,"tokens_est":64,"sha256":"ae406250d4fb01de5ded47b21a3b9fedccad2973f772541cbdec838c97043855"},{"id":"ledger:758","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/758","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nShow Transition and Hide Transition from the Sources context menu apply to all selected sources, not only one. *All*, 2026-10-14. Issue #757, PR #758, upstream obsproject/obs-studio#10448.","chars":244,"tokens_est":61,"sha256":"ed220f9faa725be3a3380347dc7463b36c06c27ba3f823935e3da0efe9e639ad"},{"id":"ledger:760","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/760","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe Replay Buffer memory estimate in Settings > Output goes back to the normal colour when it is under the limit again. *All*, 2026-10-14. Issue #759, PR #760, upstream obsproject/obs-studio#13171.","chars":253,"tokens_est":63,"sha256":"87082787b77ac7b4f842889ad1507db1f2e583081fa543b31bafd89fabb2d5c2"},{"id":"ledger:764","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/764","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA Settings > Hotkeys field records Alt+C and Alt+O; before, these keys pressed Cancel or OK on KDE and GNOME. *Linux*, 2026-10-14. Issue #763, PR #764, upstream obsproject/obs-studio#13385.","chars":245,"tokens_est":61,"sha256":"73fb698f9e4ed6dde46b93dfdf9654c92c369f29525b50e4e301efd0600d5485"},{"id":"ledger:824","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/824","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nIn Studio Mode with \"Duplicate Sources\", editing a source inside a group in Preview no longer changes Program before the transition. *All*, 2026-10-15. Issue #823, PR #824, upstream obsproject/obs-studio#4309, obsproject/obs-studio#6977.","chars":293,"tokens_est":73,"sha256":"8698e3509d853e02dc8ab754921a87b22a7332cf18b191a687be56033f9b44c6"},{"id":"ledger:1080","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1080","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nSafe Mode and --only-bundled-plugins no longer show the Plugin Errors dialog, and removing a Missing plugin in the Plugin Manager removes the correct plugin. *All*, 2026-10-16. Issue #1079, PR #1080, upstream obsproject/obs-studio#13948, obsproject/obs-studio#14005.","chars":322,"tokens_est":80,"sha256":"ddb9fcfa3725626da300cffa184dee22f1f1a7c4967bbe9215514ae6d0a3f318"},{"id":"ledger:1115","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1115","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nShift+Tab out of a hotkey field in Settings > Hotkeys only moves the focus and no longer binds Shift to that action. *All*, 2026-10-16. Issue #1114, PR #1115, upstream obsproject/obs-studio#12475.","chars":252,"tokens_est":63,"sha256":"0dd1f2d5669f980de54ace2bebccda93aa9dfccb6156f1fc855791baff1086b6"},{"id":"ledger:1136","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1136","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nIn a tall Settings window, the audio track buttons on the Output page stay next to their Audio Track label. *All*, 2026-10-17. Issue #1135, PR #1136, upstream obsproject/obs-studio#13286.","chars":243,"tokens_est":61,"sha256":"02bf88f389389905b9109fec3e50a958d04363b48557ff8da923f0520167cb36"},{"id":"ledger:1144","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1144","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nScreenshot (Source) of a 10-bit or 12-bit source saves the colors that OBS shows, not a much darker picture. *Linux, macOS*, 2026-10-17. Issue #1143, PR #1144, upstream obsproject/obs-studio#13209.","chars":253,"tokens_est":63,"sha256":"e46ebf284654ffff274dc9377706d89b3435a43903e51a152bcf69a51ec0b9ed"},{"id":"ledger:1336","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1336","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nRecording to a network or NAS path that stops responding no longer freezes the window every second: the free-space check while recording and in the Stats window runs off the UI thread. *All*, 2026-10-17. Issue #1282, PR #1336.","chars":282,"tokens_est":70,"sha256":"66166f04dbb36a55f092409a411b802a655f5da6829a19daed6713566e91e28b"},{"id":"ledger:1342","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1342","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nQuitting OBS while recording no longer freezes the window while the recording finishes: OBS waits for the recording's stop signal with the event loop running (still up to 5 s, then a forced stop) instead of sleeping on the UI thread. *All*, 2026-10-17. Issue #1283, PR #1342.","chars":331,"tokens_est":83,"sha256":"992eee61a953a86cb6c875f1a5fcf9dfa261807c96fe2d454094a1fdc95cad63"},{"id":"ledger:recording-shutdown-waits-until-the-output-actually","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nRecording shutdown waits until the output actually reports inactive, including the interval after its deactivate signal; a signal alone no longer permits premature shutdown. The UI keeps processing events within the existing timeout. *All*, 2026-10-18. Issue #1391.","chars":321,"tokens_est":80,"sha256":"728014a6a6cbf78d8417e7fc10e98a3e5e0ada6640c22b7c5a89e531ec245e18"},{"id":"ledger:1643","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1643","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOutput deactivation publishes the inactive state before notifying signal consumers, preventing a shutdown observer from seeing an active output after deactivation. *All*, 2026-10-21. PR #1643.","chars":248,"tokens_est":62,"sha256":"494527b949f15d0e7a238e214fae2580d9026d3cb3ff5de8853d510219b987bc"},{"id":"ledger:exit-in-the-tray-menu-quits-obs-when-it-was-starte","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nExit in the tray menu quits OBS when it was started with `--minimize-to-tray` and its window was never shown; before, nothing happened. *Linux (Wayland)*, 2026-10-18. Issue #1400, upstream obsproject/obs-studio#13494.","chars":273,"tokens_est":68,"sha256":"1be434b4cf2f3a480ef42d979fb55519b292af51907ba27017bc2f8735f98ed8"},{"id":"ledger:a-source-set-to-darken-blending-leaves-the-backgro","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA source set to Darken blending leaves the background where it is transparent; before, it drew black there and cut a hole in the scene's alpha. *All*, 2026-10-18. Issue #1404, upstream obsproject/obs-studio#6591.","chars":268,"tokens_est":67,"sha256":"8c84f807763b3799a2f39cea4168bc0f76440b41d6cdc14b8bb50ebbea080ba3"},{"id":"ledger:the-text-freetype-2-source-uses-the-font-face-th","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe Text (FreeType 2) source uses the font face that was picked when it is not the first face of its file: Bold and other styles of variable fonts, and the language faces of font collections such as Noto Sans CJK. Before, these rendered as the file's first face. *Linux*, 2026-10-18. Issue #1409, upstream obsproject/obs-studio#11819.","chars":390,"tokens_est":98,"sha256":"abb8c2c95ab4092c74b45dd6791b9c273adb3b3e0641b798a71e115233726d5e"},{"id":"ledger:1483","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1483","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nHelp > Crash Reports > Upload Last Crash Report with no crash log to upload shows \"No file to upload found or file was empty.\" Before, the dialog stayed at \"Uploading...\" for good. *Windows, macOS*, 2026-10-19. Issue #1482, PR #1483, upstream obsproject/obs-studio#13401, port of obsproject/obs-studio#13414.","chars":364,"tokens_est":91,"sha256":"826fc8f542769742132f82d3e2fbdcb0e2a71e347b928e5c60653b6e1b76ba14"},{"id":"ledger:1479","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1479","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA plugin that reads or releases the Studio Mode T-Bar while Studio Mode is off (at startup, for example) no longer crashes OBS: the T-Bar reads as 0 and a release does nothing. *All*, 2026-10-19. Issue #1478, PR #1479, port of obsproject/obs-studio#13128.","chars":311,"tokens_est":78,"sha256":"402cb4ab808ca782f3cb870d2602530e6cb6138c962081fd666ed5163eaef4f6"},{"id":"ledger:1481","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1481","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nStudio Mode with \"Duplicate Scene\" no longer logs \"Attempted to add Scene without specifying a canvas!\" on every transition, and a plugin's private copy of a scene on a second canvas (a vertical canvas, for example) is sized for that canvas instead of the main one. *All*, 2026-10-19. Issue #1480, PR #1481, port of obsproject/obs-studio#12824.","chars":400,"tokens_est":100,"sha256":"fa434d53c2efed745676bd6489db06979572f124772d4376cc3ae269505920c8"},{"id":"ledger:1649","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1649","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nHotkey entries that bind nothing (no key and no modifier, saved as `{\"key\":\"OBS_KEY_NONE\"}`) are dropped when a profile or scene collection loads, so they are no longer saved back; such files still load as before. A load that clears a hotkey's bindings now tells Settings > Hotkeys and the Wayland global shortcuts. *All*, 2026-10-21. Issue #1648, PR #1649.","chars":413,"tokens_est":103,"sha256":"ac693b8820a5ce0437947de77b35cedb89cbd37f3017ec4b4c5ffeb891395f35"},{"id":"ledger:1673","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1673","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOn Linux, Settings > Hotkeys shows the arrow keys (Left, Right, Up, Down) in the chosen language; before, they were always in English. On every platform, a locale file or plugin with an empty numpad or mouse button name template no longer crashes OBS at startup; those keys keep their English names. *All*, 2026-10-21. Issue #1656, PR #1673.","chars":397,"tokens_est":99,"sha256":"27eaa70ec93a30a100e44353eb5c7c2491745b7a7e4e766b56d50f6e0c176ac8"},{"id":"ledger:1840","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/1840","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA scene collection with a negative scene item crop (edited by hand or written by another tool) loads with that crop at 0, as the Edit Transform dialog and obs-websocket set it; before, the item was drawn 2 pixels wide or high. A crop past the integer range, the crop of a nested scene that grows far, and the size of a group whose sources are very far apart now get the nearest value in range instead of a wrong one. *All*, 2026-10-22. Issue #1839, PR #1840.","chars":514,"tokens_est":128,"sha256":"40897705633500c6dc9106bf3b9e2199e2e2f14c420c5e6120f4f3ad6aa79d9f"},{"id":"ledger:2080","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/2080","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA scene collection whose transition has an unknown scale type (edited by hand or written by another tool) loads with the default, which only scales sources down to fit; before, the transition drew its scenes with an undefined scale. *All*, pending merge. Issue #2064, PR #2080.","chars":333,"tokens_est":83,"sha256":"8c822477f16cc95b692fe78e8d11c560e8400cb5909b6d586c7bfc2a1c96d926"},{"id":"ledger:2727","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/2727","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe docks keep the sizes you gave them. OBS saves the width of each dock in its row and the depth of each dock area (`BasicWindow/DockSizes`, next to the layout in `BasicWindow/DockState`). Only you change them: drag a separator, or move, float, hide, show or tab a dock. A window change does not change them: when the window narrows, a tiling window manager (for example Hyprland) retiles it, or a floated dock takes half the tile, the docks keep their shares of the row, and the Scenes/Sources column keeps its width while the preview has room. A quit from a small window saves the layout you set, not the squeezed one. A start with no saved sizes (the first start after the update, a layout from upstream OBS, Reset Docks, a Twitch, Restream or YouTube layout) shows the saved layout again at each window change until the window shows it in full or you change a dock. Upstream OBS reads the same `DockState`. *All*, pending merge. Issues #2225, #3740, #5230, PRs #2727, #2731, #2743, #3796, #4841, #5245, #5362, #5411.","chars":1077,"tokens_est":269,"sha256":"edc53783bc568fe56680a48d460d244634e556910597141976109705759e5e94"},{"id":"ledger:importing-a-profile-from-a-folder-path-that-ends-i","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nImporting a profile from a folder path that ends in a slash (as the macOS folder dialog returns it) creates the profile in a folder of its own; before, its files were copied into the profiles folder itself and no profile showed up. *All*, pending merge. Issue #2295, upstream obsproject/obs-studio#13862.","chars":360,"tokens_est":90,"sha256":"0d0d4f161e9869fce7792274436125dc5621faa19f261e0b70f346785a2c0471"},{"id":"ledger:on-linux-settings-hotkeys-names-the-volume-up-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOn Linux, Settings > Hotkeys names the Volume Up and Volume Down keys correctly; before, each showed and saved as the other, so a profile moved from Windows, or a binding from a script or plugin, fired on the other key. Existing hotkeys keep firing on the key they were set with. *Linux*, 2026-10-27. Issue #2635.","chars":369,"tokens_est":92,"sha256":"a06348c8065efde18864b8202e2b4be47d8e3d28b316215527831be43b7fd63b"},{"id":"ledger:2654","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/2654","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nA flipped item without a bounding box is now placed where x86-64 puts it on arm64 too: the negative scaled size no longer saturates to zero, which offset the item by half or all of its size on Apple Silicon and arm64 Linux. *Linux, macOS*, pending merge. Issue #2637, PRs #2654.","chars":334,"tokens_est":84,"sha256":"40db6d4382f7b23602cae3e96ed0dd7339357d1fe5677ef272a0bf086d1695d7"},{"id":"ledger:on-macos-a-hotkey-bound-to-a-mouse-button-follows","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOn macOS, a hotkey bound to a mouse button follows that button: Mouse 1 is the left button, Mouse 2 the right, and so on. Before, OBS tested an unrelated bit of the pressed buttons, so the hotkey's state was arbitrary. *macOS*, 2026-10-29. Issue #2914.","chars":308,"tokens_est":77,"sha256":"4ae5c168d803e72b63d45c4b238da22cae73265293f6bec716b59d8b32e243df"},{"id":"ledger:on-x11-a-mouse-button-hotkey-also-follows-a-raw-b","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOn X11, a mouse-button hotkey also follows a raw button event that carries X's send-event mark, and no longer takes three unrelated kinds of X event for a mouse button. A mouse button numbered 0 is logged as unsupported instead of being stored outside OBS's button table, and a script or plugin asking the name of a value that isn't a key gets no name instead of a read past the key table. *Linux, FreeBSD*, 2026-10-30. Issue #3098.","chars":488,"tokens_est":122,"sha256":"ae482abc95b938033a997026b6dfb35563343c28811875139f31c7fa7ffcd321"},{"id":"ledger:duplicating-a-scene-that-holds-a-group-no-longer-n","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nDuplicating a scene that holds a group no longer names the group's copy `__unnamed0000`, `__unnamed0001`, ...: the copy of group \"G\" is \"G 2\". *All*, 2026-11-18. Issue #4991, upstream obsproject/obs-studio#14145.","chars":268,"tokens_est":67,"sha256":"9d71863a2744c959fb27c2097e92f175eed0988545132ef90dcc9824836e249a"},{"id":"ledger:5410","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/5410","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nCmd+Q, logoff and shutdown quit OBS when a main dock (Scenes, Sources, Audio Mixer, Scene Transitions, Controls) floats; before, the quit could be cancelled, and OBS then stayed open for the rest of the session, also for File \u2192 Exit. *All*, 2026-11-21. Issue #5406, PR #5410.","chars":331,"tokens_est":83,"sha256":"4073d7bebcc7e5d6416b84d0df8a48a0fed98e0821fc041375014b756da6d699"},{"id":"ledger:5412","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/pull/5412","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nOn macOS a floating dock (for example Scenes or Stats on a second display) stays visible while another app is in front; before, it disappeared until OBS was active again. *macOS*, 2026-11-21. Issue #5409, PR #5412.","chars":270,"tokens_est":68,"sha256":"9650d753be5b70ebf6e95eca813332492191096f70f1ed7d0a892f4e048f905d"},{"id":"ledger:after-a-floating-dock-is-moved-the-main-window-st","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nAfter a floating dock is moved, the main window still lays out its docks: they follow a resize, and a dock that is docked again goes back to its place. Before, on macOS, the docks stayed as they were, and a docked dock kept its floating position outside the window until Reset Docks. *macOS*, 2026-11-21. Issue #5416.","chars":373,"tokens_est":93,"sha256":"20f665af9be677f4fe9c758e46a3e89c81a921555c7930a6a334b759a0c5b78a"},{"id":"ledger:closing-the-window-of-a-floating-main-dock-scenes","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nClosing the window of a floating main dock (Scenes, Sources, Audio Mixer, Scene Transitions, Controls) puts the dock back into the main window; before, the dock stayed open and OBS showed \"You just closed a dockable window\". The close key (Cmd+W on macOS, Ctrl+W or Ctrl+F4 elsewhere) closes the focused floating dock: a main dock goes back, other docks hide. In the main window the key does nothing. *All*, 2026-11-22. Issue #5408.","chars":488,"tokens_est":122,"sha256":"c7e330ebabff5faa901cfb64838b4ae167793e114e7fed9a6f9fb3a0d877dc28"},{"id":"ledger:the-dock-layout-of-a-logged-in-service-twitch-yo","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scenes and UI"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scenes-and-ui","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scenes and UI]\nThe dock layout of a logged-in service (Twitch, YouTube, Restream) keeps the sizes you gave its docks: OBS saves them with the layout (`<service>/DockSizes`, a new key that upstream OBS ignores). Before, each login started that layout without its dock sizes. *All*, 2026-11-22. Issue #5455.","chars":346,"tokens_est":86,"sha256":"e2d5425239bdbcdde2463f276a200e6a46cb14b2583a25ef7bb88f4b20e30c41"},{"id":"ledger:a-busy-lua-source-no-longer-makes-the-graphics-thr","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA busy Lua source no longer makes the graphics thread poll its locks. OBS uses cached dimensions or skips that source's render call until the lock is available, allowing the rest of the frame to proceed. All; pending merge. Issue #1275.","chars":288,"tokens_est":72,"sha256":"cf4c6d958e6e50d6773ae9c982765ebd5bfb2b5d582f10bfe584cfdfb348e1e4"},{"id":"ledger:86","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/86","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nquat_set, which Lua and Python scripts can call, now stores the x, y, z and w values in the correct order. *All*, 2026-10-10. PR #86.","chars":185,"tokens_est":46,"sha256":"e68138c47fae7a0118a8a513f09f033cbacc36d4f9eb34f29c8e4939db7463af"},{"id":"ledger:235","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/235","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nIn Python scripts, sys.stdout and sys.stderr behave like normal text streams, so libraries that call isatty() and similar methods work. *All*, 2026-10-11. Issue #234, PR #235, upstream obsproject/obs-studio#4628.","chars":264,"tokens_est":66,"sha256":"8621e77d5e7dcc764ede83b533e91537639d821a46d6659d614e0df5a6b88f3f"},{"id":"ledger:239","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/239","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA Lua script that makes a video source and enters graphics no longer freezes OBS; the source skips one frame instead. *All*, 2026-10-11. Issue #238, PR #239, upstream obsproject/obs-studio#6674.","chars":246,"tokens_est":62,"sha256":"46c324885b93772be0b4b2104af53094b0d2b0b978a4998caa6b43ab3e904c8e"},{"id":"ledger:2520","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/2520","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA plugin or script that calls gs_matrix_scale3f outside a graphics context no longer crashes OBS; the call logs and returns, as the other gs_matrix functions do. *All*, pending merge. Issue #2518, PR #2520.","chars":258,"tokens_est":64,"sha256":"dbd208efc14942a821640f570223d095214987b29c7d19d85a259a6f7a981304"},{"id":"ledger:2528","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/2528","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nAfter a plugin or script resets the blend state with gs_reset_blend_state, the blend op is back to add; a subtract, min or max op set before no longer carries over into later drawing. *All*, pending merge. Issue #2519, PR #2528.","chars":280,"tokens_est":70,"sha256":"fa9cdbe6b5073fc560577a0a37c73c7fc87f808e33bff003398b2028424e7060"},{"id":"ledger:a-plugin-or-script-that-draws-with-gs-render-start","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA plugin or script that draws with gs_render_start no longer reads or writes past OBS's arrays: a texture coordinate for a unit outside 0-15, or above 0 in immediate mode, is ignored; a saved vertex buffer with a shorter normal, colour or texture array draws only the vertices those arrays cover; and a stop or save with no vertex no longer frees the vertex data twice or leaks its arrays. *All*, 2026-10-31. Issue #3132.","chars":473,"tokens_est":118,"sha256":"58494cf124071b8f65a6df954a462d18433d221b402239b5309888a5054e2cf2"},{"id":"ledger:283","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/283","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nPython scripts can call obs_source_enum_filters to get a list of the filters on a source. *All*, 2026-10-11. Issue #282, PR #283, upstream obsproject/obs-studio#12116.","chars":219,"tokens_est":55,"sha256":"c041d2315059742951ba1ec7e03a205943c1a1b8d214cf7e0b0d8e3c3f3b567b"},{"id":"ledger:384","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/384","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nLua and Python scripts can read the obs-defs.h constants, such as OBS_ALIGN_*. *All*, 2026-10-12. Issue #383, PR #384, upstream obsproject/obs-studio#8936.","chars":207,"tokens_est":52,"sha256":"b97b3b0873106d87137e8ec8d74346f3c1605e801d48580b3722c8358b111020"},{"id":"ledger:1417","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/pull/1417","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA Lua or Python script that switches scenes from a timer no longer hangs OBS when it also has a frontend event callback; the scene changes right after the timer returns. *All*, 2026-10-18. Issue #1416, PR #1417, upstream obsproject/obs-studio#3385.","chars":300,"tokens_est":75,"sha256":"91d0e7c919d8c3c3275acb1fc01de9fb5a8d670c1199dbcad59e2cebcd265271"},{"id":"ledger:a-script-or-plugin-can-no-longer-lose-or-misplace","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA script or plugin can no longer lose or misplace a scene item through the scene order calls: an unknown order movement leaves the item where it is, a reorder list that leaves items out, repeats them or names items from elsewhere is refused, removing an item from a group it is not in does nothing, asking the position of, or ungrouping, an item that is in no scene returns instead of crashing, and inserting a group with an empty item list adds an empty group on top instead of crashing or placing it after an unrelated item. *All*, 2026-10-29. Issues #2895, #2945.","chars":618,"tokens_est":154,"sha256":"6cebbba149c5dc1302574c958992491f1fe3b275846b4cbd0d0c56ed6c81025d"},{"id":"ledger:a-plugin-or-script-that-asks-obs-key-to-virtual-ke","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA plugin or script that asks obs_key_to_virtual_key for a key OBS doesn't have gets 0 on X11 and Windows, as for a key with no keysym or virtual key, or 0xFF on macOS, as for a key with no virtual key code, instead of an arbitrary number or a value read past the key table. *Linux, macOS, Windows*, 2026-10-29. Issues #2901, #2914, #3076.","chars":390,"tokens_est":98,"sha256":"2e6e49317224306cca18da517ca813f318ad5678b9014ab4f861441294cfa44a"},{"id":"ledger:duplicating-a-scene-from-a-script-or-plugin-or-in","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nDuplicating a scene from a script or plugin, or in Studio Mode with \"Duplicate Sources\", no longer gives an item the wrong source when a source used by several items follows an item that could not be copied, and duplicating a source that fails to initialize returns nothing instead of crashing. *All*, 2026-10-29. Issue #2905.","chars":378,"tokens_est":94,"sha256":"edb32678fadc5614e557046b6ec9013ed0db213d8c89af5b942b015ce3f1f690"},{"id":"ledger:a-plugin-or-script-that-asks-obs-transition-get-si","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA plugin or script that asks obs_transition_get_size about a missing transition now gets a debug log line naming obs_transition_get_size, instead of one naming obs_transition_set_size. *All*, 2026-11-03. Issue #3540.","chars":268,"tokens_est":67,"sha256":"33cfcb85b504e35ef7d71d0eb6a52846baaff6f6fb89aa4c6cfe3fd7ebc1d772"},{"id":"ledger:a-plugin-or-script-that-hands-obs-transition-get-t","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA plugin or script that hands obs_transition_get_time or obs_transition_force_stop a missing transition no longer crashes OBS, and one that hands them a source that is not a transition no longer gets a made-up time or a stray transition stop on that source: the time is 0 and the force stop does nothing. *All*, 2026-11-08. Issue #4032.","chars":388,"tokens_est":97,"sha256":"6a044a7e16271f6ac22a8e92551b739254cd2bc3c8e31c52bdcdd9cc69665da5"},{"id":"ledger:a-plugin-or-script-that-hands-obs-transition-video","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Scripting]\nA plugin or script that hands obs_transition_video_get_color_space a missing transition no longer crashes OBS, and one that hands it a source that is not a transition gets sRGB instead of a space made up from that source's unused fields; obs_transition_video_render_direct's debug line for a missing transition now names obs_transition_video_render_direct instead of obs_transition_video_render. *All*, 2026-11-09. Issue #4091.","chars":479,"tokens_est":120,"sha256":"e638d2544d3c6a94ebc1177c079dcc5ea999f6182b96ff231c51470dceb9fb6a"},{"id":"ledger:video-reset-keeps-its-locks-changing-the-base","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\n**Video reset keeps its locks.** Changing the base or output resolution or the FPS in Settings > Video while audio runs no longer risks a crash: the video reset no longer destroys and re-creates locks that the audio thread, queued graphics tasks and encoders keep using. *All*, pending merge. Issue #5096, upstream obsproject/obs-studio#14192.","chars":395,"tokens_est":99,"sha256":"6f641e3b0761515ae58f070b3ae2ec077013cb715809e3c919a96f1da434d1aa"},{"id":"ledger:loaded-module-log-without-a-core-an-embedder","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\n**Loaded module log without a core.** An embedder, plugin or script that calls obs_log_loaded_modules before obs_startup or after obs_shutdown no longer crashes OBS; with no core it logs nothing. *All*, 2026-11-10. Issue #4465.","chars":279,"tokens_est":70,"sha256":"1d755005f1bc2ac185f7b46d411f776420834b41640e38c877b29abdb8686b0a"},{"id":"ledger:3535","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/3535","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nAn embedder or plugin that leaves a scene alive no longer crashes shutdown when the scene still owns input sources or nested groups. *All*, pending merge. Issue #3458, PR #3535.","chars":229,"tokens_est":57,"sha256":"ae4c782121a0b2c27358e4ec92e6418ad7277f7c92867507dc2d0568765110a9"},{"id":"ledger:a-scene-item-with-a-bounds-type-obs-doesn-t-know","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA scene item with a bounds type OBS doesn't know (a hand-edited or foreign scene collection, undo data, a plugin) no longer draws inside a phantom bounding box; it is loaded and set as no bounds. *All*, pending merge. Issue #2281.","chars":282,"tokens_est":70,"sha256":"20945225e3ec503694f390095677d47037f8b0fdee5ca9d0a22584c5e23ed60e"},{"id":"ledger:restoring-a-source-s-filters-undo-paste-scene-c","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nRestoring a source's filters (undo, paste, scene collection load) no longer crashes when the source's size is read while a filter is being attached; a filter with no target yet reports a size of 0. *All*, 2026-10-24. Issue #2172.","chars":281,"tokens_est":70,"sha256":"0892fab6d4dfb0abd15428a0705daeb5a0c893fa7f3ca4e11cd0a5fccaa69b39"},{"id":"ledger:desktop-audio-coreaudio-output-capture-on-a-de","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nDesktop Audio (`coreaudio_output_capture`) on a device with no capture stream (the built-in speakers while they are the system default output) no longer crashes OBS while the scene collection loads. The device reports zero channels, which reached a zero-size allocation that libobs turns into an abort; initialization now fails with a warning in the log and the reconnect thread retries with backoff. *macOS*, pending merge. Issue #2482.","chars":489,"tokens_est":122,"sha256":"b1400baa2905395f693c164308cb6fbb32fc6d8ee4efb70907f16edde2fbbedf"},{"id":"ledger:decklink-output-no-longer-crashes-when-a-saved-out","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nDeckLink output no longer crashes when a saved output mode is one the device doesn't offer (settings from another card or firmware); the start fails with an error in the log. An HDR start with no video conversion starts as SDR instead of crashing. *All*, 2026-10-24. Issue #2144.","chars":331,"tokens_est":83,"sha256":"c5b0ea1871393348aeb3c24947bfd2fa6d05f3533cff9cfaed44c6f1073fbfcc"},{"id":"ledger:1824","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1824","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nUpload Previous Log File no longer aborts OBS when no previous log exists; it reports that there is no log file. *Linux*, 2026-10-22. Issue #1768, PR #1824.","chars":208,"tokens_est":52,"sha256":"42e92a51fc1aad0bbd49158cf04eaaf3d1118af50d7763f43178b34061fafea4"},{"id":"ledger:70","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/70","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS detects when writing a configuration file to disk fails, instead of treating the save as successful. *All*, 2026-10-10. PRs #70, #71, #72.","chars":194,"tokens_est":48,"sha256":"2648ce1705dfe789e0979d7f6c9716c15009f2103e2a2b2d7fd7c750e5216da7"},{"id":"ledger:219","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/219","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nSettings no longer crashes when no output supports the stream protocol. *All*, 2026-10-11. Issue #217, PR #219, upstream obsproject/obs-studio#12843.","chars":201,"tokens_est":50,"sha256":"0ae6e5a7ff14ae5c412ab395943addc00d39fe15638fde49f8f10523eb2aeb85"},{"id":"ledger:231","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/231","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS on X11 no longer crashes in the hotkey thread when the X connection closes, for example at shutdown. *Linux*, 2026-10-11. Issue #126, PR #231.","chars":198,"tokens_est":50,"sha256":"0f7d953092ac6b253c2aeac03cd7792e2b196d0f9a50ae923323c2da84bba9b5"},{"id":"ledger:244","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/244","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer exits at startup on a Wayland desktop with more than one seat. *Linux*, 2026-10-11. Issue #243, PR #244, upstream obsproject/obs-studio#12929.","chars":208,"tokens_est":52,"sha256":"79a25c580315a54b4c123d3edb34785df7e17bc284672144237bb67f4efe47f8"},{"id":"ledger:263","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/263","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer crashes on text that the current locale cannot convert, such as a Latin-1 X11 window title in a UTF-8 locale. *Linux, Windows*, 2026-10-11. Issue #262, PR #263.","chars":226,"tokens_est":56,"sha256":"ce78e8ec2a6ddc7e4dfc6d81dc320efb736025c03ffb136693df0704d02e21fd"},{"id":"ledger:424","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/424","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS also detects a crash or hang in the first session after installation and offers recovery on the next launch. *All*, 2026-10-13. Issue #154, PR #424.","chars":204,"tokens_est":51,"sha256":"8641c14cedeb3a21871a583dcf775d8c676e979b6c6dfa1f28855ffe63884f9d"},{"id":"ledger:432","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/432","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer crashes when it quits after video initialization failed. *All*, 2026-10-13. Issue #127, PR #432.","chars":162,"tokens_est":40,"sha256":"723b5f54519e8bce3d558ab96d2227110d74ac7577734b94e2a112ad991e0404"},{"id":"ledger:470","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/470","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nChanging the video resolution or profile no longer leaves raw outputs on freed memory, so obs-websocket GetOutputList and plugin outputs such as DistroAV no longer crash after it. *All*, 2026-10-13. Issue #469, PR #470, upstream obsproject/obs-studio#1344.","chars":308,"tokens_est":77,"sha256":"d5393fff659bfae9f81ad68f73f3b6e68aa2a8e616087a7d22ac748ddb721442"},{"id":"ledger:513","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/513","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nQuitting OBS with a PipeWire camera source no longer prints thread warnings or crashes with a double free. *Linux*, 2026-10-13. Issue #512, PR #513.","chars":200,"tokens_est":50,"sha256":"7322c7ae4512f3de23c08b33c786f13a786246ed6affda2d3966039eb320532c"},{"id":"ledger:539","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/539","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nTwo quick Start Streaming requests (obs-websocket StartStream or a deck button) no longer crash OBS. *All*, 2026-10-13. Issue #538, PR #539, upstream obsproject/obs-studio#13283.","chars":230,"tokens_est":58,"sha256":"71bb190d82d24b00e0ccd96493f87c750e2fab44d14480c75451258c7a859529"},{"id":"ledger:543","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/543","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nStarting OBS with --disable-missing-files-check no longer leaks memory on each scene collection load. *All*, 2026-10-13. Issue #542, PR #543, upstream obsproject/obs-studio#11074.","chars":231,"tokens_est":58,"sha256":"4d4844e0560b82152a450a70ded41597e17c19cdb97a896418a6e0da9b6bff8d"},{"id":"ledger:553","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/553","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nRenaming or duplicating a fresh profile and then opening Settings no longer crashes OBS. *All*, 2026-10-13. Issue #552, PR #553, upstream obsproject/obs-studio#12458.","chars":218,"tokens_est":54,"sha256":"d49bdabbab49f3812bd36280ad4c4d9c03277b3b2b27a0f5ccab32d44a592dec"},{"id":"ledger:656","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/656","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer can crash when the portal sleep inhibitor is destroyed while a reply is pending. *Linux*, 2026-10-13. Issue #471, PR #656.","chars":188,"tokens_est":47,"sha256":"ccfa1398482b5d06b183416c4c3011bd180eb70d4e2b75cbc51fd3462059e082"},{"id":"ledger:708","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/708","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA script or plugin that removes scene items while it walks a scene no longer can make OBS use freed items. *All*, 2026-10-14. Issue #490, PR #708.","chars":198,"tokens_est":50,"sha256":"cdc8f256aa80bc990bae19d6ce7ed3bebc4e114f65a95b6c6c18079b072d3271"},{"id":"ledger:on-macos-27-2-obs-no-longer-crashes-on-launch-th","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOn macOS 27.2, OBS no longer crashes on launch: the bundled Qt carries the QTBUG-147602 backport (obs-deps 2026-10-25, as upstream OBS 33.0.0). *macOS*, 2026-10-25. Issue #2290.","chars":229,"tokens_est":57,"sha256":"2479ec3a81a6f29ec230c74be25b5309c4deebd3c965fba3502310293aec9fa0"},{"id":"ledger:727","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/727","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOn macOS, OBS no longer hangs when a window gets focus while the system looks up a generic app icon. *macOS*, 2026-10-14. Issues #635, #725, PR #727.","chars":201,"tokens_est":50,"sha256":"5ce8b71466df44f77f3c19119cd9149a085788ee6540b5abf92c0e233b2c7156"},{"id":"ledger:737","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/737","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA transition that is started towards a destination that already contains it is refused; before, OBS hung. *All*, 2026-10-14. PR #737.","chars":185,"tokens_est":46,"sha256":"09eb0586141a311584ab7ee8d0d75bef80d78e7067f1d7dc09f236920a1d8cd4"},{"id":"ledger:750","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/750","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS starts when one core module cannot be loaded (for example obs-browser without CEF), logs a warning, and loads the other core modules. *Linux*, 2026-10-14. Issues #404, #749, PR #750.","chars":238,"tokens_est":60,"sha256":"8ab29a8b29434e44a70e83f4a7d064039a449d7d3eb6811132f7c2910e3c1c9e"},{"id":"ledger:a-caller-that-retries-obs-load-core-modules-afte","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA caller that retries obs_load_core_modules() after a failed load no longer gets every core module that did load opened a second time: already loaded core modules are skipped, so their types are registered once. *All*, 2026-10-28. Issue #2730.","chars":295,"tokens_est":74,"sha256":"926fd6283388b7e6f5956f478abe28a97712d89d4d331b4b6df3be014ad8dec8"},{"id":"ledger:1109","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1109","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer crashes when a stream or recording starts, or obs-websocket lists outputs, after a resolution change. *All*, 2026-10-16. Issue #1108, PR #1109, upstream obsproject/obs-studio#12213.","chars":247,"tokens_est":62,"sha256":"cdb62783c17701b33e1b54cd9a9e69fedbfbeb7c04d8d96cfe8f90b535f03089"},{"id":"ledger:1333++","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1333","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nBrowser panels no longer crash during cold startup with CEF 150, and closing OBS while its browser engine starts no longer hangs. *Linux*, 2026-10-17. PR #1333, dependency obs-browser#1.","chars":238,"tokens_est":60,"sha256":"4366098cca4a0924b2f9b0667ed1a8d524c37a2c1bf069cf442a05cd9e5d043e"},{"id":"ledger:sigterm-while-recording-or-streaming-quits-obs-and","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nSIGTERM while recording or streaming quits OBS and finishes the recording, even with \"Show confirmation on exit while outputs are active\" on, and SIGTERM while a dialog is open (also during startup) quits too; before, OBS waited until the sender killed it and the recording was cut off. *Linux, macOS*, 2026-10-18. Issue #1402, upstream obsproject/obs-studio#10011.","chars":417,"tokens_est":104,"sha256":"f1d9c1dc5a7efc998c4ce34287714315fec014f4a2a11fd091557e1151e0b01d"},{"id":"ledger:1734","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1734","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that resets the video to an output width of 2 or 3 gets an invalid-parameter error and keeps the current video; before, the reset failed with no video left, and OBS could then crash. *All*, 2026-10-22. Issue #1713, PR #1734.","chars":295,"tokens_est":74,"sha256":"1ae84cf2cdb010cf9408c41adeca38807d322c15583a6e3019d8214ec099733d"},{"id":"ledger:1804","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1804","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that renames a source to no name (NULL) no longer crashes OBS; the source gets an unnamed name, as with an empty name. A rename to a name that is taken now logs the requested name as the duplicate, not the source's old name. *All*, 2026-10-22. Issue #1787, PR #1804.","chars":337,"tokens_est":84,"sha256":"d8e5814b1e1c3f1ba88173fce03ab8b3fd8a0622cf055f5b77cbb4d0fe996002"},{"id":"ledger:1828","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1828","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that asks whether a NULL output protocol is registered, or lists the outputs for one, no longer crashes OBS; no output supports a protocol that is not there. The auto-configuration wizard's bandwidth test reports that no output fits, instead of crashing, when its stream service could not be created (for example without the rtmp-services plugin). *All*, 2026-10-22. Issue #1827, PR #1828.","chars":460,"tokens_est":115,"sha256":"c0b6a7bc3f66860840d7cd8b8df5cb9e26f65fa18d27fc5cdc02cb6e879833f4"},{"id":"ledger:1906","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1906","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA tool or plugin host that adds module search paths with obs_add_module_path() gets a defined module type for the modules found there (undefined: neither core nor legacy), so the disabled list applies to them; before, the type was whatever was in memory. *All*, 2026-10-23. Issue #1900, PR #1906.","chars":348,"tokens_est":87,"sha256":"bd9cf8026f0e403a20f3ae7f5e00370cd9555d1f95411898474e9772a61b044f"},{"id":"ledger:1960","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/1960","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA source type that a plugin fails to register (libobs rejects it, for example a composite audio source or one without a name) is no longer counted as that plugin's: its sources show as missing in the Sources list instead of as provided by a loaded plugin, and the type is not credited to the plugin if something else registers it later. A plugin or script that adds a type id to no module (NULL) no longer leaks a copy of it. *All*, pending merge. Issue #1953, PR #1960.","chars":522,"tokens_est":130,"sha256":"ef1d5b73ae381b927946a8ca2bf670465825b31c8c53aed0169838ec567159b2"},{"id":"ledger:a-plugin-or-script-that-gives-an-output-an-audio-m","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that gives an output an audio mixer index OBS does not have (6 or more) no longer changes the output's mixers; the call is ignored with a warning. A raw output with a preferred (scaled) size but no video no longer crashes OBS when asked for its video conversion; it has none. *All*, pending merge. Issue #2127.","chars":381,"tokens_est":95,"sha256":"a1466880400d971c7e7d0ce4060c2fea7ccccaeaf8a365f03ec524de3a2bab56"},{"id":"ledger:a-canvas-that-a-plugin-or-script-creates-or-that","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA canvas that a plugin or script creates, or that a scene collection (edited by hand or written by another tool) loads, keeps only the public canvas flags. Before, a removed bit in its flags made the canvas count as removed from the start, so removing it later did not tell OBS or other plugins, which kept it; unknown bits were saved back. A canvas that fails to set up is no longer leaked. *All*, pending merge. Issue #2141.","chars":478,"tokens_est":120,"sha256":"32709a985226d79bf892402c0ba7e13ca979e2cbe743fc48e0d6fbd24cdb50cd"},{"id":"ledger:when-the-system-cannot-set-up-a-lock-or-start-a-th","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nWhen the system cannot set up a lock or start a thread, OBS reports it instead of carrying on as if it had worked: a source, output or other object whose lock fails is not created, and a source that fails to set up no longer crashes OBS while it is cleaned up; an output whose reconnect thread does not start no longer stays \"reconnecting\" for good; and the screen saver inhibitor reports that it could not start. *All*, pending merge. Issue #2152.","chars":500,"tokens_est":125,"sha256":"aabedf58a3a68a0f5401e97d0cb486f7d10cdd037412a3cdb1e35edd2ebd35e2"},{"id":"ledger:a-filter-that-is-removed-in-the-filters-dialog-b","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA filter that is removed (in the Filters dialog, by a script or by obs-websocket) while OBS is drawing it no longer crashes OBS when it has nothing to draw (for example while it is disabled or has a size of 0); it draws nothing for that frame. *All*, pending merge. Issue #2160.","chars":330,"tokens_est":82,"sha256":"a014266ff50f7ba12312eace1cdcf3c36ab2a29621cd76a546def50c81760dc3"},{"id":"ledger:when-the-system-cannot-set-up-the-event-that-obs-w","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nWhen the system cannot set up the event that OBS waits on, OBS no longer crashes on it: a task that OBS hands to another of its threads still runs once and is waited for; recording through the buffered file writer or ffmpeg-mux, macOS window capture and the screen saver inhibitor fail to start instead; macOS display and screen capture do not start their stream; and a streaming service's ingest list refresh is not waited for. macOS display and screen capture also no longer free the same event twice after an update that could not restart them. *All*, pending merge. Issue #2164.","chars":634,"tokens_est":158,"sha256":"b26a6e83598436c1b0081fb6582ffb9e296b80ea9610cc09ce19ebebbf69cbe0"},{"id":"ledger:a-plugin-that-registers-a-source-output-encoder","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin that registers a source, output, encoder or service with a structure size that ends partway through its type data fields no longer crashes OBS when the registration is refused; the type data is freed only when the size holds both fields whole. *All*, pending merge. Issue #2195.","chars":339,"tokens_est":85,"sha256":"c7c994ba676bfed2f6ea4ee193f0252e3812d1920221481f67e99722bd0fd456"},{"id":"ledger:a-plugin-that-registers-a-source-output-encoder+","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin that registers a source, output, encoder or service with a structure size that ends partway through a callback or its type data no longer leaves that field partly copied, which crashed OBS when it was called later or at shutdown; a field is kept only when the size holds it whole. *All*, pending merge. Issue #2203.","chars":376,"tokens_est":94,"sha256":"044d6653e48b6e80a248784c2fed553a13a24e05536fe05633965ff7ac5b736b"},{"id":"ledger:a-plugin-script-or-headless-tool-that-creates-an","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin, script or headless tool that creates an output before OBS has set up video no longer crashes OBS; the output has no video until one is set, and it cannot start without it. *All*, pending merge. Issue #2237.","chars":268,"tokens_est":67,"sha256":"d31731d11f79e9bfed30f59b30a946a0473127276440eab1ece34cd3132fb2d3"},{"id":"ledger:a-plugin-script-or-headless-tool-that-asks-for-th","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin, script or headless tool that asks for the main texture, adds or removes a raw video callback, asks whether NV12 or P010 texture output is active, or reads the position or scale of a scene item that is no longer in a scene before OBS has set up video no longer crashes OBS; it gets no texture, a refused callback with a warning, \"not active\" and a 0x0 canvas. *All*, pending merge. Issue #2253.","chars":455,"tokens_est":114,"sha256":"c214322536a9e0761f97658ddcaa6e2a05b35f1be979cf47daaa4abd2c09d581"},{"id":"ledger:video-levels-audio-info-and-texture-checks-with","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\n**Video levels, audio info and texture checks with no core.** A plugin, script or headless tool that reads the SDR white level, the HDR nominal peak level or the audio settings, or asks whether NV12 or P010 texture output is active, before OBS has started or after it has shut down no longer crashes; it gets 300 and 1000 nits, \"no audio\" and \"not active\", as it already did with no video or audio set up. Setting the video levels then is ignored with a warning in the log. *All*, pending merge. Issues #2566, #3397.","chars":568,"tokens_est":142,"sha256":"c483cc73f4a647df5739d7d2eacc6d46212c61df489b6a56814ecfb005c3062d"},{"id":"ledger:an-sdr-white-level-or-hdr-nominal-peak-level-of-0","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nAn SDR white level or HDR nominal peak level of 0, below 0, NaN or infinite (from an edited profile, a plugin or a script) no longer makes HDR and scRGB sources draw solid white, black or garbage: the level is ignored with a warning in the log and the previous one stays. With graphics up, the levels also start at 300 and 1000 nits instead of 0 until something sets them. *All*, pending merge. Issue #2209.","chars":459,"tokens_est":115,"sha256":"f4c04105ebfc0108058011dfc5292a8adae2f3704d4b8024ff57866f819e41c9"},{"id":"ledger:a-plugin-or-script-that-resets-an-effect-parameter","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that resets an effect parameter to its default with a parameter it failed to look up no longer crashes OBS; the call logs an error and does nothing, like the other effect parameter setters. *All*, pending merge. Issue #2210.","chars":295,"tokens_est":74,"sha256":"9a646f9fc532ba16939f9f7873e01cd776753a74d67f148020c0b0cae71b151b"},{"id":"ledger:asking-whether-a-video-encoder-uses-nv12-or-p010-t","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nAsking whether a video encoder uses NV12 or P010 texture input no longer crashes OBS when the encoder has no video yet, or when its video belonged to a canvas that has been removed; the answer is \"not active\", so an encoder plugin falls back to raw frames. *All*, pending merge. Issue #2267.","chars":343,"tokens_est":86,"sha256":"6651a5f76a4f2b1eceb018eacae26a89749ab6f60763719a752de61b97f25805"},{"id":"ledger:a-source-set-to-monitor-only-through-obs-websock","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA source set to \"Monitor Only\" through obs-websocket's SetInputAudioMonitorType, or by a plugin or script through the deprecated monitoring type call, no longer plays into the stream and recordings: it is monitored and muted, the 33.0 form of monitor-only, and reads back as Monitor Only. Setting it back to no monitoring undoes that mute. *All*, pending merge. Issue #2447.","chars":426,"tokens_est":106,"sha256":"d616b870de55fe9f0f40b7a8f30ff2e1f97a9ff23156e29b00d01b42eb8b14fd"},{"id":"ledger:a-scene-shown-in-program-or-a-projector-and-the-s","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA scene shown in Program or a projector, and the sources in it, no longer stop when a plugin or script sets a transition inside that scene to the scene itself and then to another source; before, the second set took the scene's active reference away, and a source set after it was never shown. *All*, pending merge. Issue #2484.","chars":379,"tokens_est":95,"sha256":"da230b86825072269ff196adb7431912d2b224d1dfe373f782d09499785a9c5d"},{"id":"ledger:a-scene-shown-in-program-or-a-projector-and-the-s+","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA scene shown in Program or a projector, and the sources in it, no longer stop when the transition is changed to one that this scene contains and a source is then set on it; before, the swap marked the scene as held by the new transition although it was not, and the next set took the scene's active reference away. *All*, pending merge. Issue #2486.","chars":402,"tokens_est":100,"sha256":"ccb545c322d7b445c17c0c3fcc03ef536c30c22ac336148b54177330e6429fbe"},{"id":"ledger:obs-no-longer-hangs-when-a-plugin-or-script-sets-a","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer hangs when a plugin or script sets a transition to a scene that contains that transition (or to the transition itself); the set is refused with a warning in the log, as loading such a transition already was, and the transition keeps its source. *All*, pending merge. Issue #2487.","chars":345,"tokens_est":86,"sha256":"f654b7bb49a3bdd29f0aeb9f9317ead5d7a5a164d70c3bd8fae1bef57efef2ed"},{"id":"ledger:obs-no-longer-hangs-when-the-transition-is-changed","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer hangs when the transition is changed while the old one holds a scene that contains the new transition (or holds the new transition itself) and that scene is then shown; the new transition is left without that source, with a warning in the log, instead of holding a loop back to itself. *All*, pending merge. Issue #2499.","chars":386,"tokens_est":96,"sha256":"43fa48194190fed94577e9473e046f1b194764e6d51ba2f9e957f19f5516f251"},{"id":"ledger:14072","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/14072","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nLogging into Twitch with Connect Account no longer crashes OBS when the login window closes itself after the login (Restream uses the same window); the window now reacts to the browser's address and title changes after the browser has finished handling them. *macOS*, pending merge. Issue #2523, upstream obsproject/obs-studio#14072.","chars":385,"tokens_est":96,"sha256":"f3ad16401dbc60dc40013153a0673bf6211d51e7492a0a95d45af18d4ccb28fa"},{"id":"ledger:13","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/13","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOBS no longer crashes at startup when a browser dock (most often the Twitch Chat dock) was closed before OBS quit: the dock creates its browser after the saved dock layout has been restored, not in the middle of it. *Windows*, pending merge. Issue #2524, PR obs-rust/obs-browser#13, upstream obsproject/obs-studio#14088, obsproject/obs-browser#554.","chars":400,"tokens_est":100,"sha256":"bf18ef22bc1f826c058a3fa98509aa68bb6a9ee25014b7d9abc8e3c0c1f72268"},{"id":"ledger:14","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/14","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nWith a YouTube account connected, OBS no longer freezes (often seconds after launch, or while logging in) when the YouTube Live Control Panel dock navigates: the dock reacts to the new address after the browser has finished handling the navigation, not inside it. *macOS*, pending merge. Issue #2527, PR obs-rust/obs-browser#14, upstream obsproject/obs-studio#14082, obsproject/obs-browser#556.","chars":446,"tokens_est":112,"sha256":"908b3e80a34f536bdbbd165682acb3fbe2c25966aed8db8765a9aec2290c08af"},{"id":"ledger:on-macos-looking-up-a-libobs-data-file-no-longer","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nOn macOS, looking up a libobs data file no longer crashes when libobs is loaded from a framework without a bundle identifier (no `Info.plist`); the lookup searches the data paths instead. *macOS*, pending merge. Issue #2538.","chars":276,"tokens_est":69,"sha256":"e41ae8b54981ebf0edd0d70b7671f54eac0486b6320ef6ba25015f1dfc9233e3"},{"id":"ledger:a-source-that-a-plugin-or-script-puts-into-a-trans","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA source that a plugin or script puts into a transition while a scene collection is still loading is no longer kept forever, and no longer stays active (or shown in Program) after the loaded transition replaces it; loading the transition lets go of it, as clearing the transition does. *All*, 2026-10-27. Issue #2582.","chars":369,"tokens_est":92,"sha256":"780ea8789ad8f412fbc49ce9a1ad09d966d3f1a0977b78aea67fdf2412d3afbc"},{"id":"ledger:2673","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/2673","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nAn unreachable update host no longer holds the application open on exit. The service-list update (and every other file-updater fetch) gives up after a connect/transfer deadline instead of waiting out the operating system's TCP connect timeout \u2014 about 75 s on macOS, longer on Linux \u2014 while shutdown joins the in-flight fetch. *All*, pending merge. Issue #2672, PR #2673; obsproject/obs-studio `shared/file-updater`.","chars":467,"tokens_est":117,"sha256":"5becec9de60886dbfe2628931502a0d4eac4cc25fa2e0520d8995a0b1da83ca2"},{"id":"ledger:22","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/22","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA WebSocket client that never answers the close frame no longer keeps OBS from quitting. The obs-websocket server waits for its sessions to close on a condition variable read under the session mutex, bounded at 5 s, and logs which clients did not close, instead of polling the session list with no lock (a data race with the IO thread's erase) and spinning forever. *All*, pending merge. Issue #2713; obs-rust/obs-websocket #22.","chars":480,"tokens_est":120,"sha256":"5e436b08e955186f78de2f9e1719c4081a05de6c32fc2e82d3fe694b0556f954"},{"id":"ledger:23+","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/23","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA WebSocket client that disconnects while the server is closing no longer crashes OBS. `onClose()` looks the handle up and returns when the session is already gone, instead of default-constructing and inserting a null session it then dereferences. *All*, pending merge. Issue #2720; obs-rust/obs-websocket #23.","chars":362,"tokens_est":90,"sha256":"d5dd95f83979ff7728fbf4367e0d0d207bf5a66aad3b2ae5375ba6bb9d0d960b"},{"id":"ledger:a-crash-whose-stack-has-a-long-function-name-no-lo","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA crash whose stack has a long function name no longer spoils the crash report. The crash handler's symbol buffer holds the 256 wide characters it tells DbgHelp it has, instead of 256 bytes, so long C++ names (Qt, the browser) are no longer written past its end while the report is built. The CPU name it reads is always terminated, and its registry key is closed. *Windows*, 2026-10-28. Issue #2819.","chars":452,"tokens_est":113,"sha256":"807cbb39c3ad4dadeedcd6d61bc8cea9759d5ead01bcd8567b072c874c3fff6b"},{"id":"ledger:a-plugin-built-against-an-older-obs-registers-its","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin built against an older OBS registers its sources and encoders as what they are. A source no longer gets past the duplicate check under a version it doesn't have, so it can't be listed twice, and an encoder is no longer refused, or asked for texture callbacks, because of caps it never set. *All*, 2026-10-29. Issue #2841.","chars":382,"tokens_est":96,"sha256":"035256edd4f0ed77bf2c1484c63c2071407242a280e9f24542584eccd81f1dba"},{"id":"ledger:listing-the-audio-monitoring-devices-or-matching","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nListing the audio monitoring devices, or matching a source's device to the monitoring device, no longer crashes when memory for the device list can't be allocated; the list comes back empty instead. *macOS*, 2026-10-29. Issue #2862.","chars":284,"tokens_est":71,"sha256":"321aa7a7688c68dfcaf4914be79da90f3db14fddf3cf70ffb187481a223a39f4"},{"id":"ledger:a-keyboard-layout-that-obs-s-keyboard-library-can","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA keyboard layout that OBS's keyboard library can't read no longer crashes OBS on Wayland, at startup or when the layout changes. Hotkeys keep the last layout that loaded, and the log says the new one was skipped. *Linux*, 2026-10-29. Issue #2975.","chars":299,"tokens_est":75,"sha256":"93e34434d75afe5ba0cb206e9d69774a82f87ab1e62e579c8f2c20b1bef8cda7"},{"id":"ledger:3045","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/pull/3045","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nUnregistering a hotkey while one of its bindings is still pressed no longer reads freed memory. The release now runs while the hotkey is alive, so a held hotkey's release callback is delivered instead of a hotkey that stays down after its source, output or plugin goes away. *All*, 2026-10-30. Issue #3044, PR #3045.","chars":368,"tokens_est":92,"sha256":"b465e8252e34a32f497f7c36eae828c4001593a96a414d6e8e56a95f632633fd"},{"id":"ledger:decompress-422-exported-for-plugins-now-read","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\n`decompress_422()`, exported for plugins, now reads and writes only the rows of packed 4:2:2 (UYVY or YUY2) it is given. It read and wrote twice each row, so the last rows of a frame ran past the caller's buffers. Nothing in OBS calls it. *All*, 2026-10-30. Issue #3031.","chars":322,"tokens_est":80,"sha256":"bc43521db266d71e6acbf61196f8a28a5adc6803934d74599f2c0593febcbd82"},{"id":"ledger:an-audio-sample-rate-of-0-a-hand-edited-profile","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nAn audio sample rate of 0 (a hand-edited profile, a plugin or a script) no longer crashes OBS with a divide by zero while it logs the audio settings; the audio reset fails with \"Invalid audio parameters specified\" in the log. A buffering above about 44 seconds is logged, and reported by `obs_get_audio_info2()`, as its real length instead of an overflowed number. *All*, 2026-10-31. Issue #3272.","chars":448,"tokens_est":112,"sha256":"fe9f28f9c28fe0f88e6b6717d2bb685b547520c31dc22090895f1dc15ebdbbcb"},{"id":"ledger:a-plugin-or-script-that-queues-a-task-with-a-task","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that queues a task with a task type OBS does not know no longer hangs when it waits for the task, or loses it without a word when it does not: the call logs an error naming the type and returns without running the task. *All*, 2026-11-01. Issue #3397.","chars":322,"tokens_est":80,"sha256":"9880b711866742346a6dcd3e14cff8af86c2513f54de78683d1388bf43305e36"},{"id":"ledger:quitting-obs-or-switching-scene-collections-no-lon","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nQuitting OBS or switching scene collections no longer crashes now and then while the Sources dock is torn down, when a source is destroyed at the same moment as its name label. *All*, 2026-11-01. Issue #3450.","chars":260,"tokens_est":65,"sha256":"d56b023a32f790d1e1b719650b1b709be3144c32a1c02ff265133e4339d80e76"},{"id":"ledger:starting-a-recording-or-stream-with-an-audio-encod","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nStarting a recording or stream with an audio encoder whose plugin reports a sample rate of 0 no longer crashes OBS with a divide by zero while its audio lines up with the video; that audio waits for the video, or starts after it, without dropping any of its frames. *All*, 2026-11-02. Issue #3487.","chars":349,"tokens_est":87,"sha256":"4c1e68a985cf3d88273b1c719095d50ae89cf41317ce781606aa5ef194f47370"},{"id":"ledger:a-plugin-or-script-that-sets-a-transition-s-manual","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that sets a transition's manual time or torque with no transition no longer crashes OBS, and one that passes a source that is not a transition no longer changes that source; the call is ignored, as the other transition setters do. *All*, 2026-11-04. Issue #3605.","chars":333,"tokens_est":83,"sha256":"38032c84884a03958fa817676941b15f52d21b3df864972fb77c3fc6db583a4d"},{"id":"ledger:a-plugin-or-script-that-queues-a-graphics-task-wit","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that queues a graphics task with no function no longer crashes OBS on its graphics thread: the empty task is skipped and the tasks queued after it still run. *All*, 2026-11-12. Issue #4408.","chars":260,"tokens_est":65,"sha256":"af2edf7312405fe9ef2a7177441d0dc6369b03c197d5ef5a65de72c644f5bfde"},{"id":"ledger:a-plugin-or-script-that-asks-about-a-source-type-w","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that asks about a source type with no ID (NULL), for its name, flags, defaults, properties or icon, or that creates a source with no ID, no longer crashes OBS; the type is not found, as with an unknown ID. *All*, 2026-11-10. Issue #4606.","chars":308,"tokens_est":77,"sha256":"7e372ace2f46fed60e7d9bb755d1d6ee5fbc4d56c38fbe6ff5756e51faeecc9b"},{"id":"ledger:a-plugin-or-script-that-adds-or-removes-a-packet-c","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that adds or removes a packet callback, or sets a reconnect callback, with no output (NULL) no longer crashes OBS; the call is ignored with a debug line, as the other output calls do. *All*, 2026-11-12. Issue #4754.","chars":286,"tokens_est":72,"sha256":"ca1ca99d1ad375f4d199ca20d73845d1aa90ab018660dca07ff9287aed2728e7"},{"id":"ledger:a-plugin-or-script-that-sets-a-scene-item-s-bounds","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Stability"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#stability","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Stability]\nA plugin or script that sets a scene item's bounds size with no size (NULL) no longer crashes OBS while holding the scene's lock; the call is ignored and logged, as the crop setter does. *All*, 2026-11-14. Issue #4392.","chars":270,"tokens_est":68,"sha256":"ad91fe0fe0b84e0f04d84a8978cecc0fd7f168e6a360260be25a27328970f692"},{"id":"ledger:115","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Security hardening"],"url":"https://github.com/obs-rust/obs-studio/pull/115","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Security hardening]\nMalformed data from an RTMP server (a zero or negative chunk size, deep or broken AMF data, oversized fields) can no longer hang the stream, crash OBS or corrupt memory. *All*, 2026-10-11. Issues #100, #102, #173, #209, PRs #115, #116, #188, #228, #230, #232.","chars":320,"tokens_est":80,"sha256":"b454cc9db71fd3fa5622705dc30e32062560ceb6acd7c3b91cc82092e62f8777"},{"id":"ledger:477","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Security hardening"],"url":"https://github.com/obs-rust/obs-studio/pull/477","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Security hardening]\nobs-websocket closes a connection that sends deeply nested JSON or MessagePack before authentication, and OBS no longer crashes from it. *All*, 2026-10-13. Issue #99, PRs #477, #497, #502, #503.","chars":255,"tokens_est":64,"sha256":"499caacab13da6334b380c1b39d5dae94b2f66f73406f66fff2875240f5a6182"},{"id":"ledger:1398","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Security hardening"],"url":"https://github.com/obs-rust/obs-studio/pull/1398","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Security hardening]\nRust graphics preserves separate C trigonometric calls on macOS and signaling NaN rounding on macOS/Windows. *macOS, Windows*, 2026-10-18. PR #1398.","chars":209,"tokens_est":52,"sha256":"46ddeaae3c22a24e337d6e3675a6628ebfd16a858fc28c6f5d93fcc6f048437d"},{"id":"ledger:2213","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Security hardening"],"url":"https://github.com/obs-rust/obs-studio/pull/2213","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Security hardening]\nDownloads and remote text requests no longer ask servers for brotli: what comes back can no longer reach a Brotli decoder with a public out-of-bounds write while the packaged libraries still carry it. *All*, 2026-10-24. Issue #2211, PR #2213.","chars":303,"tokens_est":76,"sha256":"3496b2a57378b47d2f9bc27131e4a523a15cda8b037734f4b7d3f120dfccd0bd"},{"id":"ledger:2427","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Security hardening"],"url":"https://github.com/obs-rust/obs-studio/pull/2427","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Security hardening]\nThe Windows, macOS and Flatpak packages bundle libsrt 1.5.7 and Mbed TLS 3.6.7, and the Windows package curl 8.23.0: the public advisories in SRT, in the RTMPS certificate checks and in curl no longer apply. A build of these packages with an older libsrt or Mbed TLS stops at configure. *Linux, Windows, macOS*, 2026-10-25. Issues #2372, #1121, #2374, PRs #2427, #2455.","chars":430,"tokens_est":108,"sha256":"e533cc14241299c468995767fbe9e0c997495e400cde7c7310404c4bf7cc22c7"},{"id":"ledger:25","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Security hardening"],"url":"https://github.com/obs-rust/obs-studio/pull/25","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Security hardening]\nThe Linux AppImage no longer bundles OpenSSL 1.1.1: Qt is built without its GSSAPI/SPNEGO auth delegate, so the base's krb5 libraries \u2014 the last thing that pulled in `libcrypto.so.1.1` \u2014 are not linked at all. *Linux*, 2026-10-28. Issue #2815, PRs obs-studio-libs#25, #2831.","chars":335,"tokens_est":84,"sha256":"60cb17f4cb5361b30e16d8aa9a76d0a7511b4d05d409352bdbc65ab2f59b3032"},{"id":"ledger:building-with-denable-core-modules-off-works-ag","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Building from source"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#building-from-source","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Building from source]\nBuilding with `-DENABLE_CORE_MODULES=OFF` works again: libobs no longer fails to compile a core module list that was never generated. *All*, pending merge. Issue #2280; obsproject/obs-studio#14013.","chars":260,"tokens_est":65,"sha256":"7013dd0f3a8036a5c3c18a22118c1a19c3bc6e62f787d0264cd55fdb4942124c"},{"id":"ledger:obs-nvenc-test-builds-again-against-nv-codec-heade","doc":"docs-features","group":"docs","tier":"reference","kind":"ledger-fix","breadcrumb":["Features ledger","Fixed upstream bugs","Building from source"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md#building-from-source","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/features.md","text":"[Features ledger \u203a Fixed upstream bugs \u203a Building from source]\nobs-nvenc-test builds again against nv-codec-headers master, whose new `dynlink_nvml.h` declares the same NVML types. *Linux, Windows*, pending merge. Issue #2462; obsproject/obs-studio#14075.","chars":255,"tokens_est":64,"sha256":"858653624a278293988a4846c2cc6354b4ee14cd874127bbc4c712dac0457e3f"},{"id":"docs-gpu-status#gpu-acceleration-status-light","doc":"docs-gpu-status","group":"docs","tier":"process","kind":"prose","breadcrumb":["GPU acceleration status light"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/gpu-status.md#gpu-acceleration-status-light","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/gpu-status.md","text":"[GPU acceleration status light]\nOBS-Studio-Rust shows a light in the status bar that says whether video is\nrendered on a hardware GPU (obs-rust/obs-studio#846). Clicking it opens a\ndialog that explains the state and lists likely causes. The same state is\nlogged at startup and returned by obs-websocket as `GetStats.gpuAcceleration`.\n\n| Light | Meaning |\n|---|---|\n| Green | OBS renders on a hardware GPU (any vendor: the driver is bound and the active adapter confirms it). |\n| Yellow | No GPU was found and OBS renders in software (llvmpipe, softpipe, Microsoft Basic Render Driver, SwiftShader). Expected on a VM or headless machine. |\n| Red | A GPU (NVIDIA, AMD or Intel) is present but OBS renders in software, graphics initialization failed, or frames are over budget. |\n\n**Frame budget.** Once a second the frontend samples libobs' one-second\naverage frame time (`obs_get_average_frame_time_ns`). The light compares\nthe **median** of the last 15 samples with the frame interval and ignores\nframe timings until it has at least 5 samples, so one slow second (for\nexample right after launch) does not turn it red (#929). Frames over budget are red.\n\n**Adapter.** The adapter is the renderer OBS actually uses: `GL_VENDOR` and\n`GL_RENDERER` on OpenGL, and the active DXGI adapter on Direct3D 11. It is\nnot `gs_get_device_name()`, which only names the API (`OpenGL`).\n\n**Label (#1025).** The light has a text next to its dot, and the dot keeps\nthe color above:\n\n| Label | When |\n|---|---|\n| `GPU: 37%` | OBS renders on a hardware GPU and a source reads it. The percent is the whole adapter, as Task Manager or nvtop show it. |\n| `GPU: n/a` | No source reads the render GPU (the tooltip says so), or graphics initialization failed. |\n| `CPU rendering` | OBS renders in software. A GPU that OBS does not use can show 0 %, so the label shows no percent. |\n\nOn an RTX 3060 (NVML), and on the same machine forced onto llvmpipe\n(red, because a GPU is present):\n\nOn an M1 Max (IOKit) under a Metal compute load:","chars":2006,"tokens_est":502,"sha256":"919e2bf7ed4a6b3dec995c0469048d6d00b776bc31510ca2a350829b0f2b66db"},{"id":"docs-gpu-status#gpu-acceleration-status-light~2","doc":"docs-gpu-status","group":"docs","tier":"process","kind":"prose","breadcrumb":["GPU acceleration status light"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/gpu-status.md#gpu-acceleration-status-light","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/gpu-status.md","text":"[GPU acceleration status light]\nThe sources, in order: NVML for NVIDIA (#1021), then amdgpu's\n`gpu_busy_percent` on Linux (#1024), on macOS IOKit's\n`Device Utilization %` of the render GPU's `IOAccelerator` (#1026; the\nkey is not documented, and an M1 Max has it), and on Windows the PDH\n`GPU Engine` counters of the render GPU's DXGI LUID (#1022), as Task\nManager reads them, for every vendor. NVML cannot find the GPU on Windows\nyet (it needs the LUID as a PCI address), so PDH reads NVIDIA there too.\nThe thread `obs-gpu-usage`\nreads the source once a second, so the UI thread never waits for one.\n`GetStats.gpuAcceleration` has the same reading as `usage` (`percent`,\n`source`, or `null`) and the label as `readout`.\n\n**Slow sources (#1022).** After a slow sample the thread pauses 9 times\nas long as the sample took (at least 1 s, at most 30 s), so sampling takes\nat most about a tenth of its time; the next fast sample gives 1 s again. A\nreading older than 3 pauses is not shown: the label is `GPU: n/a` and the\ntooltip says the reading is late. A source that takes more than 2 s three\ntimes in a row is not asked again in that session, and the OBS log says so\nonce with its times; the next source answers instead.\n\n**No share of OBS.** #1004 put OBS's own share in the tooltip. NVML's\nper-process samples do not give one: on the RTX 3060 above, an OBS that\nrendered 4K at 25 fps the whole time had no sample in 4 of 7 two-second\nwindows, and 45 % in one while the device average was 20 %\n(`nvidia-smi pmon` reads the same values). The label shows the whole GPU\nonly until a source gives a share that adds up.\n\nAn earlier mockup of the dialog for a machine with no GPU (the styling is approximate). Since #1005 that case is yellow, not red; a GPU OBS can't use is red:","chars":1774,"tokens_est":444,"sha256":"498339d149129cc6577e8a062c057329b5e921429097811883153bb6aa7d8a72"},{"id":"docs-gpu-status#gpu-acceleration-status-light-where-it-lives","doc":"docs-gpu-status","group":"docs","tier":"process","kind":"prose","breadcrumb":["GPU acceleration status light","Where it lives"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/gpu-status.md#where-it-lives","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/gpu-status.md","text":"[GPU acceleration status light \u203a Where it lives]\n- Classifier, GPU detection (`/sys/class/drm`, `/dev/dri`, `nvidia-smi`), the\n  frame window (`FrameStats::from_samples`, `median()`) and the dialog text:\n  `rust/obs-gpu-status`.\n- Reading the adapter: `ActiveAdapterName()` in\n  `frontend/utility/GpuStatus.cpp`, with `GetGlGetStringProc()` in\n  `frontend/utility/platform-x11.cpp`, `platform-windows.cpp` and\n  `platform-osx.mm`.\n- Label text and sources: `rust/obs-gpu-status/src/usage.rs`\n  (`Sampler`, tested with injected sources), `Report::readout()`, and\n  `platform::usage_sources()`; the sampling thread is in `src/ffi`. The\n  macOS parser is `src/iokit.rs`, its reader `accelerator_statistics()` in\n  `src/platform/macos.rs`.\n- Light and dialog: `frontend/utility/GpuStatus.cpp` and\n  `frontend/widgets/OBSBasicStatusBar.cpp`. They are built whenever cargo\n  is available, whatever `ENABLE_RUST_LIBOBS` (the app's name) says\n  (`frontend/cmake/feature-gpu-status.cmake`, option `ENABLE_GPU_STATUS`).\n  A build without cargo, such as the Flatpak sandbox today, configures\n  without the light and prints a warning (#946).\n- `GetStats.gpuAcceleration`: obs-websocket reads it from the frontend's\n  `get_gpu_status` proc, and it is `null` when nothing provides it.\n- Tier 4 check (OpenGL forced onto llvmpipe \u2192 not green):\n  `test/websocket-tier4/run_tier4.py`.","chars":1367,"tokens_est":342,"sha256":"2b17a9e5b411a14c745000069e7dbe4c4e505e9112dcab0a1fdfffd3f32f7c05"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#-obs-project-user-abuse-hall-of-fame","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame]\n**Bugs they confirmed, then closed. Features you relied on, then removed.\nThreads where users showed up in numbers, then got locked out.**\n\n---","chars":183,"tokens_est":46,"sha256":"30dd1386b64090751a8790a3f80e7ad3e743ad488efc8e5d61b384b61f71ed15"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame~2","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#-obs-project-user-abuse-hall-of-fame","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame]\n## The scoreboard\n| | Issue | \ud83d\udcac | Fate |\n|:-:|---|--:|---|\n| \ud83e\udd47 | [Preview Stutter that appears in Streams/Recordings](https://github.com/obsproject/obs-studio/issues/4191) | 184 | locked (off-topic) |\n| \ud83e\udd48 | [OBS Virtual Camera may affect built-in webcams](https://github.com/obsproject/obs-studio/issues/3555) | 87 | closed not planned, locked (off-topic) |\n| \ud83e\udd49 | [Removal of --disable-shutdown-check breaks automated background workflows](https://github.com/obsproject/obs-studio/issues/12650) | 64 | closed not planned, locked (resolved) |\n| 4 | [Dock Sizes are Reset the next time you open OBS.](https://github.com/obsproject/obs-studio/issues/2949) | 34 | closed not planned |\n| 5 | [Pause and Resume Recording Doubles or Triples CPU usage](https://github.com/obsproject/obs-studio/issues/3148) | 34 | closed not planned |\n| 6 | [[BUG] OBS duplicates scenes and corrupts scene collections when using groups](https://github.com/obsproject/obs-studio/issues/2724) | 30 | closed not planned |\n| 7 | [\"Enforce Streaming Service Encoder Settings\" Checkbox disables Rate Control setting](https://github.com/obsproject/obs-studio/issues/3060) | 26 | closed not planned |\n| 8 | [Version 32.2 broke NVENC encoder for legacy graphics cards](https://github.com/obsproject/obs-studio/issues/13685) | 18 | closed not planned |\n| 9 | [[BUG] VLC Video Source > Add Path/URL to Playlist > displays incorrectly in a Scene](https://github.com/obsproject/obs-studio/issues/2933) | 18 | closed not planned |\n| 10 | [Pasting a source does not show up in the sources until switching from different scenes](https://github.com/obsproject/obs-studio/issues/3387) | 16 | closed not planned |\n| 11 | [Dropped frames on recordings in random moments, nothing which could cause it is happening](https://github.com/obsproject/obs-studio/issues/9285) | 15 | closed not planned, locked (too heated) |\n| 12 | [[Flatpak] Runtime org.kde.Platform branch 6.6 is end-of-life](https://github.com/obsproject/obs-studio/issues/11478) | 12 | closed not planned, locked (off-topic) |\n\n> [!WARNING]\n> **October 14, 2024:** 6 of these were closed as stale\n> on the same afternoon, including bugs the maintainers had reproduced themselves.","chars":2237,"tokens_est":559,"sha256":"9f84c01aaa1665da8cdaacd80b033930e1f7f853750a651f5a45e8034a766076"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-in-their-own-words","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","In their own words"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#in-their-own-words","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a In their own words]\nVerbatim, from maintainers' comments on the threads. Each one links to the comment.\n\n> **\u201cNo amount of \"I don't like your answer\" will change it.\u201d**\n>\n> \u2014 an OBS maintainer, to a user who said a downgrade fixed their dropped frames \u00b7 [#9285, 2023-08-14](https://github.com/obsproject/obs-studio/issues/9285#issuecomment-1677822114)\n\n> **\u201cHowever, if you refuse to follow the process, there is nothing we can do, and this report is not actionable.\u201d**\n>\n> \u2014 an OBS maintainer, in the same comment that admitted 32.2 had raised the driver minimum \u00b7 [#13685, 2026-07-22](https://github.com/obsproject/obs-studio/issues/13685#issuecomment-5052743359)\n\n> **\u201cI'd prefer to not have this just be an argument back and forth about if or if not we should return the flag to disable the check; that decision has already been made.\u201d**\n>\n> \u2014 an OBS maintainer, on removing a flag users' setups depended on \u00b7 [#12650, 2025-10-04](https://github.com/obsproject/obs-studio/issues/12650#issuecomment-3368592277)\n\n> **\u201cOBS is not designed as, and is not supported to be, a headless application.\u201d**\n>\n> \u2014 an OBS maintainer, to users running OBS unattended \u00b7 [#12650, 2025-10-12](https://github.com/obsproject/obs-studio/issues/12650#issuecomment-3395057172)\n\n> **\u201cThis is just an overly dramatic warning in a package manager.\u201d**\n>\n> \u2014 an OBS maintainer, on shipping Flatpak on an end-of-life runtime \u00b7 [#11478, 2024-12-23](https://github.com/obsproject/obs-studio/issues/11478#issuecomment-2560434526)\n\n> **\u201cI will repeat them for you since you appear not to have read them the first time\u201d**\n>\n> \u2014 an OBS maintainer, to a user whose game would not launch \u00b7 [#9792, 2023-11-03](https://github.com/obsproject/obs-studio/issues/9792#issuecomment-1791839734)","chars":1795,"tokens_est":449,"sha256":"03a8292e36d1b1fbd695d0865e6c0c92d8e38ffb200031540d89974e37f37081"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-in-their-own-words~2","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","In their own words"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#in-their-own-words","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a In their own words]\n> **\u201cThis goes both ways, as you were unnecessarily combative and kept pushing the wrong approach [\u2026]\u201d**\n>\n> \u2014 an OBS maintainer, to a user who said they had already posted logs, in the 184-comment stutter thread \u00b7 [#4191, 2021-09-09](https://github.com/obsproject/obs-studio/issues/4191#issuecomment-916203636)\n\n> **\u201c\"I don't like it\" isn't a valid bug report, and isn't actionable on our end.\u201d**\n>\n> \u2014 an OBS maintainer, closing complaints about the V28 interface \u00b7 [#7260, 2022-09-12](https://github.com/obsproject/obs-studio/issues/7260#issuecomment-1244047700)\n\n> **\u201cYou can't have a bug in nonexistent code :) Thank you!\u201d**\n>\n> \u2014 an OBS maintainer, on global hotkeys not working under Wayland \u00b7 [#10538, 2026-04-27](https://github.com/obsproject/obs-studio/issues/10538#issuecomment-4330186180)","chars":861,"tokens_est":215,"sha256":"b9d52bb320ab5e3e6f0fa2a3898a43f9070c2d22b0d4153d06c639fe2a128ec6"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-the-inductees-4191-preview-stutter-that-appe","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","The inductees","\ud83e\udd47 [#4191 \u00b7 Preview Stutter that appears in Streams/Recordings](https://github.com/obsproject/obs-studio/issues/4191)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#-4191--preview-stutter-that-appears-in-streamsrecordings","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a The inductees \u203a \ud83e\udd47 [#4191 \u00b7 Preview Stutter that appears in Streams/Recordings](https://github.com/obsproject/obs-studio/issues/4191)]\n> Support staff replicated the stutter in Feb 2021. The issue is still open, but it has been locked since Jan 2022. Before the lock, off-topic comments were deleted, a reporter was told they had been \"unnecessarily combative\", the cause was put down as \"likely coming from outside OBS\", and a link to a test build that users said fixed it was removed as \"shady file hosting\".","chars":550,"tokens_est":138,"sha256":"c21b845013aa921532702b7d957967da9a855cdd1384fcacf8c2dbf845b519e4"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-the-inductees-3555-obs-virtual-camera-may-af","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","The inductees","\ud83e\udd48 [#3555 \u00b7 OBS Virtual Camera may affect built-in webcams](https://github.com/obsproject/obs-studio/issues/3555)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#-3555--obs-virtual-camera-may-affect-built-in-webcams","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a The inductees \u203a \ud83e\udd48 [#3555 \u00b7 OBS Virtual Camera may affect built-in webcams](https://github.com/obsproject/obs-studio/issues/3555)]\n> Users reported their laptops' built-in webcams disappearing after using the OBS virtual camera. A staff member noticed the affected cameras shared one Sunplus OEM model. In Dec 2022 the thread was locked with \"next steps is us purchasing a machine with one of these affected cameras\". In Oct 2024 it was closed as stale and called \"a hardware or kernel bug and not something we can realistically fix\", because \"nobody reporting the issue has been able to give us access to hardware\".","chars":656,"tokens_est":164,"sha256":"e3ebb44cfdd858ff3b8c1b57e6ae3304ccc64eec3ee9053cc82fef610f5aeda3"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-the-inductees-12650-removal-of-disable-shutd","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","The inductees","\ud83e\udd49 [#12650 \u00b7 Removal of --disable-shutdown-check breaks automated background workflows](https://github.com/obsproject/obs-studio/issues/12650)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#-12650--removal-of---disable-shutdown-check-breaks-automated-background-workflows","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a The inductees \u203a \ud83e\udd49 [#12650 \u00b7 Removal of --disable-shutdown-check breaks automated background workflows](https://github.com/obsproject/obs-studio/issues/12650)]\n> OBS 32.0 removed --disable-shutdown-check, which unattended setups used to skip the unclean-shutdown prompt. Staff told users to fix whatever was crashing OBS and said \"that decision has already been made\". They did point to PR #12668 for spurious prompts. Then they locked the thread as \"resolved\", although nothing had been resolved.\n\n### \ud83c\udfc6 [#2949 \u00b7 Dock Sizes are Reset the next time you open OBS.](https://github.com/obsproject/obs-studio/issues/2949)\n> Staff first said it was \"100% reproducible for some people\". A user later found it only happens when OBS is full screen. It was closed in the Oct 2024 sweep as \"an issue with permissions and not a bug with OBS\".\n\n### \ud83c\udfc6 [#3148 \u00b7 Pause and Resume Recording Doubles or Triples CPU usage](https://github.com/obsproject/obs-studio/issues/3148)\n> A staff member reproduced it in 2020, while others could not. Users still reported it on OBS 29 and 30. It was closed in the Oct 2024 sweep as \"a catch-all for generic performance issues\".\n\n### \ud83c\udfc6 [#2724 \u00b7 [BUG] OBS duplicates scenes and corrupts scene collections when using groups](https://github.com/obsproject/obs-studio/issues/2724)\n> Scene collections were corrupted when using groups. A staff member traced the corruption to OBS commit c0e2e7f (drag-and-drop reordering), and another said \"It is a priority\". Two years later it was closed with \"most of the evidence here suggests\" an old third-party plugin was to blame.\n\n### \ud83c\udfc6 [#3060 \u00b7 \"Enforce Streaming Service Encoder Settings\" Checkbox disables Rate Control setting](https://github.com/obsproject/obs-studio/issues/3060)\n> \"Enforce streaming service encoder settings\" silently forces CBR. In 2022 staff said \"the pain point is felt on our end as well\" and that they were looking into solutions. In the Oct 2024 sweep it was closed as \"not a bug and working as intended\".","chars":2032,"tokens_est":508,"sha256":"dcebbac5a043cd4327725061fb6424fb10b398e79351242694120eaf84b94ddf"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-the-inductees-13685-version-32-2-broke-nvenc","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","The inductees","\ud83c\udfc6 [#13685 \u00b7 Version 32.2 broke NVENC encoder for legacy graphics cards](https://github.com/obsproject/obs-studio/issues/13685)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#-13685--version-322-broke-nvenc-encoder-for-legacy-graphics-cards","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a The inductees \u203a \ud83c\udfc6 [#13685 \u00b7 Version 32.2 broke NVENC encoder for legacy graphics cards](https://github.com/obsproject/obs-studio/issues/13685)]\n> 32.2 moved the NVIDIA SDK update that had been planned for 33 into a point release, which raised the minimum driver to 570. Staff first said \"we did not drop any support for older GPUs\", corrected that in the same comment, added \"if you refuse to follow the process, there is nothing we can do\", and closed the issue as \"nothing actionable\" the next day. A note about the minimum driver was added to the release notes afterwards.\n\n### \ud83c\udfc6 [#2933 \u00b7 [BUG] VLC Video Source > Add Path/URL to Playlist > displays incorrectly in a Scene](https://github.com/obsproject/obs-studio/issues/2933)\n> Staff confirmed it twice, on 26 RC1 and again on 28 (\"it does look like this is still an issue\"), and a user posted local repro steps. It was closed in the Oct 2024 sweep as stale, with a request to open a new issue.\n\n### \ud83c\udfc6 [#3387 \u00b7 Pasting a source does not show up in the sources until switching from different scenes](https://github.com/obsproject/obs-studio/issues/3387)\n> A staff member said \"The issue is valid, but requires a fair bit of steps to repro\", and users confirmed it on RC builds. Another staff member could not reproduce it on 28. It was closed in the Oct 2024 sweep as stale for \"missing some key step\".\n\n### \ud83c\udfc6 [#9285 \u00b7 Dropped frames on recordings in random moments, nothing which could cause it is happening](https://github.com/obsproject/obs-studio/issues/9285)\n> The reporter said rolling back to 29.0.2 removed the dropped frames. Staff said the samples were identical and that this is \"just how compositing works\". When users pushed back, the reply was \"No amount of 'I don't like your answer' will change it\", and the thread was locked as too heated.","chars":1851,"tokens_est":463,"sha256":"bb7120f6add67e30c1c2d5c58fca8e60457d26d30a5df07d281b21cf4f9c6315"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-the-inductees-11478-flatpak-runtime-org-kde-","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","The inductees","\ud83c\udfc6 [#11478 \u00b7 [Flatpak] Runtime org.kde.Platform branch 6.6 is end-of-life](https://github.com/obsproject/obs-studio/issues/11478)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#-11478--flatpak-runtime-orgkdeplatform-branch-66-is-end-of-lifehttpsgithubcomobsprojectobs-studioissues11478","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a The inductees \u203a \ud83c\udfc6 [#11478 \u00b7 [Flatpak] Runtime org.kde.Platform branch 6.6 is end-of-life](https://github.com/obsproject/obs-studio/issues/11478)]\n> Flatpak OBS kept running on an end-of-life KDE runtime. Staff closed the issue as not planned while saying the update would come with a later release, called the EOL notice \"just an overly dramatic warning in a package manager\", answered a user who cited Qt security fixes with \"We will update when we've verified the packages don't cause regressions\", and locked the thread.","chars":564,"tokens_est":141,"sha256":"19991481d5a0b2681803388a5f7764ab3ffb3591c517748fa69f3fa1804b21e5"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-honorable-mentions","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","Honorable mentions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#honorable-mentions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a Honorable mentions]\n<b>8 borderline cases</b>: defensible on the merits,\nhandled curtly or closed without a fix.","chars":153,"tokens_est":38,"sha256":"b0c96ee9f71c0c59e1d9f974d886f48be645c3e50ed62a4cabd4cc8a059a40c2"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-honorable-mentions~2","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","Honorable mentions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#honorable-mentions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a Honorable mentions]\n- **[#4011 \u00b7 Display Capture says \"No properties available\" after quitting and reopening it](https://github.com/obsproject/obs-studio/issues/4011)** (48 comments). macOS display capture: closed as stale on 2024-10-14. Staff, who now use Apple Silicon, could not reproduce it on Intel.\n- **[#3664 \u00b7 Audio latency on monitor](https://github.com/obsproject/obs-studio/issues/3664)** (37 comments). Monitor latency: staff agree the design \"serves neither purpose\" but closed it because it works \"as implemented\".\n- **[#12338 \u00b7 [Bug] `OBS-Studio-31.0.4-Windows-Installer.exe` (and `XPFFH613W8V6LV`) fail to `update` or `install`, unless the user `kill`s their GPU driver software, which is not recommended.](https://github.com/obsproject/obs-studio/issues/12338)** (24 comments). Installer fails while GPU software holds DLLs: \"not a bug with OBS\", although staff later called the fix valid.\n- **[#7451 \u00b7 AMD AMF using Color Range Full does not work for Livestreaming (Nvidia & x264 works)](https://github.com/obsproject/obs-studio/issues/7451)** (23 comments). AMF full range on streams: locked as too heated two days after it opened. Staff did cite their Twitch contacts.\n- **[#11029 \u00b7 OBS is double loading every built-in plugin and then crashing with double free on exit.](https://github.com/obsproject/obs-studio/issues/11029)** (23 comments). Plugins load twice when lib is a symlink: put down to how the distro packages OBS, after a user showed Arch lays out its directories the same way.\n- **[#4354 \u00b7 OBS causing screen-tearing in preview and recordings](https://github.com/obsproject/obs-studio/issues/4354)** (19 comments). Screen tearing: closed as stale on 2024-10-14 after users said they could only work around it by downgrading.\n- **[#8928 \u00b7 macOS Screen Capture stops working after waking from sleep](https://github.com/obsproject/obs-studio/issues/8928)** (15 comments). Screen capture stops after sleep: closed as \"intended behavior\". Users have written three scripts to work around it.\n- **[#7260 \u00b7 Large GUI text in V28](https://github.com/obsproject/obs-studio/issues/7260)** (15 comments). V28 theme: \"'I don't like it' isn't a valid bug report\", though staff did point users to the old theme.\n\n---","chars":2276,"tokens_est":569,"sha256":"479de441fed4da82bf967a5c08884824b33999987f0c9bd8b596d4fd16a6b6d1"},{"id":"docs-hall-of-fame#obs-project-user-abuse-hall-of-fame-how-an-issue-gets-in","doc":"docs-hall-of-fame","group":"docs","tier":"archive","kind":"prose","breadcrumb":["\ud83c\udfc6 OBS Project User Abuse Hall of Fame","How an issue gets in"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md#how-an-issue-gets-in","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/hall-of-fame.md","text":"[\ud83c\udfc6 OBS Project User Abuse Hall of Fame \u203a How an issue gets in]\n1. `tools/upstream_hall_of_fame.py` searches `obsproject/obs-studio` for\n   issues closed as *not planned* or locked, sorted by comments and reactions.\n2. It keeps those with at least 15 comments or 8 reactions.\n3. A person reads every remaining thread. Issues traced to a third-party\n   driver, plugin or distro are thrown out. The verdicts live in\n   `tools/upstream_hall_of_fame_verdicts.json`.\n\nEvery claim links to the thread. Read it and judge for yourself.\n\n**Hit one of these? [OBS-Studio-Rust](../README.md) is where we fix them.**","chars":603,"tokens_est":151,"sha256":"bcdee400b6b09cf63ad54d30bf78c9c9819826e113b20b7d561df05a67028274"},{"id":"docs-macos-signing#macos-signing-policy","doc":"docs-macos-signing","group":"docs","tier":"process","kind":"prose","breadcrumb":["macOS signing policy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/macos-signing.md#macos-signing-policy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/macos-signing.md","text":"[macOS signing policy]\nHow OBS-Studio-Rust release builds for macOS are signed and notarized, and\nthe rules that keep the credentials safe. Background: #2383, #2424, #2430.\n\n## What gets signed\n- **Releases only.** `release-rust.yaml` (tags and `verify_only`\n  dispatches on `master`) signs with the Developer ID and notarizes.\n  PR, fork and merge-queue builds are ad-hoc signed (`-`) and never see the\n  secrets.\n- **Everything inside the bundle.** Xcode's sign-on-copy signs only the top\n  level of each embedded framework. `.github/scripts/.package.zsh` signs the\n  nested code of prebuilt frameworks (Sparkle's helpers, CEF's\n  `Libraries/*.dylib`) from the inside out with `--timestamp --options\n  runtime`, reseals the app, and requires\n  `codesign --verify --strict --deep` before it builds the DMG. A new\n  prebuilt framework with nested code gets a line there.\n- **Notarize, then staple.** The DMG goes to `notarytool submit --wait`\n  and `stapler staple`. On failure the script prints Apple's notary log, so\n  the reason is in the CI output.\n\n## An unsigned release is a failed release\nA tagged release whose macOS jobs do not report `codesign: true` and\n`notarize: true`, or whose DMG fails `spctl --assess` or\n`stapler validate`, is not published. Do not ship it with a \"right-click,\nOpen\" or `xattr -d com.apple.quarantine` workaround in the notes.","chars":1362,"tokens_est":340,"sha256":"edd8ba90609c5590482e5c81f53eb8067e12d975a2b26c6b0eac6b817b2c41c8"},{"id":"docs-macos-signing#macos-signing-policy-secrets","doc":"docs-macos-signing","group":"docs","tier":"process","kind":"prose","breadcrumb":["macOS signing policy","Secrets"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/macos-signing.md#secrets","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/macos-signing.md","text":"[macOS signing policy \u203a Secrets]\nRepository secrets on `obs-rust/obs-studio`, read only by\n`.github/actions/setup-macos-codesigning`:\n\n| Secret | What |\n| --- | --- |\n| `MACOS_SIGNING_IDENTITY` | `Developer ID Application: <name> (<team>)` |\n| `MACOS_SIGNING_CERT` | base64 of the `.p12` (exported with `-legacy` so `security import` reads it) |\n| `MACOS_SIGNING_CERT_PASSWORD` | the `.p12` password |\n| `MACOS_NOTARIZATION_USERNAME` | Apple ID that notarizes |\n| `MACOS_NOTARIZATION_PASSWORD` | app-specific password for that Apple ID |\n\n- Set them with `gh secret set` reading from stdin or a prompt. Never paste\n  a value into an issue, PR, chat or log.\n- The private key and `.p12` are kept offline by the account holder. The\n  app-specific password is not stored anywhere but the secret; if it is\n  lost, make a new one.\n- A value that was ever shown in plain text (a chat, a log, a screenshot)\n  is compromised: revoke it and set a new one the same day.","chars":959,"tokens_est":240,"sha256":"ce0f928118ca1e8cbcdcec128e78893b6efebad6dc3beee5ba7f51b00819d8a5"},{"id":"docs-macos-signing#macos-signing-policy-rotation-and-expiry","doc":"docs-macos-signing","group":"docs","tier":"process","kind":"prose","breadcrumb":["macOS signing policy","Rotation and expiry"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/macos-signing.md#rotation-and-expiry","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/macos-signing.md","text":"[macOS signing policy \u203a Rotation and expiry]\n- **Developer ID certificate:** valid five years (the current one expires\n  2027-11-24). Make the replacement at least 30 days before, from a new CSR,\n  and update `MACOS_SIGNING_CERT`, `MACOS_SIGNING_CERT_PASSWORD` and\n  `MACOS_SIGNING_IDENTITY` together. Builds already notarized stay valid\n  after the certificate expires.\n- **App-specific password:** rotate yearly, and whenever someone with\n  access leaves.\n- **Apple Developer Program membership:** renews yearly. If it lapses,\n  notarization stops and releases fail by the rule above.\n- After any change, run `release-rust.yaml` with `verify_only=true` and\n  check both macOS jobs report `Accepted` before the next tag.","chars":721,"tokens_est":180,"sha256":"9aabd9edbc6016fb5ed59719478bdedd60df3d42246ece83eee55fff5c786991"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#undoredo-coverage-architecture-and-a-visible-affordance-2214","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214)]\nResearch for [obs-rust/obs-studio#2214](https://github.com/obs-rust/obs-studio/issues/2214).\nEvery claim cites the tree as of 2026-10-24 (branch from `origin/master`).\nNothing here was reproduced at runtime; statuses marked *unknown* need a repro.\n\n## 0. The stack in one paragraph\n`undo_stack` (`frontend/utility/undo_stack.hpp:12-58`) holds two\n`std::deque<undo_redo_t>` (`:28-29`); each entry is a name, two\n`std::string` blobs and two `std::function` callbacks (`:19-25`). The stack\nis capped at `MAX_STACK_SIZE 5000` (`undo_stack.cpp.hpp:3`, eviction\n`:37-40`), clears redo on every new entry (`:56`, `:163-166`), and writes the\nEdit menu text and enable state directly (`:23-27`, `:58-62`, `:78-86`,\n`:102-110`). Plugins reach it through `obs_frontend_add_undo_redo_action`\n(`frontend/api/obs-frontend-api.h:254`, `frontend/OBSStudioAPI.cpp.hpp:686-691`,\ndocumented in `docs/sphinx/reference-frontend-api.rst:958-966`).","chars":994,"tokens_est":248,"sha256":"f1c5176270945e790a3ec1e57b2193fd56e615b68c0fa5e1298ea77a221478b8"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-1-coverage-audit-1","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","1. Coverage audit","1a. Undoable today (every add_action site)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#1a-undoable-today-every-add_action-site","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a 1. Coverage audit \u203a 1a. Undoable today (every add_action site)]\n| Operation | Evidence | Blob stored |\n|---|---|---|\n| Plugin/script action via frontend API | `frontend/OBSStudioAPI.cpp.hpp:689` | caller's strings |\n| Paste transform | `frontend/widgets/OBSBasic_Clipboard.cpp.hpp:43` | transform states |\n| Paste filter(s) (single / multiple / multi-dest) | `OBSBasic_Clipboard.cpp.hpp:245`, `:286` | filter JSON |\n| Paste source / source ref | `OBSBasic_Clipboard.cpp.hpp:135-139` (via `CreateSceneUndoRedoAction`) | whole scene backup |\n| Add source (new / existing) | `frontend/dialogs/OBSBasicSourceSelect.cpp.hpp:771`, `:820` | name only |\n| Keyboard nudge (coalesced 1 s by own timer) | `frontend/widgets/OBSBasic_Preview.cpp.hpp:362` | transform states, all items |\n| Mouse drag/resize/rotate in preview | `frontend/widgets/OBSBasicPreview.cpp.hpp:874` | transform states, all items |\n| Deinterlace mode / order | `frontend/widgets/OBSBasic_SceneItems.cpp.hpp:263`, `:292` | uuid |\n| Scale filtering, blending method, blending mode | `OBSBasic_SceneItems.cpp.hpp:364`, `:420`, `:472` | uuid |\n| Delete scene item(s) | `OBSBasic_SceneItems.cpp.hpp:876-906` | whole scene backup |\n| Move up/down/top/bottom | `OBSBasic_Scenes.cpp.hpp:864` (via `MoveSceneItem` `:882-890`) | scene backup of moved sources |\n| Rotate / flip / fit / stretch / center (Edit > Transform) | `OBSBasic_SceneItems.cpp.hpp:1107`, `:1121`, `:1135`, `:1178`, `:1193`, `:1240`, `:1254`, `:1355`, `:1369`, `:1383` | transform states |\n| Reset transform | `OBSBasic_Scenes.cpp.hpp:999` | transform states |\n| Transform dialog | `frontend/dialogs/OBSBasicTransform.cpp.hpp:126` | transform states |\n| Volume / mute / monitoring (mixer) | `frontend/components/VolumeControl.cpp.hpp:832` (repeatable), `:704`, `:726` | uuid |\n| Rename via mixer | `VolumeControl.cpp.hpp:559` | uuid |\n| Adv. audio: volume, balance, sync, force mono, monitoring, tracks | `frontend/components/OBSAdvAudioCtrl.cpp.hpp:387`, `:406`, `:473`, `:501` (repeatable), `:448`, `:522`, `:547` | uuid |\n| Drag-and-drop files from the OS | `frontend/widgets/OBSBasic_Dropfiles.cpp.hpp:179` | name only |\n| Show/hide scene item | `frontend/components/SourceTreeItem.cpp.hpp:136` | uuid |\n| Rename source in tree | `SourceTreeItem.cpp.hpp:429` | uuid |\n| Group items | `SourceTreeItem.cpp.hpp:338-347`, fallback `frontend/components/SourceTree.cpp.hpp:476-481` | whole scene backup |\n| Ungroup | `frontend/components/SourceTreeModel.cpp.hpp:361-371` | whole scene backup |\n| Reorder sources by drag in the tree | `SourceTree.cpp.hpp:231`, `:392-399` | scene backup |\n| Duplicate / delete / add / rename scene | `OBSBasic_Scenes.cpp.hpp:295`, `:469`, `:711`, `:923` | scene JSON / name / uuid |\n| Show/hide transition override (single / multi) | `frontend/widgets/OBSBasic_Transitions.cpp.hpp:1034`, `:1094` | transition JSON |\n| Filter settings | `frontend/dialogs/OBSBasicFilters.cpp.hpp:188` | full filter settings JSON |\n| Add / rename / delete filter | `OBSBasicFilters.cpp.hpp:572`, `:985`, `:1095` | filter JSON |\n| Source properties (OK in dialog) | `frontend/dialogs/OBSBasicProperties.cpp.hpp:293` | full settings JSON, old and new |\n| Context-bar toolbar property edits | `frontend/components/SourceToolbar.cpp.hpp:53` | full settings JSON |","chars":3361,"tokens_est":840,"sha256":"d68cb876c9961f4067d68e399a3fc44025d8a41aac9165fd3057357d110ab028"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-1-coverage-audit-1-2","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","1. Coverage audit","1b. Not undoable"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#1b-not-undoable","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a 1. Coverage audit \u203a 1b. Not undoable]\nNo area below is excluded on purpose anywhere in writing: `docs/`,\n`frontend/` comments and the frontend API doc say nothing about undo scope.\nThe only trace of intent is an orphan string, `Undo.SceneCollection.Switch`\n(`frontend/data/locale/en-US.ini:334`), which no code references.","chars":392,"tokens_est":98,"sha256":"d8bb1d7d0b49ca711dcaef9941cea1f44ceb0c05fe75905c537611d6746f5d95"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-1-coverage-audit-1~2","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","1. Coverage audit","1b. Not undoable"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#1b-not-undoable","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a 1. Coverage audit \u203a 1b. Not undoable]\n| Operation | Undoable? | Evidence (mutation, no `add_action`) | Gap type |\n|---|---|---|---|\n| Video/canvas settings | No | `frontend/settings/OBSBasicSettings.cpp.hpp:3372` `SaveVideoSettings`; no `undo` in the file | Unimplemented, plausibly right to exclude (dialog has Cancel/Apply); undocumented |\n| Output settings | No | `OBSBasicSettings.cpp.hpp:3602` | same |\n| Audio settings | No | `OBSBasicSettings.cpp.hpp:3745` | same |\n| Hotkeys | No | `OBSBasicSettings.cpp.hpp:3857` `SaveHotkeySettings` | same |\n| Additional canvases | No | `frontend/widgets/OBSBasic_Canvases.cpp.hpp:20`, `:58`; no `undo` in the file | Unimplemented, undocumented |\n| Scene-collection switch / new / dup / rename / remove / import | No; **stack is cleared** | `ClearSceneData` `frontend/widgets/OBSBasic_SceneCollections.cpp.hpp:1536`, `undo_s.clear()` `:1594`, called from `LoadData` `:1158-1160` and `CreateDefaultScene` `:1019-1023`; import `:623`, remove `:582` | Deliberate in effect (the clear), undocumented; the orphan locale key suggests it was once planned |\n| Scene-collection export | n/a (no state change) | `OBSBasic_SceneCollections.cpp.hpp:631` | \u2014 |\n| Profile switch / remove | No, and stack is **not** cleared | `frontend/widgets/OBSBasic_Profiles.cpp.hpp:695`, `:561`; no `undo` in the file | Unimplemented, undocumented |\n| Scripts (add/remove/settings in Tools > Scripts) | No | `plugins/frontend-tools/scripts.cpp.hpp` has no `undo` | Unimplemented |\n| Plugins | Only if they call the API | `frontend/api/obs-frontend-api.cpp.hpp:642-648` | Opt-in by design |\n| obs-websocket requests | No | e.g. `plugins/obs-websocket/src/requesthandler/RequestHandler_SceneItems.cpp:527`, `RequestHandler_Inputs.cpp:370`, `RequestHandler_Filters.cpp:339`; no `undo` in `plugins/obs-websocket/src` | Unimplemented; must not be fixed inside the plugin (AGENTS.md \"OBS WebSocket compatibility directive\") |\n| Studio mode toggle, preview/program scene | No | `frontend/widgets/OBSBasic_StudioMode.cpp.hpp:175`; `SetCurrentScene` `OBSBasic_Transitions.cpp.hpp:698-704` | Correctly excluded (navigation, not edit); undocumented |\n| Projector windows | No | `frontend/widgets/OBSBasic_Projectors.cpp.hpp:140` | Correctly excluded (view state) |\n| Scene list reorder (drag) | No | `frontend/components/SceneTree.cpp.hpp:141` emits `scenesReordered`, handler `frontend/widgets/OBSBasic.cpp.hpp:416-417` only refreshes multiview | Unimplemented |\n| Lock/unlock scene item | No | `SourceTreeItem.cpp.hpp:150` | Unimplemented |\n| Filter enable toggle | No | `frontend/components/VisibilityItemWidget.cpp.hpp:25` | Unimplemented |\n| Filter reorder | No | `OBSBasicFilters.cpp.hpp:706`, `:714`, `:752`, `:760`, `:1123` | Unimplemented |\n| Transition select / duration | No | `OBSBasic_Transitions.cpp.hpp:435`, `:1600` | Unimplemented |\n| Group operations | Yes (group, ungroup) | see 1a | \u2014 |\n| OS drag-and-drop | Yes (file drop) | see 1a | \u2014 |","chars":3034,"tokens_est":758,"sha256":"db8037bcc0ee4aa8b45f0b8e3eb50ff1f0f296dcaad10dd092414023b60f8a79"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-2-architecture-rec","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","2. Architecture recommendation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#2-architecture-recommendation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a 2. Architecture recommendation]\n| Option | Verdict |\n|---|---|\n| Keep the C++ class | **Recommended for now.** It is 169 lines, works, and the bugs (section 4) are in the call sites and `scene_load`, not the container. The four-tier policy applies if it is ported later. |\n| Port to Rust 1:1 | Low value alone: the class is a `QObject` bound to `Ui::OBSBasic` (`undo_stack.hpp:3`, `:17`, `:27`). A port should first split the pure deque/coalescing logic (testable without Qt) from the menu wiring. |\n| Command layer in core (libobs) | Changes architecture: needs an RFC in obs-rust/rfcs. Not decided here. |\n\nSmallest hooks:\n\n- **Plugins:** already exist (`obs_frontend_add_undo_redo_action`,\n  `frontend/api/obs-frontend-api.h:254`). Nothing new is needed.\n- **obs-websocket:** the plugin must not be modified (AGENTS.md). The only\n  route is on the Rust/frontend side: observe libobs signals (item\n  transform, source update) and record entries. That records *every*\n  libobs change, which would also catch the frontend's own changes twice and\n  put remote edits on a local user's stack. Recommendation: draw the boundary\n  at the frontend; remote edits are not undoable. If anyone wants otherwise,\n  it is an RFC.","chars":1286,"tokens_est":322,"sha256":"2d688d4430be9a84c8acc049eab0950b64919360a077e7d6e08c0d5f61dac94b"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-3-semantics","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","3. Semantics"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#3-semantics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a 3. Semantics]\n| Topic | Current behaviour | Recommendation |\n|---|---|---|\n| Coalescing | Same-name repeatable entries merge, keeping the first undo and the latest redo (`undo_stack.cpp.hpp:46-50`) while the 3000 ms single-shot timer runs (`:8-9`, `:42-44`). Only mixer/adv-audio sliders pass `repeatable=true` (`VolumeControl.cpp.hpp:834`, `OBSAdvAudioCtrl.cpp.hpp:389`, `:408`, `:475`, `:503`). Nudges coalesce with their own 1 s timer (`OBSBasic_Preview.cpp.hpp:352-372`); drags make one entry on release (`OBSBasicPreview.cpp.hpp:860-876`). The 500 ms timer fixed in #765 is a different one, in `shared/properties-view/properties-view.cpp:2145`. | Keep. Name-based merge can wrongly join two different sources only if their names match; key on name+uuid when ported. |\n| Redo invalidation | Any new entry clears redo (`undo_stack.cpp.hpp:56`). A coalesced merge returns before that line (`:49`), so redo survives a merged slider move. | Move `clear_redo()` before the merge return. Minor. |\n| Memory at 5000 | Only `undo_items` is capped; eviction copies the entry before dropping it (`:38`). Two blobs per entry. Estimates from what sites store: uuid/name entries < 200 B; transform states store every item in the scene (`OBSBasic_Preview.cpp.hpp:354`, `true` = all items; ~350 B/item from `libobs/obs-scene.c.h:2312-2324`), so a 30-item scene is ~10 KB/entry, ~50 MB at 5000; a whole-scene backup (`OBSBasic_Scenes.cpp.hpp:789-811`) carries every source's full `obs_save_source` JSON including filters, typically 20-200 KB per blob, i.e. **0.2-2 GB** worst case at 5000. | Cap by bytes (e.g. 64 MB) as well as count, and store diffs for transforms (only changed items). |\n| Collection switch | Stack cleared (`OBSBasic_SceneCollections.cpp.hpp:1594`), so no entry can outlive its objects. Profile switch does not clear (`OBSBasic_Profiles.cpp.hpp:695`), which is fine: profile objects are not in entries. | Keep. Document it; show a one-time hint or toast that history was reset. |\n| Missing objects | Scene backups re-resolve by **name** (`OBSBasic_Scenes.cpp.hpp:836`) and recreate a missing source with `obs_load_source` (`:838`); transform states resolve by item id and silently skip missing items (`libobs/obs-scene.c.h:2387-2388`). | Resolve by uuid everywhere. |\n| Enable state bug | `enable_internal()` enables Undo even when `undo_items` is empty (`undo_stack.cpp.hpp:117`), e.g. after any `pop_disabled()`/`enable()`. A visible button would be enabled and do nothing. | Prerequisite fix: `setEnabled(!undo_items.empty())`. |","chars":2610,"tokens_est":652,"sha256":"e7e776a767958edbc71bfda92c4a685de3cd9fcf875601a07641c82f7c93d123"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-4-upstream-bugs-in","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","4. Upstream bugs in this fork"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#4-upstream-bugs-in-this-fork","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a 4. Upstream bugs in this fork]\n| Bug | Status | Reasoning from code |\n|---|---|---|\n| obsproject/obs-studio#10120 (undo/redo breaks layout, ignores history) | **Unknown** (upstream could not repro on a minimal collection either) | Plausible mechanisms are all still here: scene-backup entries look sources up by name (`OBSBasic_Scenes.cpp.hpp:836`), so after a rename an older entry creates a duplicate (`:838`); scene reloads replace all items (`libobs/obs-scene.c.h:1121`); transform entries skip items whose id no longer matches (`obs-scene.c.h:2387-2388`); group lookup in transform restore is by name (`obs-scene.c.h:2422`). Needs a repro with the reporter's `bugged.json`. |\n| #5516 (window/display capture blank after undo/redo) | **Unknown**; Windows-only (WGC), not testable on Linux | Upstream commenters reproduce it without undo, so it is likely a capture/studio-mode bug. Undo makes it more likely: transform undo calls `SetCurrentScene(..., true)` (`OBSBasic_SceneItems.cpp.hpp:1021`), and scene-backup undo re-runs `obs_source_load2` on every backed-up source (`OBSBasic_Scenes.cpp.hpp:855`, `libobs/obs-source.c.h:4325-4335`). |\n| #5152 (sources flicker on undo of delete) | **Present** (by code; no runtime repro run) | `CreateSceneUndoRedoAction` calls `obs_source_update` on the scene (`OBSBasic_Scenes.cpp.hpp:849`), whose `scene_load` removes every item and re-adds it (`libobs/obs-scene.c.h:1115-1142`, `remove_all_items` at `:1121`). This is the cause upstream's maintainer gave. |","chars":1574,"tokens_est":394,"sha256":"c039e27d4d0a5caabeebbb46840a88276bdfddc7f2ea83ff39c8ee5371864633"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-5-the-affordance","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","5. The affordance"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#5-the-affordance","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a 5. The affordance]\n| Item | Finding |\n|---|---|\n| Actions | `actionMainUndo`/`actionMainRedo` are the live pair: in the Edit menu (`frontend/forms/OBSBasic.ui:856-857`), defined `enabled=false` (`:2142-2157`), triggered at `frontend/widgets/OBSBasic_MainControls.cpp.hpp:590-598`, shortcuts Ctrl+Z / Ctrl+Shift+Z / Ctrl+Y app-wide (`frontend/widgets/OBSBasic.cpp.hpp:374-381`). `actionUndo`/`actionRedo` (`OBSBasic.ui:1698-1713`) are dead: not in any menu, no code references. Remove them. |\n| Enable state | Driven by the stack itself (`undo_stack.cpp.hpp:23-27`, `:58-62`, `:78-86`, `:102-110`, `:113-129`). A toolbar `QToolButton` bound to the same `QAction` inherits text, tooltip and enable state for free; fix the bug at `:117` first. |\n| Toolbars | Only `scenesToolbar` (`OBSBasic.ui:1055`) and `sourcesToolbar` (`:1184`). No main toolbar; adding the actions to `sourcesToolbar` is the least disruptive spot. |\n| Icons | No undo/redo icon in `frontend/forms/images/`. `revert.svg` exists (`frontend/forms/obs.qrc:38`) with theme variants (`frontend/data/themes/Yami.obt:539`, `Yami_Light.ovt:221`, `System.obt:85`). New `undo.svg`/`redo.svg` (redo = mirrored undo) must be added to `obs.qrc` and each theme's `Dark/`/`Light/` folders, following the `revert.svg` pattern. |\n| Localization | `Undo.Undo`, `Undo.Redo`, `Undo.Item.Undo=\"Undo %1\"`, `Undo.Item.Redo=\"Redo %1\"` exist (`frontend/data/locale/en-US.ini:329-336`) with 47 per-action names (`:331-382`), already shown as menu text. A tooltip can reuse them; no new keys needed except for a toast or history panel. |\n| Options | **Toolbar button:** a day's work, reuses existing wiring. **Toast** (\"Undid: Rename 'X'\"): small, uses the existing name; needs one key. **History panel:** needs read access to the deques and a jump-to API; a project of its own. |","chars":1890,"tokens_est":472,"sha256":"52605bd77a689c9901d88809389e73e9810402857e5ac0d8466c9343b826b6f7"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-split","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","Split"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#split","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a Split]\n| Pure discoverability (no behaviour change) | Real coverage work |\n|---|---|\n| Undo/Redo toolbar buttons bound to `actionMainUndo/Redo` | Fix #5152 (diff-based scene restore instead of `scene_load`) |\n| undo/redo icons in all themes | Resolve by uuid, not name (#10120 mechanisms) |\n| Fix empty-stack enable bug (`undo_stack.cpp.hpp:117`) | Byte cap, transform diffs |\n| Remove dead `actionUndo`/`actionRedo` | Lock, filter toggle/reorder, scene reorder, transitions |\n| Optional toast | Settings / hotkeys / scripts (decide in or out, and write it down) |\n\n**Verdict:** the claim holds. The button is a day of work, because enable\nstate, names, shortcuts and localization already exist. Coverage and\ncorrectness are a project: #5152 is present by code, #10120 and #5516 need\nrepros, and at least six user-visible edit types (section 1b) have no entry.","chars":930,"tokens_est":232,"sha256":"0dd0586b744fd4c03f93e2ac0ceed3fc83887207dc78120e1ae8985693c9fb62"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-proposed-first-imp","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","Proposed first implementation PR"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#proposed-first-implementation-pr","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a Proposed first implementation PR]\n1. RED: a test that the Undo action is disabled after `push_disabled()`/`pop_disabled()` on an empty stack; GREEN: fix `undo_stack.cpp.hpp:117`.\n2. Add `actionMainUndo`/`actionMainRedo` to `sourcesToolbar` with new `undo.svg`/`redo.svg` icons in every theme; tooltips from the existing names.\n3. Remove the dead `actionUndo`/`actionRedo`.\n4. A `docs/features.md` ledger line (user-visible change).\n\n\\#5152 is a prerequisite in principle, since a button advertises it, but its\nfix touches libobs `scene_load` semantics and should be its own PR landing\nbefore or with the button. #10120 and #5516 stay follow-ups until reproduced.","chars":732,"tokens_est":183,"sha256":"e9f2781fdf3c45112f0b075840532435a3a38e99380de7207f8a3f022c6d7507"},{"id":"docs-undo-redo-research-2214#undo-redo-coverage-architecture-and-a-visible-affordance-2214-follow-up-issues-t","doc":"docs-undo-redo-research-2214","group":"docs","tier":"archive","kind":"prose","breadcrumb":["Undo/redo: coverage, architecture and a visible affordance (#2214)","Follow-up issues to file"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md#follow-up-issues-to-file","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/undo-redo-research-2214.md","text":"[Undo/redo: coverage, architecture and a visible affordance (#2214) \u203a Follow-up issues to file]\n| Title | One line |\n|---|---|\n| bug: undo/redo of scene edits recreates every item (upstream #5152) | Replace `obs_source_update` on the scene (`OBSBasic_Scenes.cpp.hpp:849`) with a diff-based restore. |\n| bug: undo entries resolve sources by name, not uuid | `OBSBasic_Scenes.cpp.hpp:836` creates duplicates after a rename. |\n| repro: upstream #10120 against this fork | Use the reporter's `bugged.json`; record steps and result. |\n| repro: upstream #5516 on Windows (WGC + studio mode) | Determine whether undo is involved at all. |\n| bug: Undo stays enabled on an empty stack after `pop_disabled()` | `undo_stack.cpp.hpp:117`. |\n| bug: coalesced merge keeps a stale redo stack | `undo_stack.cpp.hpp:46-56`, merge returns before `clear_redo()`. |\n| perf: cap undo history by bytes, store transform diffs | 5000 whole-scene backups can reach gigabytes. |\n| feat: undo for lock, filter enable/reorder, scene reorder, transition changes | Sites listed in section 1b. |\n| docs: write down undo scope | Settings, collections, profiles, websocket, studio mode, projectors are out; say why. Remove or use `Undo.SceneCollection.Switch`. |\n| cleanup: remove dead `actionUndo`/`actionRedo` | `OBSBasic.ui:1698-1713`, no references. |\n| feat: undo toast and/or history panel | After the toolbar button lands. |","chars":1398,"tokens_est":350,"sha256":"535be857e13e6b6aa2b7425f2654f9dfdf839684414b52f187c8a7aa17649f87"},{"id":"docs-worker-prompt#worker-prompt","doc":"docs-worker-prompt","group":"docs","tier":"process","kind":"prose","breadcrumb":["Worker prompt"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/worker-prompt.md#worker-prompt","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/worker-prompt.md","text":"[Worker prompt]\nThe copy-paste prompt the README offers under \"Want to help port OBS to\nRust?\" (#2326). It starts any capable agent (Claude Code, Codex, clud, or a\nchat window) as a worker that takes one issue to an open PR and stops.\n\nThis file is canonical. `ci/test_readme_worker_prompt.py` fails when the\nREADME's block differs from the block below, so edit both together.\n\n```text\nYou are a worker in obs-rust/obs-studio, the Rust rewrite of OBS Studio.\nTake exactly one issue from claim to an open pull request, then stop.\n1. Clone https://github.com/obs-rust/obs-studio if you are not in it.\n   Read AGENTS.md, then .claude/skills/obs-worker/SKILL.md, and follow it.\n   It sends you to docs/rust-port/coordination.md and\n   docs/rust-port/testing-policy.md: read both before you code.\n2. Pick one open issue from label:ready (fall back to\n   label:needs-investigation). Skip any with a recent \"Claiming:\" comment\n   or an open PR that names it. Comment \"Claiming: #N\" with a short plan.\n3. Branch from master. Commit a failing test first (RED), then the fix\n   that makes it pass (GREEN). Run ./lint. One PR per issue.\n4. Open the PR against master, describing RED and GREEN.\n5. Do not merge, never push to master, and never commit secrets.\n   Report the PR URL and stop. Maintainers queue PRs; you don't.\nStuck? Ask in the Discord linked in the README, or in Discussions.\n```","chars":1383,"tokens_est":346,"sha256":"7826af112a412e092a0c739adc536c9f6218571efcf61364fc8a0225c1658d3f"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-what-failed-2026-11-09","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","What failed (2026-11-09)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#what-failed-2026-11-09","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a What failed (2026-11-09)]\nBy 14:00 UTC, 114 PRs were open and nothing had merged for more than 5 hours.\nEvery part of the tooling made its own admission decision from fixed knobs:\n\n- Pool managers kept 8 workers busy, and each worker opened a PR when it finished.\n- Chaperones (`pr_merge_watch --enqueue-when-ready`) re-enqueued every PR the queue ejected.\n- Rebase waves force-pushed whole sibling sets at once, which restarted CI on every one of them.\n\nNone of those parts measured the one quantity that mattered: how fast the merge queue was actually landing PRs. Hosted runners stopped picking up jobs, so that rate fell to zero. Every PR that was still being added after that point increased queued runs and conflicts, which caused more rebases, which queued more runs again. A static cap (lesson 44's \"about 15 PRs\") would only have moved the cliff to a different spot. It is too low when runners are fast and too high when they are starved.","chars":978,"tokens_est":244,"sha256":"eb16f9e5485deed5d6befaa4470dcbae828dfef2d8db69c4edd0b020a23d5042"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-design-measure-capacity-instead-of-configuring-it","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","Design: measure capacity instead of configuring it"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#design-measure-capacity-instead-of-configuring-it","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a Design: measure capacity instead of configuring it]\n`ci/backpressure.py` takes its numbers from live GitHub state and has no settings:\n\n| signal | source |\n|---|---|\n| capacity | PRs merged in the last 2 h |\n| width | `max_entries_to_build` from the repository's active merge-queue ruleset; fallback 5 if unreadable |\n| in flight | union of queue entries and non-draft armed PRs, excluding only conclusively parked red PRs |\n| starvation | age of the oldest queued job in its current run attempt (20 min or more counts as starved); job-less runs do not count |\n\nWhen `capacity > 0`, the limit is `max(capacity, 2 * width)`. After a stall (`capacity == 0`), the limit is `width`. The gate is **open** when `in_flight < limit` and runners are not starved; otherwise it is **closed** (exit code 75). Starvation always forces headroom to zero, whatever the limit. Unreadable PR or queue state still fails closed.\n\nThe old one-PR-per-2-h ramp after a stall took about 2 h to recover, even though the queue tests `width` entries at once. Attested PRs reach the queue in about 66 s with no PR-side CI. Allowing one build group's width during a stall and at least two during normal operation keeps that capacity useful. The oldest queued job remains the catastrophic-failure guard from the 2026-11-09 collapse. Width is read once per invocation; an unreadable ruleset uses 5 without closing admission by itself. JSON verdicts report `width`, `width_source` (`ruleset:<id>` or `fallback`) and `limit_reason` (`normal`, `stall` or `starved`).","chars":1563,"tokens_est":391,"sha256":"73378370b8bd0be8110cddd6ae198deec6016fb76577c543f2448414efd55255"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-design-measure-capacity-instead-of-configuring-it-wh","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","Design: measure capacity instead of configuring it","Who obeys it"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#who-obeys-it","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a Design: measure capacity instead of configuring it \u203a Who obeys it]\n- `./push` opens a new PR as a **draft** while the gate is closed. The work is still published, but it uses no queue capacity.\n- Pool managers check the gate before launching producers. When it is closed, they assign rebase and fix work instead of new ports.\n- Chaperones enqueue only while it is open.\n- `ci/ai_rebase.py --dirty` rebases at most the gate's `headroom` PRs per run, oldest first, because every rebase restarts CI.","chars":527,"tokens_est":132,"sha256":"aa3d13b3b670438dfd1f7ed1ff450d1ce386f1df2aa640b0d3a94ed248029fcd"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-ai-rebase","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","AI rebase"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#ai-rebase","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a AI rebase]\n`ci/ai_rebase.py` replays a PR onto `origin/master`. At each stopped step it runs the clud agent unattended (`clud --openrouter --model ~deepseek/deepseek-flash-latest --unattended`) with the instructions in `ci/ai_rebase_prompt.md` and the list of conflicted files. The agent can read neighbouring code and run the repo's own fixers (`test_test_graph_sorted.py --fix`, `soldr cargo fmt`). It only stages files: the script continues the rebase and judges the result. Without clud, each file goes to the model directly. `AI_REBASE_MODEL` overrides the model.\n\nA resolution is refused, and the PR is left untouched with a comment explaining why, if any of these holds:\n- conflict markers remain,\n- more than 2 lines that either side added are missing,\n- `git diff --check` fails,\n- the file is a lock file or binary.\n\nThe push uses `--force-with-lease` against the head that was fetched, so an author's concurrent push always wins. It then decides whether the PR goes back in the queue, biased towards yes: auto-merge is armed (pinned to the new head) unless the PR is a draft, says hold or \"do not enqueue\" in its body or labels, has changes requested, failed more than two real checks on its old head, or failed in the merge queue. Back pressure is left to the queue and the gate. The arm command leaves the merge strategy to the queue (which squashes); a rejected arm is reported as `failed to arm auto-merge` and makes the script exit nonzero even when the push succeeded.","chars":1516,"tokens_est":379,"sha256":"e8406346afb7709a31c68c61e979c28191408f2e618018471663a867b1c603d7"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-ai-rebase-cooperation-with-the-coordinator-manager-a","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","AI rebase","Cooperation with the coordinator, manager and worker pool"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#cooperation-with-the-coordinator-manager-and-worker-pool","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a AI rebase \u203a Cooperation with the coordinator, manager and worker pool]\nThe bot owns mechanical rebases of DIRTY PRs and landing stacked drafts after their parent merges. The coordinator/manager assigns a worker to real failures or rebases the bot refuses, and checks whether the bot is enabled before assigning overlapping rebase or landing work. Both bulk selection and explicit PR runs respect these signals:\n\n| label | owner and contract |\n|---|---|\n| `pool-active` | A pool worker adds it before working on an existing PR and removes it when retiring. The bot reports `skipped: worker active` and does not fetch, check out, rebase or push that PR. |\n| `queue-failed` | The manager or requeue bot adds it after a real queue test/build failure; the manager dequeues and disarms the PR and stops its watcher. The rebase bot reports `left out: failed in the merge queue` and leaves it disarmed. Remove it only after a worker fixes and verifies the failure. Watchers must honor the label too. |\n\nThe bot also grants at least 30 minutes of quiet time after a head push, reporting `skipped: worker active`. GitHub often returns null for commit `pushedDate`, so the cheap signal is PR `updatedAt`: pushes advance it even when the commit was authored earlier. Comments or label changes can conservatively extend that quiet time. Missing activity data also skips the PR. Skipped workers consume no bulk headroom; the remaining candidates keep their original oldest-first order.","chars":1502,"tokens_est":376,"sha256":"25399e22de24add67a4d7b9f8c0bc2e1ec15d1fe64e350f30240789467a0eecd"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-ai-rebase-cooperation-with-the-coordinator-manager-a~2","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","AI rebase","Cooperation with the coordinator, manager and worker pool"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#cooperation-with-the-coordinator-manager-and-worker-pool","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a AI rebase \u203a Cooperation with the coordinator, manager and worker pool]\nEven without `queue-failed`, the bot checks the most recent `removed_from_merge_queue` timeline event before rebasing. A `failed_checks` ejection on the current PR head prevents re-arming. The event's `beforeCommit` is a synthetic queue commit, so the bot uses ordered commit/force-push timeline events to bind the failure to the PR head, paging backwards when necessary. A newer head or a later non-failure removal does not inherit an old failure. Unreadable or incomplete failure history refuses the operation instead of guessing. The old head's verdict survives the bot's own rebase; rebasing alone cannot clear a real failure.\n\nStacked drafts keep the first line `Stacked on #P: review only the commits after <sha>.` Once P merges, the bot replays only commits after that SHA, replaces the stacking note and marks the PR ready, subject to the same ownership, holds and queue-failure guards. Lease pushes, FIFO ordering and back-pressure headroom remain in force. Bot pushes carry no client attestation, so the rebased PR runs fallback CI.","chars":1144,"tokens_est":286,"sha256":"806844f0577c678222fbb079b47a455550d45b778483dac89ddbad2891435c9c"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-ai-rebase-automatic-infrastructure-re-arm","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","AI rebase","Automatic infrastructure re-arm"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#automatic-infrastructure-re-arm","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a AI rebase \u203a Automatic infrastructure re-arm]\n`uv run --no-project --script ci/ai_rebase.py --requeue-ejected` runs before the rebase steps in the same workflow at :17 and :47 (also on master pushes and manual dispatch). It uses `GITHUB_TOKEN` with `contents: read` and `pull-requests: write`; Actions evidence is public read-only data. It needs neither the ai-rebase App token nor the model key, performs no checkout changes or pushes, and leaves merge strategy to the queue. Missing `AI_REBASE_TOKEN` disables only rebasing. Refs #4896.\n\nThe latest queue/head transition must be a removal within three hours, bound by preceding commit/force-push events to the unchanged PR head. The PR must be open, disarmed, out of draft, without a hold, `draft`, `pool-active` or `queue-failed` label or requested changes. The worker quiet period applies. Conflicts stay with the rebase path; manual removals are never retried. Immediately before mutation the bot refreshes the PR and queue transition.\n\n- `checks_timed_out` is retried directly. Otherwise the bot reads the exact synthetic `beforeCommit`'s merge-group runs and their latest-attempt jobs, including failed jobs inside cancelled runs.\n- Cancellation, runner-loss diagnostics, checkout/setup-soldr/cache-restore failures and explicit network errors qualify as infrastructure. Compiler/assertion failures take precedence over network text. A self-hosted failure also qualifies when the same workflow and exact matrix job passed on a different runner within one hour.\n- Every substantive failed job must qualify. The downstream `CI Gate \u2705` failure is ignored only with supporting failed/cancelled job evidence. Real test/build failures get `queue-failed` and remain disarmed; missing, unreadable or ambiguous evidence leaves the PR untouched.","chars":1822,"tokens_est":456,"sha256":"737adf491b13a3be7843908fc869e636d20d1b3f09e87d35c923aa384198e7df"},{"id":"docs-rust-port-backpressure#back-pressure-and-ai-rebase-ai-rebase-automatic-infrastructure-re-arm~2","doc":"docs-rust-port-backpressure","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Back pressure and AI rebase","AI rebase","Automatic infrastructure re-arm"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md#automatic-infrastructure-re-arm","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/backpressure.md","text":"[Back pressure and AI rebase \u203a AI rebase \u203a Automatic infrastructure re-arm]\nOne automatic attempt is allowed per PR per head SHA, across schedules and further ejections. Before `gh pr merge N --auto --match-head-commit SHA` (without `--squash`), the bot posts `<!-- ai-rebase:requeue-ejected:SHA -->` in a hidden comment. It pages through comments when checking this marker; restoring an identical SHA cannot reset the cap. The marker reserves the attempt before arming, so a rejected arm consumes the attempt and is reported as a failure. Workflow concurrency serializes these reservations. A run performs at most ten actions by default (`--limit`); `--dry-run` classifies without comments, labels or arming. Explicit PR numbers can narrow a manual script run.\n\n`.github/workflows/ai-rebase.yaml` runs the script on every master push, every 30 minutes, and on manual dispatch with explicit PR numbers.\n\nIt needs:\n\n- the `OPENROUTER_API_KEY` secret;\n- the **obs-rust-ai-rebase** GitHub App, installed on this repository only (contents: write, pull-requests: write, actions: write, checks: read), with its id in the `AI_REBASE_APP_ID` variable and its private key in the `AI_REBASE_APP_PRIVATE_KEY` secret. Each job mints a short-lived installation token from it (`actions/create-github-app-token`), so there is no long-lived token to store or rotate. The token cannot be `GITHUB_TOKEN`, for two reasons. A push made with `GITHUB_TOKEN` starts no workflows, so the rebased PR would never get CI. And the repository's maximum `GITHUB_TOKEN` grant is read-only.\n\nRebased commits keep their authors; the committer becomes the token's identity. Only same-repository PRs are rebased, never forks. A dry run on #4235 (2026-11-09) resolved 3 conflicted files in one step and kept all 455 added lines.","chars":1792,"tokens_est":448,"sha256":"ca3db5b375342ee94a2e4b77f0b2207dd177df08e03da9862734f1bc2c6609a7"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#cargo-driven-obs-native-build-conversion","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion]\nTracking issue: <https://github.com/obs-rust/obs-studio/issues/1332>.\n\nThe requested final state is a working OBS Rust application built through Cargo\nand `cc::Build`, including shared libraries, plugins, generated files, graphics,\nQt, resources, tests and platform packaging. A core-only archive or test fixture\ndoes not complete the conversion.","chars":389,"tokens_est":97,"sha256":"ae12de321acc47f4de7e2bdfe2c46a362d6d515e95d91f72742d39d53d86589d"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-earlier-prototype-wrap-up","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Earlier prototype wrap-up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#earlier-prototype-wrap-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Earlier prototype wrap-up]\nFull conversion work resumed at the maintainer's request on October 21, 2026.\nThe following records the earlier prototype deferral, not a limit on the resumed\nscope: all requirements in #1332 still apply.\n\nThe maintainer requested stopping further expansion and deferring remaining\nC/Rust parity validation when it delays prototype launch. Follow-up\n[#1390](https://github.com/obs-rust/obs-studio/issues/1390) owns that remaining\nvalidation. Existing tests remain intact; this is not a claim of complete\nparity, release readiness or completion of the full conversion in #1332.","chars":647,"tokens_est":162,"sha256":"a15bfb41ec10a0c1a66ce8574f67e7012b0b3bc90862550cb787549136717bff"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-development-application-command","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux development application command"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-development-application-command","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux development application command]\nFrom a native Linux checkout with the existing native build dependencies installed:\n\n```sh\nuv run --script ci/native_build.py build --profile relwithdebinfo\nuv run --script ci/native_build.py --help\n```\n\nThe launcher builds the `obs-build` tool through `soldr cargo`, then runs it\noutside Soldr's build process. Both Rust build invocations use the existing\nnative-consumer `SOLDR_RUSTC_WRAPPER=none` safeguard; standalone C/C++ compiler\ncaching remains available. The tool builds the production hybrid core,\nfrontend API, OpenGL renderer, Qt application, enabled modules and scripting\nbindings through the Rust build graph. It does not build a C reference or ship\ncompatibility probes. CMake remains the authoritative build while the full\nacceptance requirements above are incomplete.\n\nRun the executable printed by the command. Each invocation stages a fresh\n`build_cargo/<profile>/runtimes/<id>/` development runtime and writes\n`application-build.json` there. The executable and modules search this runtime's\n`lib64` before their original build directories; launching does not require\n`LD_LIBRARY_PATH`. This layout still relies on the host's native SDK/runtime\nlibraries and is not a distributable package.\n\nProfiles are `debug`, `release`, `relwithdebinfo` (default) and `minsizerel`.\n`--separate-core` and `--core-pch` select core compilation modes. Help lists the\noptional plugin/SDK and scripting selections. Native Linux is the only full\napplication target currently accepted by this command; the macOS/Windows graphs\nbelow are intermediate component coverage. Complete configuration parity,\nall-platform application orchestration, packaging and the controlled native\ncache/performance acceptance remain open.","chars":1800,"tokens_est":450,"sha256":"8cb70c14cf715c96d2fd16eb8e56b315dbcd48aa25670dee837a52347f119aa6"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-development-application-command~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux development application command"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-development-application-command","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux development application command]\nNVENC and its capability helper are enabled by default, matching CMake. The\ncommand builds only the existing Rust CUDA loader for production. Install\n`ffnvcodec >= 12` headers, or select `--without-nvenc` to omit the module,\nhelper and Rust archive. `--without-nvenc-ffmpeg-ids` keeps NVENC enabled but\nomits its legacy FFmpeg encoder aliases. The manifest records this selection.\nThe NVENC source inventory is shared with CMake through\n`plugins/obs-nvenc/build/source-sets.json`.\n\nOn a host without usable NVIDIA driver libraries/devices, the helper reports\n`nvenc_supported=false` and OBS logs `NVENC not supported`; software encoders\nremain available. The application runtime test checks this outcome separately\nfrom module loading on supported hardware. A software recording does not prove\nhardware NVENC encoding.\n\nFrontend source groups are shared by CMake and Cargo through\n`frontend/build/source-sets.json`; the Qt wrapper host groups similarly use\n`shared/qt/wrappers/source-sets.json`. Generated configuration stays in the build\noutput directories.\n\nThe existing application test category can validate the exact command-produced\nruntime, rather than rebuilding its application artifacts:\n\n```sh\nOBS_BUILD_APPLICATION_RUNTIME=/absolute/path/to/runtime \\\nOBS_BUILD_APP_RECORD=1 \\\nsoldr cargo test -p obs-studio-rust --test obs-tests-app \\\n  --features libobs-integration production_command_runtime_runs_saved_scene_and_recording \\\n  -- --nocapture\n```\n\nRun with an isolated X display (for example Xvfb) and the existing GUI test\ndependencies, including the FFmpeg executables. The test owns a fresh profile in\nthe runtime directory: startup, the selected staged libraries/modules, saved\nscene, Lua/Python callbacks, recording and normal shutdown are asserted. Use a\nfreshly staged runtime for every test invocation. The separate compatibility\ndriver retains its C-reference/hybrid, Tools dialog and WebSocket checks.","chars":2007,"tokens_est":502,"sha256":"2804d5a7e70f6af8c303f69bd39cd1c51d30e5ce488fdfd09e3eb411709ed470"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-default-build-mode","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Default build mode"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#default-build-mode","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Default build mode]\nThe user selected **unity on, compiled PCH off**. Keep both settings optional.\n`libobs::Options::default()` uses that mode; bundled `obs-sys` exposes the same\nchoice as `OBS_SYS_UNITY=1` and `OBS_SYS_PCH=0` when no override is supplied.\nComponents that already list explicit unity groups preserve those boundaries.","chars":378,"tokens_est":94,"sha256":"0fa8c5dab97b683cf7115a85da5c43ae7f6b97a6bbe8b92222b7d13589206a48"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-macos-core-graph","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","macOS core graph"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#macos-core-graph","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a macOS core graph]\nThe native engine selects macOS core sources from the same\n`libobs/build/source-sets.d/` used by CMake. It builds an explicit C reference\nand the production Rust/C hybrid, retaining the framework install name and\nmacOS 13 deployment target. The generated development framework lookup layout\ndoes not supply release metadata, signing, or application packaging.\n\nSet `libobs::Options::native_dependencies` to an explicit prebuilt OBS dependency\nbundle. Bundled `obs-sys` accepts the same root through\n`OBS_SYS_NATIVE_DEPENDENCIES`, tracking that input for Cargo rebuilds. The outer\nCargo invocation supplies the release Rust archive via `OBS_BUILD_RUST_ARCHIVE`.\nCross compilation additionally needs a target compiler, Apple sysroot and Darwin\nlinker; the graph does not infer these from host package discovery.\n\n`SourceCompileOptions` applies source overrides after target/language flags and\nbefore PCH generation. `NativeBuild::separate_target_sources` carries those\noverrides and explicit PCH assignments to individual group members. This keeps\nARC cocoa groups separate from the non-ARC loader even when they share a header.\nClang PCH now supports macOS as well as Linux; both unity and PCH remain optional.\n\nThe existing macOS Tier 2 script also builds the Cargo core pair, compares its\nexports to the actual CMake reference, proves dyld selected each Cargo core, and\nruns the unchanged CTest suite against each. It checks the bundled crate's build\npath separately. These are core checks: they do not establish the macOS frontend,\ngraphics backends, plugins, complete application, or release package conversion.","chars":1676,"tokens_est":419,"sha256":"7de8f025e6fdac5153e14270ee354868e0f4cf1b58d0a25fe1f42664a0fa51af"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-macos-graphics-graphs","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","macOS graphics graphs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#macos-graphics-graphs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a macOS graphics graphs]\nThe macOS OpenGL graph uses the canonical graphics manifest, the original C and\nCocoa groups, GLAD and the Cocoa/IOSurface/OpenGL frameworks. The Cocoa group\nkeeps manual reference counting. Unity and compiled PCH follow the core options\nindependently. ARM64 cross builds produce 153 exported symbols; actual CMake\nexport agreement and native loading require the macOS validation lane.\n\n`graphics::build_metal` consumes all 34 original Swift files and the original\nbridging header from the same manifest as CMake. `NativeBuild::swift_shared_library`\naccepts typed `SwiftLibrary` inputs, invokes the Swift compiler and emits the\ndylib, Swift module and Objective-C compatibility header under the build output.\nC-family compilation continues through `cc::Build`. Metal uses Swift 6, optimized\nwhole-module compilation, debug information and the existing macOS 13 minimum.\nRelease/configuration overrides and distribution signing remain separate work.\n\nNative Apple builds discover `swiftc` and the macOS SDK through `xcrun`. Override\nthem with executable-path `SWIFTC` and SDK-directory `SDKROOT`; target-qualified\nforms (hyphens or underscores in the triple) take precedence. Cross builds must\nsupply both paths and an Apple-compatible Swift toolchain. The Clang importer\nreceives the declared include paths and C definitions. Swift sources, the bridge,\ndeclared native inputs/dependencies and tool-selection environment are tracked;\nmodule caches live beside the generated library. Cache placement alone does not\nestablish compiler-cache hits or a controlled performance result.\n\nThe existing native-build category contains a Swift/C contract requiring results\n42, 52, 54, 56 and 58 after header, importer flag, Swift source and C dependency\nchanges. Each result is checked in a fresh process, preserving dyld's Objective-C\nimage lifetime behavior. This contract executes on native macOS, not Linux.","chars":1966,"tokens_est":492,"sha256":"504b04f635ca54a46c2ecd50e3cba6fb4ca0b4bf53f798f723d955e29e9fcefa"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-macos-graphics-graphs~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","macOS graphics graphs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#macos-graphics-graphs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a macOS graphics graphs]\n`OBS_BUILD_MACOS_GRAPHICS=1` extends the existing core integration contract to\nboth renderers; `opengl` selects an explicit cross-build subset and does not\nestablish Metal coverage. `OBS_BUILD_MACOS_OPENGL_REFERENCE` and\n`OBS_BUILD_MACOS_METAL_REFERENCE` require exact exports from actual CMake modules.\nThe macOS Tier 2 script builds those originals and both Cargo renderers, then\nchecks core/module file identity and public device name/type in fresh processes\nagainst each Cargo core. Wrong-core and wrong-backend controls must fail. The\nunchanged CTest suites remain. These loading checks do not create a graphics\ndevice, verify rendered pixels, record media or prove the full application.","chars":759,"tokens_est":190,"sha256":"cdc98f1a849023f0d68e6aec4f4e97b4afee43f4cfea5d2ddcdeb0af7b8c1432"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-macos-capture-module-graphs","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","macOS capture module graphs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#macos-capture-module-graphs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a macOS capture module graphs]\n`LibraryKind::Module` selects a loadable module: Apple linking uses `-bundle`\nand omits the dylib install name, while shared libraries retain `-dynamiclib`.\nThe capture contract verifies `MH_BUNDLE` headers in both Cargo and CMake\nartifacts. The existing shared-core/plugin fixture exercises module loading\nand observes a rebuilt dependency without relinking the module.\n\n`plugins::build_macos_capture` builds the original `mac-capture`,\n`mac-avcapture` and `mac-avcapture-legacy` modules. CMake, its cross checks\nand Cargo consume `plugins/mac-capture/source-sets.json`. The screen/audio\nObjective-C group keeps manual reference counting; the modern camera uses\nARC and Clang modules, and the legacy camera keeps Objective-C++ with ARC.\nFramework dependencies, weak ScreenCaptureKit linking, macOS 13 minimum,\nlocale data and independent unity/PCH choices are retained. Each development\nartifact has the native `.plugin/Contents/MacOS/<name>` layout, staged resources\nand an `Info.plist` with its executable and bundle identifier. A snapshot of\nbinary, resource paths/contents and metadata selects the output directory so\nremoved resources cannot survive from an older same-named bundle. Release\nversion metadata, signing and distribution packaging remain incomplete.","chars":1341,"tokens_est":335,"sha256":"b47b3f3de2d8b269ad132e8b8b2764c2eb4a37043eca0611eb6e5c26a9a80732"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-macos-capture-module-graphs~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","macOS capture module graphs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#macos-capture-module-graphs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a macOS capture module graphs]\n`OBS_BUILD_MACOS_CAPTURE=1` extends the existing core integration contract.\nThe three `OBS_BUILD_MACOS_MAC_CAPTURE_REFERENCE`,\n`OBS_BUILD_MACOS_MAC_AVCAPTURE_REFERENCE` and\n`OBS_BUILD_MACOS_MAC_AVCAPTURE_LEGACY_REFERENCE` inputs require exact export\nagreement with actual CMake binaries. The native macOS Tier 2 script builds\nthose references and runs each Cargo/CMake module with both Cargo cores in\nfresh processes. Checks cover module/core file identity, API version,\ndescription, byte-for-byte resource agreement, CoreFoundation bundle/executable identity,\ninitialization and all registered source IDs.\nWrong-module and wrong-core controls must return 14 and 12 respectively.\nThe unchanged CTest suites still run against both cores.\n\nLocal ARM64 cross builds pass with unity on/PCH off and separate sources/PCH on.\nThe Linux cross toolchain lacks Apple's availability runtime; the local check\nlinks LLVM 21.1.5's original `compiler-rt/lib/builtins/os_version_check.c`,\ncompiled for the target, without altering source availability checks. Native\nApple Clang supplies its own runtime. Cross compilation does not establish\nnative module initialization. Native execution/export agreement remains a\nrequired CI result. Registration checks do not open screen, microphone or\ncamera devices, verify captured media, or prove packaged saved-profile behavior.","chars":1426,"tokens_est":356,"sha256":"8af0e3201941f801a5d041ad5b36a506338ecf450050b81ee8baae08e2897de3"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-windows-core-graph","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Windows core graph"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#windows-core-graph","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Windows core graph]\nThe Windows MSVC graph uses the shared libobs source manifest and existing\n`rust-exports.d` fragments. The obfuscation interface group is also selected\nfrom that manifest by CMake. An explicit OBS dependency bundle supplies headers\nand import libraries; `w32-pthreads` is built from its existing source and\nresource template. Each core retains `obs.dll` and its `obs.lib` import library.\n\n`SharedLibrary::resource_files` contains native `.rc` scripts. Declare their\nincluded headers, icons and other inputs in `resource_input_files` for Cargo\ntracking; `resource_compile_options` supplies RC-specific options. The resource\ncompiler receives the target's definitions and include paths, separately from\nC/C++ flags, unity and PCH. Set a target-qualified `RC_<triple>` (hyphens or\nunderscores), `HOST_RC`/`TARGET_RC`, or `RC` to an executable path. Otherwise the\nengine discovers the Windows SDK resource compiler, falling back to `llvm-rc`\nfor clang-cl. Resources link into DLLs or executables; putting resource scripts\nin a static archive is rejected instead of silently losing them.\n\nMSVC and clang-cl PCH use the same language and source-specific flags as their\nconsumers. PCH-generated objects are retained for linking and archiving, with\nshared common/variant objects linked only once. The native contracts cover\nresource payload changes, DLL/executable loading, C/C++ flag isolation, header\nchanges, unity modes and PCH objects linked through a static archive.","chars":1528,"tokens_est":382,"sha256":"4c1f89598379b77a269aa7bbb4bb04ddc2fa80bbb14fa9105ec768be4511bd73"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-windows-core-graph~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Windows core graph"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#windows-core-graph","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Windows core graph]\nThe existing Windows Tier 2 script builds the Cargo pair with PCH enabled,\ncompares exports to its CMake reference, and checks bundled `obs-sys` with PCH\ndisabled. A separate loader probe checks the loaded core's file identity and a\ndeliberately incorrect expected file before the unchanged CTest suite runs\nagainst each Cargo core. Test-specific runtime paths are checked for shadowing.\nCross builds can use `OBS_BUILD_WINDOWS_DEPENDENCIES`, `OBS_BUILD_WINDOWS_TARGET`,\n`OBS_BUILD_WINDOWS_OUTPUT`, and `OBS_BUILD_WINDOWS_RUST_ARCHIVE` with the existing\n`native_libobs::windows_tests::core_builds_from_the_canonical_manifest` test.\n`OBS_BUILD_WINDOWS_PCH`, `OBS_BUILD_WINDOWS_SEPARATE` and\n`OBS_BUILD_DISABLE_HEVC` select additional configurations. Export inspection uses\n`OBS_BUILD_WINDOWS_EXPORT_TOOL` (llvm-readobj by default, or dumpbin on Windows).\n\nThese are core checks. Resource metadata currently follows the core API version\nand existing bootstrap strings; full configuration/release-version overrides,\nfrontend, graphics, plugins, packaging and controlled compiler-cache measurements\nremain required before retiring CMake authority. Cross-built artifacts do not\nprove Windows runtime behavior.","chars":1268,"tokens_est":317,"sha256":"93818a198dd9abefaaedbf59d0048545f2fef5474e06a35c7c13b8706d57cd9c"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-windows-graphics-graphs","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Windows graphics graphs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#windows-graphics-graphs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Windows graphics graphs]\n`graphics::build_d3d11` and `graphics::build_opengl` build the original Windows\nrenderers against a selected Cargo core. Direct3D uses C++17, the original SDK\nlibraries and a selectable integer GPU thread priority (zero by default).\nOpenGL retains the GL/WGL loader objects and system OpenGL linkage. Both renderers\ncompile their existing Windows version-resource templates. Release metadata\nunification remains required; these resources currently follow the core API\nversion and bootstrap strings, as the Cargo core does.\n\nThe canonical `cmake/graphics-source-sets.json` supplies graphics/GLAD sources to\nthe original CMake targets, cross checks and Cargo. The existing unity groups\nremain in source order; core `Options::unity` and `Options::pch` also select\nrenderer compilation. GLAD retains separate translation units. Its generated GL\nand WGL loaders share a tentative C global; CMake and Cargo both request common\nsymbols for clang-cl, matching MSVC without editing the generated sources.\n\nSet `OBS_BUILD_WINDOWS_GRAPHICS=1` on the existing Windows core integration\ncontract to build both renderers. `OBS_BUILD_WINDOWS_GPU_PRIORITY` selects the\nD3D11 priority. `OBS_BUILD_WINDOWS_D3D11_REFERENCE` and\n`OBS_BUILD_WINDOWS_OPENGL_REFERENCE` require exact exported symbol agreement with\nactual CMake renderers. Cross builds produced 171 D3D11 and 151 OpenGL exports\nand version-resource sections; they do not prove native loading or rendering.\n\nThe Windows Tier 2 path also builds the original CMake renderers and compares\ntheir exports. A fresh-process native probe checks the loaded renderer's file\nidentity, public device name/type and version-resource description against each\nCargo core, with a wrong-renderer negative control. The same probe exercises the\nCMake modules against those cores. These checks do not create a graphics device,\nverify rendered pixels or establish complete Windows application coverage.","chars":1989,"tokens_est":497,"sha256":"f6d1e2be36d076fdcbf68c20272d2e48c9374d4e87c6354a3594c965329f0bb0"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-requirements-carried-forward","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Requirements carried forward"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#requirements-carried-forward","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Requirements carried forward]\n- Native C/C++ builds must be very fast. Reuse explicit unity groups, make unity\n  configurable, and implement optional PCH with compiler-compatible settings and\n  correct dependency invalidation. The user's instruction that unity and PCH are\n  optional supersedes BUILD.md's always-on rule for this conversion.\n- Build through soldr. Demonstrate real compiler cache hits, cold/warm timings,\n  no-change builds and correctness after editing source, headers and generated\n  inputs. A setup-soldr archive restore alone does not prove native cache reuse.\n- Preserve the public C ABI, dynamic loading, plugin discovery, library identity,\n  exported symbols and the existing Rust implementation. Build both libobs\n  variants and exercise the unchanged compatibility and differential suites.\n- Keep the application and bundled crates on one native build description.\n- Generate files in build output directories; explicitly consume generated\n  outputs so stale source-tree files cannot shadow them (PR #1323).\n- Preserve the complete feature surface on Linux, Windows and macOS. Verify a\n  real running application, scenes, recording, plugins, shutdown and applicable\n  websocket tests. Packaging validation must run packaged artifacts.\n- Ordinary Cargo users can provide documented native tools; soldr manages the\n  toolchain and caching. Do not require a nested soldr invocation inside build.rs.\n- Reuse existing CI workflows; no new workflow files are authorized.","chars":1534,"tokens_est":384,"sha256":"58492bc9fdc3eb7fdf955f9283c3ec70d31dc9450a16ff568acafc669866b636"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-implementation-order-and-evidence","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Implementation order and evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#implementation-order-and-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Implementation order and evidence]\n1. `obs-build`: typed native build inputs, actual cc::Build compilation, shared\n   linking, plugin loading and unity on/off contracts. Start with failing tests.\n2. `obs-sys`: the real libobs graph, native dependencies, generated configuration\n   and Rust twin; unchanged C tests and symbol parity.\n3. Frontend/plugins, Qt code generation and resources, platform linking and\n   packaging; run the existing application test battery on these artifacts.\n4. Optional PCH, cache/incremental performance measurements and existing CI\n   integration. Retire CMake only when complete feature/test parity is evidenced.\n\nThe existing CMake build remains the artifact and behavior reference during the\nconversion. Intermediate progress must not be reported as full completion.","chars":842,"tokens_est":210,"sha256":"25d571bbfa5038c22ff28eb632f3ebcb467e1520a35f50ed238be948fbd7556f"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-libobs-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux libobs checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-libobs-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux libobs checkpoint]\nThe bundled `obs-sys` feature now compiles the real C libobs through `cc::Build`,\nlinks `libobs.so.30`, and generates configuration, version and core-module source\nfiles under Cargo's output directory. It uses the same canonical source manifest\nas the CMake reference. libcaption remains a separate static archive; system\nlibraries remain dynamically linked, including when pkg-config lists a static\narchive directory before its shared-library directory.\n\nLocal evidence for this checkpoint:\n\n- The native build engine's three tests pass (dependency selection, generated\n  source/unity toggle, and a dynamically loaded plugin observing a rebuilt core).\n- Bundled libobs passes its public C API version and startup/shutdown tests.\n- Editing only the JSON manifest triggers CMake regeneration. Changing a\n  target-qualified C compiler flag reruns Cargo's bundled native build; compiler\n  metadata does not add unintended static-library linkage.\n- Its 1,766 exported symbols exactly match the local CMake C reference.\n- 51 unchanged, already-built C test executables pass against both libraries.\n  `ldd` confirms each executable loads the intended replacement `libobs.so.30`.\n  This validates the replacement library; it does not demonstrate a Cargo build\n  of those test executables or the Rust implementation twin.\n\nThis checkpoint is Linux C libobs only. The application and plugins,\nfull test battery, macOS/Windows graphs, installation/packaging, optional PCH and\ncontrolled build/cache benchmarks remain required. The generated version and\ninstall paths are prototype defaults and still need release configuration.\nNative dependencies are discovered using pkg-config; local Nix verification used\n`PKG_CONFIG_PATH` and `CPATH` for installed packages and uthash respectively.","chars":1845,"tokens_est":461,"sha256":"53b2632a090c60db451ef9d41771f8161649efb3e6082bbc8025338bbd3cc388"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-rust-implementation-twin-checkpoi","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux Rust implementation twin checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-rust-implementation-twin-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux Rust implementation twin checkpoint]\n`libobs::build_pair` accepts the release `libobs-rust` static archive from an\nouter Cargo invocation. It compiles common C objects once, then links the C\nreference and production hybrid into separate directories with the same SONAME.\nThe Rust archive is whole-archive linked and its internal symbols are hidden by\nthe existing export map. Only the hybrid is installed; the C reference is explicit testing infrastructure.\n\nBuild the release archive with `soldr cargo build -p libobs-rust --release`.\nWith native dependencies available, set `OBS_BUILD_RUST_ARCHIVE` to the absolute\n`target/release/liblibobs_rust.a` path and run\n`soldr cargo test -p obs-studio-rust --features libobs-integration --test obs-tests-app`.\n`OBS_BUILD_TEST_OUTPUT` optionally retains artifacts in a chosen output directory.\nThe test defaults to a temporary output directory. Set\n`OBS_BUILD_DISABLE_HEVC=1` to exercise the disabled-HEVC configuration. GNU `nm`\nis required for the Linux export comparison.\n\nLocal evidence: both variants pass startup/shutdown and public data API roundtrip\nchecks, and each exports exactly the same 1,766 symbols (1,762 with HEVC disabled).\nThe opt-in test compares complete export sets and checks HEVC export availability.\nThe same 51 unchanged C\nexecutables pass against both newly built variants with their loaded library\npaths checked. The rest of the complete application/platform/test/packaging\nrequirements above remain outstanding.","chars":1533,"tokens_est":383,"sha256":"8f91422c9c2f0e2ebc516d6a18167d231ed5d8a7aef82f8b35e02033b40f9692"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-transitions-and-filters-checkpoin","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux transitions and filters checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-transitions-and-filters-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux transitions and filters checkpoint]\n`plugins::build_transitions` and `plugins::build_filters` build actual OBS\nmodules through the native engine and link them to the shared C library.\nThe filters options preserve independent SpeexDSP and RNNoise switches. The\nbundled RNNoise fallback uses a canonical JSON C source list shared with CMake;\nthe CMake target retains the same 18 source/header entries.\n\nThe opt-in integration test loads these modules through `obs_open_module` and\n`obs_init_module`, then verifies transition/filter registration against both\nlibobs variants. Each variant runs in a separate process: the shared SONAME\nallows plugin dependencies to retain a previous libobs instance if both variants\nare tested in the same process. This matches existing C test isolation and normal\nOBS execution. These checks do not yet exercise rendering or audio processing.\n\nAll four SpeexDSP/RNNoise combinations pass module registration against both\nvariants, as does disabled HEVC with the default modules. The actual CMake\nRNNoise fallback target also compiles all seven objects after the canonical-list\nmigration; Clippy, gersemi and the build-group/platform guards pass. System\nRNNoise discovery is implemented, but this host exercises the bundled fallback.","chars":1313,"tokens_est":328,"sha256":"c4c87643beeb86d46be1357198edb1714934b19a15d4ccaab569abfe67a3ae8e"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-opengl-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux OpenGL checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-opengl-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux OpenGL checkpoint]\n`graphics::build_opengl` compiles the original OpenGL unity groups and GLAD loader,\nlinks the shared backend, and creates its unversioned lookup name. It consumes the\nsame libobs options and generated configuration as the core. The Linux graph\nincludes X11/EGL and optional Wayland support; other platforms remain unfinished.\n\nWith an isolated X server available through DISPLAY, set `OBS_BUILD_RENDER=1` on\nthe opt-in integration test to exercise real graphics. Local verification used an\nowned Xvfb process allocated via `-displayfd`, with `LIBGL_ALWAYS_SOFTWARE=1` and\n`GALLIUM_DRIVER=llvmpipe`. Both variants initialize Mesa OpenGL 4.6, create a scene,\nand receive at least three 64x64 NV12 frames through the public raw-video callback\nAPI. The callback verifies a valid row and the expected black Y sample (16).\nThe probe uses the unchanged C headers for video configuration and callbacks;\nshutdown and display cleanup happen before its shared libraries unload.\n\nThis demonstrates the native renderer and basic frame delivery. It does not yet\nvalidate the full Qt application, recording, capture sources, all plugins,\nWayland runtime behavior or packaged artifacts. The prototype OpenGL version\nnumber remains tied to the current OBS 33 configuration.","chars":1325,"tokens_est":331,"sha256":"117ef0074d9daf86dcdec6e4496034693cdf2cd3ac1c0decd9f921f3c8cc0e9a"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-recording-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux recording checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-recording-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux recording checkpoint]\nThe native engine now links executables as well as shared libraries and archives.\nIts executable contract runs a program linked to a shared core that consumes a\nstatic helper. Windows dependency mapping preserves archive paths and converts\nDLL paths to import-library paths; runtime validation there remains outstanding.\n\nThe module graph builds x264, the complete Linux obs-outputs groups and librtmp,\nand FFmpeg with media playback, VAAPI, optional MPEGTS/SRT/RIST, logging and legacy\nNVENC groups. It also builds the standalone FFmpeg mux executable. Shared\nopts-parser, happy-eyeballs, BPM and libcaption dependencies use native archives.\nThe FFmpeg options follow current CMake defaults; the full option matrix and\nhardware-specific behavior remain unverified.\n\nSet `OBS_BUILD_RECORD=1` on the opt-in integration test, with native dependencies,\nffprobe and an isolated DISPLAY available. This implies the graphics probe. Both\nvariants load the encoder/output modules, verify registration and exactly one\nloaded SRT library, then encode an isolated blank scene using real obs_x264,\nffmpeg_aac and mp4_output. The test stops the output, releases encoders, shuts\ndown OBS, and validates tracks, dimensions, decoded-frame counts and duration\nwith ffprobe. Local recordings each contain 18 H.264 frames at 64x64 and AAC\naudio, duration 0.6 seconds. They contain no desktop or device capture.\n\n`FfmpegArtifacts::deploy_muxer` places the helper beside the running app. The\nintegration stages its runner with that helper, selects the same libobs variant\nfor helper subprocesses, and also records through `ffmpeg_muxer` to Matroska.\nAll four files (MP4 and Matroska, C and Rust cores) pass the same ffprobe checks. The full Qt application, capture sources, other\nmodules/platforms, complete test battery, packaging and controlled performance\nmeasurements remain required. Do not treat this checkpoint as a CMake retirement.","chars":1991,"tokens_est":498,"sha256":"c7c123197a4cff1aded2331486a5eea00637cbcf8510490f2ec7c2b11235ba12"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-sources-and-services-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux sources and services checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-sources-and-services-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux sources and services checkpoint]\n`plugins::build_source` provides typed selections for image sources, FreeType\ntext, PulseAudio, ALSA, V4L2, X11 capture and RTMP services. V4L2 preserves its\nindependent UDEV switch. RTMP service updates are configurable and remain off in\nthe integration smoke test to keep it offline. The default plugin behavior keeps\nupdates enabled when requested through its typed option. X11 capture and OpenGL\nshare the GLAD archive builder.\n\nSet `OBS_BUILD_SOURCES=1` on the integration test with an isolated X display and\nan EWMH window manager. Local checks use Xvfb plus an isolated KWin session;\nXComposite correctly declines registration on bare Xvfb without EWMH. Both cores\nload these seven modules and expose their thirteen expected input/output/service\nregistrations. The graphics probe also creates a 64x64 white color source,\nadds it to the scene and requires three NV12 frames with Y=235 after draining\nprevious black frames. Both cores still record validated MP4 and Matroska files.\nDisabled UDEV also passes registration and rendering against both cores.\nThe test does not open camera or microphone devices. Hardware capture, text\nrasterization, streaming and service-update behavior remain to be validated with\nthe full application and packaged artifact tests.","chars":1349,"tokens_est":337,"sha256":"3935d3daa4aa558ea2a1255833588451d876faa10d7d62665034568f1b9b74ff"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-pipewire-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux PipeWire checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-pipewire-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux PipeWire checkpoint]\n`SourceModule::PipeWire` builds the original Linux PipeWire unity group and\nincludes the camera group when the discovered PipeWire version is at least\n0.3.60. It enforces CMake's PipeWire 0.3.33 and Gio 2.76 minimums and uses the\nshared GLAD archive. Enable its opt-in build/load check with\n`OBS_BUILD_PIPEWIRE=1`. Both cores load and initialize the module after graphics\ninitialization, then render and shut down. Portal availability, camera\npermissions and actual screen/camera capture remain unverified; module load alone\ndoes not establish those capabilities.","chars":634,"tokens_est":158,"sha256":"673f84e836531627af18eef020dff44176929da825949f0c11c8bf9ed099d6a8"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-frontend-api-and-qt-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux frontend API and Qt checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-frontend-api-and-qt-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux frontend API and Qt checkpoint]\n`frontend::build_api` builds the original C++ frontend API as a shared library.\nIt preserves Linux's SONAME 30 and creates its unversioned lookup name. C++17 and\nhidden inline visibility match the CMake compiler configuration. Local symbol\ncomparison finds exactly 101 exports in both frontend libraries, with no missing\nor extra symbols. `OBS_BUILD_FRONTEND_REFERENCE` optionally enables this complete\ncomparison against an existing CMake artifact in the integration test.\n\n`qt::moc` runs Qt's meta-object compiler with the native target's include paths and\ndefinitions and compiles its generated translation unit explicitly. It preserves\nunchanged output contents/mtime. Host tools come from explicit Qt SDK inputs\n(see [Explicit Qt SDK inputs](#explicit-qt-sdk-inputs)). Application builds\nstill need UI/resource generation and complete build-script input tracking.\n\nEnable `OBS_BUILD_QT=1` to build the real VST module and frontend API. Both cores\nload the VST module and expose its filter; the frontend API's no-callback defaults\nare callable. VST editor/audio behavior, the full Qt application and resources,\nother platforms and packaging remain outstanding.","chars":1246,"tokens_est":312,"sha256":"aa31a6a87428dac49891deedc77e794a5b587e5ab486e11c246aea7e85dd6838"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-mixed-native-languages-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Mixed native languages checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#mixed-native-languages-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Mixed native languages checkpoint]\nNative targets now accept common compiler options plus separate C and C++ option\nvectors. OBS modules use C17 for C sources and C++17/hidden inline visibility for\nC++ sources. Mixed targets compile each language independently and link with the\nC++ driver. The regression builds and executes a C++ standard-library program\nthat calls a C helper; each translation unit rejects flags intended for the other\nlanguage. All five native integration tests pass, as does the combined\ncore/source/Qt/PipeWire/MP4/Matroska check with frontend export comparison.","chars":629,"tokens_est":157,"sha256":"0ac9bfd373dcae13e6401a8513206ebcf74bbd5ba1b4a162715712bbf04878a2"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-qt-ui-resources-and-widgets-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Qt UI, resources and widgets checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#qt-ui-resources-and-widgets-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Qt UI, resources and widgets checkpoint]\n`qt::uic` generates UI headers with the generated include directory first.\n`qt::rcc` embeds resource collections as explicit C++ sources and records every\nresource listed by RCC as a Cargo input. Both preserve unchanged generated files.\n`OBS_QT_UIC` and `OBS_QT_RCC` select host tools for cross builds, alongside MOC.\n\n`frontend::add_spinbox` adds the original shared spinbox unity source, Qt Widgets\nand all three generated metaobjects, with C++17 required explicitly. The Qt opt-in\nintegration now runs a real QApplication using the offscreen platform: construct\nOBS's virtual-camera dialog from its original UI, find its controls, decode an\nembedded OBS PNG, exercise both OBS spinbox types and their metaobject, process\nUI events and accept the dialog through its OK button. This passes locally.\nThis widget test does not yet start the complete OBS application or validate a\npackaged runtime/plugin path.","chars":993,"tokens_est":248,"sha256":"dd60d7797627487465675a836e3677b6cc6a90fac0f857a063f2ae0f87836d48"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-explicit-qt-sdk-inputs","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Explicit Qt SDK inputs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#explicit-qt-sdk-inputs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Explicit Qt SDK inputs]\n`OBS_QT_TARGET_PREFIX` names the Qt SDK the target links, and\n`OBS_QT_HOST_PREFIX` names the SDK whose `moc`, `uic` and `rcc` run on the build\nhost (`libexec/` on Linux and macOS hosts, `bin/*.exe` on Windows hosts).\n`OBS_QT_MOC`, `OBS_QT_UIC` and `OBS_QT_RCC` still override one tool each. A\nnative build may give only the target prefix, which then also supplies the\ntools. With neither prefix, a native build keeps the system Qt6 pkg-config\npath. A cross build must name both SDKs: `qt::package` and `qt::Tools` refuse\nto fall back to the host's pkg-config, which would select host libraries. The\ninputs are read, never written back to the process environment.\n\n`qt::Sdk` reads the SDK's own exported CMake targets\n(`lib/cmake/Qt6*/Qt6*Targets*.cmake`) as data. CMake is never run. For a module\nand its `Qt6::` dependencies it evaluates the include directories, definitions,\ncompile options and link libraries for the Cargo target. It evaluates only the\ngenerator expressions Qt exports (compiler, language, configuration, unset\nconsumer properties) and fails on any other. `libobs::add_package` and\n`Dependency::package` route every `Qt6<Module>` package through it when a target\nprefix is given. Before anything compiles it checks:\n\n- **Architecture:** the module binary's ELF, PE or Mach-O header (every slice of\n  a universal framework) must contain the target architecture.\n- **Version:** `QT_VERSION_STR` in QtCore's `qconfig.h` must be Qt 6, and every\n  host tool's `--version` must report the same release as the target SDK.\n- **Configuration and CRT:** only configurations with a\n  `Qt6<Module>Targets-<config>.cmake` export count; Qt's AdditionalTargetInfo\n  aliases are skipped. Rust's MSVC targets always link the release CRT, so a\n  Windows SDK whose only configuration is DEBUG (`/MDd`) is rejected, as is\n  `crt-static`. Multi-configuration SDKs use their release configuration.","chars":1963,"tokens_est":491,"sha256":"6c1e150ce85e7c998d00b4e4aa58233e06618e52d927d5150e68336ef11b8880"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-explicit-qt-sdk-inputs~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Explicit Qt SDK inputs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#explicit-qt-sdk-inputs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Explicit Qt SDK inputs]\nLinux links the versioned `libQt6*.so` with an rpath to the SDK. Windows links the\nimport libraries (`lib/Qt6*.lib`) and the system libraries Qt exports, and\nreturns the DLL directory as the `PATH` runtime prepend for graph tests. macOS\nlinks the framework binaries, Qt's exported system frameworks (each once) and an\nrpath to the frameworks' directory.\n\nThe Linux, Windows x86_64 and macOS universal2 SDKs published in\n`obs-rust/obs-studio-libs` (`qt6-6.11.1`) all resolve.\n`qt_sdk_resolves_published_sdks` checks them when `OBS_QT_TEST_LINUX_PREFIX`,\n`OBS_QT_TEST_WINDOWS_PREFIX` and `OBS_QT_TEST_MACOS_PREFIX` name the extracted\narchives. With `OBS_QT_TARGET_PREFIX` set to the Linux SDK and no Qt visible to\npkg-config, the metaobject/UI/resource graph test and the unchanged remux queue\ntest compile and pass through Cargo and CMake. Qt is never built in CI; SDKs come\nonly from obs-studio-libs. Compiling against the Windows and macOS SDKs on those\nhosts, Windows ARM64, MinGW and Linux distribution (multiarch) layouts as explicit\nprefixes are not yet covered.","chars":1135,"tokens_est":284,"sha256":"080ab356307ec1fd4dd1ea2df12e8bb82fe8f0d12639f797c903c279f6517d6c"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-frontend-executable-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux frontend executable checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-frontend-executable-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux frontend executable checkpoint]\n`frontend::build_application` compiles and links the frontend executable using an\nexplicit source inventory, shared Qt interfaces, an Idian archive, JSON11, BPM,\nlibcaption, the frontend API and a caller-provided Rust GPU status archive. It\ncreates UI/plugin-path configuration in the output tree. This initial frontend\nconfiguration is Linux with browser panels disabled; other feature/platform\nconfigurations and release paths remain under conversion.\n\nBuild the GPU archive with\n`soldr cargo build -p obs-frontend --release`, then enable the integration\ncheck with `OBS_BUILD_APP=1` and `OBS_BUILD_GPU_ARCHIVE` pointing to the resulting\n`target/release/libobs_frontend.a`. The executable runs and reports\n`--version` identifies the OBS-Studio-Rust application version as `0.1.0`,\nbased on OBS `33.0.0-cc-build`.\nThis establishes compilation, linking and CLI execution; GUI startup, runtime\nstaging and complete application behavior still need validation.\n\nThe inventory includes two forms that CMake AUTOUIC discovered through header\nincludes. Generated metaobjects are combined into one translation unit with the\nsame textual header closure CMake supplies to its moc compilation. This preserves\ncomplete Qt types without changing original headers or requiring precompilation.\nCompiler include paths and identical definitions are deduplicated while retaining\norder. Build/profile/version/install settings are still prototype defaults, and\ncontrolled performance measurements have not been completed.","chars":1584,"tokens_est":396,"sha256":"0548cf6ca98d6f358a7067b5729daec449152305fc9a8540052aaa7a4c747fb5"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-staged-gui-runtime-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux staged GUI runtime checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-staged-gui-runtime-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux staged GUI runtime checkpoint]\nSet `OBS_BUILD_APP_GUI=1` with `OBS_BUILD_GPU_ARCHIVE`, native dependencies,\nan isolated X display and an EWMH window manager to run the complete current\nLinux graph. This implies the frontend, Qt widget probe, fourteen implemented\nmodules, OpenGL, source rendering and the MP4/Matroska API recording checks.\n\nThe GUI test stages the executable, selected core, frontend API, renderer,\nmodules, shaders, application/plugin data and FFmpeg helper under a retained\n`app-runtime-*` directory in the native output tree. Each core starts in a fresh\nprocess with its own saved profile and white color-source scene. The test checks\nstartup, a mapped normal main window, the staged library and module paths in\nthe process map, restored source, screenshot, normal window-close shutdown and\npersisted scene. Logs, process maps and screenshots remain in that runtime.\nBoth C and Rust cores pass these checks locally; both screenshots show the\nrestored white preview. The combined run also validates four H.264/AAC files\n(MP4 and Matroska for each core). This is runtime evidence, not a controlled\nbuild-performance comparison.\n\nThe isolated test clears desktop-session Qt plugin paths and themes so a host\ndesktop built with another Qt installation cannot override the linked Qt's\nplatform plugins. It retains the linked Qt's default plugin discovery and uses\nFusion styling. System native dependencies remain installed on the host; this\ndevelopment layout does not establish portable release packaging. Hardware\ncapture, browser/websocket features, remaining modules/platforms,\nfull test tiers and controlled performance measurements are still required.","chars":1723,"tokens_est":431,"sha256":"120c1a3070aa1afbec1ecfc3654c7263571781c6b165ea970edfc78b3a705809"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-staged-gui-runtime-checkpoint~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux staged GUI runtime checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-staged-gui-runtime-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux staged GUI runtime checkpoint]\nAdd `OBS_BUILD_APP_RECORD=1` alongside `OBS_BUILD_APP_GUI=1` to exercise the\nfrontend's real recording path. Its private profile selects x264/AAC and\nMatroska at 640x360/30fps; `--startrecording` starts the frontend output. The\nprobe requires the recording-start log, records for three seconds and closes\nthe window normally. ffprobe must decode at least sixty video frames and find\nH.264, stereo AAC at 48kHz and the expected dimensions/duration. FFmpeg decodes\nthe first video frame and checks that it contains the restored white scene.\nThe finalized recording and ffprobe JSON remain under the retained runtime.\nBoth cores pass locally: each file has 98 decoded H.264 frames, 48kHz stereo AAC\nand a 3.366-second container duration. Both screenshots show recording active\nwith the white preview. The private headless session's desktop portal backend\ndoes not remain healthy; these checks establish no screen/camera portal capture.","chars":1013,"tokens_est":253,"sha256":"84d6ff6c4daa29eb69f016f58dd975d465ebcd7485aa6eeea4200575da03ad71"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-nvenc-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux NVENC checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-nvenc-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux NVENC checkpoint]\n`plugins::build_nvenc_pair` compiles common NVENC objects once, then links the C\nCUDA loader and Rust CUDA loader variants separately. The latter accepts the\nouter Cargo build's `obs-nvenc-plugin` archive and hides its Rust symbols. The\ncapability helper is a separate C++17 executable with thread/dynamic-loader\nlinkage. FFnvcodec headers must be version 12 or newer. The FFmpeg compatibility\nencoder IDs remain independently configurable.\n\nBuild `soldr cargo build -p obs-nvenc-plugin --release` and set\n`OBS_BUILD_NVENC=1` on the native integration test. This opt-in check requires\na working NVIDIA driver/GPU: the helper must report support, and both plugin\nvariants must load and register their H.264 encoders against their corresponding\ncore. `OBS_BUILD_NVENC_RUST_ARCHIVE` overrides the default archive location;\n`OBS_BUILD_NVENC_REFERENCE` optionally compares all exports to a CMake module.\nThe local comparison finds exactly eight exports in all three modules.\n`OBS_BUILD_DISABLE_NVENC_FFMPEG_IDS=1` disables the compatibility IDs.\n\nAdd `OBS_BUILD_NVENC_ENCODE=1` with recording mode to exercise the soft-frame\nhardware encoder and therefore the actual CUDA driver loader. This uses 640x360\nbecause NVENC rejects the tiny 64x64 software probe. Both variants produce\nvalidated H.264/AAC MP4 and Matroska files locally. Source cleanup explicitly\nremoves public sources from their canvas, releases owned references and drains\nthe destruction queue before shutdown, matching the frontend sequence.\n\nNix verification provides the installed driver libraries through\n`LD_LIBRARY_PATH=/run/opengl-driver/lib`. This checkpoint covers native module\nloading and soft-frame H.264 encoding. OpenGL texture interoperability,\nHEVC/AV1 encoding and other platforms still\nneed validation.","chars":1848,"tokens_est":462,"sha256":"267be06d9a7d5097b96d32c82812fddeef7571f1a3d7e34f45429725ba0b8d44"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-staged-gui-nvenc-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux staged GUI NVENC checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-staged-gui-nvenc-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux staged GUI NVENC checkpoint]\nCombining `OBS_BUILD_NVENC=1`, `OBS_BUILD_APP_GUI=1` and\n`OBS_BUILD_APP_RECORD=1` now stages fifteen modules and the NVENC capability\nhelper. Explicit runtime variants select the C loader with the C core and the\nRust loader with the Rust core. The core's bundled-module whitelist includes\nNVENC when this option is requested.\n\nThe private frontend profile selects NVENC. In addition to the existing GUI\nchecks, the test requires the staged NVENC module in the process map and the\nactual recording encoder's NVENC settings log. Both variants pass locally,\nproducing 99/100 decoded H.264 frames at 640x360 with AAC audio and white images;\nscreenshots show recording active and both apps shut down normally. On the\nisolated Mesa display, NVENC reports its expected fallback to frame upload.\nThis demonstrates frontend hardware encoding through both loaders; it does\nnot establish direct NVIDIA OpenGL texture interop.","chars":993,"tokens_est":248,"sha256":"874131c28fb241fc186463009777418cbf951270d9ce167e30e3259fddbe1e16"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-lua-python-scripting-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux Lua/Python scripting checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-luapython-scripting-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux Lua/Python scripting checkpoint]\n`scripting::build` compiles the original shared scripting unity groups and\nC++ string cache. Lua and Python remain independent options, and a supplied\nfrontend API enables the original frontend scripting groups. SWIG 4 or newer\ngenerates separate language runtimes and wrappers; `OBS_SWIG` selects the host\ntool. The build tracks SWIG environment/input trees, writes generated sources\nand headers only when their contents change, and explicitly compiles them.\n\nBindings are placed under a retained runtime root with a configurable relative\nmodule directory (default `lib64/obs-scripting`). The scripting library uses\nexecutable-relative discovery. Artifacts identify the enabled Lua module,\nPython extension and Python wrapper explicitly; disabled-language files from\nan earlier build are not an installation manifest. Release packaging must use\nthe selected artifacts.\n\nEnable the opt-in check with `OBS_BUILD_SCRIPTING=1`. It builds a native probe\nagainst the unchanged scripting API, then runs it with each core from an\nunrelated working directory and private module configuration. Real Lua and\nPython scripts exercise defaults, update, properties, save, reload and unload\ncallbacks. Process maps must contain the intended core and generated binding,\nand the supported-language list must match the build options. Logs remain in\n`script-scenarios/` under the native output directory.\n\n`OBS_BUILD_SCRIPTING_FRONTEND=1` enables frontend bindings and verifies their\ndefault callable behavior; the disabled mode checks that they are absent.\n`OBS_BUILD_DISABLE_LUA=1` and `OBS_BUILD_DISABLE_PYTHON=1` select the independent\nlanguage cases. Local checks pass both languages with and without frontend\nbindings, Lua-only with a relative native output path, and Python-only with\nfrontend bindings, against both cores. The environment uses SWIG 4.4.1,\nLuaJIT and Python 3.13 development packages discovered through pkg-config.\n\nThe shared-library check remains separate from the frontend Tools application\ncheck below. Other platforms and release packaging still require conversion\nand validation.","chars":2172,"tokens_est":543,"sha256":"4c1c6204fb54e54ecbf4a58100ef659fc1e7762c77ac10a6cd9ffddeaee429fa"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-frontend-tools-and-saved-gui-scri","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux frontend Tools and saved GUI scripts"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-frontend-tools-and-saved-gui-scripts","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux frontend Tools and saved GUI scripts]\n`plugins::build_frontend_tools` compiles the original scene-switcher,\noutput-timer and optional scripting groups, their Linux/POSIX host sources,\nshared Qt widgets, generated forms and moc units. Supplying scripting artifacts\nenables the matching Lua/Python UI definitions and shared-library dependency.\nThe graph reuses the application's shared Qt interface inventory.\n\nSet `OBS_BUILD_FRONTEND_TOOLS=1` with `OBS_BUILD_APP_GUI=1` to stage the plugin\nand enabled scripting artifacts in each private runtime. Saved Lua/Python\nscripts are restored from the scene collection. The app test checks their\nload/update/save/unload callbacks and persisted settings, as well as the\nactual staged scripting libraries in the process map. It copies only the\nselected language artifacts, excluding stale disabled-language output.\n\nA test-only Qt module opens Automatic Scene Switcher, Output Timer and Scripts,\nchecks the saved script count and each script's description/Seed property,\ncaptures each dialog and closes it. Inspection\nruns inside Qt's event loop, including Scene Switcher's nested modal loop.\nThe probe is part of the development test runtime and is not a release plugin.\n`OBS_BUILD_DISABLE_SCRIPTING=1` exercises Tools without the scripting library.\nCombine `OBS_BUILD_APP_RECORD=1` to retain the actual frontend recording checks.\n\nLocal dual-language and scripting-disabled app checks pass against both cores,\nincluding real frontend H.264/AAC recording and the four native API recordings.\nThe combined Tools, Lua/Python and NVENC configuration also passes against\nboth cores, with the selected C/Rust NVENC loaders and helper staged together.\nAll six dual-language dialog screenshots and the recording main window were\nvisually inspected. The disabled case requires the Scripts action to be absent.","chars":1890,"tokens_est":472,"sha256":"7b451d64e8e88f899f529fda617b3b48744766bba018f6449720f2e2096d36ad"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-frontend-tools-and-saved-gui-scri~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux frontend Tools and saved GUI scripts"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-frontend-tools-and-saved-gui-scripts","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux frontend Tools and saved GUI scripts]\nBoth configurations can print one outstanding allocation during shutdown in\nthis headless desktop session. An allocation tracker identifies the original\nportal sleep-inhibitor object (`portal_inhibit_info_create`); a diagnostic\nnonblocking GLib main-context drain releases its pending callback and changes\n`bnum_allocs()` from one to zero. The diagnostic is external to the production\nbuild and app probe. This checkpoint establishes normal app exit and scripting\ncleanup, not a zero-allocation shutdown log or portal capture support.\n\nWindows/macOS Tools, remaining modules, full application/capture coverage and\nrelease packaging are still required.","chars":739,"tokens_est":185,"sha256":"78f2a6efdfb1da41788cec7196dd72ecd3414bbdc8bbac27963270688c04b04e"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-websocket-server-and-protocol-che","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux websocket server and protocol checks"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-websocket-server-and-protocol-checks","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux websocket server and protocol checks]\n`plugins::build_websocket` compiles the pinned original obs-websocket 5.7.5\nserver, its 52 C++ sources, generated moc/UI inputs and resources. Dependencies\ninclude Qt Widgets/Svg/Network, Asio, nlohmann-json, websocketpp and qrcodegencpp.\nHeader/library overrides support dependencies outside the system prefixes.\nThe submodule source and pin are unchanged.\n\nEnable `OBS_BUILD_WEBSOCKET=1` with `OBS_BUILD_APP_GUI=1`. The staged application\nloads the server with each core, rejects a wrong password, authenticates a real\nclient and exercises scenes, inputs, settings, events, batches, errors and a\ndecoded white source screenshot. With `OBS_BUILD_APP_RECORD=1`, the wire client\nstarts recording after those checks; the retained H.264/AAC recording is then\ndecoded and checked. A Qt probe opens Server Settings and Connect Info, checks\nthat the QR image contains dark and light pixels, and captures both dialogs.\n\n`OBS_BUILD_DISABLE_WEBSOCKET_UNITY=1` compiles the 52 separate C++ sources.\nBoth modes pass the GUI, wire and recording checks against both cores. Their\n11 public `obs_module*` entry points agree; incidental exported C++ template\nsymbols differ. The core has a separate typed unity option, described below.\n\nThe existing `test/websocket-tier4` suite also passes against both staged cores:\n193/193 checks and 147/147 documented request types. The external fixture\nadapter aliases its private `obs-studio` configuration directory to the renamed\nproduct's `obs-studio-rust` directory; protocol assertions remain unchanged.\nThe combined websocket, Tools, Lua/Python and NVENC application passes with\n17 production modules plus the test-only Qt probe. Settings/Connect Info\nscreenshots from both cores were visually inspected.\n\nThese are functional checks, not controlled build-speed measurements. Browser,\nremaining plugins, real capture profiles, Windows/macOS native graphs,\nproduction packaging and configurable unity/PCH across the remaining graph\nremain required.","chars":2065,"tokens_est":516,"sha256":"ad84cd7bfcb382b20f36754aa366d79faffd52e90698e5bb3bcf6f7def51c73b"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-shared-source-inventory-and-linux-tier-","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Shared source inventory and Linux Tier 2"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#shared-source-inventory-and-linux-tier-2","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Shared source inventory and Linux Tier 2]\n`rust/tools/ported_sources.py` reads `libobs/build/source-sets.d/` and expands\nthe selected unity groups for Tier 2's native-object exclusion checks. CMake\nand Cargo share the optional HEVC group in that manifest. The reader matches\nthe actual CMake inventory exactly: 46 Linux objects with HEVC and 45 without.\nThe existing minimum inventory size and Ninja graph checks remain in force.\nThe local validation image includes pinned uv and checks offline system-Python\nstartup while building the image, matching the repository's Python policy.\n\nThis fixes the CI reader that found only one object after the source lists\nmoved out of CMake. Linux Tier 2 CI passes on `ca331a93d`; local source parity\nand HEVC on/off lifecycle/symbol checks also pass (1766/1762 exports\nrespectively, identical between cores).","chars":891,"tokens_est":223,"sha256":"f9650d4e37d7b30dc14ab48cd91ecf71c4f5bd400d53744822b737fade2dccfa"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-individual-libobs-source-compilation","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Individual libobs source compilation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#individual-libobs-source-compilation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Individual libobs source compilation]\n`libobs::Options::unity` defaults to true, preserving the selected explicit\ngroups. Set it to false to compile each implementation separately. The native\nengine expands C/C++ BUILD.md groups into generated one-member translation\nunits, preserving their group headers and keeping the source tree unchanged.\nOrdinary and explicitly generated sources retain their original paths.\nWrappers are rewritten only when their contents change. Cargo rerun metadata\ntracks the groups, their headers and their implementation members; compiler\nincludes retain direct dependency on the original contents.\n\nThe expander rejects conditional or otherwise unsupported group directives\ninstead of flattening them into a different source selection. It also rejects\nduplicate members and includes outside the source root. Objective-C groups\nstill require platform implementation.\n\n`OBS_BUILD_DISABLE_CORE_UNITY=1` selects this mode in the native integration\ndriver. Local checks pass lifecycle/export parity with HEVC on and off against\nboth cores. With HEVC enabled, all 1766 exports match the retained unity-built\ncore exactly, and 51 existing C test executables pass against each core with\nloader resolution verified. The browser-disabled GUI, websocket wire checks,\nwhite preview/screenshot and real frontend/API recordings also pass against\nboth cores. These C executables were built by CMake; their build migration is\nstill required. The direct native fixture also verifies member/header edits\nchange the loaded result; that is compiler invalidation evidence, not a full\nCargo scheduling experiment.\n\nThis establishes the core option. Other targets still need to expose it\nconsistently, and optional compiled PCH and controlled performance comparisons\nremain outstanding.","chars":1837,"tokens_est":459,"sha256":"cfa3adb4513225d1be700d866efb016c2596c9675d34eb9cfd6de1a447dc10c8"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-individual-libobs-source-compilation~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Individual libobs source compilation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#individual-libobs-source-compilation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Individual libobs source compilation]\nThe subsequent stock-container CI run exposed a separate missing-uv dependency:\nunlike the local Docker image, both Tier 2 jobs start from stock Ubuntu. The\nexisting build and test jobs now provision the same pinned uv before invoking\nvalidation. No workflow files or jobs were added; remote verification remains\nrequired for subsequent conversion commits. This provisioning fix passes the\nbuild and both test modes on `ca331a93d`.","chars":513,"tokens_est":128,"sha256":"8b557d42a431dc04d276fa491ed8de01140bdcc1dca7509f003739a9c3d24c6a"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#building-the-c-tests-through-cargo","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo]\nNative graph parity notes live in [one file per slice](native-graph/), sorted by PR number.\nAdd future slice notes there instead of appending shared prose here. Registration contracts\nlive in `rust/obs-build/tests/native/registration/`, included as modules of the existing\nApplication category binary; keep each slice in its own file and sort module declarations.\n\nThe current shared inventory is `test/cmocka/build/test-graph.json`, consumed by\nboth `validation::build_c_tests` and `test/cmocka/native-test-graph.cmake`. The\nindependent Linux manifest described in the initial results below was retired\nin #1805. The graph remains a subset of the repository's native tests; target and test\nselection depends on the evaluated platform and feature requirements. Cargo\ncompilation of the full selected test graph currently runs on Linux.\n\nThe scene bounds placement characterization also uses the shared core graph.\nBoth consumers compile its original C test and two private C helper sources,\nretaining libobs/cmocka linkage and non-MSVC libm. All 16 alignment, crop, flip\nand rounding cases run without a display; the separate CMake Rust-static-symbol\ncheck is preserved. The private helper header is tracked as a build input. This\ncloses one inventory gap, not complete scene or application parity (#3702, #1390).\n\nThe unchanged texture-creator mipmap data test also uses the shared core\ninventory. It retains all four 2D/cube render-target, non-power-of-two and\nunchanged-data cases, with unconditional libobs/cmocka linkage and no display\nwrapper. Its fake device records calls through real exported graphics APIs;\nthis scoped coverage does not establish complete graphics or application parity\n(#3692, #1390).","chars":1792,"tokens_est":448,"sha256":"de0e4eb6b28ad81d38f9793c8bca44e2da2e5d37eb04eb18ec0e32f40d4b5263"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#building-the-c-tests-through-cargo","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo]\nTargets may specify `\"cpp_standard\": \"17\"` or `\"cpp_standard\": \"20\"`.\nThe typed native model passes the requested ISO mode to `cc::Build` only for\nC++/Objective-C++ compilation. The CMake consumer requires the same standard\nand disables C++ extensions, matching the OBS compiler configuration. Omitting\nthe field retains the existing compiler settings; invalid values fail graph\nconfiguration. A mixed C/C++20 executable contract compiles and runs through\nboth consumers and checks that C compilation retains its own language mode.\n\nThe Qt-free disk-space monitor, scene-collection migration, crash-sentinel\ndirectory, settings migration, output-start logging and unclean-launch tests\nnow use this model with their original C++17 sources, includes and library\nlinks. Their indirect frontend utility headers are tracked as build inputs.\nExisting C/C++ test sources and public headers remain unchanged.\n\nThe unchanged Qt-free product-name and volume-meter snapshot tests also use\nthis shared inventory. The product-name target retains its frontend utility\ninclude path and cmocka dependency; the C++17 meter target retains its conditional\nthread dependency. A focused contract builds and runs both original test sources\nthrough Cargo and the canonical CMake consumer. Their header inputs participate\nin native build invalidation. This closes two inventory gaps in #1390; it does\nnot establish complete application or platform parity.","chars":1511,"tokens_est":378,"sha256":"371a2785118249b1da44e585dbae3e9fc0ec71dd1a8dec76d3bde2389f7319a3"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo~3","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#building-the-c-tests-through-cargo","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo]\nThe Qt-free frontend stream-service selection, saved-transition lookup, recording\nspace decisions, multitrack ladder and encoder override tests also use the shared\ngraph. The standalone caption round-trip suite also uses the shared graph,\nretaining its vendored libcaption and cmocka dependencies without needing libobs.\nThe display-free XComposite presence and search-backoff decision suites retain\nunconditional cmocka linkage, helper-header tracking and 30-second timeouts.\n`canonical_caption_and_frontend_utility_tests_run_unchanged` compiles and runs\nall eight original C tests through both the Cargo and CMake consumers and compares\nthe evaluated CTest inventory. Native macOS and Windows Rust lanes run this contract\nalongside the existing remux contract; it proves these standalone helpers, not\nfull frontend/application parity (#1390).\n\nThe QtCore-only frontend API dispatch test is also in the shared Qt suite.\nIts unchanged four cases exercise worker-thread profile creation/removal,\nimmediate UI-thread calls and nonblocking libobs-thread calls. The graph keeps\nits 60-second CTest timeout, QtCore runtime setup and indirect helper-header\ninput. Core-only selection does not require Widgets. The native Qt contract\nruns it through Cargo and CMake and compares the evaluated CTest inventory;\nthis helper coverage does not establish full frontend or protocol parity (#1390).","chars":1464,"tokens_est":366,"sha256":"ddb1297ab631d76d5b4c0fdd6eae11294b83ce38534aa332857684e0eefcaa7a"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo~4","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#building-the-c-tests-through-cargo","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo]\nThe Qt hotkey Backtab test also uses this graph, preserving its original Qt\nWidgets and Qt Test requirements, frontend helper/header inputs and Qt runtime\nsetup. The existing native Qt contract builds and runs all eight unchanged\nkey/focus cases through Cargo and CMake and checks the evaluated CTest inventory.\nWithout Qt Test, this target remains excluded even when Widgets is available.\nThe published Windows and macOS SDKs omit Qt Test. In that configuration\nthe native contract retains remux/API coverage and verifies Backtab exclusion;\na Qt Test development package enables the unchanged eight cases (exercised\nlocally on Linux).\nThis standalone compatibility check does not prove full frontend parity (#1390).\n\nThe Linux-only Qt undo-stack test is also registered in the shared Qt graph.\nIts two unchanged cases compile the real undo-stack implementation with the\nexisting stub headers and generated Qt metaobject. Both Cargo and CMake retain\nthe original Linux/Widgets guard, stub include precedence, Qt runtime setup and\n120-second timeout. The Qt contract runs it on Linux and compares the evaluated\nCTest inventory; other hosts exclude it, preserving the original offscreen\nplugin limitation. This helper coverage does not establish full frontend parity\n(#1390).\n\nThe Linux-only Qt hotkey mnemonic capture test also uses the shared graph.\nIts five unchanged cases exercise Alt+C, Alt+O, Ctrl+W, normal-field mnemonics\nand Tab focus through both Cargo and CMake. Selection retains the original\nLinux/Widgets/Qt Test guard, helper-header input and Qt runtime setup. The\nwall-clock fixture takes the `timing` resource lock. Hosts without Qt Test\nexclude this target; this helper coverage does not establish full frontend\nparity (#1390).","chars":1824,"tokens_est":456,"sha256":"c506b2de7beaa540aca47d2243723e03674878e47297e3651edebd4b693b76c2"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo~5","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#building-the-c-tests-through-cargo","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo]\nThe Linux QtCore volume-meter ticker test is also in the shared Qt graph. Its\nnine unchanged settling, repaint and cross-thread wake cases build and run\nthrough Cargo and CMake, retaining the frontend header input, conditional thread\nlinkage and QtCore runtime setup. Core-only selection includes it on Linux;\nother hosts exclude it. The original wall-clock fixture holds the `timing`\nresource lock. This standalone helper coverage does not establish full frontend\nor application parity (#1390).\n\nThe settings audio-track row test also uses the shared Qt graph. Its three\nunchanged cases generate the real settings UI and verify streaming, advanced\nrecording and simple recording layouts at three window heights. Both consumers\nretain Widgets selection, stub include precedence, Qt runtime setup and the\n120-second timeout. The native Qt contract runs the cases through Cargo and\nCMake and checks the evaluated CTest inventory. This standalone UI layout\ncoverage does not establish full frontend or application parity (#1390).\n\nThe Linux-only replay-buffer memory-estimate test also uses the shared Qt graph.\nIts four unchanged cases check warning colours above the limit, clearing the\nwarning below the limit or for an unknown estimate, and normal estimates. The\nnative Qt contract builds and runs the real helper through Cargo and CMake,\nretaining the original Linux/Widgets guard, offscreen execution and Qt runtime\nsetup. Other hosts exclude it; evaluated inventory checks cover that boundary.\nThis standalone helper coverage does not establish full frontend parity (#1390).","chars":1658,"tokens_est":414,"sha256":"600b8b2d52e1cc1ddbcef6d38e2677f88ee832c63e78a78ae8bd6b7d2644ea36"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo~6","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#building-the-c-tests-through-cargo","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo]\nThe top-level window-close helper also uses the shared Qt graph. Both Cargo\nand CMake run all five unchanged cases for never-shown, shown and handle-free\nwindows, including refused closes. The graph retains Widgets selection on all\nhosts, explicit C++17 compilation, the 120-second timeout and QtCore runtime\nsetup, and tracks the indirect\nhelper header. The evaluated inventory is compared by the existing native Qt\ncontract. This closes one coverage gap, not full frontend parity (#1390).","chars":570,"tokens_est":142,"sha256":"0a55607e717b9d281117bbe3d6abe2189f71a41fb32fab5138b4c8ab5cc4cae3"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo-init","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo","Initial native test migration (historical)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#initial-native-test-migration-historical","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo \u203a Initial native test migration (historical)]\n`validation::build_c_tests` builds the 51 previously selected, unchanged C test\nexecutables through the native engine, using an explicit source/dependency\ninventory in `rust/obs-build/manifests/c-tests-linux.json`. It invokes no CMake.\nPrivate implementation files get generated C translation units; test bodies\nand public headers remain unchanged. Caption, happy-eyeballs, MbedTLS and\nother target dependencies are explicit. Header-only fixture dependencies stay\nheader-only, including the fake PulseAudio test.\n\n`OBS_BUILD_C_TESTS=1` enables the build and execution checks in the native\nintegration driver. Each binary runs against both cores from a private working\ndirectory and HOME. Loader resolution must identify the selected core;\nstdout/stderr and JSON results are retained. A 60-second limit applies to each\nprocess.\n\nPer-target sanitizers default on for the same four cases selected by the\noriginal CMake configuration. The central platform helper suppresses them if\nglobal compiler flags already select a sanitizer. The two address/undefined\ncases retain their frame-pointer and no-recovery options. ELF checks confirm\nthe expected ASan/UBSan runtime dependencies. Set\n`OBS_BUILD_DISABLE_C_TEST_SANITIZERS=1` to select the disabled option.\n\nLocal results: 51 compiled executables and 102 successful runs with HEVC and\nper-target sanitizers enabled; 50 executables and 100 successful runs with\nHEVC/sanitizers disabled and individual-source libobs compilation enabled.\nThe disabled HEVC target is excluded and disabled sanitizer runtimes are\nabsent from the selected executable dependencies. This is the selected\n51-test inventory, not the repository's complete C test graph; the remaining\ntargets and their platform/feature conditions still require conversion.","chars":1897,"tokens_est":474,"sha256":"7bd588ceb700c08bfd0178f11e2fb56d6e4e9308bc1f17dcfa547baa1b6cedfc"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-building-the-c-tests-through-cargo-init~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Building the C tests through Cargo","Initial native test migration (historical)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#initial-native-test-migration-historical","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Building the C tests through Cargo \u203a Initial native test migration (historical)]\nPR CI on `ca331a93d` completed successfully, including the repaired Linux\nTier 2 build and both C/Rust test modes. Run `39078605291` on `4369949a7`\nalso completed successfully after the VLC and native-test builder changes,\nincluding both Linux test modes and the selected Windows/macOS checks.\nThese jobs do not automatically exercise the opt-in native application driver.","chars":497,"tokens_est":124,"sha256":"24f4be21ca48e86589548a22bf6332a18bdd1cf4c3ce5fdb961e922ae4b0a9d3"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-vlc-media-source","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux VLC media source"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-vlc-media-source","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux VLC media source]\n`SourceModule::Vlc` builds the original VLC core and POSIX host groups.\nIt discovers headers through pkg-config, `OBS_VLC_INCLUDE_DIR`, `VLC_PATH`\nor standard include directories. Header discovery adds no libVLC link edge:\nthe original plugin still loads the optional runtime dynamically. The native\ncheck inspects the ELF dependency list to enforce that distinction.\n\nSet `OBS_BUILD_VLC=1` with the staged GUI and websocket checks. The real app\ncreates a VLC playlist source, decodes a six-second local H.264 clip, returns\na white source screenshot, reports its duration and handles pause/play/restart.\nNormal shutdown saves the playlist path in the scene collection. Process maps\nmust contain the staged plugin and dynamically loaded libVLC.\n\nBoth cores pass those checks, frontend recording and the four API recordings.\nThe combined VLC, Tools, Lua/Python, websocket and NVENC application also passes\nwith individual-source libobs compilation: 18 production modules plus the\ntest-only Qt probe. That run uses an explicit include directory with libVLC's\npkg-config lookup disabled, exercising header discovery independently.\n\n`OBS_BUILD_VLC_ABSENT=1` selects the runtime-absence check. In an environment\nwithout libVLC, both cores log that the source is disabled, leave `vlc_source`\nunregistered, retain the loaded plugin and exit normally. Process maps must\nconfirm the runtime is absent; a discovered system installation fails this\nfixture rather than weakening the check. This does not establish packaging\nof VLC, every codec/playlist mode or actual audio-device output.","chars":1643,"tokens_est":411,"sha256":"d14ddb35409f7e248b1b5e7bea5631e058f97aa038030dc015b21ba2445bcfa7"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-vlc-media-source-unchanged-vlc-co","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux VLC media source","Unchanged VLC compatibility tests through Cargo"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#unchanged-vlc-compatibility-tests-through-cargo","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux VLC media source \u203a Unchanged VLC compatibility tests through Cargo]\n`validation::build_vlc_tests` builds all six original Linux VLC cmocka\nexecutables: drain gate, host path, channel order, audio tracks, audio pacing\nand playlist gaps. The pacing executable retains its FFmpeg dependencies.\nThe C sources and their assertions are unchanged. Select the lane with\n`OBS_BUILD_VLC=1 OBS_BUILD_VLC_C_TESTS=1` and provide the real libVLC runtime.\nIt does not require the staged GUI or websocket lane.\n\nThe integration driver runs every executable against each core, checks the\nselected library with `ldd`, stages the original effects, and isolates each\nworking directory and temporary/configuration/data/cache directory. It retains\nthe original 60/120-second limits and rejects skipped tests, including exit 77.\nIt clears inherited cmocka filters and forces standard output formatting so\nexternal settings cannot silently select fewer cases or hide skipped cases.\nPaths are canonicalized before changing the child working directory, including\nwhen `OBS_BUILD_TEST_OUTPUT` is relative. Results and raw logs are retained\nunder the output directory in `vlc-c-tests.json` and `vlc-c-test-runs/`.\n\nRED `a616f3c57` fails at the missing native test builder. The implemented graph\npasses all twelve executions (50 cmocka cases) without skips using libVLC\n3.0.23. The combined core/module/render and four MP4/MKV recording validation\ntook 188.79 seconds. This is runtime compatibility evidence, not a build-speed\nbenchmark. A local pass does not resolve the playlist audio-integrity failure\nseen in prior-head PR CI and tracked by #838.","chars":1671,"tokens_est":418,"sha256":"7673a5555009893a6048b934d09f3748f0f23a4a1a0a48ad1460046060f28c3e"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-vlc-media-source-graphics-depende","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux VLC media source","Graphics-dependent unchanged C tests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#graphics-dependent-unchanged-c-tests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux VLC media source \u203a Graphics-dependent unchanged C tests]\n`OBS_BUILD_GRAPHICS_C_TESTS=1` adds the original\n`test_group_hide_transition_audio` executable to the Cargo graph. It retains\nthe original core/caption/cmocka/math dependencies, graphics-module definition,\neffects and 120-second timeout. RED `60beca399` fails at the missing builder.\nThe implemented lane passes all four cases against each core (eight total),\nwith no skips, in a 40.15-second core/module/render invocation. The native\ncompiler cache reports 62 hits and two misses for that invocation. This is not\na controlled build benchmark.\n\nThe VLC and graphics lanes share the same runner for canonical paths, core\nselection, isolated directories, cmocka environment, skip rejection and logs.\nThe graphics lane writes `graphics-c-tests.json` and\n`graphics-c-test-runs/` under the selected output directory.\n\nThe combined graphics/VLC run passes all fourteen executable/core combinations\n(58 cmocka cases), without skips, plus the lifecycle/render checks and four\nvalidated MP4/MKV recordings. It took 222.04 seconds including runtime checks;\nsoldr reports 112 cache hits and zero misses. Formatting, all-target/all-feature\nClippy and the primary review pass. This validates the shared runner extraction.\n\nThe prior-head CI run `39091137249` fails this executable against the Rust\ncore: all four cases report no program audio at line 216. Its log shows audio\nbuffering growing from zero to the 960 ms maximum before the failures. The\nC-core Linux lane and Windows/macOS Tier 2 lanes pass. The local pass above\ndoes not resolve that failure.","chars":1651,"tokens_est":413,"sha256":"b956b6784ae74f484b665ed2311ecac88349d68c87ffe81c713db03c3bb9bbbd"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-vlc-media-source-graphics-depende~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux VLC media source","Graphics-dependent unchanged C tests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#graphics-dependent-unchanged-c-tests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux VLC media source \u203a Graphics-dependent unchanged C tests]\nAn isolated diagnostic of the original `add_audio_buffering` function found\nthat a positive delay below one sample rounds to zero frames/ticks, leaving\n`new_ts.end` uninitialized before copying it to the caller. With GCC's pattern\ninitialization enabled, verbatim function extraction reproduces invalid\nintervals for 1, 10000 and 20833 ns delays at 48 kHz. A second probe directly\nincludes the original source, uses the real headers and links the native core\nwith no dependency stubs; it reproduces all three invalid intervals and the\nvalid one-frame case. A scratch copy with the local interval initialized from\nthe incoming interval corrects all diagnostic cases while retaining the\none-frame case, with the same real headers/core and compiler flags. This\nestablishes a function-level defect, not causation of the full CI failure.\nNo production audio source or existing C test is changed at this checkpoint.\nReproduction source and results are retained in the local reports\ndirectory under `audio-buffering-probe/` for follow-up.","chars":1138,"tokens_est":284,"sha256":"7e50d9c561cc5aacf0488389680c95668281a9a1d07396431e4b50b3543169c6"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-vlc-media-source-audio-interval-r","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux VLC media source","Audio interval regression and scoped fix"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#audio-interval-regression-and-scoped-fix","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux VLC media source \u203a Audio interval regression and scoped fix]\nDraft [#1385](https://github.com/obs-rust/obs-studio/pull/1385) carries the\nfollow-up to that diagnostic, and this branch carries the same change.\nRED `a720d011f` adds a new C regression that directly includes the original\nprivate audio implementation. Two of its five cases fail in each linked-core\nmode: empty and pending buffers with a sub-sample delay. The positive one/two\ntick and full-buffer controls pass. GREEN `52c577638` initializes the local\ninterval from the incoming interval; all five cases then pass in both modes.\nExisting C tests and public headers remain unchanged. The CMake fragment\nconfigures, builds and passes CTest locally with real imported core/caption\nartifacts and headers, without dependency stubs.\n\nThe Cargo test manifest adds the same regression. RED `d6388ca86` requires the\nmissing executable and observes 51 instead of 52. The manifest supports\ncompiler-checked optional flags and explicit linker options, preserving the\ntest's optional pattern initialization and section garbage collection.\nThe core battery now has 52 executables (51 with HEVC disabled). A full enabled\nrun passes all 104 executable/core combinations, with 832 reported cmocka cases\nand no skip markers; the two standalone video-statistics executables do not\nemit cmocka summaries. The new regression contributes five cases per mode.\n\nThis direct-include regression checks the original C algorithm even when it\nlinks the Rust core. It does not establish a Rust replacement for that helper,\nnor that the entire intermittent CI failure in #838 is resolved. The unchanged\nruntime tests and full CI remain necessary.","chars":1728,"tokens_est":432,"sha256":"efbf4bc2ebc2ddfafc38c63b513f0183bd4ded0a19929a0a5d2169050b2ab93d"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-vlc-media-source-audio-interval-r~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux VLC media source","Audio interval regression and scoped fix"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#audio-interval-regression-and-scoped-fix","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux VLC media source \u203a Audio interval regression and scoped fix]\nWith the source fix, the combined core battery, unchanged group-audio test and\nbrowser-enabled OBS GUI pass against both cores. The app verifies actual\nbrowser pixels/JavaScript, websocket behavior, saved configuration, frontend\nH.264/AAC recording, rendering and clean OBS shutdown; the API fixture verifies\nfour additional MP4/MKV recordings. Runtime directories are\n`app-runtime-VCOfty` and `app-runtime-BwMSdi`. The whole invocation takes\n489.49 seconds, with 164 compiler-cache hits and 165 misses; it includes native\ncompilation and runtime tests and is not a controlled build benchmark.\n\nA subsequent run of all six unchanged VLC executables against both fixed cores\npasses all 50 cases without skips: 180.83 seconds including runtime checks,\n52 cache hits and eight misses. Formatting, Clippy and primary review pass.\nThe prior parent-head CI run `39092443140` (`b547ea121`) fails the unchanged\nrecording-shutdown wait test in mode OFF (one failing executable out of 296,\nlines 121/142, tracked by #1283); three PulseAudio tests are skipped in that CI\nenvironment. This audio interval fix does not claim to fix that separate wait\nrace or to explain all intermittent audio failures.\n\nThe separate fix PR CI run `39093013032` also finishes with a failed gate:\nmode ON passes, while mode OFF fails the same two recording-shutdown wait\ncases at lines 121/142 (one executable out of 299). The interval regression\npasses. This is not a green CI result and no retry was used to hide it.","chars":1598,"tokens_est":400,"sha256":"f84366618160602c0adc98bc688b892ad611566e5de1d0801dbeecfe375d20d5"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-compiled-pch-for-linux-cores","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional compiled PCH for Linux cores"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#optional-compiled-pch-for-linux-cores","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional compiled PCH for Linux cores]\n`libobs::Options::pch` defaults to false and is independent of `unity`.\nSet `OBS_BUILD_PCH=1` in the native integration driver to compile the explicit\ngroup headers with GCC or Clang on Linux. This currently covers libobs;\nother targets and Windows/macOS PCH remain required work.\n\nThe native engine accepts explicit `PrecompiledHeader` source assignments.\nIt compiles each header through the same `cc::Tool` and flags as its consumers,\nkeeping C and C++ settings separate. Artifact directories distinguish host,\ntarget, header path, language, compiler command and environment. Compiler\ninvocations retain the soldr wrapper. GCC rejects invalid PCH and uses an error\nheader to detect fallback; Clang consumes an explicit PCH artifact. Requested\nPCH therefore cannot silently fall back to parsing a normal header.\n\nCompilation batches preserve source order, including interleaved assignments\nto different headers. A regression fixture caught constructor order changing\nfrom 123 to 213 when assignments were initially sorted; ordered batches pass\nwith unity enabled and disabled. Mixed C/C++ fixtures also verify direct and\ntransitive header edits and language-specific flag changes affect the loaded\nresult. GCC 15.2.0 passes\nall nine native contracts; Clang 21.1.8 passes both PCH contracts.\nThe real Clang core pair with unity and PCH enabled also passes the lifecycle,\npublic data, module registration and exact C/Rust export comparisons. The\nClang run does not include the C-test executable or GUI matrices.\n\nThe real GCC core pair passes export/lifecycle checks and all 102 selected\nC-test runs with PCH enabled, with unity enabled and disabled. PCH artifacts\nare currently requested on every direct native build; repeated invocations\ndepend on compiler-cache behavior. These checks establish correctness for the\ntested configurations, not a speedup or complete Cargo invalidation coverage.","chars":1977,"tokens_est":494,"sha256":"f7b7a53a13cc603c2615d2a2b20dcec45e1d25848f0b50a9c10ca4a6a564b138"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-compiled-pch-for-linux-cores~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional compiled PCH for Linux cores"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#optional-compiled-pch-for-linux-cores","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional compiled PCH for Linux cores]\nThe combined browser-disabled Linux GUI passes against both individual-source,\nPCH-built cores with VLC, frontend Tools, Lua/Python, websocket and NVENC enabled.\nIt exercises the saved white scene, VLC playback controls, dialog and wire\nchecks, frontend hardware recordings and four API recordings, then normal\nshutdown. The complete build/validation invocation took 571.94 seconds; this\nincludes native compilation and runtime checks and is not a build benchmark.","chars":547,"tokens_est":137,"sha256":"dea889fbffe587bd06fdf6d5703e15e656a3adebe65b80b5b8c65584f0f01b5d"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-compiled-pch-for-linux-cores-s","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional compiled PCH for Linux cores","Scoped core build measurements"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#scoped-core-build-measurements","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional compiled PCH for Linux cores \u203a Scoped core build measurements]\nCorrected local GCC measurements explicitly set `NUM_JOBS=4` for the standalone\nnative integration process and `CARGO_BUILD_JOBS=4`. The active process\nenvironment was inspected: both values were 4 and no Cargo jobserver was\ninherited. The earlier wrapper only set Cargo's limit, so its claim of four\nnative jobs is withdrawn; its original observations are retained separately.\n\nThe corrected matrix uses fixed opt-level 2 with debug information, one fresh\noutput directory per mode and three repeated builds. The interval covers the\nC/Rust core pair and caption, excluding plugin builds, GUI checks and Cargo\nstartup. The host and compiler cache were shared; no cache was reset. Fresh\noutput is therefore not a cold-cache measurement. Trials ran in table order.\nThe integration driver writes `core-build-timing.json` under\n`OBS_BUILD_TEST_OUTPUT`; repeat that invocation with the same directory for\nadditional samples.\n\n| Unity | Compiled PCH | Fresh output | Repeat median | Repeat range |\n| --- | --- | ---: | ---: | ---: |\n| On | Off | 12.60 s | 2.55 s | 2.50\u20132.94 s |\n| On | On | 38.39 s | 5.72 s | 4.70\u20138.67 s |\n| Off | Off | 26.38 s | 5.82 s | 5.30\u20136.34 s |\n| Off | On | 44.18 s | 9.83 s | 9.07\u201311.65 s |\n\nAll twelve repeat invocations reported zero compiler-cache misses. Cache\nsummaries cover the whole integration invocation, not just the timed core pair.\nThese results support unity on / PCH off as the default for this measured core\ncase. PCH preparation and per-header compilation batches still need performance\nwork. This does not establish full application build time, clean-cache\nperformance, a CMake comparison or Cargo no-op behavior.","chars":1768,"tokens_est":442,"sha256":"fade7f8253a16fb4fbde0546dbd6d64daee605a020c3856c1c35df0489c1be5d"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-compiled-pch-for-linux-cores-a","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional compiled PCH for Linux cores","Audit of duplicate PCH generation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#audit-of-duplicate-pch-generation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional compiled PCH for Linux cores \u203a Audit of duplicate PCH generation]\nAt the user's request, the GCC Linux core-pair build was audited with temporary\nrequest tracing and forwarding C/C++ compiler wrappers. Both audited invocations\npassed the real core integration test. The first invocation used the audit\nwrappers' compiler identity; the next reused the same artifacts and flags.\n\n| Invocation | PCH requests | Distinct PCH artifacts | Compiler executions |\n| --- | ---: | ---: | ---: |\n| Initial audited build | 18 | 14 | 14 |\n| Warm repeat | 18 | 14 | 0 |\n\nSome headers recur in nonadjacent source batches and across the common/C/Rust\nvariant stages. There are four redundant compiler-cache requests per core-pair\nbuild, but the trace did not find duplicate compiler generation: each initial\nartifact was compiled once, and soldr served every warm request from cache\n(the whole warm invocation reported 64 hits and zero misses).\n\nThe PCH path signature selects an artifact namespace; it is not a freshness\ncheck. Generation must not be skipped merely because that file exists: direct\nheaders, transitive headers, flags and compiler identity still require correct\ndependency validation. An optimization can deduplicate requests within an\nimmutable build invocation while preserving source/constructor order. Persistent\nreuse needs a separate validity check. Temporary tracing was removed after the\naudit. The earlier PCH timings describe this implementation, including cache\nrequest and batch overhead; they do not establish an intrinsic PCH speed limit.","chars":1605,"tokens_est":401,"sha256":"cce14521c159bf7418d1f4327ed30df4acae980a4d21831d6c380a424ebc9050"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-bundled-obs-sys-configuration-and-cargo","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Bundled obs-sys configuration and Cargo scheduling"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#bundled-obs-sys-configuration-and-cargo-scheduling","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Bundled obs-sys configuration and Cargo scheduling]\nThe `bundled` feature exposes the core build modes through environment variables:\n\nBundled native optimization and debug symbols follow Cargo's effective\n`OPT_LEVEL` (`0`, `1`, `2`, `3`, `s`, `z`) and `DEBUG` (`true` or `false`),\nincluding custom profiles. Cargo's `PROFILE` name is not used. Set\n`OBS_SYS_NATIVE_PROFILE` to `debug`, `release`, `relwithdebinfo` or `minsizerel`\nto select the corresponding standalone native policy explicitly.\n\nNative assertions default on at optimization level `0` and off otherwise.\n`OBS_SYS_NATIVE_ASSERTIONS=0|1` overrides this independently of debug symbols\nand named native profiles. This is a native policy: Cargo does not expose a\nreliable target debug-assertion setting to build scripts, so custom Rust\nassertion settings are not discovered. Swift receives the same native\nassertion policy explicitly. All four configuration inputs are tracked for\nCargo rebuilds; invalid values fail before compilation.\n\n| Variable | Values | Default |\n| --- | --- | --- |\n| `OBS_SYS_UNITY` | `0` or `1` | `1` |\n| `OBS_SYS_PCH` | `0` or `1` | `0` |\n\nThe options are independent. Empty, non-text or other values fail configuration\nbefore native compilation. PCH currently requires Linux GCC or Clang, as above.\nWith the native dependencies installed, for example:\n\n```sh\nOBS_SYS_UNITY=0 OBS_SYS_PCH=1 soldr cargo test -p obs-studio-rust --features bundled-native --test obs-tests-app\n```\n\nThe build script tracks both variables and passes them to the shared libobs\nbuilder. Four bundled contracts cover parsing/validation, requested versus\ncompiled settings, the public API version and native startup/shutdown. Tests\nread the inherited environment without mutating process-global settings.","chars":1810,"tokens_est":452,"sha256":"cec21b283f61132e1209f3316397bb8aedec5829fb0f481c3b671238cf9aa4be"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-bundled-obs-sys-configuration-and-cargo~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Bundled obs-sys configuration and Cargo scheduling"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#bundled-obs-sys-configuration-and-cargo-scheduling","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Bundled obs-sys configuration and Cargo scheduling]\nA local fifteen-invocation Cargo experiment used a separate target directory,\nfour compilation jobs and the shared host/compiler cache. All four mode\ncombinations passed. Changing either option made Cargo mark `obs-sys` dirty\nfor that variable. An invalid PCH value failed the build script before changing\nthe native library. Five no-change invocations reported the package fresh and\nkept the native library's nanosecond timestamp unchanged, including PCH modes.\n\nThe experiment then made successive temporary edits to three private inputs,\nchanging one additional file per step with unity and PCH enabled. Each change\nmade Cargo rerun the build script.\nA separate process loaded the resulting library and asserted its changed\npublic API return value or version string:\n\n| Input | Observable change | Invocation time | Reported cache hits/misses |\n| --- | --- | ---: | ---: |\n| `libobs/obs.c.h` | API version increment | 14.15 s | 52 / 1 |\n| `libobs/build/libobs.pch.h` | Further API version increment | 19.54 s | 47 / 6 |\n| `libobs/obsversion.c.in` | Generated version string suffix | 11.07 s | 52 / 1 |\n\nTimes and cache summaries cover the whole Cargo/test invocation, not just\nnative compilation. These are observed incremental cases on a shared host,\nnot isolated benchmarks. All temporary inputs were restored; a final build\nreturned the original API values and its subsequent no-change run stayed fresh.\nThis verifies selected core input scheduling, not every generated frontend,\nplugin, SDK or packaging dependency. The full conversion remains incomplete.\n\nPR CI run `39080352730` on `5f04b9f0a` completed successfully after the PCH\ncheckpoint, including both Linux core test modes and the selected Windows/macOS\nlanes. Run `39081209344` on `352bac56d` also completed successfully for the\nbundled-mode changes, including both Linux modes and selected Windows/macOS lanes.","chars":1974,"tokens_est":494,"sha256":"a152c828911b1467bfede664d9cdb442e8bfb78c9be594e08a0751f48be6f40d"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-browser-build","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux browser build"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-browser-build","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux browser build]\n`plugins::build_browser` builds the pinned `obs-browser` module and its\n`obs-browser-page` subprocess helper. It uses the existing CEF SDK's shared\nlibrary and wrapper archive; it does not build Chromium. The SDK must provide\n`include/`, `Release/`, `Resources/` and the prebuilt CEF wrapper archive.\n`BrowserOptions` selects the SDK directory, Qt panels and unity compilation.\nThe Linux implementation requires CEF >=95, nlohmann_json >=3.11, X11 and libdrm.\nThe pinned browser source unconditionally includes `QApplication` and uses\n`QToolTip`, so Qt Widgets headers and libraries are required even with panels\ndisabled. That mode omits panel sources and exports. Enabled panels use the\noriginal Qt sources and generated MOCs.\n\nBrowser unity compilation uses three explicit, ordered groups to avoid duplicate\nBase64 declarations and default arguments in the untouched submodule sources.\nIndividual compilation uses the same source inventory. The helper has its own\nsource list and CEF dependencies. `BrowserArtifacts::deploy_runtime` copies the\nCEF Release and Resources trees and the helper beside the browser module,\nincluding locales, data packs and auxiliary shared libraries. These SDK resource\ndirectories are Cargo build inputs.\n\n`frontend::build_application_with_options` enables the original custom-browser\ndock implementation and generated Qt interfaces through `browser_panels`.\nThe existing `build_application` entry point retains its default configuration.\nFor the integration driver, set `OBS_BUILD_BROWSER=1` and `OBS_CEF_ROOT` to the\nSDK root. `OBS_BUILD_DISABLE_BROWSER_UNITY=1` selects individual browser\ncompilation; `OBS_BUILD_DISABLE_BROWSER_PANELS=1` disables the panel interfaces.\nThe GUI browser tests also require `OBS_BUILD_WEBSOCKET=1` to exercise the\nJavaScript bridge through the public source and scene APIs.","chars":1905,"tokens_est":476,"sha256":"c033550da650a26dcd20edd5fb031183602c88cb53b3a35095ca683931b891c4"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-browser-build~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux browser build"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-browser-build","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux browser build]\nThe SDK used locally is the Linux x86_64 CEF 7871 archive pinned by\n`CMakePresets.json`, with SHA256\n`8ffc64d06ea74da613eeda7f2aa5d4e98661af6fa3ed8c68724c9a6e4e89ea8e`.\nIts CEF header reports 150.0.19. Host verification supplies installed CEF runtime\ndependencies through a private loader path; it does not modify system libraries.\nThis browser implementation currently targets Linux. Other platforms, production\nSDK acquisition, installation and packaged runtime validation remain unfinished.\n\nBrowser validation is in progress. The module/helper build contracts pass with\nunity and panels independently enabled or disabled, including helper execution,\nCEF linkage and panel export selection. The panels-enabled unity and individual\nmodules each export the same 22 symbols. In the staged GUI, the original custom\ndock editor accepts real delegate edits, creates a browser dock, navigates to a\nlocal page and receives its JavaScript-generated readiness title.\n\nDuring development, the full browser GUI test failed at the browser source's\nlocal-file navigation. The input is active and showing at the requested 128\u00d772 dimensions,\nbut its screenshots remain transparent. A diagnostic CEF DevTools session finds\nthe requested `http://absolute/\u2026` target with an `about:blank` page context; an\nowned-process trace observes the initial paint but no call to the local-file\nscheme handler. Individual compilation reproduces this failure. An additional\ndiagnostic run caught `CefTask_0_CToCpp called with invalid version -1` during\ncold panel initialization. The dependency fix and isolated credential-store\nfixture correction below resolve these observed failures in the tested Linux\nruntime; this does not establish all-platform or packaged application parity. The new checks\nretain their rendering, JavaScript bridge, helper-process and saved-profile\nrequirements. Existing C tests and public headers remain unchanged.","chars":1977,"tokens_est":494,"sha256":"adf6152a334de1780d37dc86f7b5ee949fdf6da6860971f399ae52d7de45e7d4"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-browser-build-browser-startup-inv","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux browser build","Browser startup investigation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#browser-startup-investigation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux browser build \u203a Browser startup investigation]\nA CMake reference build of the original browser module and helper reproduces\nthe local-file failure inside the same Cargo-built frontend and core. This\nrules out browser unity compilation as its cause; it does not establish what\na complete CMake-built application does. Explicitly selecting the global CEF\nrequest context did not fix it and was discarded.\n\nThe cold-start API-version abort has a separate focused regression in a sister\n`obs-browser` checkout. Linking the real browser objects and queuing a task\nbefore initialization aborts with the original module and safely rejects the\ntask with the proposed fix. Real module startup followed by immediate unload\nalso aborts with the original module and exits successfully with the fix.\nThe dependency draft [obs-browser#1](https://github.com/obs-rust/obs-browser/pull/1)\nproposes commit `0c3b700` (the current experimental pin). It waits for context readiness for ordinary tasks,\nhandles source destruction before readiness, and coordinates unload with\ninitialization success or failure. A follow-up dependency test at `4f26bda`\nnow exercises real CEF initialization failure: a second process shares the\nfirst process's locked profile, waits for the actual initialization-failure\nmessage, then unloads cleanly. Both the original and fixed modules pass this\nfailure-path characterization; it does not distinguish the startup-race fix.\nThe parent's production pin is now `7bab463` (obs-browser 2.27.3, which includes #1 and `4f26bda`). Browser-source rendering is\nverified in the disposable Linux test profile described below.","chars":1675,"tokens_est":419,"sha256":"4347f69a91807892b91ad9987497043fd51b915bc7744e47fe2ab8e135967ced"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-browser-build-isolated-browser-cr","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux browser build","Isolated browser credential store"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#isolated-browser-credential-store","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux browser build \u203a Isolated browser credential store]\nA CEF network trace narrows the blank local source to an unfinished global\npersistent-cookie key load in the isolated desktop session. The custom panel's\nseparate cookie store completes. Selecting Chromium's basic password store\ninside a fresh disposable test profile completes the global cookie load and\npasses the existing browser source color/JavaScript callback, WebSocket,\nrecording, saved-scene and shutdown checks. A second runtime-only run with the\nbasic store and no network tracing also passes. This diagnoses the isolated\ncredential-service integration; it does not verify normal desktop keyring\nintegration. No production credential-store option is changed. Full native\nCargo GUI validation now passes against both C and Rust core variants, including\nthe original dock editor, actual native dock pixels, local source HTML/JavaScript\ncallback, staged helper subprocesses, saved configuration, recordings and normal\nshutdown. The full invocation took 510.62 s and reported 27 cache hits / 199\nmisses; it used the earlier uncapped native test environment and is not a\ncontrolled build benchmark. A warm repeat with both job limits explicitly set\nto 4 passes in 77.56 s, with 226 cache hits and zero misses. Its interval includes\nGUI checks and recordings against both cores; it is not a compile-only timing.","chars":1417,"tokens_est":354,"sha256":"3b9ad465bf0ea9131bb4a8d2834e88ccdd9ce794b964d83eba4835fdaf0fbd53"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-fdk-aac-encoder-checkpoint","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional FDK AAC encoder checkpoint"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#optional-fdk-aac-encoder-checkpoint","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional FDK AAC encoder checkpoint]\n`plugins::build_fdk` builds the original `obs-libfdk` unity group as a dynamically\nloaded module through `cc::Build`, discovering the `fdk-aac` SDK through\npkg-config. This optional encoder remains disabled by default, matching the\noriginal CMake option. Set `OBS_BUILD_FDK=1` in the native integration driver to\nbuild, load and exercise it. GUI selection alone does not enable FDK.\n\nThe RED commit `a0bc15642` fails at the unimplemented native builder. With the\nbuilder implemented, the integration test passes against both the C and Rust\ncores in 24.77 s. Each core records MP4 and MKV with the actual `libfdk_aac`\nencoder; ffprobe verifies AAC LC, 48 kHz stereo, decoded audio frames, H.264 video\nframes and recording duration. No usable soldr statistics were available for\nthat invocation, so it does not establish cache performance. The existing\nheadless path with FDK disabled also passes (12.80 s), using `ffmpeg_aac` for\nall four recordings.\n\nA reference build invokes the original `plugins/obs-libfdk/CMakeLists.txt`,\nusing the same FDK 2.0.3 SDK and Cargo-built core. Both modules export exactly\nthe same six dynamic symbols. This verifies module exports; it is not a\ncomplete CMake application or a cross-platform runtime comparison. The default\nGUI/browser path is checked separately to ensure adding this optional encoder\ndoes not make it mandatory.","chars":1443,"tokens_est":361,"sha256":"e7926710d63e4b4d7ee20a5b0f0ae683fb01892af788b3bc68029267416e4f3f"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-jack-and-sndio-audio-modules","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional JACK and sndio audio modules"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#optional-jack-and-sndio-audio-modules","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional JACK and sndio audio modules]\n`SourceModule::Jack` and `SourceModule::Sndio` build the original Linux unity\ngroups as dynamic modules through `cc::Build`, with pkg-config dependencies\n`jack` and `sndio`. Both remain disabled by default, including ordinary GUI\nruns. Select them independently with `OBS_BUILD_JACK=1` and\n`OBS_BUILD_SNDIO=1` in the integration driver. The GUI core-module whitelist\nincludes each only when explicitly selected. The sndio target retains the\noriginal `-Wno-error=vla` option.\n\nRED `452911b5c` fails at the unimplemented optional audio module graph. With\nthat graph implemented, both modules load and register their original\n`jack_output_capture` and `sndio_output_capture` input IDs against both C and\nRust cores; the existing graphics and four-recording checks also pass (20.52 s).\nReference builds invoke each original CMake target with the same SDKs (JACK\n1.9.22 and sndio 1.10.0). Each module exports exactly the same seven symbols as\nits Cargo-built counterpart. The JACK reference needs an explicit include path\nbecause its original finder's pkg-config include hint uses the singular name.\nNo CMake source list was recreated for these reference builds.","chars":1240,"tokens_est":310,"sha256":"a4afa91e7057dcbb7ef3e125aca5de0f549f57635f2d4f2e300ad635a3a48cf2"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-jack-and-sndio-audio-modules-a","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional JACK and sndio audio modules","Actual input capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#actual-input-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional JACK and sndio audio modules \u203a Actual input capture]\nThe new C fixture uses unchanged public OBS headers and real audio clients. It\nsends distinct stereo samples (left 0.25, right -0.125) through each original\nsource, requiring at least three matching packets at the public source audio\ncapture callback. Event waits are bounded; JACK clients close, the sndio writer\nthread joins, callbacks are removed and sources are released before the local\nprobe state is destroyed. No existing upstream C test or public header changes.\n\n- JACK: start a separately named non-realtime `jackd` dummy server, export its\n  `JACK_DEFAULT_SERVER`, and set `OBS_BUILD_JACK=1 OBS_BUILD_JACK_CAPTURE=1`.\n  The fixture connects its writer to the real OBS source's two JACK ports.\n- sndio: start an owned `sndiod` with playback/monitor mode (`-m play,mon`) and\n  a named sub-device, set `OBS_BUILD_SNDIO=1`, and pass its descriptor as\n  `OBS_BUILD_SNDIO_CAPTURE_DEVICE` (for example `snd,11/capture` for server\n  unit 11 and sub-device `capture`). The fixture writes through the real sndio\n  client API and observes the monitor source. Use a clocked audio backend.\n- Either capture flag requests the existing graphics probe and initializes\n  stereo audio; recording is optional. The existing probe still requires an\n  X11 display and an OpenGL implementation. These are Linux integration tests.","chars":1424,"tokens_est":356,"sha256":"b4111e67d52c1a5759ba4625ae3b7a09bc731dc8748c03decb0295966ec6fdf8"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-optional-jack-and-sndio-audio-modules-a~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Optional JACK and sndio audio modules","Actual input capture"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#actual-input-capture","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Optional JACK and sndio audio modules \u203a Actual input capture]\nA direct ALSA null backend did not drive sndiod: its watchdog timed out and the\nsample test failed. Keeping the assertions intact, the validated fixture routes\nsndiod through ALSA's PulseAudio plugin into a private PulseAudio null sink.\nNo desktop audio service or physical input is used. The combined run passes\nagainst both cores, exercises both input captures in each of the four recording\nprocesses, and validates all recordings (33.67 s, 96 cache hits / zero misses).\nThat interval includes runtime capture and recordings; it is not a compile-only\nbenchmark. Capture-only validation with recording disabled also passes against\nboth cores (15.53 s), exercising both inputs without relying on recording to\ninitialize audio. Real physical-device routing, platform graphs and packaged audio\nruntime remain separate requirements of the full conversion.\n\nIndependent JACK-only and sndio-only configurations also pass. The staged\nGUI/browser invocation with both optional modules selected passes against both\ncores, including native dock/source rendering, JavaScript/WebSocket checks,\nrecordings, saved configuration and shutdown (102.18 s, 226 cache hits / two\nmisses). This is a combined build/runtime interval, not a controlled compiler\nbenchmark or proof of physical-device capture.","chars":1390,"tokens_est":348,"sha256":"b481d42dedc4742d0d88bee7b82af5e0edcfc06697f3c175a58e907501c0b581"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-intel-qsv-native-module","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Intel QSV native module"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#intel-qsv-native-module","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Intel QSV native module]\n`plugins::build_qsv` builds the original Linux x86_64 QSV C/C++ groups in CMake source\norder, using oneVPL >= 2.9, libva and libva-drm. It retains the host-definition\nheader, language standards, switch warning exception and inline visibility.\n`QsvOptions` supports HEVC, unity and compiled PCH independently; its default is\nHEVC on, unity on, PCH off. The integration driver selects the target with\n`OBS_BUILD_QSV=1`, with `OBS_BUILD_DISABLE_QSV_UNITY` and `OBS_BUILD_QSV_PCH`\ncontrolling its compilation. Its HEVC setting follows `OBS_BUILD_DISABLE_HEVC`.\nThe full CMake graph enables QSV by default; the integration driver's opt-in is\nnot a change to that product default.\n\nRED `3f0a49d4f` fails at the missing builder; implementation `5c511b9d2` adds the\nnative graph and isolated CMake runtime comparison. The initial build/load and\nfour H.264/AAC recordings pass against both cores (34.56 s). The controlled\nreference uses each original QSV CMake target, matching the project's inline\nvisibility and optimization, against the same SDKs (oneVPL 2.16 and libva 2.23).\nThe finder needs the pkg-config include root explicitly on this Nix host.\n`OBS_BUILD_QSV_REFERENCE` requires exact dynamic exports and compares encoder\nregistrations after loading that actual reference module with each core in a\nfresh process. Reference runs preserve the real graphics/module/lifecycle\nchecks; their recording is omitted to avoid overwriting the validated clips.\n\nThe first unity/PCH-off case passes with seven matching exports and matching\nregistrations. Both cores and the CMake reference expose no QSV encoders on this\nhost. This proves graceful loading without a detected implementation; Intel\nhardware encoding and texture interoperability remain unverified. The complete option matrix passes, with seven matching exports and four fresh\nCMake reference runtime comparisons per row:","chars":1943,"tokens_est":486,"sha256":"edc26e4518cb22202fcc6154782b0c36f9987b7e2d95604d82cff8403862ca4f"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-intel-qsv-native-module~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Intel QSV native module"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#intel-qsv-native-module","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Intel QSV native module]\n| QSV unity | QSV PCH | HEVC | Full invocation | Cache hits / misses |\n| --- | --- | --- | ---: | ---: |\n| On | Off | On | 25.46 s | 96 / 1 |\n| Off | Off | Off | 25.98 s | 97 / 1 |\n| On | On | On | 30.56 s | 93 / 8 |\n| Off | On | Off | 29.90 s | 91 / 12 |\n\nEach invocation includes both cores, native compilation, real MP4/MKV recordings\nand reference runtime checks. These are functional validation intervals with a\nshared cache, not controlled PCH performance measurements. Disabled rows also\ncheck the public MP4/MOV codec lists. Compiled PCH remains off by default.","chars":638,"tokens_est":160,"sha256":"1d82273b299ed1d5bf28d207458332fa7889ff72b1ea747956a9c8f245f69f89"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-intel-qsv-native-module-hevc-disabled-m","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Intel QSV native module","HEVC-disabled MP4 build regression"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#hevc-disabled-mp4-build-regression","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Intel QSV native module \u203a HEVC-disabled MP4 build regression]\nThe QSV matrix's HEVC-disabled recording case exposed unconditional HEVC calls\nin the existing MP4 muxer. Both Cargo and the original CMake output target fail\nto link against the disabled core, with unresolved `obs_parse_hevc_header` and\n`obs_parse_hevc_packet`. The original CMake reference uses its actual target,\nSDK libraries and shared dependencies, and `--no-undefined` to require a valid\nmodule. The failure is not QSV-specific.\n\nRED `0c73e4776` additionally requires MP4/MOV advertised codecs to agree with the\nbuild option. The fix gates the HEVC-only helpers, call sites and recognition\nwith `ENABLE_HEVC`, and removes HEVC from the disabled outputs' codec lists,\nfollowing the existing FLV output pattern. Enabled source bodies remain intact.\nThe original CMake output target now links successfully with HEVC disabled.\nThe next disabled recording run exposes one VA-API codec switch case calling\n`vaapi_device_hevc_supported` despite that helper's declaration and definition\nbeing conditional. Guarding the case with the same feature macro makes it use\nthe existing unsupported-codec fallback when disabled. Enabled behavior stays\nunchanged. These regressions were found by keeping real recordings in the\nHEVC-disabled option matrix.\nNo public header or existing upstream C test is edited. Full application,\nphysical Intel hardware, cross-platform and release packaging parity remain\nrequirements of the complete conversion.","chars":1541,"tokens_est":385,"sha256":"2174119ce2301819ae9830c12e65fcb555bc520c50767c504dd56322cfc1d7ef"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-intel-qsv-native-module-hevc-disabled-m~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Intel QSV native module","HEVC-disabled MP4 build regression"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#hevc-disabled-mp4-build-regression","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Intel QSV native module \u203a HEVC-disabled MP4 build regression]\nThe full staged GUI/browser invocation with global HEVC disabled and QSV\nselected passes against both cores (424.83 s, 110 cache hits / 118 misses).\nIt verifies native dock/source pixels, JavaScript/WebSocket behavior, saved\nconfiguration, frontend recording and normal shutdown. With\n`OBS_BUILD_MOV_RECORD=1` (requiring recording/FFmpeg targets), the API fixture\nalso records and decodes MP4, MKV and MOV against each core. Both MOV artifacts\ncontain H.264/AAC and the QuickTime `qt  ` major brand. Six additional CMake QSV\nreference runtime comparisons pass. This interval includes native compilation\nand application checks; it is not a compile-only or controlled cache benchmark.\nIntel hardware encoding remains unverified.","chars":832,"tokens_est":208,"sha256":"624f02d7c37a99957c911f4d2b13b220a235e687d90f5db951a874aab06a8492"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-webrtc-whip-cargo-graph","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux WebRTC / WHIP Cargo graph"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-webrtc--whip-cargo-graph","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux WebRTC / WHIP Cargo graph]\nRED `2923db820` requires the real WebRTC output and service module and fails\nat the missing builder. `plugins::build_webrtc` now compiles the original\nPOSIX and core C++ groups in their original order through `cc::Build`, links\nto the selected shared libobs, libdatachannel SDK and libcurl, and retains the\noriginal module data. Unity defaults on and compiled PCH defaults off; both\ncan be selected independently through `WebRtcOptions`. Its HEVC setting\nfollows the global option. The integration fixture checks WHIP's advertised\nvideo/audio codecs as well as the output/service registrations.\n\nThe explicit `DataChannelSdk` supplies include/library paths and the media\nand websocket interface definitions from that SDK's build. Media support is\nrequired and the headers must report libdatachannel >= 0.20, matching the\noriginal dependency requirement. The tested SDK is the shared build of\nlibdatachannel version 0.24.1 with both interface features enabled. Linux is\nimplemented; other platforms return an explicit unsupported-graph error.\nStatic SDK linkage and other SDK feature combinations have not been validated.\n\nEnable the existing opt-in integration driver with `OBS_BUILD_WEBRTC=1`,\n`OBS_DATACHANNEL_INCLUDE_DIR` and `OBS_DATACHANNEL_LIBRARY`.\n`OBS_DATACHANNEL_DISABLE_WEBSOCKET` describes an SDK built without that feature;\nit must match the supplied SDK. `OBS_BUILD_DISABLE_WEBRTC_UNITY` and\n`OBS_BUILD_WEBRTC_PCH` select the module's build modes.","chars":1538,"tokens_est":384,"sha256":"8d0dcff482b85627c7d35b87b80f5b7ab5ce588be8a3a09c3c086dd808421956"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-webrtc-whip-cargo-graph~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux WebRTC / WHIP Cargo graph"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-webrtc--whip-cargo-graph","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux WebRTC / WHIP Cargo graph]\nThe new `tests/libobs/whip_receiver.py` wraps the native test command and\nprovides a real localhost WHIP receiver using pinned aiortc/aiohttp/numpy.\nIt authenticates the SDP POST and resource DELETE, negotiates a real peer,\nand decodes received media. The native fixture uses the public OBS service,\noutput and encoder APIs, x264 video and FFmpeg Opus audio; no transport stub\nor mocked encoder is involved. Each core sends a rendered 64x64 scene and a\n48 kHz stereo 1 kHz tone. The receiver checks decoded pixels, advancing\nmedia timestamps, audio format, tone frequency/RMS, connected state and\nresource deletion. The existing four MP4/MKV recording assertions remain.\nThe wrapper propagates command failures and bounds its owned process group\nwith a configurable timeout; it does not stop shared services.\n\nThe first stream run passes against both cores (20.71 seconds, 96 compiler\ncache hits and zero misses). An actual reference module built using the\noriginal `plugins/obs-webrtc/CMakeLists.txt` has the same 26 dynamic exports\nas the native module, including seven public OBS module entry points.\nBoth link dynamically to libobs, libdatachannel and libcurl. The integration\ndriver compares those exports when `OBS_BUILD_WEBRTC_REFERENCE` is supplied;\n`OBS_BUILD_WEBRTC_USE_REFERENCE` explicitly selects that module for a separate\nreference runtime run. That flag requires a reference path and never counts\nas native-module streaming coverage.\n\nThis checkpoint validates H.264/Opus streaming on Linux. Actual HEVC/AV1\nstreaming, simulcast, external services, Windows/macOS and release packaging\nremain required work; codec registration alone does not prove those paths.\n\nThe four unity/PCH combinations each pass two native-module WHIP streams and\nfour MP4/MKV recordings. The separate CMake reference run passes the same\nreceiver and recording checks against both cores:","chars":1954,"tokens_est":488,"sha256":"edd6337e428519b391a676e43106b4595e75675518dbc887611c2bdaef13094e"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-webrtc-whip-cargo-graph~3","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux WebRTC / WHIP Cargo graph"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#linux-webrtc--whip-cargo-graph","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux WebRTC / WHIP Cargo graph]\n| WebRTC unity | WebRTC compiled PCH | Module used at runtime | Native invocation | Cache hits / misses |\n| --- | --- | --- | ---: | ---: |\n| On | Off | Cargo | 56.62 s | 12 / 84 |\n| Off | Off | Cargo | 25.73 s | 94 / 4 |\n| On | On | Cargo | 29.10 s | 93 / 4 |\n| Off | On | Cargo | 25.17 s | 96 / 4 |\n| On | Off | CMake reference | 19.52 s | 95 / 0 |\n\nThese are complete native test invocations including runtime/recording checks,\nusing a shared host/cache in table order. They do not measure isolated compile\ntime, a cold cache or an intrinsic PCH performance difference. Each native\nmode compares its complete export set with the original CMake module before\nruntime; the reference row explicitly substitutes that original module.\n\nWith global HEVC disabled, a further native-module run passes the advertised\n`h264;av1` video/`opus` audio codec checks, two real H.264/Opus streams and four\nrecordings against both cores (55.70 seconds, 41 cache hits / 54 misses).\nThis does not exercise actual HEVC or AV1 media. The original WHIP service's\nown codec list remains unchanged; it advertises HEVC independently of the\noutput option, which is existing behavior rather than a newly fixed path.","chars":1267,"tokens_est":317,"sha256":"b388586783f142f122b27e3f6af94b566d9b21575aca24b70dd9b6f95a9fe877"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-webrtc-whip-cargo-graph-existing-","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux WebRTC / WHIP Cargo graph","Existing standalone WHIP tests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#existing-standalone-whip-tests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux WebRTC / WHIP Cargo graph \u203a Existing standalone WHIP tests]\nA focused test in the existing opt-in Cargo target `libobs` builds the unchanged\n`test_whip_rtp_timestamp.c` and `test_whip_host_os_name.cpp` sources using\n`validation::build_webrtc_tests`. RED `a425f96d8` fails at the missing builder;\nthe implemented graph passes all six RTP-clock cases and both POSIX host-name\ncases, with no skips, in 1.27 seconds. These helpers require neither libobs\nnor libdatachannel. They run once, not once per core, and do not establish\ncoverage of a Rust replacement. C and C++ language options are separate,\nmatching the original test source languages. Each executable has a bounded\n60-second runtime; cmocka filters are removed and explicit case totals are\nchecked. The helper graph currently supports Linux.\n\n```sh\nsoldr cargo test -p obs-studio-rust --features libobs-integration --test obs-tests-app -- native_libobs::webrtc_tests::original_whip_clock_and_host_tests_pass_without_a_core_or_sdk --exact --nocapture\n```\n\nThe selected native graph now contains 52 core executables, six VLC tests,\none graphics test and two standalone WHIP tests. It is not the complete OBS\ntest battery. A static inventory of this worktree's `test/cmocka/tests.d`\nfinds 238 literal executable declarations before evaluating platform/option\nconditions; recent reference CI runs contain 299 configured tests. That\ninventory is a gap-finding aid, not an evaluated replacement for CTest.\n\nThe consolidated helper test passes all eight cases again in 0.69 seconds,\nwith one unrelated integration test filtered out. The workspace remains at\nits existing cap of 25 Cargo integration binaries; no cap increase is needed.","chars":1736,"tokens_est":434,"sha256":"c443652e3ea0e06927ee68e42ee669f41731d11fc6772187b966b414b302e7c3"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-webrtc-whip-cargo-graph-existing-~2","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux WebRTC / WHIP Cargo graph","Existing standalone WHIP tests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#existing-standalone-whip-tests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux WebRTC / WHIP Cargo graph \u203a Existing standalone WHIP tests]\nA broader app/VLC/browser invocation exposed a harness error after 480.98\nseconds: it tried to copy its own integration executable only after lengthy\nnative compilation, and that path no longer existed following concurrent\nCargo rebuilds. All 104 core executable runs had completed before this\nfailure; no GUI or WHIP-stream pass is claimed from that invocation. The\nfixture now snapshots its executable at parent startup, before native builds,\nand deploys FFmpeg/NVENC helpers beside that snapshot later. Review and Clippy\npass for this staging change. The failed log is retained, and the full runtime\nbattery is rerun with no overlapping Cargo commands in this worktree.\n\nThe next broad invocation reaches renderer setup, then catches a second\nfixture bug: the WHIP guard required `OBS_BUILD_RECORD` to be explicitly set,\nwhile the parent enables recording implicitly for `OBS_BUILD_APP_GUI`.\nThe guard now uses the parent's existing `enabled` helper, preserving the\nsame recording requirement for both entry paths. That failed invocation\npasses all 104 core executions and both standalone WHIP executables first;\nit does not reach GUI, VLC/group-audio or streaming validation.\n\nAt the user's request, the remaining conversion and broad validation are\nbeing deferred. A final focused app/streaming attempt is interrupted after\nthe shared Soldr daemon loses its control connection; final Clippy also\nreports a daemon connection reset rather than a source diagnostic. The\nprevious completed Clippy/review runs and streaming matrix remain valid for\nthe code they exercised. The final guard change is reviewed locally, but a\nsuccessful final-head app run and lint rerun remain outstanding. No shared\nbroker or daemon is restarted. Keep the PR draft.","chars":1857,"tokens_est":464,"sha256":"77ac35efa73652a117744310505498103138bcddcd8b01f719f1fcd2bf86003c"},{"id":"docs-rust-port-cc-build#cargo-driven-obs-native-build-conversion-linux-webrtc-whip-cargo-graph-existing-~3","doc":"docs-rust-port-cc-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Cargo-driven OBS native build conversion","Linux WebRTC / WHIP Cargo graph","Existing standalone WHIP tests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md#existing-standalone-whip-tests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/cc-build.md","text":"[Cargo-driven OBS native build conversion \u203a Linux WebRTC / WHIP Cargo graph \u203a Existing standalone WHIP tests]\nDeferred work retains the original scope: remaining plugin graphs and full\nnative test coverage; Windows/macOS graphs and runtime; physical capture and\nhardware codec paths; SDK acquisition, standalone obs-sys publishing and\nrelease installation/packaging; graph-wide unity/PCH controls and controlled\nfull-app performance measurements. This checkpoint is not the completed\nCMake replacement and must not be merged as one.","chars":532,"tokens_est":133,"sha256":"7d4a009ecac6890779f3a03734f33de1c70560933ff71bd6b892be48d94551f7"},{"id":"docs-rust-port-conflict-hotspots#shared-registration-conflicts","doc":"docs-rust-port-conflict-hotspots","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Shared registration conflicts"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/conflict-hotspots.md#shared-registration-conflicts","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/conflict-hotspots.md","text":"[Shared registration conflicts]\nOracle ports register complete-source extracts in\n`rust/obs-c-oracle/oracle.d/<output-stem>.list`, one extraction per file:\n\n```text\nhotkey_register.inc|libobs/obs-hotkey-register.c.h|auto\n```\n\nThe fields are the output filename, repository-relative source path and PCH\nmarker. `auto` uses the existing libobs/graphics PCH selection; an explicit\n`#include \"libobs/build/example.pch.h\"` strips that exact marker instead.\nExtraction still uses the original source and the same `#line` directive.\nDo not append complete-source registrations to `build.rs`. Wrapper `.c` files\ncontinue to be discovered from `oracle/`; field adapters keep their discovery\nrule. Special multi-function extracts and transformations remain in the script.\n\nThe build watches the fragment directory, including additions and removals,\nand each source. Its native input hash includes fragment names and contents,\nthe reader and every selected source. Duplicate outputs, malformed fragments\nand paths outside the repository fail the build rather than omit an oracle.\nThe Utilities test category checks entry discovery, editing, removal and invalid\nregistrations; the Python lint checks reject new shared extraction blocks.\n\nTwo native registration snapshots are mechanical slices of the canonical graph:\n`headless_characterizations_expected.json` and `portal_output_expected.json` in\n`rust/obs-build/tests/native/registration/`. After editing their graph entries,\nregenerate them with:\n\n```sh\nuv run ci/native_expectations.py --fix\n```","chars":1537,"tokens_est":384,"sha256":"9095590d4b9966846dc3ad8e5990b92bab3a3db93719a7a58b1151070a2c38c7"},{"id":"docs-rust-port-conflict-hotspots#shared-registration-conflicts~2","doc":"docs-rust-port-conflict-hotspots","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Shared registration conflicts"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/conflict-hotspots.md#shared-registration-conflicts","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/conflict-hotspots.md","text":"[Shared registration conflicts]\nRunning without `--fix` checks for drift; the same check runs in `./lint`'s\nPython self-tests. The selected cases, array order, complete target/test fields\nand independent Rust host-selection/count assertions are preserved. A missing\ncanonical case is an error. Do not hand-merge these snapshots. `ci/ai_rebase.py`\nresolves the canonical graph first, checks that source resolution, regenerates\nconflicted snapshots and stages them. Generated-only conflicts need no model;\ninvalid graph JSON or missing cases refuse the rebase. Other expected files\nremain independent fixtures and are outside this regeneration allowlist.\n\nThe canonical graph's independent-fragment migration is tracked separately in\nPR #4655. Until it lands, a graph conflict still needs source resolution before\nsnapshot regeneration. README rows and unity groups also remain shared files.\n\nMeasurements for Refs #4896 were captured on 2026-11-17 UTC at master\n`21d62feeb8010da3a1b1de85206e71bd4018953e`, using\n`git log origin/master --since=2026-11-01 --format= --name-only` and\n`git merge-tree --write-tree --name-only` on 36 pairs of current heads of PRs\n#4915, #4920, #4921, #4922, #4925, #4931, #4933, #4935 and #4939.\nThere were 9 conflicting pairs: all 9 hit `obs-c-oracle/build.rs`, and 8 also\nhit `libobs/build/libobs.graphics+.h.c`. #4920/#4922 hit only the oracle script.\nNovember churn was 244 commits for `rust/README.md`, 210 for `test-graph.json`,\n143 for the core-source unity group, and 50 for the oracle script. Current heads\nalready include mechanical rebases, so this is a lower bound on past conflicts.\nReplaying #4931's pre-rebase head `e5399c639334b01325afd0e6a114ae88ac13d8ce`\nagainst master `aace99f022e7` reproduces the reported graph and both snapshot\nconflicts. The fix removes the whole-source oracle append point and replaces\nmanual recovery for those two snapshots with deterministic regeneration. It does\nnot claim to eliminate the remaining graph, unity-group or README conflicts.","chars":2013,"tokens_est":503,"sha256":"eeff37c63fbe5b73a4f79be5efd418e9c564b762d8db5750968c0b5e4d7481a9"},{"id":"docs-rust-port-control-api#control-api","doc":"docs-rust-port-control-api","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["Control API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md#control-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md","text":"[Control API]\nExtend obs-mcp; preserve existing tool names, successful text/image payloads,\nheadless stdio and the unchanged C++ obs-websocket plugin. New tools use\n`domain_verb`: `vcam_start`, `vcam_stop`, `vcam_status`, `vmic_status`,\n`media_restart`, `media_status`, `stats_get`, `stats_reset`, `wait_for`,\n`pipeline_dump`.","chars":326,"tokens_est":82,"sha256":"bf6edd2c640b85c314161b3c37bdf1991f3c58216087ca16327a7e11ee510245"},{"id":"docs-rust-port-control-api#control-api-contract","doc":"docs-rust-port-control-api","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["Control API","Contract"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md#contract","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md","text":"[Control API \u203a Contract]\nTypedTool declares serde/schemars input/output structs, NAME and ANNOTATIONS.\nInputs reject unknown fields and default optional fields. The Tool adapter\npublishes inputSchema/outputSchema and returns structuredContent alongside JSON\ntext (and screenshot image content). The committed schema snapshot must match\nschemas generated from the registered types. Backend additions use request and\nresponse structs, never positional multi-argument methods.\n\nMalformed requests and typed arguments are JSON-RPC errors. Domain failures\nreturn isError and ToolError {code, category, message, retryable}, using\nobs-websocket v5 codes: 600 ResourceNotFound, 207 NotReady, 604 InvalidResourceState\nand 702 RequestProcessingFailed. Categories are independent of numeric ranges.\nRead operations have readOnlyHint; start/stop are idempotent.","chars":849,"tokens_est":212,"sha256":"2ecdfb3e6584f61dcb21790564f641363d7ddb95950b0215d100480a04815314"},{"id":"docs-rust-port-control-api#control-api-state-and-measurements","doc":"docs-rust-port-control-api","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["Control API","State and measurements"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md#state-and-measurements","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md","text":"[Control API \u203a State and measurements]\n`wait_for {condition, timeout_ms}` first checks, then waits within the deadline;\nit returns {satisfied, elapsed_ms, last_value}. Condition is a typed enum:\nOutputState {output,state}, SourceActive {name}, MediaState {name,state},\nStatAtMost {metric,value}. Start accepts optional wait for bounded auto-wait.\nMedia uses obs_source_media_*; vcam uses virtualcam_output and its private\nproc_handler. stats_get reports per-stage render/vcam/vmic {live,\nlatency_min_ns, latency_max_ns, frames_total, frames_dropped, xruns}, render\ncounters and {av_offset_ms, measured_from}. Unmeasured values remain unavailable;\nqueue estimates never masquerade as end-to-end measurements. stats_reset defines\na new counter baseline. pipeline_dump reports the current graph.","chars":792,"tokens_est":198,"sha256":"37769ab6853b5ff48858000d6fb76d51ada81f90a51248e353444a70c8f6cefc"},{"id":"docs-rust-port-control-api#control-api-attachment","doc":"docs-rust-port-control-api","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["Control API","Attachment"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md#attachment","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md","text":"[Control API \u203a Attachment]\nA loadable in-app module serves the same newline-delimited JSON-RPC Server on\n$XDG_RUNTIME_DIR/obs-studio-rust/control.sock (0600). It uses the running OBS\ninstance; headless stdio still owns its own instance. `--mcp-attach [socket]`\nproxies stdio to that socket. Socket ownership and cleanup follow module\nlifecycle. OS code stays in src/platform or src/ffi. Windows named pipes require\na follow-up; unsupported attachment returns a clear error.","chars":473,"tokens_est":118,"sha256":"1306f82128aace7b4c1229b9403c2e733cfd3a4eaf63634be9f514c9e8b94a68"},{"id":"docs-rust-port-control-api#control-api-delivery","doc":"docs-rust-port-control-api","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["Control API","Delivery"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md#delivery","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md","text":"[Control API \u203a Delivery]\nParent #4444 has ordered native sub-issues: #4445 typed tools/errors/schema,\n#4446 device/media/stats, #4447 waiting, #4448 socket/module/proxy, #4449 fluent\nRust client and ci/vcam_av_sync.py MCP transport. Each slice targets master\nfrom a fresh infra/control-api-* branch with RED then GREEN shared MCP tests.\nThe client reuses server types; Python retains websocket and adds --transport\nmcp plus fallback. Real GUI/device validation runs only in bosn containers.","chars":490,"tokens_est":122,"sha256":"e3b361807f5d7811d04c7476227b371d35da0a586cfd88b0a4e94f70bb05a4a6"},{"id":"docs-rust-port-control-api#control-api-attach-to-the-application","doc":"docs-rust-port-control-api","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["Control API","Attach to the application"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md#attach-to-the-application","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md","text":"[Control API \u203a Attach to the application]\nBuild `soldr cargo build -p obs-mcp-module` and install the resulting\n`libobs_mcp_module.so` in OBS's normal module search path. The module binds\n`$XDG_RUNTIME_DIR/obs-studio-rust/control.sock` with mode 0600 in a private\ndirectory. It shares the app's libobs and stops its worker on frontend scripting\nshutdown, before scene cleanup (EXIT is a fallback). It never starts a second\nOBS instance or changes the application's global coordinate mode.\n\n`obs-studio-rust --mcp-attach [socket]` relays stdio to that instance. The same\nnewline JSON-RPC Server handles both transports. At most 32 clients share the\ncontrol thread; requests are serial, bounded to 16 MiB per buffered frame.\n`wait_for` blocks the control thread, while OBS render/audio threads continue.\nWindows named pipes are unsupported pending #4455.\n\nFor headless CI use `obs-studio-rust --mcp-listen [socket]` (native build).\nKeep its stdin open for the test's lifetime; EOF stops the socket and libobs.\nThe attached backend resolves frontend scenes and output names on each call,\npreserves coordinate settings, and queues scene changes through the graphics\nthread so the frontend's UI mutation path cannot block shutdown.","chars":1226,"tokens_est":306,"sha256":"bcd7829a18d9642288cdeb1e2be8dc54614897a306a1ee1745509f508f6c9b37"},{"id":"docs-rust-port-control-api#control-api-clients-and-the-a-v-probe","doc":"docs-rust-port-control-api","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["Control API","Clients and the A/V probe"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md#clients-and-the-av-probe","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/control-api.md","text":"[Control API \u203a Clients and the A/V probe]\n```rust,ignore\nlet obs = obs_mcp::client::Client::attach(Default::default())?;\nobs.vcam().start(obs_mcp::tools::control::StartInput {\n    wait: true, ..Default::default()\n})?;\nobs.wait_for(condition).timeout_ms(5000).call()?;\n```\n\n`uv run --script ci/vcam_av_sync.py measure --transport mcp --mcp-socket PATH`\ncreates a uniquely named media probe in the program scene, waits for playback,\nstarts independent ffmpeg v4l2/PulseAudio capture, restarts the clip and reports\nA/V offset, per-path latency and `stats_get`. `source_remove` cleans up the probe.\n`--transport auto` (default) falls back to MCP only when the websocket connection\ncannot be opened. `--transport websocket` preserves the original path. Auth and\nprotocol failures are surfaced rather than retried with a second transport.\nCapture timing is relative to the media restart response wall clock; the server\nkeeps end-to-end offset null until an independent capture probe measures it.\nRun actual device capture only inside bosn. No GUI interaction is required.","chars":1065,"tokens_est":266,"sha256":"b82559a2769c575c98bec4645c6c3896a678a573aed4b4f9ffdc48bb080ac990"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#coordinating-work-issues-claims-and-pull-requests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests]\nMany contributors here are AI agents working in parallel, including the\nmaintainer's own automated runs. Every rule below exists because its absence has\nalready cost duplicate work: two PRs for the same issue (#115/#119,\n#116/#118, #121/#123), five PRs superseded by a bot run porting units another\nagent had announced, and a PR merged into a feature branch instead of\nmaster (#68). Read [testing-policy.md](testing-policy.md) for *how* to port;\nthis document covers *who does what, and when*.","chars":547,"tokens_est":137,"sha256":"634bc35327ce0c92586526edbeb5a59395b2621b333d94fd5c7f28cf581a44c2"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-1-before-starting-anything","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","1. Before starting anything"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#1-before-starting-anything","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 1. Before starting anything]\n1. Search for existing work:\n   - open PRs: `gh pr list --repo obs-rust/obs-studio --search \"<unit or topic>\"`\n   - the issue and its comments, including claim comments\n   - the tracking issue's checklist (#4 lists the trackers)\n2. If someone has claimed it and the claim is fresh (see 3), pick something\n   else, or comment offering help. Do not open a parallel PR.\n3. If there is no issue yet, file one first (section 5) and claim it.","chars":520,"tokens_est":130,"sha256":"4de9986176783fc4a33f62490001375188c63b4e12d8057c544884a99671d9fa"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-2-claiming","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","2. Claiming"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#2-claiming","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 2. Claiming]\nThe org-wide rules, commands and the definition of Ready are in\n[WORKFLOW.md](https://github.com/obs-rust/.github/blob/master/WORKFLOW.md); the claim bot is the org's reusable workflow\n(`.github/workflows/claim-bot.yaml` calls it). In short:\n\n- Only an issue labeled `ready` can be claimed for implementation (`P0`\n  issues never wait). An underdefined one is researched first: comment\n  `Claiming: investigation`, then `/ready` once it meets the definition of\n  Ready. Maintainers (and the coordinator) triage new issues with `/ready` or\n  `/investigate`.\n - Comment on the issue: `Claiming: <item>` followed by a short numbered plan\n  (one unit per issue, one to three similar issues per PR, a big one alone; a call-site-wide warning class is one unit in any number of\n  directories, see section 4) and when you expect to open the first PR.\n - The claim bot then **assigns you** and reacts \ud83d\ude80 to your comment; you don't\n  need any rights. It replies only to refuse: an issue that is not Ready, is\n  blocked by an open issue, waits on a decision or is claimed by someone\n  else, a takeover of a claim that isn't stale, or a `/reassign` from a\n  non-maintainer. Automated runs skip issues that are assigned or have an\n  open PR.\n - On a tracking issue, claim one checklist item, not the whole issue.\n - Claim only what you are working on now. There is no per-account limit\n  (several agents may share one account); stale claims expire (section 3).\n - **Feature issues with open questions:** answer each open question in the\n  claim comment under **Decisions:** (the default you will build and why),\n  and order the PRs so the first one does not depend on an unresolved\n  answer. A question with no safe default is posted as **Decision needed:**\n  on the issue, and the work that depends on it waits for an answer. Use it\n  only for that; a question with a safe default goes under **Decisions:**.","chars":1962,"tokens_est":490,"sha256":"465c02c1f5919efa7bcb0112b85a36812489922153c23bf562d5c1ff46528f3d"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-2-claiming~2","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","2. Claiming"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#2-claiming","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 2. Claiming]\n- **Open decisions:** a line that starts with `Decision needed:` (bold or a\n  heading marker before it is fine) makes the claim bot add the\n  `decision-needed` label (\ud83d\ude80, silent), from anyone. From the claimant it\n  also counts as `Blocked:` (section 3). Only a maintainer clears it, with a\n  `Decided:` or `Decision:` comment (first line) or by removing the label;\n  nobody else's progress and no sweep removes it. That answer also clears\n  `human-review-needed`, and on a blocked claim it removes `claim-blocked`\n  and mentions the claimant with the decision quoted, so the work resumes\n  (#2212). The coordinator (obs-coordinator skill\n  \u00a73b) researches each open decision every tick: it answers with `Decided:`\n  when the rules, docs or earlier decisions settle it, and otherwise moves\n  the issue to `human-review-needed`, the list that waits on the human\n  maintainer. The list of open decisions is\n  [issues labeled `decision-needed`](https://github.com/obs-rust/obs-studio/issues?q=is%3Aopen+label%3Adecision-needed+sort%3Acreated-asc),\n  oldest first. Non-public work never posts `Decision needed:` on a public\n  issue; use a general `Blocked:` reason.","chars":1228,"tokens_est":307,"sha256":"77ab8312d1c3ca4a78e7d922026292d1986123d10c9f7431f706b417f416a1f3"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-3-keeping-or-releasing-a-claim","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","3. Keeping or releasing a claim"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#3-keeping-or-releasing-a-claim","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 3. Keeping or releasing a claim]\n- A claim goes stale after a period with no progress: no comment from the\n  claimant on the issue, and no commit, comment or review on an open PR they\n  opened that references it (a draft counts).\n\n  | Issue | Stale after |\n  |---|---|\n  | normal | **24 hours** |\n  | labeled `P0` or `critical` (crash, data loss, broken release or CI-blocking; maintainers set it) | **8 hours** |\n  | labeled `claim-blocked` (the claimant set it; see below) | **7 days** after the last `Blocked:` comment |","chars":578,"tokens_est":144,"sha256":"ad0a228122e75b2354e0636678d17cdc43fa7c0a8665880b4e9800a1bf796ab7"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-3-keeping-or-releasing-a-claim~2","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","3. Keeping or releasing a claim"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#3-keeping-or-releasing-a-claim","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 3. Keeping or releasing a claim]\nThe hourly sweep then unassigns the claimant, without a comment. Anyone may take\n  a stale claim by commenting `Taking over stale claim from @x`; the bot\n  accepts it (\ud83d\ude80) only if the claim is stale. Commits on the old draft PR stay\n  available: carry them over with `Co-Authored-By` (section 6).\n- When the work waits on something you don't control (a maintainer\n  decision, another PR, coordinated non-public work), comment\n  `Blocked: <reason>` (or `/blocked <reason>`). Only the claimant can; the bot\n  adds `claim-blocked` (\ud83d\ude80) and the claim lasts 7 days from that comment. A\n  new `Blocked:` comment renews it; a takeover in the meantime is refused.\n  A claimant's `Decision needed:` comment (section 2) blocks and renews the\n  same way.\n  Keep the reason general (\"waiting on a maintainer\", \"waiting on #N\",\n  \"waiting on non-public work\"). Any other progress (an issue comment, a\n  commit, comment or review on your PR) removes the label and the normal\n  timer applies again, as do a release, handoff or `/reassign`. When the\n  7 days end without a renewal the sweep removes both labels, silently.\n- Maintainers (owner, member, collaborator) can move any claim with\n  `/reassign @user`. The bot leaves issues labeled `claim-locked` alone;\n  `claim-locked` wins over `claim-blocked`.\n- To stop, comment `Releasing <item>` and link any partial branch; the bot\n  unassigns you (\ud83d\ude80). To hand the claim to someone instead of dropping\n  it, name them in the same comment \u2014 `Releasing <item> \u2014 handing it to\n  @user`, `Handing <item> over to @user`, `It's yours, @user` or\n  `/handoff @user` \u2014 and the bot assigns `@user` instead (\ud83d\ude80), so nobody\n  else can take the item in between.","chars":1767,"tokens_est":442,"sha256":"90afc8ebf53bf554f4113a811327f3c389377817c138217bc06d9829dbb2b2c9"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-4-pull-requests","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","4. Pull requests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#4-pull-requests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 4. Pull requests]\n- **Base is `master`.** A stacked PR starts its description with\n  `> **Stacked:** builds on #N; the new commits are \u2026` and is retargeted to\n  master before merge. Check the base before asking for a merge.\n - **One unit per PR.** Branch names: `port/<unit>`, `fix/<issue>-<topic>`,\n  `test/<unit>`, `infra/<topic>`.\n - **Batch one to three similar issues into one PR.** A worker takes up to\n  three issues that share a platform or an area (crate, plugin, workflow,\n  test binary) and lands them as one PR, a RED then GREEN commit pair per\n  issue, `Refs` naming each. Each issue stays one unit for review and\n  revert; the batch only shares the PR, queue and master-push runs, so it\n  costs a third of the CI. A big issue (a large port or subsystem such as\n  the CEF work, `size:L` or larger) and breakage that blocks others go\n  alone. See the `obs-worker-loop` skill \u00a72.","chars":945,"tokens_est":236,"sha256":"5ffb4eed96c224b9d2405f6eae9f9925d6e42a7675031b1d9620ee8d4bf29c27"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-4-pull-requests~2","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","4. Pull requests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#4-pull-requests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 4. Pull requests]\n- **Mechanical warning work is one PR per warning class, in any number of\n  directories.** A call-site-wide compiler warning (#516) is a single class:\n  fix it in one PR, with the flag that surfaces it removed in the same change,\n  and put a findings table grouped by directory in the description so the diff\n  can still be reviewed in slices. A per-directory series is not a rule that\n  appears anywhere else in these docs, it costs a full `Pull` run (~35 min)\n  plus a merge-queue run per directory, and every flag-list edit invalidates\n  the compile cache (#2689). Measure the class with\n  `uv run ci/warning_findings.py --compdb <tree compdb> --drop <the -Wno-* pin>`:\n  it replays only the affected translation units with `-fsyntax-only` and\n  prints the findings grouped by directory, which is both the RED evidence and\n  the inner loop. The default `--language c` keeps its C units; add\n  `--language cxx` (or `all`) for a C++ class such as the frontend's, whose\n  units the C-only selector filters out. The limits do not move \u2014 explicit\n  casts or widened types\n  only, no behaviour change, no per-file `-Wno-*`, never an existing C test or\n  public header, and the pin goes away in the same PR as the fixes.\n  **A PR lane's tree is not the whole set.** Many plugin and platform sources\n  compile only in the app builds (#2678, #2710), so a pin-drop that is clean on\n  a Tier 2 tree can still fail a `Scheduled` run. Enumerate the app's C units\n  from its own build tree \u2014 configure only, seconds, no compile:\n  `uv run build-aux/appimage/build.py --steps version,configure`, then\n  `ninja -t compdb` in `build_ubuntu/` (or the app build's volume) and replay\n  that compdb. Vendored trees the tree exempts with a target-scoped `-Wno-*`\n  (`librtmp`, `libcaption`) report nothing while their pin is in the flag\n  list; re-run with `--drop` on it to check them.","chars":1940,"tokens_est":485,"sha256":"1419fb21eb7876e87060d599271efba11d75fbadba967a94495405ca2bed0e59"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-4-pull-requests~3","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","4. Pull requests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#4-pull-requests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 4. Pull requests]\n- **Commit order:** characterization test (if the unit had none), then RED\n  (failing test or `todo!()` core), then GREEN. The PR description names the RED\n  commit, how it fails (test names or counts), and the GREEN result.\n - **Bug fixes need a failing test first.** If the bug needs live services\n  (PipeWire, ScreenCaptureKit, a server), factor the decision into a small\n  plain-C or Rust function and test that (as #109 did).\n - **Rebase on origin/master when you start.** Before claiming, coding or\n  reviewing, run `git fetch origin && git rebase --autostash origin/master`\n  so the work starts from current master. Later master changes are handled\n  by the merge queue (below).\n - **PR CI is the merge gate.** Open the PR (a draft is fine) as soon as the\n  RED test exists; a red CI run on a PR is expected. The local gate\n  (AGENTS.md) is recommended, not required. Complete self-reported client gates\n  and verified org-member author/final signer allow base-owned PR admission;\n  forks, non-members, unverified heads, invalid/partial proofs and API/verifier\n  errors run real selected checks, including all-six-target clippy/Dylint.\n  Stamp first, then sign final HEAD. Strict client enforcement is opt-in. Do not\n  build fork or self-hosted CI to pre-validate PRs. Local errors from your\n  environment (soldr permissions, disk, Docker, host packages):\n  [troubleshooting.md](troubleshooting.md).\n  For a focused CI/configuration bug fix, local RED evidence plus a separate\n  GREEN commit is sufficient: push both together when ready rather than\n  requiring a remote RED run. Record both commands/results in the PR. This\n  exception changes push timing, not the RED \u2192 GREEN requirement or the\n  required gate. Documentation-only updates do not need RED \u2192 GREEN tests.","chars":1850,"tokens_est":462,"sha256":"9c51dd381e7d90941da31217239bc74914305b094d57cba14098686067d1e6fa"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-4-pull-requests~4","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","4. Pull requests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#4-pull-requests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 4. Pull requests]\n- **Merge queue:** master merges go through GitHub's merge queue. Queue a\n  green PR with `gh pr merge <N>` (or the \"Merge when ready\" button); the\n  queue reruns PR CI on the merge result with current master, and the\n  required `CI Gate \u2705` check decides. You do not need to rebase by hand for\n  unrelated master changes; rebase only when GitHub reports a conflict.\n  The coordinator (obs-coordinator skill, \u00a72) acts for the maintainer and\n  also rebases a PR that was ejected from the queue, a stacked PR whose base\n  landed, a PR about to go in behind the queue head that touches the same\n  files, and a `docs/features.md` ledger conflict. A rebase changes the head,\n  so it drops a local-gate stamp and PR CI runs the full Linux suite again.\n - **Submodules move forward only.** PR CI fails when a PR moves a submodule\n  pointer (for example `plugins/obs-websocket`) to a commit that does not\n  descend from master's pointer, which usually means a stale checkout. Run\n  `git submodule update` before committing, or put `submodule:` in the PR\n  title for a deliberate move back. Locally: `uv run ci/submodule_direction.py origin/master`.\n - **Fork PRs:** Actions asks a maintainer to approve workflow runs only for a\n  first-time contributor's first PR (repository setting \"Require approval for\n  first-time contributors\"). Once a PR of yours has merged, later fork PRs\n  start CI as soon as they are opened. On a first PR, a maintainer approves\n  the run; ping one in the PR if it waits more than a few hours.\n - **User-facing features need one real run.** A change to UI, protocol\n  output or logging is not complete until the real app has run once with it\n  (its Tier 4 test, or by hand), and the PR shows the observed output. #846\n  closed with every test green while the light it added called llvmpipe\n  green (#929). Without such a run, use `Refs #N`.","chars":1932,"tokens_est":483,"sha256":"89ca16427b015bf7824bb2c3c9f153a356247deb44968a9290828111168ab1b6"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-4-pull-requests~5","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","4. Pull requests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#4-pull-requests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 4. Pull requests]\n- **User-visible changes get a ledger line.** A PR that changes what a user\n  sees or can do (behavior, a setting, UI, log output, a protocol field, a\n  platform or package, or a fix for a bug a user can notice) adds or\n  updates its line in [docs/features.md](../features.md) in the same PR.\n  CI, tests, ports with no change in behavior and refactors do not (#1250).\n - `Fixes #N` only when the PR completes the issue; otherwise `Refs #N`, and\n  tick the tracking-issue checkbox when it merges.\n - **Draft status:** mark the PR ready when it is ready. If you move a PR back\n  to draft, say why in a comment.\n - **Rebasing someone else's PR** (maintainers, and the coordinator acting\n  for them, may, for the rebases above and for mechanical fixups such as\n  lint or formatting): push with `--force-with-lease`, and name the replaced\n  head SHA in a comment.","chars":932,"tokens_est":233,"sha256":"69377fa5142f471b8804529fc9b2ce9e6eb23105f09595bdb5bfd3c730800f4a"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-5-filing-issues","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","5. Filing issues"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#5-filing-issues","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 5. Filing issues]\n- **Security bugs:** apply the tiers in\n  [SECURITY.md](../../SECURITY.md) (\"Two tiers\"). A high-risk one (a remote\n  party can reach it, or it leaks credentials) is not an issue: don't file,\n  claim or push it; report it privately and work on the private fork the\n  maintainers open on the advisory. If unsure, report privately. A low-risk\n  one is a normal public bug and may carry the `security` label.\n- **Bug:** use the bug template. Title `bug: <component>: <symptom>`; for a\n  security bug, name the class in the symptom (`bug: obs-ffmpeg:\n  use-after-free on seek`). Include file:line, a short excerpt, the class\n  (OOB read, UAF, overflow, \u2026), how it is reached, a proposed fix and a\n  failing-test sketch.\n- **Upstream OBS bugs:** add `(upstream #N)` to the title and credit the reporter.\n- **Port:** use the port template. Title\n  `rust: Port <path>.c to <crate>`; state the phase, its position in the\n  policy's port order, its dependencies and whether a characterization test\n  exists.\n- **Meta, tracker and parent issues:** every work item is its own issue,\n  linked as a native GitHub sub-issue of the parent\n  (`gh api -X POST repos/obs-rust/obs-studio/issues/<parent>/sub_issues -F sub_issue_id=<child id>`,\n  where the id is `gh api repos/obs-rust/obs-studio/issues/<child> --jq .id`).\n  Don't put the work into one big body as a tier list or checklist: nobody\n  can claim, measure or close one line of it. The parent body says what\n  the group is for, the rules that apply to every child and the suggested\n  order, naming the sub-issues by number. A finding that comes later\n  becomes a new sub-issue, not a new line in the parent (#3176).\n- **Oracle differences** (a stand-in behaving unlike libobs): their own issue,\n  fixed before any port relies on that oracle (#79, #84, #145).\n- **Feature ideas and questions** are not issues: post ideas in\n  [Discussions \u2192 Ideas](https://github.com/obs-rust/obs-studio/discussions/categories/ideas)\n  and questions in Q&A. Issues are for bugs and claimable port or task work;\n  an idea becomes an issue once it is agreed and someone can pick it up.","chars":2181,"tokens_est":545,"sha256":"b6d88255bd7e836e0fad6a4a5fcc16ee8997e43795c88f59c666dbab10654f22"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-6-collisions","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","6. Collisions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#6-collisions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 6. Collisions]\n- If two PRs address the same issue, the claimed one wins; without a claim,\n  the earlier one wins. The other author closes theirs with a link and offers\n  any useful pieces (tests especially). Maintainers carry those over with\n  `Co-Authored-By`.\n- Conflicting design choices between open PRs (for example U+FFFD substitution\n  vs. rejecting a path) go to the tracking issue under a **Decision needed:**\n  heading before either PR merges.\n\n## 7. Closing\n- When an issue closes, leave a comment: what fixed it, what is left, and the\n  follow-up issue for the rest.\n- A superseded PR is closed by its author (or a maintainer) with a link to the\n  replacement.","chars":728,"tokens_est":182,"sha256":"25ce9fc4a09f450e37b3d801b2624ccb89b08118cb9716b7f02d089b09c9acb1"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-8-master-branch-protection-dec","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","8. Master branch protection (decisions for #139, #692 and #699)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#8-master-branch-protection-decisions-for-139-692-and-699","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 8. Master branch protection (decisions for #139, #692 and #699)]\n`master` blocks force pushes and deletion, including for administrators.\n\nBy default, changes reach master through GitHub's merge queue (ruleset \"master\nmerge queue (#692)\", whose merge method is squash: each PR lands as one\ncommit). Queue a green PR with `gh pr merge <N>`. Workers and contributors\ndo not use `gh pr merge --admin` without explicit maintainer authorization\nunder the bypass policy below, and never push to master. The coordinator\nnever merges outside the queue, with `--admin` or otherwise.\nThe queue reruns PR CI on the merge result with current master, and the one\nrequired check is `CI Gate \u2705` (`ci.yml`). That job always reports: it\nrequires selected queue jobs to execute successfully regardless of trailers or\nhosted proofs. PR skips require the immutable-base per-gate contract or proven\npath scope; missing verifier, fallback work or selected queue legs fails it.\nThe cache janitor is maintenance and is excluded from this gate; see\n[the pre-work policy](../ci-tooling.md#pre-work-cache-maintenance-and-cancellation).\n\nWhy the queue and not rebase-and-merge per PR (#699): over a day of queue\nruns (58 runs, 37 PRs), 57 runs were green and one PR was removed for a\nfailed check, so a queued PR goes through on the first try. The delay came\nfrom 11 administrator merges that bypassed the queue: each moved master under\nit and rebuilt every queued group (up to 5 runs for one PR, about 65 minutes\nfrom queueing to merge against a 16-minute run). Requiring branches to be up\nto date instead would make every agent rebase and rerun CI after every merge,\nwhich gets slower with each agent added. So the queue is the normal path,\nand compiler/dependency caches (docs/ci-tooling.md) reduce rebuild cost while\nselected heavy checks always rerun.","chars":1883,"tokens_est":471,"sha256":"dcc2f4b0e7e18de4b624ec798f3d3c61e09bf7740de60610e312577fb9cc0f0f"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-8-master-branch-protection-dec~2","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","8. Master branch protection (decisions for #139, #692 and #699)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#8-master-branch-protection-decisions-for-139-692-and-699","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 8. Master branch protection (decisions for #139, #692 and #699)]\n**Maintainer bypass.** It belongs to the maintainer, or to a worker the\nmaintainer explicitly authorizes; never to the coordinator. The ruleset lets the repository admin role bypass it\nfor pull requests only (`gh pr merge <N> --admin --squash`; direct pushes\nstay blocked). It is for a maintainer landing a small, low-risk PR (docs, a\nbot or CI tweak) that should not wait for a CI run. It skips CI, and it moves\nmaster under every queued group, which then rebuilds. So bypass only when\nthe queue is empty (`gh pr list --search \"is:queued\"` shows nothing);\notherwise queue the PR and, if it must go first, jump it to the front,\nkeeping CI (#930 E2):\n`uv run --no-project --script ci/gh_graphql.py -f query='mutation{enqueuePullRequest(input:{pullRequestId:\"<node id>\",jump:true}){mergeQueueEntry{position}}}'`\n(the PR's own `CI Gate \u2705` must already be green; GitHub refuses a PR whose\nchecks are pending or failing).\n\nExplicit maintainer instructions to admin-merge authorize an agent to use\nthis exception; do not ask for the same authorization again. Recheck the\nqueue immediately before merging. If it has entries, use the queue and\njump-to-front path above to preserve their work. With an empty queue, a\nsmall docs or CI fix may use the authorized bypass. Run focused checks\nfirst; for a change to the workflow graph, wait for its PR `CI Gate \u2705` to\npass before bypassing the redundant merge-group run. Record the\nauthorization, queue state and validation in the PR. Authorization for one\nlanding does not grant a standing bypass for unrelated work.\n\nEach queue run's `CI Gate \u2705` job summary shows its wall time, runner time\nand attempt number (`ci/queue_report.py`); an attempt 2 or later is a\nrebuild. If rebuilds after bypasses show up there, tighten this rule.\n\nIn an emergency an administrator may set the ruleset's enforcement to\n\"disabled\", land the fix, and enable it again, saying so in the PR.","chars":2026,"tokens_est":506,"sha256":"3ae3788f96616594985d2b5dbff352be952f90802620ae53a8ff7d8fdc0413c0"},{"id":"docs-rust-port-coordination#coordinating-work-issues-claims-and-pull-requests-8-master-branch-protection-dec~3","doc":"docs-rust-port-coordination","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Coordinating work: issues, claims and pull requests","8. Master branch protection (decisions for #139, #692 and #699)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md#8-master-branch-protection-decisions-for-139-692-and-699","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/coordination.md","text":"[Coordinating work: issues, claims and pull requests \u203a 8. Master branch protection (decisions for #139, #692 and #699)]\nThe queue squash-merges, but the repository still allows merge commits\n(older history and an admin bypass may use them), so do not require linear\nhistory.\nReview this policy again if direct pushes are retired or the gate's CI\nreporting changes. Every PR still targets `master` as section 4 requires;\nGitHub branch protection cannot prevent an author from choosing another\nbase, so check the base before merging.","chars":531,"tokens_est":133,"sha256":"7aa2e9fe4331fd01efe584560f1a8a9c8d18af1d2008169be5c0f1d2cedcb641"},{"id":"docs-rust-port-ffmpeg-orientation-characterization#ffmpeg-orientation-metadata-selection-characterization","doc":"docs-rust-port-ffmpeg-orientation-characterization","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["FFmpeg orientation metadata selection characterization"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/ffmpeg-orientation-characterization.md#ffmpeg-orientation-metadata-selection-characterization","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/ffmpeg-orientation-characterization.md","text":"[FFmpeg orientation metadata selection characterization]\nPrerequisite #4431; Rust follow-up #4432. The unit is\n`ffmpeg_image_get_orientation` in `libobs/graphics/graphics-ffmpeg.c.h`.\n\nThe existing, unchanged `test/cmocka/test_image_exif_orientation.c` generates\n32 by 16 JPEG fixtures with four distinct color quadrants and EXIF orientation\nvalues 1\u20138, plus a JPEG with no EXIF block. It calls the public\n`gs_create_texture_file_data()` API and checks the resulting dimensions and\nfour corner colors. Thus it exercises metadata selection through real decoding,\nwithout exposing the static function or requiring a graphics backend.\n\nOn 2026-11-09, before extraction at b431a40b6da74ed753af4dc4faa0f3637ba2b5a5,\n`ctest --verbose -R '^test_image_exif_orientation$'` passed with each of\n`libobs-c-reference` and hybrid `libobs` selected through `LD_LIBRARY_PATH`.\nThe test also runs PNG and WebP cases; PNG EXIF orientations 2\u20138 skip on this\nFFmpeg version. No existing C tests or test graph registrations are changed.\n\nThe Linux Tier 2 container uses FFmpeg 8.0 (libavcodec 62.11.100, libavutil 60.8.100). This selects\n`!FFMPEG_HAS_EXIF_API` (libavcodec before 62.13.100). The JPEG decoder reports\nthe case-sensitive `Orientation` frame metadata for values 1\u20138; the no-EXIF\ncase exercises absence of metadata and display matrix. These public image\nfixtures do not independently test precedence when metadata and a matrix\ncoexist, lowercase metadata keys, or an undersized side-data allocation.\nThey do not exercise the FFmpeg 8.1 `av_exif_matrix_to_orientation` branch.\nThose limits must remain explicit when the Rust follow-up adds safe-core\nand differential coverage.","chars":1667,"tokens_est":417,"sha256":"eb9606abe0a0729dd7734991908844fc936bbaaf96b05ccc25d1a7e8dc992c18"},{"id":"docs-rust-port-ffmpeg-orientation-characterization#ffmpeg-orientation-metadata-selection-characterization~2","doc":"docs-rust-port-ffmpeg-orientation-characterization","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["FFmpeg orientation metadata selection characterization"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/ffmpeg-orientation-characterization.md#ffmpeg-orientation-metadata-selection-characterization","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/ffmpeg-orientation-characterization.md","text":"[FFmpeg orientation metadata selection characterization]\nAfter the verbatim extraction into `graphics-ffmpeg-orientation.c.h`, the same\ncommand passed against both libraries again: 20 cases passed and seven PNG\ncases skipped in each run. Every JPEG orientation case passed before and after.\nThe exported symbol lists of hybrid and C-reference libraries were identical\nbefore and after. The extracted block includes the existing small static\n`display_matrix_to_orientation` adapter, so alphabetical unity inclusion needs\nno forward declarations or changes to its Rust math dependency. Decoder\nselection, initialization, cleanup, and decode orchestration remain untouched.\n\nReproduction: configure the normal Linux Tier 2 tree with\n`OBS_BUILD_C_REFERENCE=ON` and `OBS_LIBOBS_BACKEND=HYBRID`, build `libobs`,\n`libobs-c-reference`, and `test_image_exif_orientation`, then run the CTest\ncommand above once per library with that library's directory first in\n`LD_LIBRARY_PATH`. The version branch is determined by the headers used to\nbuild libobs, not by running the same binary with a different shared library.","chars":1104,"tokens_est":276,"sha256":"67937f161c60a4fd2b2aa50e31f672f0b368683dbf75861b3cc69d50f90292a1"},{"id":"docs-rust-port-ffmpeg-orientation-characterization#ffmpeg-orientation-metadata-selection-characterization-pool-resume-on-2026-11-16","doc":"docs-rust-port-ffmpeg-orientation-characterization","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["FFmpeg orientation metadata selection characterization","Pool resume on 2026-11-16"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/ffmpeg-orientation-characterization.md#pool-resume-on-2026-11-16","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/ffmpeg-orientation-characterization.md","text":"[FFmpeg orientation metadata selection characterization \u203a Pool resume on 2026-11-16]\nResumed the earlier characterization and extraction on master\n`94fa7ce85868c3604cf8fd31a458a4cf641061c7`, using branch\n`test/4431-ffmpeg-orientation-pool`. Before extraction, the unchanged\n`test_image_exif_orientation` passed against both libraries again: 20 cases\npassed and seven PNG cases skipped in each run.\n\nRED commit `d73d4736f93b7790841256e985671099029dabfe` replaces orientation\nselection with a zero-returning stub. The same C test failed against both\nlibraries: JPEG and WebP orientations 2\u20138 failed (14 failures per library),\nwith wrong corner colors or unswapped dimensions. Six cases passed and\nseven PNG cases skipped. No C test was edited for this check.\n\nThe GREEN commit restores the original selection block verbatim in the\nextracted file, byte-identical to the earlier extraction at `73c84078d`.\nThe same CTest command passed against both libraries after extraction:\n20 cases passed and seven PNG cases skipped in each run. Before and after,\nthe hybrid and C-reference dynamic export lists were identical (1,768\nsymbols). FFmpeg remains 8.0, with libavcodec 62.11.100 and libavutil\n60.8.100; the coverage limits above still apply. No Rust, existing C tests,\npublic headers, test graph, or sibling image initialization/cleanup code\nchanged. Delivery is branch-only; no PR or auto-merge was created.","chars":1403,"tokens_est":351,"sha256":"8ce66d7239931cafe52566068cb8e819b514ba1dae9cb1707b22e99097ac95cf"},{"id":"docs-rust-port-fuzzing#scheduled-differential-fuzzing","doc":"docs-rust-port-fuzzing","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Scheduled differential fuzzing"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md#scheduled-differential-fuzzing","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md","text":"[Scheduled differential fuzzing]\nThe cargo-fuzz differential targets in `rust/obs-codec/fuzz/` compare the Rust\nports with the original C (via `obs-c-oracle`). They run nightly from a local\ncron job, not from GitHub Actions.\n\n| Target | Compares | Documented exclusions |\n|---|---|---|\n| `avc_diff`, `hevc_diff`, `av1_differential` | bitstream parsers | listed in each target's header comment |\n| `nal_diff` | `obs_nal_find_startcode`: C, Rust C ABI, safe Rust | NULL, near-zero and reversed ranges are not generated (C UB). Inputs sit inside a padded allocation at four alignments. |\n| `config_ini_diff` | `config_open_string`, section order and string lookups | Duplicate section names and keys are compared (uthash model, #681). File I/O and NULL handles are not exercised. |\n\nAMF has no Rust port yet. Add a target when it lands.\n\n## Requirements\n- Linux (the runner uses `flock`), `soldr`, `uv`, and a C toolchain for\n  `obs-c-oracle`.\n- The pinned nightly and cargo-fuzz:\n\n  ```sh\n  soldr rustup toolchain install nightly-2026-10-14 --profile minimal\n  soldr cargo install cargo-fuzz --locked\n  ```","chars":1104,"tokens_est":276,"sha256":"13c73d2a70f0bcf8ffb4bd08c3351a4b4c3817f39f1f0567835e5b8a0ef44fae"},{"id":"docs-rust-port-fuzzing#scheduled-differential-fuzzing-running","doc":"docs-rust-port-fuzzing","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Scheduled differential fuzzing","Running"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md#running","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md","text":"[Scheduled differential fuzzing \u203a Running]\n```sh\nuv run rust/tools/fuzz/run.py --state-dir ~/.local/state/obs-fuzz          # 1 h per target\nuv run rust/tools/fuzz/run.py --state-dir /tmp/f --seconds 60 --target nal_diff\n```\n\nThe runner builds every target, then runs each one in turn with\n`-max_total_time`, `-max_len=4096`, `-timeout=30` and `-rss_limit_mb=2048`. A\nfailing target does not stop the run. The runner exits 1 if the build or any\ntarget failed, and 75 if another run holds the state directory's lock.\n\nNightly cron entry (01:00 local time, all targets). Cron has a minimal\n`PATH`, so set one that finds `uv` and `soldr`:\n\n```cron\nPATH=/home/you/.cargo/bin:/home/you/.local/bin:/usr/local/bin:/usr/bin:/bin\n0 1 * * * mkdir -p $HOME/.local/state/obs-fuzz && cd $HOME/dev/obs-rust/obs-studio && git pull --ff-only -q && uv run rust/tools/fuzz/run.py --state-dir $HOME/.local/state/obs-fuzz >> $HOME/.local/state/obs-fuzz/cron.log 2>&1\n```","chars":950,"tokens_est":238,"sha256":"052a39ab11e57b93f93517c46493f2740f47eabd720e0fe9697fb7a005c3fbb1"},{"id":"docs-rust-port-fuzzing#scheduled-differential-fuzzing-state-directory","doc":"docs-rust-port-fuzzing","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Scheduled differential fuzzing","State directory"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md#state-directory","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md","text":"[Scheduled differential fuzzing \u203a State directory]\n- `corpus/<target>/`: the libFuzzer corpus, kept and grown across runs. Back\n  it up. Never delete it to \"fix\" a run.\n- `artifacts/<target>/`: crash, timeout and OOM inputs.\n- `runs/<UTC stamp>/`: `build.log`, one log per target, and `summary.json`.\n  The summary records HEAD, dirty files, toolchain, `rustc -V`, the cargo-fuzz\n  version, and each command with its exit code.","chars":427,"tokens_est":107,"sha256":"03a19bd3cd5d831f4a48a26a4f161c70ab5c15f6278c7fb5469f6e12b4ea3d5f"},{"id":"docs-rust-port-fuzzing#scheduled-differential-fuzzing-handling-a-finding","doc":"docs-rust-port-fuzzing","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Scheduled differential fuzzing","Handling a finding"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md#handling-a-finding","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/fuzzing.md","text":"[Scheduled differential fuzzing \u203a Handling a finding]\n```sh\ncd rust/obs-codec\nsoldr cargo +nightly-2026-10-14 fuzz run <target> <state>/artifacts/<target>/crash-...   # replay\nsoldr cargo +nightly-2026-10-14 fuzz tmin <target> <state>/artifacts/<target>/crash-...  # minimise\n```\n\nFind out whether the mismatch is a port bug or a harness bug before changing\nanything. For a port bug, file an issue with the minimised input and\nregression-test it in Tier 3. Exclude it from the target only with a comment\nthat links the issue.","chars":525,"tokens_est":131,"sha256":"0cdac20b78482fc5398cc3e5800c7e289df0c8fa394699ddfd57b913ad3aafb7"},{"id":"docs-rust-port-hybrid-build-validation#hybrid-default-validation-1587","doc":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid default validation (#1587)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md#hybrid-default-validation-1587","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md","text":"[Hybrid default validation (#1587)]\nImplementation PR: [#1588](https://github.com/obs-rust/obs-studio/pull/1588).\nThe developer default is hybrid libobs. Release approval remains pending;\nthis report does not waive release-criteria.md or authorize publication.\n\n## Build timing\n[Raw commands and measurements](benchmarks/hybrid-build-2026-10-20.json)\ncompare baseline `90e4edc41` with hybrid implementation `174109fad`. Both use\none Linux dependency image, GCC 15.2.0, Rust 1.98.1, CMake 4.2.3,\nRelWithDebInfo native code, release Rust code, and four compilation jobs on\na Ryzen 7 3700X. Each variant starts with a separate empty compiler cache and\nfresh output tree; crate downloads can be warm. Configuration is timed\nseparately. The baseline builds the two default libobs products (`libobs`,\n`libobs-with-rust`); the hybrid builds only production `libobs`.\n\n| Scoped libobs operation | Baseline | Hybrid |\n| --- | ---: | ---: |\n| Configure | 8.223 s | 7.544 s |\n| Fresh outputs and initially empty compiler cache | 11.406 s | 14.041 s |\n| No changes, median of three runs | 0.115 s | 0.120 s |\n| Touch generated configuration header, warm cache | 7.970 s | 5.995 s |\n| Append a comment to that header | 11.184 s | 5.779 s |\n\nThe fresh build was slower; the warm and edited-header rebuilds were faster\nin these samples. The shared host was busy (load averages are recorded), and\nthere is only one sample for each rebuild type. These figures cannot establish\na general build-speed improvement. They exclude frontend/plugins, packaging,\nimage setup and full-application build time. An earlier exploratory pass used\na shared compiler cache and is deliberately excluded from this comparison.\nThe raw child-CPU fields exclude detached cache-daemon work and are not total\ncompiler CPU measurements.","chars":1794,"tokens_est":448,"sha256":"a3e8a32490cf884c9cba948a7294fc602a9bcba2ea6dc7a8b069887fa33ffaa1"},{"id":"docs-rust-port-hybrid-build-validation#hybrid-default-validation-1587~2","doc":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid default validation (#1587)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md#hybrid-default-validation-1587","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md","text":"[Hybrid default validation (#1587)]\nTo reproduce, create baseline and hybrid source snapshots, mount them read-only\nas `/baseline` and `/source` in the recorded image, and use separate `/build`\noutput and compiler-cache directories for each variant. Execute the recorded\nconfigure/build commands. After the fresh build, run the same build three times;\nthen touch its generated `config/obsconfig.h` and rebuild. Finally append an\notherwise inert comment to that header and rebuild. Keep the same toolchain,\nprofile, job count and source snapshots; record host load and all outcomes.","chars":581,"tokens_est":145,"sha256":"722d2b8e37b38a347f999eb60d0c0023fc832c1148e1914940e2042346570e85"},{"id":"docs-rust-port-hybrid-build-validation#hybrid-default-validation-1587-compatibility-and-test-time","doc":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid default validation (#1587)","Compatibility and test time"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md#compatibility-and-test-time","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md","text":"[Hybrid default validation (#1587) \u203a Compatibility and test time]\n- The real Linux production and C-reference libraries export identical sets\n  of **1,766 symbols**. Their SONAMEs match. The Ninja graph confirms all\n  **61 selected ported C implementations** are absent from production and\n  present in the explicit reference.\n- With HEVC disabled, a separate real build exports **1,762 identical symbols**,\n  with no HEVC symbols leaking from the aggregate Rust archive.\n- The unchanged C suite registered **341 tests per backend**, with no failures\n  and the same three hardware-dependent skips. Loader-path checks verified\n  the C reference for OFF and production hybrid for ON. Wall times were\n  **392.31 s** and **390.62 s**, respectively. These are backend runs of the\n  same suite, not before/after test-speed evidence.\n- The full Rust workspace unit, differential and documentation tests pass.\n  The opt-in native integration category also passed with `libobs-integration`:\n  The normal native production entry point also built a hybrid with 1,766\n  exports and no C-reference output. The explicit pair ran\n  **59 unchanged C executables per backend** (118 runs), selected-library\n  loader checks, matching exports, data lifecycle and plugin checks. This run\n  disabled per-target native sanitizers; the separate CMake Tier 2 run kept\n  its existing sanitizer configuration.\n  An obsolete NVENC test requiring the installed C loader was updated to\n  require the production Rust loader and explicit C reference instead.\n- `./lint` passed after the platform/packaging fixes (60.5 s); subsequent native\n  validation fixes and final PR results are recorded on the PR.\n\nCompatibility test coverage has not been reduced to create a speed claim.\nOrdinary application builds avoid the C reference; an explicit compatibility\nrun still builds and exercises both implementations. No test-time reduction\nis established by these measurements.","chars":1937,"tokens_est":484,"sha256":"0962f0b7235856e6bc38648998d78f36aaa98b23b573dad830d628169dc51012"},{"id":"docs-rust-port-hybrid-build-validation#hybrid-default-validation-1587-packaged-application-and-remaining-release-eviden","doc":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid default validation (#1587)","Packaged application and remaining release evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md#packaged-application-and-remaining-release-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md","text":"[Hybrid default validation (#1587) \u203a Packaged application and remaining release evidence]\nA production glibc-2.28 AppImage built successfully through the existing bosn\n`appimage-228` task, including the unchanged C++ websocket plugin. Its first\nattempt encountered a compiler-cache daemon outage; the successful retry\nused four compilation jobs with caching disabled and reused completed objects.\nThis is functional build evidence, not a clean full-app timing comparison.\n\nThe AppImage passed the saved-profile scenario on Debian 13: screen capture,\ncamera and microphone reached streaming state and produced a recording. The\nrecording verifier decoded 437 frames at 320x240 (14.6 seconds) in the first run,\nfound no screen/camera freezes, and measured the 440 Hz microphone tone without\nsilence. A second run also passed and retained `/proc` maps proving libobs loaded\nfrom inside the extracted package. AppImage SHA-256:\n`218f8f17afd4eb51daebb913a51983778e4f27166abe5d1b4f849995e3d6584a`.\n\nThe unchanged websocket suite passed **206/206 checks**, exercising all\n**147 documented request types**, against the real executable extracted from\nthat artifact. Running the suite against the AppImage wrapper initially gave\nthree process/library false failures: its PID checks found the wrapper rather\nthan the OBS executable. No protocol assertions were weakened. The saved-profile\nscenario separately exercised the actual AppImage entry point. SRT reconnect\nchecks requiring a host ffmpeg with SRT support were skipped in that container.\n\nAn explicit C rollback build also linked successfully without the libobs Rust\narchive. Substituting that library into a copy of the same AppDir and rebuilding\nthe AppImage made the packaged saved-profile check fail with\n`packaged libobs does not contain the production Rust implementation`. This is\nthe negative control for the shipping-library regression; the C reference tests\nremain valid independently.","chars":1941,"tokens_est":485,"sha256":"56e5d1509539523c36e9903366896c824963221619bbc91dc06d06ca88ee188f"},{"id":"docs-rust-port-hybrid-build-validation#hybrid-default-validation-1587-packaged-application-and-remaining-release-eviden~2","doc":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid default validation (#1587)","Packaged application and remaining release evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md#packaged-application-and-remaining-release-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md","text":"[Hybrid default validation (#1587) \u203a Packaged application and remaining release evidence]\nVerification-only CI exposed two integration problems, now fixed: the macOS\nscript still explicitly requested the removed `libobs-with-rust` target, and\nFlatpak debug extraction corrupted the prebuilt Rust compiler's ELF libraries.\nThe compiler module now disables stripping and debug extraction, as described by\nthe [Flatpak build options reference](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html).\nLocal locked Cargo vendoring also succeeded and its generated configuration parsed.\nA further cold-CI run found rustup's welcome text in soldr's stdout before Cargo's\nTOML. Preparation now separates raw console output, extracts source configuration,\nand validates the rewritten TOML before entering Flatpak. A focused cold-output\nregression failed before that fix and passes afterward.","chars":902,"tokens_est":226,"sha256":"cd807bc1646f2cd36af6a10f42f2628ac09de4167a2a33a3a155fd5a465a753b"},{"id":"docs-rust-port-hybrid-build-validation#hybrid-default-validation-1587-platform-ci-evidence","doc":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid default validation (#1587)","Platform CI evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md#platform-ci-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md","text":"[Hybrid default validation (#1587) \u203a Platform CI evidence]\n[PR CI 39531640340](https://github.com/obs-rust/obs-studio/actions/runs/39531640340)\npassed at implementation commit `4ea443714da0befcaf79418d5046e8fb6766e1e4`,\nincluding the Linux shards, macOS/Windows Tier 2, Rust tests and cross lint.\nThe platform logs establish:\n\n| Compatibility host | Tests per backend | Matching exports | C / hybrid wall time |\n| --- | ---: | ---: | ---: |\n| Windows x64 | 165 | 1,794 | 77.40 / 77.09 s |\n| macOS arm64 | 191 | 1,877 | 124.13 / 124.10 s |\n\n[Verification-only run 39531699676](https://github.com/obs-rust/obs-studio/actions/runs/39531699676)\nbuilt Linux, Windows x64/arm64 and macOS x64/arm64 packages, the AppImage and\noffline Flatpak. Native packaged startup passed on both Windows and both macOS\narchitectures. The first attempt also passed AppImage checks on NixOS, Arch and\nUbuntu. Two independent failures require targeted retries: the known real-time\nVLC audio timing flake [#838](https://github.com/obs-rust/obs-studio/issues/838)\nin the C-reference Linux shard, and an AlmaLinux ImageMagick mirror download\nfailure before its bundle scenario. The targeted C-reference shard retry passed\nwithout code changes. AlmaLinux's targeted retry also passed its bundle and\nfirst-start scenarios. The verification workflow finished **successfully** after\nthese two targeted retries; no assertions were changed to accommodate either\nfailure. It ran with `verify_only=true` and published no release.\n\nHardware recording performance and fourteen consecutive daily stability\nbuilds remain separate release requirements. The checked-in release evidence\nremains unapproved, and both publication workflows fail closed until its review\nis recorded.","chars":1737,"tokens_est":434,"sha256":"d9db5d0ea2cfd4bc59e88fe70682e4a9206177ddae0ae21cde0366ae3baf726e"},{"id":"docs-rust-port-hybrid-build-validation#hybrid-default-validation-1587-platform-ci-evidence~2","doc":"docs-rust-port-hybrid-build-validation","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid default validation (#1587)","Platform CI evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md#platform-ci-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build-validation.md","text":"[Hybrid default validation (#1587) \u203a Platform CI evidence]\nThe native-engine compatibility run additionally exposed stale test-build\nmetadata: a missing output-delay accessor stub and an old 52-test expectation\nfor a manifest that now lists 59. The metadata/count are synchronized without\nchanging C test bodies. Static archives precede shared dependencies, and the\nselected libobs remains a declared runtime dependency even for standalone C\ncharacterizations with no core imports. Explicit comparison helpers reject\nidentical backend paths, preserving C-versus-Rust validation.\n\nThe unrelated Windows `cm_print_error` link failure is fixed upstream by\n[#1591](https://github.com/obs-rust/obs-studio/pull/1591), tracked as\n[#1580](https://github.com/obs-rust/obs-studio/issues/1580). Final platform\nverification incorporates that upstream fix rather than rewriting the C test\nin this migration.","chars":894,"tokens_est":224,"sha256":"fc3cd2c4bf49f86170df4a9313f258940c41977fd6753a8e79f94d85407db198"},{"id":"docs-rust-port-hybrid-build#hybrid-application-build","doc":"docs-rust-port-hybrid-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid application build"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md#hybrid-application-build","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md","text":"[Hybrid application build]\nThe default `libobs` is one shared library containing completed Rust ports and\nremaining legacy C/C++. Frontend, plugins, installation and packaging use it\nthrough the unchanged `OBS::libobs` target and public C headers. Rust and its\npinned toolchain are required. There is no automatic C fallback.\n\nUse the normal platform preset and build commands. `OBS_LIBOBS_BACKEND=HYBRID`\nis the default. `OBS_BRAND_RUST=ON` selects OBS-Studio-Rust identity independently\nof implementation; the deprecated `ENABLE_RUST_LIBOBS` input supplies the initial\nbranding default for existing callers. For an existing build cache, set branding\nexplicitly when changing it.","chars":680,"tokens_est":170,"sha256":"c23816727d10b82c20273f6edb5ae3c865fa5e9401dedd3f149b8af24ac776f9"},{"id":"docs-rust-port-hybrid-build#hybrid-application-build-compatibility-tests-and-temporary-rollback","doc":"docs-rust-port-hybrid-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid application build","Compatibility tests and temporary rollback"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md#compatibility-tests-and-temporary-rollback","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md","text":"[Hybrid application build \u203a Compatibility tests and temporary rollback]\n`./unittest` retains Rust unit/differential coverage and the unchanged C tests\nagainst both implementations. The Tier 2 harness explicitly configures:\n\n```sh\ncmake --preset ubuntu-ci -DOBS_BUILD_C_REFERENCE=ON\ncmake --build build_ubuntu --target libobs libobs-c-reference cmocka-tests\n```\n\nThe C reference is excluded from `all` and never installed. It has the same\nfilename and ABI identity in `build_ubuntu/libobs-c-reference`; the test harness\nselects that directory for `OFF`, and production hybrid libobs for `ON`, verifying\nwhich library the loader actually chose. Unported objects are shared, and both\ncomplete test suites and export comparisons remain required on supported hosts.\n\nTemporary first-release rollback uses a separate build directory configured with\n`-DOBS_LIBOBS_BACKEND=C`. It builds and installs the original C implementation\nwithout the libobs Rust archive. This is an explicit recovery path, not a second\nnormal application configuration. Keep it until the release retirement criteria\nare met. Other Rust features may still require Rust tooling.","chars":1143,"tokens_est":286,"sha256":"dc0679a9caa8f425ffc51c4567e17dd26fdbea5c6bd2bf85c3072e87106d51a2"},{"id":"docs-rust-port-hybrid-build#hybrid-application-build-cargo-native-build-1332","doc":"docs-rust-port-hybrid-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid application build","Cargo native build (#1332)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md#cargo-native-build-1332","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md","text":"[Hybrid application build \u203a Cargo native build (#1332)]\nThe Cargo build engine uses the same `libobs/build/source-sets.d/` as CMake.\nBuild `libobs-rust` externally in release mode, then supply its archive through\n`OBS_BUILD_RUST_ARCHIVE` to normal `obs-build`/bundled `obs-sys` builds. A nested\nCargo build inside a build script would deadlock on Cargo's build lock.\n`build_hybrid_with_options` accepts the archive directly; `build_pair` explicitly\nbuilds both variants for compatibility tests. `build_c_reference_with_options`\nand bundled `OBS_SYS_C_ROLLBACK=1` are explicit reference/rollback entry points.","chars":608,"tokens_est":152,"sha256":"675726ebfde362406132d9257709e133f5b3ad7b8f5db36a64c7874cbbd84760"},{"id":"docs-rust-port-hybrid-build#hybrid-application-build-flatpak-and-packaged-validation","doc":"docs-rust-port-hybrid-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid application build","Flatpak and packaged validation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md#flatpak-and-packaged-validation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md","text":"[Hybrid application build \u203a Flatpak and packaged validation]\nBefore flatpak-builder, run `build-aux/prepare_flatpak_rust.py` to vendor the\nlocked Cargo inputs. The existing workflow does this before entering the offline\nsandbox. The manifest supplies checksum-pinned Rust and Corrosion, and retains\nFlatpak's existing application identity through `OBS_BRAND_RUST=OFF`.\n\nRun packaged artifacts with saved profiles, screen capture, camera and microphone\nas required by AGENTS.md. `test-appimage.sh` also checks that bundled libobs\ncontains Rust code; branding alone cannot prove which implementation shipped.\nKeep the existing C++ obs-websocket plugin unchanged and run its Tier 4 suite\nagainst the real hybrid application.","chars":721,"tokens_est":180,"sha256":"75cad19cba81ae7c3d7bf5158165b365d58dabe1da94ded0496768f502a53e66"},{"id":"docs-rust-port-hybrid-build#hybrid-application-build-migrating-another-unit","doc":"docs-rust-port-hybrid-build","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Hybrid application build","Migrating another unit"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md#migrating-another-unit","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/hybrid-build.md","text":"[Hybrid application build \u203a Migrating another unit]\nFollow testing-policy.md: claim, characterize if needed, RED, GREEN, ABI/layout\nand differential coverage. Move the original C include into a ported group in\nthe canonical manifest; link its Rust shim through `libobs-rust`. Confirm the\nproduction build excludes that C implementation and the explicit reference still\nincludes it. Preserve C oracle sources and all required tiers. Remove originals\nonly under release-criteria.md after the rollback retirement gates pass.\n\nNightlies publish the hybrid build automatically; a public release happens\nwhen the maintainer dispatches certify and the automated CI gates pass (see\nrelease-criteria.md, #1818).","chars":702,"tokens_est":176,"sha256":"980d65c1ff043f91dc103b67ab5e33bbb321e2a2f57859f88513e5af680be7d5"},{"id":"docs-rust-port-mcp#mcp-control-server","doc":"docs-rust-port-mcp","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["MCP control server"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/mcp.md#mcp-control-server","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/mcp.md","text":"[MCP control server]\nFrom the repository root, build the libobs-enabled application with:\n\n```sh\n./mcp --build\n```\n\nThe command prints the executable path, `target-mcp/debug/obs-studio-rust`.\nIt first builds the release `libobs-rust` archive, then builds the application\nwith `bundled-native`, passing the archive automatically. This separate target\ndirectory prevents an ordinary featureless application build from overwriting\nthe MCP application. Install soldr as described in [CI tooling](../ci-tooling.md).\n\nOn NixOS the launcher automatically enters the declared `ci/mcp-shell.nix`\nenvironment. This requires nix-shell and an available nixpkgs channel. The shell\nprovides the compiler, FFmpeg, X11 development metadata and other native SDKs;\nno X server is required. Other hosts must have the native libobs development\ndependencies installed. Nix may fetch dependencies on the first invocation.\n`OBS_MCP_TARGET_DIR` optionally selects another build directory.\n\n`.mcp.json` runs `./mcp --mcp`. The launcher builds incrementally before starting\nthe server; build diagnostics go to stderr and protocol traffic stays on stdout.\nWith no arguments `./mcp` also starts the stdio server. For example:\n\n```sh\nprintf '%s\\n' '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}' | ./mcp --mcp\n```\n\nThe same launcher accepts socket arguments:\n\n```sh\n./mcp --mcp-listen /run/user/1000/obs-control.sock\n./mcp --mcp-attach /run/user/1000/obs-control.sock\n```\n\nKeep the listening process's stdin open. The socket uses mode 0600; its parent\ndirectory must already exist. Attach proxies newline-delimited JSON-RPC over\nstdio. See [the control API](control-api.md) for tools, schemas and metrics.\nGUI/device validation belongs in bosn containers; these headless examples do\nnot open a GUI or require a camera device.\n\nRun bootstrap regressions with:\n\n```sh\nuv run --no-project python -m unittest ci.test_mcp_build\n```","chars":1898,"tokens_est":474,"sha256":"b6be48e60f4e31d321689555b2eb486f426277f52f764955647a37b44bf9d026"},{"id":"docs-rust-port-mcp#mcp-control-server~2","doc":"docs-rust-port-mcp","group":"rust-port","tier":"core","kind":"prose","breadcrumb":["MCP control server"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/mcp.md#mcp-control-server","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/mcp.md","text":"[MCP control server]\nThe launcher also builds EGL/Wayland OpenGL, linux-v4l2 (including its Pulse/PipeWire virtual mic), obs-ffmpeg (media source and AAC), and obs-x264 through obs-build. It sets OBS_MCP_GRAPHICS_MODULE, OBS_MCP_MODULE_BIN, OBS_MCP_MODULE_DATA and OBS_MCP_DATA_PATH from target-mcp/runtime/manifest.json; explicit overrides are preserved. Graphics/plugins are installed atomically so rebuilding for an attach client does not overwrite a listener's mapped libraries.\n\nVideo requires a reachable Wayland compositor or X server. For display-free CI, run against a headless Wayland compositor (for example Weston with its headless backend); the EGL renderer is built with Wayland support. A container also needs explicit v4l2loopback device access and an isolated PipeWire server for an A/V measurement. A successful tools/list response alone does not prove video or device readiness. Record and stream tools require their corresponding output/service modules to be configured.\nClosing stdin shuts down the server cleanly. Existing Tier 4 coverage remains\nin `obs-tests-app` (`mcp_stdio`, feature `bundled-native`).","chars":1128,"tokens_est":282,"sha256":"09d4c0b06fdb7f4980fc10564effc41b7a8df24f73a29edab918cec9360e050e"},{"id":"docs-rust-port-naming#naming","doc":"docs-rust-port-naming","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Naming"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md#naming","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md","text":"[Naming]\nOne name per thing, so releases, crates and tags can't be confused (#320).\n`ci/test_naming.py` checks the crate rules in `./lint`.\n\n## Product\n- Display name: **OBS-Studio-Rust**. Slug: **`obs-studio-rust`**.\n- Release titles, artifact names and the app tag `obs-studio-rust-vX.Y.Z[-pre]`\n  use them. `--version` keeps the upstream OBS version (\"based on OBS ...\").\n- The command-line client (an obs-websocket v5 client for streaming control)\n  is part of the product: crate and binary `obs-studio-rust` in\n  `rust/obs-studio-rust/`. It gets no tag family of its own: published\n  binaries go on the app's `obs-studio-rust-v*` releases.","chars":644,"tokens_est":161,"sha256":"29404ce19e6ac4e69bc5ec5bd949407ab3085049d99b88ce329c47d932caf698"},{"id":"docs-rust-port-naming#naming-repository-layout-1051","doc":"docs-rust-port-naming","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Naming","Repository layout (#1051)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md#repository-layout-1051","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md","text":"[Naming \u203a Repository layout (#1051)]\n- **The upstream tree stays where upstream has it:** `libobs/`, `libobs-*/`,\n  `frontend/`, `plugins/`, `shared/`, `deps/`, `cmake/`, `test/`. We still\n  merge `upstream/master`, so C/C++ files are never moved to restructure;\n  fixes and ports edit them in place. The only rename is in place, to the\n  build-role names in [BUILD.md](../../BUILD.md) (`foo.c` to `foo.c.h`,\n  same directory and stem, in a `git mv`-only commit), which merges and\n  `git log --follow` still track. A path whose OS its name\n  doesn't say gets an entry in `ci/platform_paths.py`, not a rename.\n- **All Rust lives in the `rust/` Cargo workspace**, one crate per ported\n  component (`rust/tools/` is excluded). The table below is where a port goes.\n- **Host code in C** stays in the OS-named files upstream already has. Each\n  libobs area has one host facade: `util/platform.h` for `libobs/util/`, and\n  `libobs/obs-host/` for the libobs core, with one header per capability\n  (`com.h`, `graphics-thread.h`, `shared-texture.h`, ...). A host that has\n  the capability defines it in its own file (`obs-windows.c`, `obs-nix.c`,\n  `obs-cocoa.m`). A host that lacks it includes `obs-host/noop/<capability>.hpp`\n  at the end of its host file (`obs-nix.c.h`, ...; see [BUILD.md](../../BUILD.md)),\n  so no `#ifdef` picks between them.\n  This is the C form of a crate's `src/platform/mod.rs`.\n- **When a C component is fully ported**, its C sources are deleted and its\n  CMake target links the Rust staticlib. No moved copy of the C is kept in\n  the product tree; the one exception is the differential-test oracle copy\n  under `rust/obs-c-oracle/legacy/` that the\n  [testing policy](testing-policy.md) (Tier 3) requires.\n- **Later, not now:** once we stop merging upstream, the remaining C/C++\n  (mostly `frontend/` and `plugins/`) may move under one root directory in a\n  single mechanical PR (only `git mv` plus CMake, CI and docs paths), landed\n  in a quiet window, under a neutral name (libobs is C, not C++). That gets\n  its own issue.","chars":2044,"tokens_est":511,"sha256":"749ce3814f59ac00f3b4313f8b3cd20dc8ac5786722983e9e54d95cfa0323a55"},{"id":"docs-rust-port-naming#naming-repository-layout-1051~2","doc":"docs-rust-port-naming","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Naming","Repository layout (#1051)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md#repository-layout-1051","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md","text":"[Naming \u203a Repository layout (#1051)]\n| C/C++ component | Rust crate |\n|---|---|\n| `libobs/util/` | `rust/obs-util` |\n| `libobs/graphics/`, and the units extracted from `libobs/graphics/graphics.c.h` (`graphics-sprite.c.h`, `graphics-immediate.c.h`, `texture-planar-creators.c.h`, `indexbuffer-create.c.h`, `present-entrypoints.c.h`, `raster-state-entrypoints.c.h`, `state-blend-setters.c.h`, `matrix-entrypoints.c.h`), `libobs/graphics/effect-parser.c.h` (`effect-param-types.c.h`, `effect-param-numbers.c.h`, `effect-parser-blocks.c.h`, `effect-parser-compile.c.h`, `effect-parser-entry.c.h`, `effect-parser-funcs.c.h`, `effect-parser-params.c.h`, `effect-parser-passes.c.h`, `effect-parser-writer.c.h`), `libobs/graphics/shader-parser.c.h` (`shader-param-values.c.h`, `shader-parser-blocks.c.h`), `libobs/graphics/graphics-ffmpeg.c.h` (`graphics-ffmpeg-orient.c.h`, `graphics-ffmpeg-rgba64.c.h`, `graphics-ffmpeg-route.c.h`, `texture-file-data2.c.h`) and `libobs/graphics/graphics-ffmpeg-host-windows.c.h` (`graphics-ffmpeg-host-pq.c.h`, `graphics-ffmpeg-host-wic-checks.c.h`) | `rust/obs-graphics` |\n| `libobs/media-io/` | `rust/obs-media-io` |\n| `libobs/obs-nal.c`, `obs-avc.c`, `obs-hevc.c`, `obs-av1.c` | `rust/obs-codec` |\n| `libobs/obs-data.c` | `rust/obs-data` |\n| `libobs/obs-properties.c` | `rust/obs-properties` |\n| `libobs/obs-hotkey-name-map.c`, `obs-hotkey-bindings.c.h`, `obs-hotkey-translations.c.h`, `obs-hotkey-owned-translations.c.h`, `obs-hotkey-press.c.h`, `obs-hotkey-pair.c.h`, `obs-hotkey-save-load.c.h`, `obs-hotkey-binding-press.c.h`, `obs-nix-hotkey-state.c.h`, `obs-nix-portal-shortcut-ids.c.h`, `obs-nix-portal-shortcut-sets.c.h`, `obs-nix-portal-shortcut-status.c.h`, `obs-nix-wayland-key-names.c.h`, `obs-nix-wayland-keys.c.h`, `obs-nix-wayland-seats.c.h`, `obs-nix-x11-hotkeys.c.h`, `obs-nix-x11-input.c.h`, `obs-nix-x11-keys.c.h`, `obs-cocoa-keys.c.h`, `obs-windows-keys.c.h`, `obs-key-combination-host-posix.c.h` | `rust/obs-hotkey` |\n| `libobs/callback/` | `rust/obs-callback` |\n| in-process MCP server (no C original, #3283) | `rust/obs-mcp` |\n| `libobs/obs-missing-files.c.h` | `rust/obs-missing-files` |\n| `libobs/obs-encoder-configuration.c.h`, `libobs/obs-output-delay.c.h`, `obs-output-interleave.c.h`, `obs-output-caption-text.c.h`, `obs-output-protocols.c.h`, `obs-service-getters.c.h`, `obs-encoder-roi.c.h`, `obs-encoder-clear-roi.c.h`, `obs-output-video-checks.c.h`, `obs-encoder-size.c.h`, `obs-encoder-audio-start.c.h`, `obs-output-stop-stats.c.h`, `obs-output-raw-audio.c.h`, `obs-output-slots.c.h`, `obs-encoder-gpu-gates.c.h`, `obs-encoder-bind.c.h`, `obs-encoder-lifecycle.c.h`, `obs-encoder-packet-ts.c.h`, `obs-encoder-pause.c.h`, `obs-encoder-group-reconfig.c.h`, `obs-encoder-gpu-rescale.c.h`, `obs-output-start.c.h`, `obs-output-begin.c.h`, `obs-output-stop.c.h`, `obs-output-reconnect.c.h`, `obs-output-pause.c.h`, `obs-output-caption.c.h`, `obs-output-raw-audio-trim.c.h`, `obs-encoder-audio-start-frames.c.h`, `obs-encoder-set-name.c.h`, `obs-output-conversion-setters.c.h`, `obs-output-packet-callbacks.c.h`, `obs-output-reconnect-callback.c.h`, `obs-output-encoder-getters.c.h`, `obs-output-update.c.h`, `obs-encoder-audio-buffers.c.h`, `obs-encoder-group-lifecycle.c.h`, `obs-encoder-init.c.h` | `rust/obs-output` |\n| `libobs/obs-encoder-error-ownership.c.h`, `libobs/obs-encoder-packet-ownership.c.h` | `rust/obs-encoder` |\n| `libobs/obs-encoder-registry-queries.c.h` | `rust/obs-output` |\n| `libobs/obs-scene*.c.h` | `rust/obs-scene` |\n| `libobs/obs-source*.c.h` | `rust/obs-source`; the C shims of the ports that call back into libobs through a seam (`libobs/obs-source-transition-access.c.h`, `libobs/obs-source-transition-restore.c.h`, `libobs/obs-source-transition-settings.c.h`, `libobs/obs-source-transition-size.c.h`, `libobs/obs-source-transition-slots.c.h`, `libobs/obs-source-transition-stop.c.h`, `libobs/obs-source-transition-switch.c.h`, `libobs/obs-source-transition-video.c.h` and `libobs/obs-source-transition.c.h` over `libobs/obs-source-transition-seam.h`, the rest of `libobs/obs-source-deinterlace.c.h` over `libobs/obs-source-deinterlace-seam.h`, and `libobs/obs-source-async-decoupled.c.h` over `libobs/obs-source-async-decoupled-fields.c.h` and the audio output shims) in `rust/obs-source-seam` |\n| `libobs/audio-monitoring/` | `rust/obs-audio-monitoring` |\n| `libobs/obs-audio-controls.c.h` | `rust/obs-audio-controls` |\n| `libobs/obs.c.h` and the units extracted from it (`obs-video-plan.c.h`, `obs-context-names.c.h`, `obs-source-load.c.h`, `obs-core-setup-rules.c.h`, `obs-core-setup-rules-ms.c.h`, `obs-core-setup-rules-task.c.h`, `obs-shutdown-detach.c.h`), and those extracted from `libobs/obs-module.c.h` (`obs-module-init.c.h`, `obs-module-paths.c.h`, `obs-module-names.c.h`, `obs-module-locale.c.h`, `obs-module-source-rules.c.h`, `obs-module-type-rules.c.h`, `obs-module-load-rules.c.h`, `obs-module-load-rules-skip.c.h`, `obs-module-register-copy.c.h`, `obs-module-lists.c.h` (over `libobs/obs-module-lists-seam.h`), `obs-module-load-metadata.c.h`), `libobs/obs-view-api.c.h`, and `obs-video-copy-plan.c.h`, `obs-video-frame-copy.c.h`, `obs-video-frame-timing.c.h`, `obs-video-graphics-tasks.c.h`, `obs-video-output-step.c.h`, `obs-video-pacing.c.h`, `obs-video-stop-requested.c.h` and `obs-video-unmap-last-surface.c.h`, extracted from `libobs/obs-video.c.h`, and `obs-canvas-draw.c.h`, extracted from `libobs/obs.c.h` and `libobs/obs-display.c.h`, and `obs-canvas-rules.c.h`, extracted from `libobs/obs-canvas.c.h`, and `obs-nix-system-info.c.h` and `obs-nix-log-rules.c.h`, extracted from `libobs/obs-nix.c.h` (the second also holds the os-release rules from `libobs/obs-nix-os-release.h`), and `obs-win-crash-report.c.h`, extracted from `libobs/obs-win-crash-handler.c.h`, and `obs-windows-symbol-paths.c.h` and `obs-windows-system-info.c.h`, extracted from `libobs/obs-windows.c.h`, and `libobs/obs-audio.c.h` (the audio tick, over `libobs/obs-audio-seam.h`), and `libobs/obs-display.c.h` (the display, over `libobs/obs-display-seam.h`) | `rust/obs-core` |\n| `plugins/obs-nvenc/` (CUDA/NVENC loader) | `rust/obs-nvenc`, linked through `rust/obs-nvenc-plugin` |\n| GPU acceleration status (frontend, #846) | `rust/obs-gpu-status`, linked through `rust/obs-frontend` |\n| Dock layout model (frontend, #5230) | `rust/obs-dock-layout`, linked through `rust/obs-frontend` |\n| all libobs ports, as one C ABI drop-in | `rust/libobs-rust` |","chars":6436,"tokens_est":1609,"sha256":"8736d198f5e15599ef692d53e1c31bf423b3907a79e6f1090c5f469f4ebb4aa5"},{"id":"docs-rust-port-naming#naming-repository-layout-1051~3","doc":"docs-rust-port-naming","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Naming","Repository layout (#1051)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md#repository-layout-1051","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md","text":"[Naming \u203a Repository layout (#1051)]\nA new libobs area gets a new `obs-<area>` row here in the PR that starts it.","chars":113,"tokens_est":28,"sha256":"119cfbbb35f9d8707e0a70ac845181d0ec9523f1d416483ab7ce4e69331821c7"},{"id":"docs-rust-port-naming#naming-rust-crates-rust-dir-directory-name-package-name","doc":"docs-rust-port-naming","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Naming","Rust crates (rust/<dir>/, directory name = package name)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md#rust-crates-rust-directory-name--package-name","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md","text":"[Naming \u203a Rust crates (rust/<dir>/, directory name = package name)]\n| Kind | Name | Examples |\n|---|---|---|\n| libobs port | `obs-<area>`, named after the libobs directory | `obs-util`, `obs-graphics`, `obs-media-io`, `obs-codec` |\n| libobs staticlib (C ABI drop-in) | `libobs-rust` | |\n| Plugin staticlib | `obs-<plugin>-plugin` | `obs-nvenc-plugin` |\n| Frontend staticlib (the C ABI of the frontend's Rust crates) | `obs-frontend` | |\n| C shims of a port that call back into libobs (linked only through `libobs-rust`) | `obs-<area>-seam` | `obs-source-seam` |\n| Test oracle (dev-only) | `obs-c-oracle` | |\n| Product binary | `obs-studio-rust` | |\n\nNo other crate takes a `-rust` suffix. A new tool is `obs-<tool>`.","chars":716,"tokens_est":179,"sha256":"852861c16ee7b27c9e9885d5986cdb3e78a16c241ffcff400decfa6cef7414e5"},{"id":"docs-rust-port-naming#naming-tags","doc":"docs-rust-port-naming","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Naming","Tags"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md#tags","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/naming.md","text":"[Naming \u203a Tags]\n- OBS version tags (`X.Y.Z`, `X.Y.Z-betaN`, ...) come from upstream; every\n  `git describe` that names an OBS version matches only those\n  (`ci/test_describe_match.py`).\n- `obs-studio-rust-v*` is the only tag family this fork adds. The retired\n  `obs-stream-rust-v*` tag (0.1.0, the CLI's old name) stays for history; no\n  new ones are cut.","chars":356,"tokens_est":89,"sha256":"9ea37788072eb36dddcd17d4c58a828f673bf141270d93c501b2bd29a4471659"},{"id":"docs-rust-port-public-header-conditionals#public-header-platform-conditional-audit-878","doc":"docs-rust-port-public-header-conditionals","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Public-header platform conditional audit (#878)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md#public-header-platform-conditional-audit-878","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md","text":"[Public-header platform conditional audit (#878)]\n> The `docs/ci-evidence/` snapshots linked below are retired from `master`\n> (#2686); each link resolves to the commit that last held the file\n> (`c2af3f9c3`), and the commands quoted below name those paths as they were\n> then.\n\nAudited base: `c9b06b371e45833fb55b686b78904ae246311be9`. All 33 issue-listed platform conditionals remain in\n14 headers. This change records their interface reasons and existing ratchet\nprotection; it changes no header, declaration, layout, inline implementation,\nexport or build option. The [machine-readable inventory](https://github.com/obs-rust/obs-studio/blob/c2af3f9c3e7945566b88440dffb14c255aeebd96/docs/ci-evidence/2026-10-21-public-header-conditionals.json)\nrecords exact Git blobs, expressions and current line numbers.","chars":809,"tokens_est":202,"sha256":"84c3a1a774e17448f59be321a97c83d789c3d5115a30e52cf71506d2151a35d7"},{"id":"docs-rust-port-public-header-conditionals#public-header-platform-conditional-audit-878-protection-and-scope","doc":"docs-rust-port-public-header-conditionals","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Public-header platform conditional audit (#878)","Protection and scope"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md#protection-and-scope","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md","text":"[Public-header platform conditional audit (#878) \u203a Protection and scope]\n- Seven headers already have reasoned entries in\n  `ci/platform-ifdef-exceptions.toml`. Those entries are unchanged. The exception\n  list only shrinks; this audit adds no exemption.\n- The remaining seven have per-file limits in `ci/platform-ifdef-baseline.json`.\n  Keep these stricter bounds: device-exports.h (2), audio-math.h (2), base.h (1),\n  curl-helper.h (1), dstr.h (1), pipe.h (1), profiler.h (1). Their reasons are\n  recorded below and alongside the exception configuration.\n- `graphics/device-exports.h` and `util/curl/curl-helper.h` are **not** in\n  `libobs/CMakeLists.txt`'s common `public_headers` list. The issue includes them\n  as header interfaces; this audit does not reclassify them as installed public\n  API or grant them a broad public-header exemption.\n- The 33 count is the issue's host-conditional inventory, using the ratchet's\n  macro families. The ratchet also counts `<objc/objc.h>` in graphics.h, giving\n  **34 findings**. Compiler-only branches such as nested `__MINGW32__` printf\n  archetype selection are retained too, but are outside that host count.\n- Rust replacements do not remove the C header contract: external C/C++ callers\n  still compile these declarations and inline helpers. No header is rewritten\n  to accommodate a Rust implementation.","chars":1353,"tokens_est":338,"sha256":"2fc5f90668473e89cd8eb9f398a990a1aea56ee8e3ad41a4288bba0ef161f5a6"},{"id":"docs-rust-port-public-header-conditionals#public-header-platform-conditional-audit-878-inventory","doc":"docs-rust-port-public-header-conditionals","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Public-header platform conditional audit (#878)","Inventory"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md#inventory","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md","text":"[Public-header platform conditional audit (#878) \u203a Inventory]\nLine numbers refer to the audited base and are observations, not permanent IDs.\nExpressions are recorded verbatim; the JSON retains unescaped text.","chars":209,"tokens_est":52,"sha256":"143e48ddde2c3c3ffbcea257a2df32c81603fad6d62a9eb17e7e7d1c2cbe664d"},{"id":"docs-rust-port-public-header-conditionals#public-header-platform-conditional-audit-878-inventory~2","doc":"docs-rust-port-public-header-conditionals","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Public-header platform conditional audit (#878)","Inventory"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md#inventory","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md","text":"[Public-header platform conditional audit (#878) \u203a Inventory]\n| Header and line | Conditional | Interface reason retained |\n| --- | --- | --- |\n| `libobs/graphics/device-exports.h:137` | `#ifdef __APPLE__` | Apple IOSurface/shared-texture device exports |\n| `libobs/graphics/device-exports.h:142` | `#if defined(__linux__) &#124;&#124; defined(__FreeBSD__) &#124;&#124; defined(__DragonFly__)` | Linux/FreeBSD/DragonFly dma-buf device exports |\n| `libobs/graphics/graphics.h:22` | `#ifdef __APPLE__` | Apple Objective-C runtime types |\n| `libobs/graphics/graphics.h:481` | `#if defined(_WIN32)` | Windows gs_window hwnd member |\n| `libobs/graphics/graphics.h:483` | `#elif defined(__APPLE__)` | Apple gs_window NSView id member |\n| `libobs/graphics/graphics.h:485` | `#elif defined(__linux__) &#124;&#124; defined(__FreeBSD__)` | Linux/FreeBSD gs_window X11 id/display members |\n| `libobs/graphics/graphics.h:819` | `#ifdef __APPLE__` | Apple IOSurface/shared-texture API |\n| `libobs/graphics/graphics.h:828` | `#elif defined(_WIN32)` | Windows GDI/shared-texture API |\n| `libobs/graphics/graphics.h:890` | `#elif defined(__linux__) &#124;&#124; defined(__FreeBSD__) &#124;&#124; defined(__DragonFly__)` | Linux/FreeBSD/DragonFly dma-buf API |\n| `libobs/media-io/audio-math.h:23` | `#ifdef _MSC_VER` | MSVC float declarations and warning push for inline audio math |\n| `libobs/media-io/audio-math.h:41` | `#ifdef _MSC_VER` | MSVC warning pop paired with the push |\n| `libobs/obs.h:431` | `#ifdef _WIN32` | Windows-only obs_init_win32_crash_handler export |\n| `libobs/util/base.h:79` | `#if !defined(_MSC_VER) && !defined(SWIG)` | Format attributes on public variadic logging functions; disabled for MSVC/SWIG |\n| `libobs/util/c99defs.h:26` | `#ifdef _MSC_VER` | Compiler-specific deprecation, noreturn and force-inline declarations |\n| `libobs/util/c99defs.h:48` | `#if defined(_MSC_VER) &#124;&#124; defined(__MINGW32__)` | Windows dllexport versus ELF/Mach-O default visibility |\n| `libobs/util/c99defs.h:54` | `#ifdef _MSC_VER` | Compiler-specific diagnostic pragma macros |\n| `libobs/util/curl/curl-helper.h:21` | `#if defined(_WIN32) && LIBCURL_VERSION_NUM >= 0x072c00` | Windows Schannel revocation-option macro for supported libcurl versions |\n| `libobs/util/dstr.h:42` | `#ifndef _MSC_VER` | Format attributes on public string formatting declarations |\n| `libobs/util/pipe.h:41` | `#ifndef _MSC_VER` | Format attribute on process_args_add_argf |\n| `libobs/util/platform.h:37` | `#ifdef _WIN32` | Windows exported os_stat function versus stat macro elsewhere |\n| `libobs/util/platform.h:203` | `#ifdef __APPLE__` | Apple ARCH_BITS selection |\n| `libobs/util/platform.h:206` | `# ifdef _WIN32` | Windows ARCH_BITS selection inside non-Apple branch |\n| `libobs/util/platform.h:207` | `# ifdef _WIN64` | Windows 64-bit versus 32-bit ARCH_BITS selection |\n| `libobs/util/profiler.h:43` | `#ifndef _MSC_VER` | Format attributes on public profiler declarations |\n| `libobs/util/sse-intrin.h:22` | `#if (defined(_MSC_VER) &#124;&#124; defined(__MINGW32__)) && ((defined(_M_X64) && !defined(_M_ARM64EC)) &#124;&#124; defined(_M_IX86))` | Native x86 MSVC/MinGW intrinsics versus SIMDe, excluding ARM64EC |\n| `libobs/util/sse-intrin.h:29` | `#if defined(_MSC_VER) && defined(__cplusplus)` | MSVC C++ cmath dependency for SIMDe |\n| `libobs/util/sse-intrin.h:33` | `#if defined(__APPLE__)` | Apple simd/base.h dependency |\n| `libobs/util/threading.h:29` | `#ifndef _MSC_VER` | Non-MSVC errno dependency |\n| `libobs/util/threading.h:41` | `#ifdef _MSC_VER` | MSVC intrinsics versus POSIX threading inline implementation |\n| `libobs/util/threading.h:98` | `#ifdef _MSC_VER` | MSVC __declspec(thread) versus __thread storage declaration |\n| `libobs/util/util_uint64.h:19` | `#if defined(_MSC_VER) && defined(_M_X64)` | MSVC x64 intrinsic declarations |\n| `libobs/util/util_uint64.h:25` | `#if defined(_MSC_VER) && defined(_M_X64) && (_MSC_VER >= 1920) && !defined(__clang__)` | MSVC >=1920 native x64 _umul128/_udiv128 implementation excluding clang-cl |\n| `libobs/util/util_uint64.h:30` | `#elif defined(_MSC_VER) && defined(_M_X64) && defined(__clang__)` | clang-cl x64 unsigned __int128 fallback |","chars":4192,"tokens_est":1048,"sha256":"6eca223b8c48d1e0270252b94afde320c9c1b4cdb1091ca128453bd8f1a12134"},{"id":"docs-rust-port-public-header-conditionals#public-header-platform-conditional-audit-878-abi-preservation-evidence","doc":"docs-rust-port-public-header-conditionals","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Public-header platform conditional audit (#878)","ABI preservation evidence"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md#abi-preservation-evidence","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md","text":"[Public-header platform conditional audit (#878) \u203a ABI preservation evidence]\nThe audit has no compiled-code change. For this PR, exact Git identity of the\n**entire libobs tree** against the audited base proves that its public headers,\nimplementation, exports and libobs build configuration are unchanged. This is\nstronger than checking a subset of symbols or layouts for this documentation\nchange; it is not a claim that all possible C/Rust ABI parity is independently\nrevalidated here.\n\n```sh\ngit diff --exit-code BASE HEAD -- libobs\nuv run ci/platform_ifdef_ratchet.py\nuv run python -m unittest ci.test_platform_ifdef_ratchet\n```\n\nReplace `BASE` with the audited commit above. Compare each recorded header's\nblob with `git rev-parse HEAD:path` and the recorded `libobs_tree` with\n`git rev-parse HEAD:libobs`. No public-header ABI checker is invented or skipped:\nbyte-for-byte identity is the ABI-preservation check for this no-code-change\nPR. Native build and Rust port tiers are not applicable to documentation and\nTOML comments.","chars":1033,"tokens_est":258,"sha256":"022521559c5a8131b82de60b8d9acec7c32c2978ceb527977b4b42bad6dc16da"},{"id":"docs-rust-port-public-header-conditionals#public-header-platform-conditional-audit-878-outcome","doc":"docs-rust-port-public-header-conditionals","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Public-header platform conditional audit (#878)","Outcome"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md#outcome","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/public-header-conditionals.md","text":"[Public-header platform conditional audit (#878) \u203a Outcome]\nAll 33 issue-listed conditionals are recorded with their reasons and existing\nper-file protection. No condition is moved, no broad exception is added, and no\nbaseline is raised. These branches remain under the documented public/header\ninterface policy; the wider #847 facade cleanup continues independently.","chars":367,"tokens_est":92,"sha256":"02a3efd051bd8c00e9179b91261413d16b0788ae71fcee3cd8d130601f563a62"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#rust-implementation-release-criteria","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria]\nThis is the decision for #141. A port is **complete** when the applicable\nfour testing tiers in [testing-policy.md](testing-policy.md) pass. It is\n**shipped** when a release artifact uses that Rust implementation by default.\nThe normal developer/application build now links and installs the hybrid\n`libobs`: completed Rust ports plus unported legacy C/C++. The C reference is\nexplicit testing infrastructure (`OBS_BUILD_C_REFERENCE=ON`), excluded from\nnormal builds and installation. `OBS_LIBOBS_BACKEND=C` is temporary rollback;\nproduct identity (`OBS_BRAND_RUST`) does not select an implementation.","chars":639,"tokens_est":160,"sha256":"4d375b3dc1187eec18abf3bccefc52f61e4217cbe72fd438a4a9ae2421cdebbe"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-releasing-the-hybrid-default","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Releasing the hybrid default"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#releasing-the-hybrid-default","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Releasing the hybrid default]\nThere is no manual approval file and no manual evidence review (#1818). A\nrelease is published when the maintainer dispatches it and the automated CI\ngates pass:","chars":231,"tokens_est":58,"sha256":"78eb5ea0dec41bc07da6a171aa9f879c4dab872763a27ecfd10de70889736c8c"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-releasing-the-hybrid-default~2","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Releasing the hybrid default"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#releasing-the-hybrid-default","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Releasing the hybrid default]\n- **Nightly:** the daily `release-rust.yaml` run publishes a GitHub\n  **pre-release**, the rolling `continuous` AppImage and the nightly update\n  feed. Nightlies always build the hybrid backend (`OBS_LIBOBS_BACKEND`\n  default `HYBRID`); the packaging step fails if Rust is not linked into the\n  production libobs. Pre-releases are never Latest, so `releases/latest` and\n  the stable feed never offer them.\n- **Public (blessed) release:** happens only when the maintainer dispatches\n  `release-rust.yaml` with `certify=<tag>`. That dispatch is the decision to\n  release; the `certify` job then runs only its automated checks\n  (`check-certifiable`) before marking the release Latest and updating the\n  stable feed. Agents never dispatch certify.\n- **Stable release (1.0 and later):** the maintainer dispatches\n  `gh workflow run release-rust.yaml -f stable=true` on master. It tags\n  `obs-studio-rust-v<crate>` (the version in `rust/libobs-rust/Cargo.toml`,\n  no beta date) and runs the same gate, builds, smoke tests and AppImage as a\n  nightly, then publishes a pre-release. It refuses when the tag already\n  exists unless `repair=true`. Then certify it as above:\n  `gh workflow run release-rust.yaml -f certify=obs-studio-rust-v<crate>`\n  (the crate is 1.0.0 for the first stable release)\n  (`-f min_age_days=0` to skip the two-day wait). Nightlies keep\n  `<crate>-beta.<date>`, which sorts *before* `<crate>` in semver; that is\n  harmless because nightlies are never certified, so the updaters never\n  compare one with a stable release. Bump the crate (for example to 1.0.1)\n  in a follow-up PR so later nightlies sort after the stable release. The\n  release `check` job enforces that ordering (`ci/check_release_version.py`):\n  a run whose version does not sort strictly after the newest stable release\n  fails before anything builds, with the crate bump that fixes it. macOS\n  `CFBundleVersion` is `YYYY.M.D` of the beta date, or of the UTC build date\n  for a stable release, so Sparkle always sees a newer build.\n- **AppImage tag push:** attaches to the tag's release after the AppImage\n  build and its automated tests pass.","chars":2200,"tokens_est":550,"sha256":"631d44b73dd74d922939d12203dc619d39a6efd92833abab10702cd725497a53"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-releasing-the-hybrid-default~3","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Releasing the hybrid default"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#releasing-the-hybrid-default","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Releasing the hybrid default]\nEvery automated gate stays: the builds, Tier 2, the packaged-app smoke tests\nand `check-certifiable`. The `OBS_LIBOBS_BACKEND=C` rollback stays available.\n\nIf something is broken, fix it forward fast with a new release. A failure a\nrelease let through is a coverage gap: close it by adding an automated test\nthat would have caught it, not by adding a manual review step.","chars":440,"tokens_est":110,"sha256":"10e6b12c10d25d806c81162ddedfb9ceaf41fac671640e17eeab9a4229793dfa"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-releasing-the-hybrid-default-coverage-targe","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Releasing the hybrid default","Coverage targets without automated gates yet"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#coverage-targets-without-automated-gates-yet","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Releasing the hybrid default \u203a Coverage targets without automated gates yet]\nThe checks below were once manual release criteria. They are goals for new\nautomated tests, not release blockers:\n\n1. **Compatibility:** Tier 2 with OFF and ON on Linux, macOS and Windows, x64\n   and arm64, plus identical exported public libobs symbols.\n2. **Running application:** the unchanged obs-websocket Tier 4 suite against\n   the release artifact; a full-app launch on every release platform.\n3. **Performance:** hot-path benchmarks within 10% and the full-app recording\n   workload within 5% of C (#142), checked automatically per release.\n4. **Stability:** multi-day crash-signature tracking of nightly artifacts.","chars":740,"tokens_est":185,"sha256":"7b4793b6479ad7cb849b59d423fc893de9a36d7d9b90ce62777da1636fb4ee26"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-record-c-rust-benchmark-evidence-142","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Record C/Rust benchmark evidence (#142)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#record-crust-benchmark-evidence-142","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Record C/Rust benchmark evidence (#142)]\nThe Criterion suite lives in the test-only `obs-c-oracle` crate. It compares\nproduction C ABI shims with the original C sources, compiled in the same\noptimized benchmark executable. Run the fixture and ownership checks first:\n\n```sh\nsoldr cargo bench -p obs-c-oracle --bench port_comparison -- --test\n```\n\nRecord five complete runs and their median times, run-to-run ranges, and\nper-run confidence intervals:\n\n```sh\nuv run rust/tools/benchmarks/record.py --cpu 7 --output baseline.json\n```\n\n`--cpu` pins the runner on Linux; omit it on systems without that affinity\nAPI. The report records the CPU, affinity, OS, Rust/LLVM and C compiler\nversions, relevant environment flags, command, and a SHA-256 fingerprint of\nthe benchmark and implementation sources. It also records `c_flags`, the\noptimization and floating-point flags the oracle's C was compiled with.\nThe recorder refuses incomplete paired measurements and source changes during\nmeasurement. Criterion's raw samples remain under\n`target/criterion/<benchmark>/<baseline>/`.\n\nThe bench profile is opt-level 3 for the Rust, as the shipped `release` static\nlibrary is, but the oracle's C is clamped to the level the shipped libobs C\ngets (`-O2 -g` for GCC/Clang, `/O2` for MSVC; `rust/obs-c-oracle/build.rs`).\nA `-O3` oracle vectorized audio loops that the shipped C leaves scalar, so a\nbaseline taken without the clamp made the Rust look 3\u20134\u00d7 faster than the C\nusers run (#3127). `-ffp-contract=off` stays: Tier 3 compares bits with the\nRust, which never fuses, and a fused oracle would differ on arm64. The shipped\nmacOS arm64 C does fuse `a * b + c`, so a small shipped-C advantage there is\nexpected and is not a regression.\n\nA full run needs every category in `record.py`'s `CATEGORIES`; the bench\nunits of the ports add their own groups, which are recorded too. For the\nbefore and after numbers of one kernel (#3009), `--category` (repeatable)\nruns and requires only the named categories:","chars":2028,"tokens_est":507,"sha256":"b90dae840589cab63696993dc4c7024548eb10ec9e4731ae2254a09ee2166f7f"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-record-c-rust-benchmark-evidence-142~2","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Record C/Rust benchmark evidence (#142)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#record-crust-benchmark-evidence-142","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Record C/Rust benchmark evidence (#142)]\n```sh\nuv run rust/tools/benchmarks/record.py --cpu 7 --category format --output format.json\n```\n\n`--max-ratio R` turns that report into a check: a pair whose median Rust/C\nratio is above `R` is printed and the run exits 1, so a known breach is\nreproducible instead of a row to read (#3138). A pair the maintainer exempted\nfrom the ratio bound is named in `record.py`'s `BOUND_EXEMPTIONS` with its\nabsolute cost, the machine it was measured on and the deciding issue; it stays\nin the report, the gate prints it as exempt, and the 5% full-app bound above\nstill applies to it.\n\nThe SIMD candidates of #3009 are categories of their own: `format` (each\nformat conversion on a 1080p frame, against the shipped C and against the\nsame C on the plain-C SSE stand-ins), `volmeter` (sample and true peak of\none tick) and `audio_mix` (the mix add, and one output tick with the clamp\nof 6 mixes).\n\nThe suite covers all exported bmem and vec2/3/4 shims, CRC at 64/4096/65536\nbytes, dstr concatenation/safe formatting/replacement at 128/4096 bytes,\nand the AVC/HEVC/AV1 parser entry points on structured synthetic packets.\nAVC start-code cases scan a 256/16384-byte prefix. Packet comparisons include\nthe allocation's reference-count prefix and metadata. Allocating batches\nhold at most 64 live outputs; allocation/free and reallocation have separate\ntimings. Setup and output cleanup for batched string/reallocation operations\nare excluded, while codec timings include output cleanup.\n\nVariadic `dstr_printf` remains C in both OFF and ON. Its two control cases\nare labeled `printf_control` and excluded from Rust regression decisions.\nThe C string and codec oracles use the shared libobs allocator; bmem cases\ncompare the independent original C allocator with the Rust allocator. The\nstandalone oracle uses Cargo's optimized C build, without the full OBS C IPO\nconfiguration. These measurements describe shim costs and synthetic inputs;\nthey do not establish full-application performance or caller inlining.","chars":2074,"tokens_est":518,"sha256":"d1f73f63ba91b1bcba85c7456f94323054144d9bd271d4b78d24cc6834330b48"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-record-c-rust-benchmark-evidence-142~3","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Record C/Rust benchmark evidence (#142)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#record-crust-benchmark-evidence-142","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Record C/Rust benchmark evidence (#142)]\nThe report flags medians above the existing **1.10 Rust/C time ratio**. That\nclassification is descriptive, not a claim of statistical significance.\nInspect confidence intervals and run-to-run variation, and reproduce on\nrelease hardware before making a default-flip decision. The 5% recording\nworkload bound and the other release gates above still apply.","chars":436,"tokens_est":109,"sha256":"4b8e85674fbaf418762d68b3f5f5c652c8fddc1b1b91782c4fbbca36a5ccb0cc"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-record-c-rust-benchmark-evidence-142-record","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Record C/Rust benchmark evidence (#142)","Recorded baseline"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#recorded-baseline","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Record C/Rust benchmark evidence (#142) \u203a Recorded baseline]\nThe [2026-10-14 baseline](benchmarks/baseline-2026-10-14.json) records five\nruns of 70 paired comparisons on a Ryzen 7 3700X, pinned to CPU 7, using\nRust 1.98.1 and GCC 15.2.0. Twenty-one measured medians exceed the 10%\nbound. The largest is `dstr/safe_printf/4096`: 59.47 times the C median,\nwith paired run ratios from 57.96 to 67.83. These results identify work\nneeded before the default flip; they do not satisfy its performance gate.","chars":539,"tokens_est":135,"sha256":"c99105514865e84019c084d12d0de589da33c97da68ec69cb0ede70e20f0a13a"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-record-c-rust-benchmark-evidence-142-cross-","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Record C/Rust benchmark evidence (#142)","Cross-language LTO investigation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#cross-language-lto-investigation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Record C/Rust benchmark evidence (#142) \u203a Cross-language LTO investigation]\nThe Linux x86_64 ON probe used Rust 1.98.1 (LLVM 22.1.8), Clang/LLD\n22.1.2, ThinLTO on C/C++, and Rust linker-plugin LTO. This follows the\n[rustc cross-language LTO instructions](https://doc.rust-lang.org/rustc/linker-plugin-lto.html).\nWith the usual OBS Linux build dependencies installed, reproduce with:\n\n```sh\nprintf '#!/bin/sh\\nexec soldr cargo \"$@\"\\n' > /tmp/obs-cargo-soldr\nchmod +x /tmp/obs-cargo-soldr\nexport RUSTUP_TOOLCHAIN=1.98.1\nexport RUSTFLAGS='-Clinker-plugin-lto -Crelocation-model=pic'\ncmake -S . -B build-lto -G Ninja \\\n  -DCMAKE_BUILD_TYPE=Release \\\n  -DCMAKE_C_COMPILER=clang-22 -DCMAKE_CXX_COMPILER=clang++-22 \\\n  -DCMAKE_C_FLAGS=-flto=thin -DCMAKE_CXX_FLAGS=-flto=thin \\\n  -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld-22 \\\n  -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld-22 \\\n  -DRust_CARGO=/tmp/obs-cargo-soldr \\\n  -DENABLE_FRONTEND=OFF -DENABLE_UNIT_TESTS=ON \\\n  -DENABLE_BROWSER=OFF -DENABLE_WEBSOCKET=OFF -DENABLE_AJA=OFF \\\n  -DENABLE_WEBRTC=OFF -DENABLE_NVENC=OFF -DENABLE_FFMPEG_NVENC=OFF \\\n  -DENABLE_QSV11=OFF -DENABLE_VST=OFF -DENABLE_SCRIPTING=OFF \\\n  -DENABLE_VLC=OFF -DENABLE_NEW_MPEGTS_OUTPUT=OFF\ncmake --build build-lto --target libobs -j4\n```\n\nThe stock configuration stops on Clang warnings treated as errors:\ndouble promotion in `obs-data.c` and a missing format attribute in\n`graphics.c`. To investigate the linker independently, the experiment\nadded `-Wno-error=double-promotion -Wno-error=missing-format-attribute` to\nboth C/C++ flag strings. This reached the shared-library link, which failed:\n\n```text\nld.lld: error: relocation R_X86_64_TPOFF32 against thread_graphics\ncannot be used with -shared\n```","chars":1749,"tokens_est":437,"sha256":"44715bbae0fac71123bf61a7d1fcc599f42c42c881eaae0b72896fc3dcce82ac"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-record-c-rust-benchmark-evidence-142-cross-~2","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Record C/Rust benchmark evidence (#142)","Cross-language LTO investigation"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#cross-language-lto-investigation","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Record C/Rust benchmark evidence (#142) \u203a Cross-language LTO investigation]\nThe linker command included `-fPIC` and `-shared`; inspected C and Rust\nbitcode both recorded PIC level 2. Repeating with\n`--target=x86_64-unknown-linux-gnu` in both C/C++ flag strings to match\nRust's target triple produced the same relocation failure. Its cause is\nunresolved. Cross-language LTO is therefore not enabled by this change,\nand no LTO performance improvement or successful full ON build is claimed.\nThe warning downgrades were confined to the probe. A future LTO change\nmust resolve the build failures and pass the normal compatibility gates\nbefore its performance can be compared with this baseline.","chars":730,"tokens_est":182,"sha256":"a2e50289ef6220a4546efc14a48efe9ea2b38aff623e931cb07e5b6e213b30fb"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-record-full-app-recording-evidence-1305","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Record full-app recording evidence (#1305)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#record-full-app-recording-evidence-1305","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Record full-app recording evidence (#1305)]\nThe 5% recording bound needs runs of the real application on release\nhardware, not shim benchmarks. Use a hardware renderer (never llvmpipe or\nXvfb), one saved scene and profile, the same build for both backends (the\nexplicit C reference or installed hybrid `libobs`, selected by the\nlibrary path), and no profiler in the timed runs.\n\n1. Before each run, OBS must be running with the backend under test. The\n   run checks the OBS log and the mapped libraries first\n   (`ci/recording_evidence_check.py`) and refuses a software renderer, the\n   other backend or libraries from outside `--prefix`.\n2. Record one run:\n\n   ```sh\n   uv run rust/tools/benchmarks/recording.py run --log <OBS log> --pid <OBS pid> \\\n       --libobs rust --prefix <install prefix> --encoder obs-nvenc --seconds 120 \\\n       --ws-config <obs-websocket config.json> --delete-recording --output rust-1.json\n   ```\n\n3. Restart OBS with the other backend and record again. Interleave the\n   backends (C, Rust, C, Rust, ...) until each has at least five runs.\n4. Compare:\n\n   ```sh\n   uv run rust/tools/benchmarks/recording.py report c-*.json rust-*.json --markdown report.md\n   ```\n\nThe report refuses runs with different conditions (video settings,\nrecording profile, scene, source version, renderer, graphics module) or\ntwo builds of one backend. It gives the median and range of the frame\nrender time, CPU, and the render, output and encoder skip rates per\nbackend, and the Rust/C ratio. Exit code 2 means the gate failed. Each run\nJSON also keeps the raw per-second samples and the encoder log lines.","chars":1656,"tokens_est":414,"sha256":"62f3d5df509a2550359d6d5061c9595419aba657cd4ae3a35714df0ed9c6ecad"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-retire-the-c-implementation-of-a-unit","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Retire the C implementation of a unit"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#retire-the-c-implementation-of-a-unit","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Retire the C implementation of a unit]\nKeep the original C file while reference testing and temporary rollback need it.\nAfter one stable hybrid release, a separate PR may retire the\nC fallback for a unit only when the supported C rollback build remains linkable\nthrough another implementation or the C rollback option itself is retired. That PR\nmust show the unchanged C tests, public symbol/layout checks, and Tier 3\nparity on the supported configurations. Move the original C source to\n`rust/obs-c-oracle/legacy/` in the same PR, update the oracle wrapper to use\nit, and keep differential tests running. Preserve the file's upstream\ncopyright and license notices. Removing a production C file must not silently\nremove the behavioral baseline used to test its Rust replacement.","chars":818,"tokens_est":204,"sha256":"9b6904ac9fac898eefe4f75a818ca6f55df40f036c1d6c6a37d11c06f52de05d"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-certified-releases-in-app-updates","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Certified releases (in-app updates)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#certified-releases-in-app-updates","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Certified releases (in-app updates)]\nEvery daily beta from `release-rust.yaml` is published as a GitHub\n**pre-release**, after the release gate and every platform build pass. It is\nnever marked Latest, and the in-app updaters never offer it.\n\nA **certified** release is a daily beta a maintainer promotes to a full\nrelease:\n\n```sh\ngh workflow run release-rust.yaml -f certify=obs-studio-rust-v<version>\n```\n\nThe `certify` job accepts only a published `obs-studio-rust-v*` release\n(published only after the gate). Its \"Check the release\" step runs\n`ci/update_feed.py check-certifiable` (#1757), which refuses the tag unless:\n\n- the `release-rust.yaml` run that published it (the newest run for the\n  tag's commit whose \"Publish pre-release\" job succeeded) concluded success,\n  with every job successful. Only the certify job and a reusable workflow's\n  own jobs (`Release gate \ud83d\udea6 / ...`, `AppImage \ud83d\udce6 / ...`) may be skipped;\n- the release has been out at least `min_age_days` days (default 2), so a\n  daily gets two days of use as a beta first. For an emergency,\n  `-f min_age_days=0` skips the age check and logs a warning.\n\nIt then checks its assets against `SHA256SUMS`, and\nruns `ci/update_feed.py`. That script writes the Sparkle appcasts\n(`updates_<arch>_v2.xml`, DMGs signed with `OBS_RUST_SPARKLE_PRIVATE_KEY`),\nthe Windows `manifest.json` (ZIP URL, SHA-256 and size) and `branches.json`,\nboth with `.sig` files signed by `OBS_RUST_UPDATE_RSA_PRIVATE_KEY`. The job\nuploads them to the release, and only then clears the pre-release flag and\nmarks it Latest. Both updaters read\n`https://github.com/obs-rust/obs-studio/releases/latest/download/`, which\nGitHub resolves to the newest full release. Certify a build only after a\nmaintainer has run it. Certifying an older release makes it Latest again,\nbut an app newer than that release won't downgrade.","chars":1893,"tokens_est":473,"sha256":"592dea77ec0721842271c1f41b99ebb0f910b15ec859db4697d78089ad63cc53"},{"id":"docs-rust-port-release-criteria#rust-implementation-release-criteria-certified-releases-in-app-updates-stable-ni","doc":"docs-rust-port-release-criteria","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust implementation release criteria","Certified releases (in-app updates)","Stable, nightly and certify"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md#stable-nightly-and-certify","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/release-criteria.md","text":"[Rust implementation release criteria \u203a Certified releases (in-app updates) \u203a Stable, nightly and certify]\n| Channel | Who gets it | Feed | Written by |\n|---|---|---|---|\n| `stable` (default) | everyone | `releases/latest/download/` (the Latest release) | the `certify` job, on a maintainer's dispatch |\n| `nightly` (opt-in) | users who pick **Nightly** under Settings > General > Updates > Update Channel | `releases/download/continuous/` (the rolling `continuous` pre-release) | the `nightly_feed` job, after every published daily |\n\n1. **Daily:** each day `release-rust.yaml` publishes `obs-studio-rust-v<version>`\n   as a pre-release once the gate and every build pass. Its `nightly_feed`\n   job then runs `ci/update_feed.py build --channel nightly` and uploads the\n   result onto `continuous`: Sparkle appcasts whose items carry\n   `<sparkle:channel>nightly</sparkle:channel>`, and a `manifest.json` (+\n   `.sig`) with `\"channel\": \"nightly\"`, all naming the daily's own assets. It\n   is signed with the same two secrets. Without them the job skips with a\n   warning and the daily still succeeds (#1759).\n2. **Certify:** at least two days later, a maintainer runs\n   `gh workflow run release-rust.yaml -f certify=<tag>` (add\n   `-f min_age_days=0` only in an emergency). The gate above checks the run\n   and the age, then the stable feed goes up and the release becomes Latest.\n3. **In the app:** the update channel lives in the global config\n   (`[General] UpdateBranch`, default `stable`). `nightly` is built into the\n   app, next to `stable`. Any other value (an upstream `beta`) falls back to\n   stable. On Windows the updater reads `manifest.json` from the channel's\n   feed. On macOS the Sparkle delegate reads the channel's appcast and\n   allows only that channel, so a stable app never takes a nightly item.\n   Switching from nightly back to stable never downgrades: the app waits for\n   a certified release newer than the nightly it runs. Every feed and\n   download URL must be under `https://github.com/obs-rust/obs-studio/`\n   (`ci/test_no_upstream_updater.py`).","chars":2077,"tokens_est":519,"sha256":"829e57fcb324f71fbb5b0f9e67c6bded9e01cd7c637768f39c4e9f19a185b83a"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#rust-port-testing-policy","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy]\n**Status:** Mandatory. Every change that ports C/C++ code to Rust MUST follow\nthis policy exactly. If a rule cannot be followed for a specific unit, stop and\nrecord the exception on the tracking issue under **Decisions:** (the format\n[coordination.md](coordination.md) \u00a72 uses) before writing code; do not\nsilently deviate.","chars":350,"tokens_est":88,"sha256":"84f8f029274e760c338f4c56e6c98c33035f3a834578b0f93ac4a71d12a17bb8"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-goal","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Goal"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#goal","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Goal]\nOBS Studio keeps its **existing public API**, but its internals are rewritten\nin Rust. Concretely, the following stay compatible:\n\n- The **libobs C API and ABI**: every `EXPORT` function signature, every public\n  struct layout, and every public header under `libobs/`. Existing plugins and\n  the frontend must compile against the unchanged headers and work unmodified.\n- The **obs-websocket v5 protocol**, byte-for-byte on the wire.\n- The frontend API (`obs-frontend-api`), scripting bindings, and the\n  `window.obsstudio` browser-source API.","chars":576,"tokens_est":144,"sha256":"d554ca8ad71f158410ea10477440e35f6bb803f852a76ed56d84f9030f9347da"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-goal-public-and-internal-boundaries","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Goal","Public and internal boundaries"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#public-and-internal-boundaries","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Goal \u203a Public and internal boundaries]\nPublic headers, exported symbols, opaque-handle behavior, and public struct\nlayouts are compatibility contracts. `obs-internal.h` is a private header,\nnot a public ABI contract: its layouts may change when the C users of a field\nhave been ported or moved behind an internal accessor. Inventory those users\nbefore changing a field. Adapt remaining C callers in a separate,\nbehavior-neutral commit or PR, with the existing C tests still passing;\nthen port the isolated unit. Do not edit a public header or an existing C test\nto accommodate the Rust implementation.\n\nThis distinction matters for Phase 6. Core files share `obs-internal.h` by\ndirect field access, while `obs-data.h` exposes opaque handles whose layouts\nlive only in `obs-data.c`. The first core seam is `obs-data.c`, after its C\nbehavior has been characterized. Large files enter through the function\nextraction workflow below: extract a C unit verbatim and land that change\nbefore replacing the extracted file with Rust. The four tiers still apply to\neach resulting unit, including symbol parity and differential tests.\n\nTests exist to prove two separate things: that the Rust code is correct, and\nthat it is a drop-in replacement for the C code it replaces. One kind of test\ncannot prove both, so every ported unit carries the four tiers below.","chars":1376,"tokens_est":344,"sha256":"8aa112b50cd6eef62765e838cde97d89f93dc7ac61bdda7b54ac074f6ad73e81"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-the-four-tiers-tier-1-rust-unit-tests-correctness-of-th","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","The four tiers","Tier 1 \u2014 Rust unit tests (correctness of the Rust core)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#tier-1--rust-unit-tests-correctness-of-the-rust-core","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a The four tiers \u203a Tier 1 \u2014 Rust unit tests (correctness of the Rust core)]\n- Written in Rust with `#[test]`, against the **safe Rust API** (no `unsafe`,\n  no FFI types).\n- Every assertion in the existing C test for that unit (if any) is ported 1:1\n  into Rust, in a test whose name references the C test it mirrors.\n- New edge cases are added here.\n- Run with `soldr cargo test`.","chars":406,"tokens_est":102,"sha256":"7adf4b9d73ce23020afcbbf0f7424045c7caf7bae8c2dd44d601cf6957697621"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-the-four-tiers-tier-2-existing-c-tests-against-the-rust","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","The four tiers","Tier 2 \u2014 Existing C tests against the Rust implementation (API/ABI compatibility)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#tier-2--existing-c-tests-against-the-rust-implementation-apiabi-compatibility","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a The four tiers \u203a Tier 2 \u2014 Existing C tests against the Rust implementation (API/ABI compatibility)]\n- The existing C tests (`test/cmocka/*.c`, and any other C/C++ test for the\n  unit) are **kept and never rewritten or edited** to accommodate the port.\n  They are the compatibility check.\n - The Rust crate exports the original C symbols through a thin\n  `#[no_mangle] pub extern \"C\"` shim with `#[repr(C)]` structs. The shim only\n  converts types and delegates to the safe core; it contains no logic.\n - The **existing public C header is the source of truth** for the public ABI.\n  Do not generate a replacement header or edit the public header as part of a\n  port.\n  Public struct layouts MUST match the C layout exactly, including any\n  awkward field types (e.g. `uint8_t pos` stays `u8` at the C boundary even if\n  the safe core uses `usize`).\n - A layout test MUST assert `size_of`, `align_of`, and every field offset of\n  each `#[repr(C)]` struct against values measured from the real C header\n  (via the oracle crate, see Tier 3).\n - The normal application builds, links and installs **hybrid `libobs`**: the\n  completed Rust implementations plus unported C/C++. Replaced C sources are\n  excluded from this target. Rust is required; a missing toolchain is an error.\n - Compatibility validation explicitly enables `OBS_BUILD_C_REFERENCE=ON` and\n  builds `libobs-c-reference` as well. It is excluded from the default build,\n  never installed, and shares the unported object library with production.\n  Both binaries retain identical public symbols, file names and ABI versions.\n  The unchanged tests pass against **both**: mode `OFF` loads the C reference,\n  mode `ON` loads production hybrid `libobs`. These mode names belong to the\n  test harness; branding does not select the implementation.","chars":1825,"tokens_est":456,"sha256":"1b9f734dda64770f75a90404dacd389f45b9bb21e23bc1cf13c8b0452fa0858b"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-the-four-tiers-tier-2-existing-c-tests-against-the-rust~2","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","The four tiers","Tier 2 \u2014 Existing C tests against the Rust implementation (API/ABI compatibility)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#tier-2--existing-c-tests-against-the-rust-implementation-apiabi-compatibility","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a The four tiers \u203a Tier 2 \u2014 Existing C tests against the Rust implementation (API/ABI compatibility)]\n- Each port moves its C file's `#include` into a ported unity group\n  (`libobs/build/libobs.ported-*+.h.c`), selected by the canonical\n  `libobs/build/source-sets.d/`, or registered in the port's own\n  `libobs/build/ported-source-sets/<unit>.json` with any per-group compile\n  options and headers (BUILD.md, #3236), so the port edits no shared CMake\n  file. The reference keeps compiling that group;\n  production links the Rust replacement. Keep C reference/oracle sources during\n  migration; their exclusion from production does not end parity coverage.\n - Hybrid `libobs` MUST export exactly the C reference's dynamic symbols:\n  no missing C symbols or leaked Rust internals. Keep platform export controls.\n - Run `rust/tools/linux-validate/run.py` to check both requirements. It builds\n  once in Docker, runs the cmocka tests against each libobs, and diffs the\n  exported symbols. PR CI's Tier 2 jobs run it and satisfy this requirement;\n  paste its summary into the PR only if you ran it locally.\n - Tests for the C boundary are written in C (they already are). Do not add\n  C++ tests for C APIs.\n - Memory that C code later frees or resizes (e.g. darray buffers) MUST be\n  allocated with libobs `bmalloc`/`bfree`, declared once in\n  `rust/obs-util/src/ffi/darray.rs`.\n - `bmalloc`/`bfree` are now the Rust bmem port\n  (`rust/obs-util/src/ffi/bmem.rs`, re-exported from `ffi/darray.rs`). Under\n  `cargo test`, the base/platform symbols they and the oracles need come from\n  the oracle crate (`oracle/test_stubs.c`, `oracle/file_serializer_host.c`,\n  `oracle/platform_conv_host.c` and the real `util/base-variadic.c`), linked\n  by every obs-util test via `use obs_c_oracle as _;`. Oracle copies of C\n  that is now ported (e.g. `util/utf8.c`) are compiled under `oracle_*` names\n  so they never clash with the Rust shims.","chars":1951,"tokens_est":488,"sha256":"17913a3a14c30bc7230edd1007d4f5594f24273c08a045908a6df08dec27e978"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-the-four-tiers-tier-2-existing-c-tests-against-the-rust~3","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","The four tiers","Tier 2 \u2014 Existing C tests against the Rust implementation (API/ABI compatibility)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#tier-2--existing-c-tests-against-the-rust-implementation-apiabi-compatibility","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a The four tiers \u203a Tier 2 \u2014 Existing C tests against the Rust implementation (API/ABI compatibility)]\n- C ABI shims for symbols libobs does not export (base.c internals, utf8) are\n  listed in their FFI module's own fragment,\n  `libobs/cmake/rust-hidden.d/<crate>-<ffi module>.txt`, instead of\n  `rust-exports.d/`. `libobs/cmake/rust-hidden.cmake` (and `rust/obs-build`)\n  generates the ELF version script (`local:`) and the macOS unexports list\n  from the fragments and `rust-hidden-base.txt` at configure time; neither is\n  committed, so ports never edit a shared list (#3233), and a fragment-only\n  change runs CI on Linux only. `export_list.rs` checks that every shim is\n  exported or hidden and that each fragment names only its module's shims.\n - Windows: Rust `#[no_mangle]` symbols are not dllexport, so every C ABI shim\n  symbol is listed in `libobs/cmake/rust-exports.d/<crate>-<ffi module>.txt`\n  (one fragment per FFI module, so ports don't edit a shared list), which\n  `libobs/cmake/rust.cmake` turns into `/EXPORT:` linker options.\n  `rust/obs-util/tests/platform/export_list.rs` fails if a fragment and the\n  `#[unsafe(no_mangle)]` functions in its `rust/<crate>/src/ffi/<module>.rs`\n  differ.\n - macOS: the generated `rust-unexports-macos.txt` hides Rust internals with\n  `-unexported_symbols_list`.\n - CI: `.github/workflows/build-project.yaml` runs the Rust tests on Linux,\n  macOS and Windows (job `rust-tests`). It runs\n  `rust/tools/linux-validate/run.py` (job `rust-linux-tier2`) and\n  `rust/tools/tier2-validate/validate.sh` / `validate.ps1` on macOS and\n  Windows (job `rust-tier2`). Each OFF/ON pair must export identical symbol\n  sets.","chars":1686,"tokens_est":422,"sha256":"b60686b435f0c283f21cb2758f3dbaf5d12915e268e73dfee8c58f54fe4d12a5"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-the-four-tiers-tier-3-differential-tests-against-the-or","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","The four tiers","Tier 3 \u2014 Differential tests against the original C (behavioral parity)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#tier-3--differential-tests-against-the-original-c-behavioral-parity","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a The four tiers \u203a Tier 3 \u2014 Differential tests against the original C (behavioral parity)]\n- The original C source is compiled into the Rust test build as an **oracle**\n  through the `rust/obs-c-oracle` crate (a dev-dependency only, built with\n  the `cc` crate). Oracle symbols are renamed with an `oracle_` prefix by a\n  wrapper `.c` file that `#define`s each exported name and then `#include`s\n  the original source file. The original file is not copied or modified.\n- When the C ABI forces a behavior the safe API should not have (e.g. a\n  `uint8_t` position that wraps), make the core generic over it rather than\n  duplicating logic in the shim; see `Position` in\n  `rust/obs-util/src/bitstream.rs`.\n- A `proptest` test feeds random inputs to both the oracle and the Rust shim\n  and asserts identical outputs and identical observable state.\n- A mutation check is expected once per port: temporarily break the core and\n  confirm the differential test fails, and say so in the PR.\n- Known, intentional differences from the C behavior (bug fixes) MUST be\n  listed in the test file and in the tracking issue, and the property test\n  must exclude exactly those inputs, no more.\n- When a C source is removed from the production tree, move that original\n  source to `rust/obs-c-oracle/legacy/` (created by the first such removal;\n  it is the one allowed copy of ported C) in the same change and update its\n  oracle wrapper. Keep Tier 3 parity running; the production source's\n  deletion does not end the behavioral baseline. See\n  [release-criteria.md](release-criteria.md) for the release and rollback\n  gates before removing a C implementation.","chars":1669,"tokens_est":417,"sha256":"0dd576d3161de5ffd93ff066438b919432172232f653edbfdadabf5bc1f2f96f"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-the-four-tiers-tier-4-black-box-protocol-tests-external","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","The four tiers","Tier 4 \u2014 Black-box protocol tests (external network API)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#tier-4--black-box-protocol-tests-external-network-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a The four tiers \u203a Tier 4 \u2014 Black-box protocol tests (external network API)]\n- Applies to obs-websocket and any other network-facing surface.\n- Written against the running server over the wire, independent of the\n  implementation language. The suite MUST pass against the unchanged C++\n  obs-websocket plugin loaded by both libobs builds (the C reference and\n  hybrid). The plugin is never ported (AGENTS.md).","chars":435,"tokens_est":109,"sha256":"5ad6e2418d29b4cd70a7335b6d039ae4925fa8b858200abc987f19a6c6cfc3e6"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-required-workflow-for-each-ported-unit","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Required workflow for each ported unit"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#required-workflow-for-each-ported-unit","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Required workflow for each ported unit]\n1. **RED:** commit the Tier 1 port of the existing test (and new edge cases)\n   against stub implementations (`todo!()`), and show `soldr cargo test`\n   failing.\n2. **GREEN:** implement the safe Rust core until Tier 1 passes.\n3. Add the C shim, the layout test, and the Tier 3 differential test.\n4. Move the C file's `#include` into a ported group (`libobs/build/libobs.ported-*+.h.c`,\n   [BUILD.md](../../BUILD.md)) and run `rust/tools/linux-validate/run.py`: the unchanged C tests pass against\n   `libobs-c-reference` and hybrid `libobs`, and the exported symbol sets are identical.\n5. Record every intentional behavior difference in the tracking issue.\n\nA port is not done until all applicable tiers pass. \"Tier 1 passes\" alone is\nnot done.\n\n`CI Gate \u2705` on `obs-rust/obs-studio` decides admission. Complete client evidence\nfrom a verified org-member PR author and final HEAD signer can replace selected\nPR checks under immutable-base policy; it is self-reported, not execution proof.\nThe merge queue always executes the selected heavy tiers on the combined result.\nMissing/untrusted/partial/invalid proofs, forks and verifier/API errors retain real\nselected PR checks, including clippy/Dylint on all six supported targets. Client\ntooling is optional and strict refusal is opt-in; sign only after stamping.\nOpen a PR (a draft is fine) once the RED commit exists and let CI run the\ntiers; running them locally first (`./lint`, `./unittest`, `local-gate run`)\nis recommended, not required. The tiers, RED then GREEN, and the ban on\nediting C tests or public headers stay mandatory.","chars":1649,"tokens_est":412,"sha256":"3027c2a9078182c85f0a12515613489d64bff5c9a49dfbca93ade9357b9b7c4f"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-extracting-a-function-before-porting-it","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Extracting a function before porting it"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#extracting-a-function-before-porting-it","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Extracting a function before porting it]\nIf the unit to port is one function inside a larger C file,\nHybrid `libobs` cannot drop it, because the ported lists hold whole files.\n\n1. First move the function verbatim into its own `.c` file in the same\n   directory.\n2. Use a separate, behavior-neutral commit/PR that contains no Rust and changes\n   no signature, header, or behavior.\n3. Add the new file to a libobs unity group (`libobs/build/`, [BUILD.md](../../BUILD.md)).\n4. The unchanged C tests must pass.\n5. Only then port the new file with the normal workflow, and move its\n   `#include` into a ported group.\n\nExample: `os_get_path_extension` moves from `util/platform.c` to\n`util/path-extension.c`.","chars":730,"tokens_est":182,"sha256":"7e993f7448d2d67d1a88ebd8df1f843a3a2bc0575bd21fd6fd96e15c233cc9eb"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-characterization-tests-for-units-without-c-tests","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Characterization tests for units without C tests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#characterization-tests-for-units-without-c-tests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Characterization tests for units without C tests]\nIf the C unit to port has no existing C test, Tier 2 has nothing to run. First\nadd a cmocka characterization test `test/cmocka/test_<unit>.c` that pins the\nCURRENT C behavior, including odd or buggy behavior. Comment such cases as\n\"characterized, not endorsed\".\n\n- It lands in its own commit/PR BEFORE the port, contains no Rust, and passes\n  against the C reference and hybrid `libobs` (nothing is swapped yet).\n- From then on it is an existing C test under Tier 2: the port may not edit\n  it. Tier 1 ports its assertions 1:1 into Rust.\n- Register it in `test/cmocka/CMakeLists.txt` and add it to the `cmocka-tests`\n  aggregate target like the others.\n- If the C source is not exported from libobs (e.g. `util/utf8.c`), compile\n  that C source into the test executable, as `test_formatted_filename` does.\n  The test must then be marked as characterizing the C source only: it cannot\n  exercise the Rust swap until the symbol is reachable.\n- Use only portable behavior, or guard platform-specific cases with\n  `#ifdef _WIN32` / `#ifndef _WIN32`.\n- Don't call `fail_msg()` in a test that Windows builds: it expands to\n  cmocka's private `cm_print_error()`, which the Windows cmocka does not\n  export, so the test fails to link (LNK2019, #1580, #1713). Print the\n  diagnostic with `fprintf(stderr, ...)` and then call `fail()`.\n  `ci/test_cmocka_windows_diagnostics.py` (Fast Gate) catches the call; it\n  is a source check for this one symbol, not proof that the test links on\n  Windows (#1739).\n- A PR's green checks prove only the lanes its paths selected. A shared\n  `.c` test selects Linux Tier 2, not Windows or macOS, so don't claim a new\n  test builds everywhere unless a native Tier 2 run built it.","chars":1782,"tokens_est":446,"sha256":"5186c3ddbaf43e6082d0a2572e6965acb0e92e520868213837df2caa01423f17"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-characterization-tests-for-units-without-c-tests-port-o","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Characterization tests for units without C tests","Port order for Phase 3 (pure leaf utilities)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#port-order-for-phase-3-pure-leaf-utilities","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Characterization tests for units without C tests \u203a Port order for Phase 3 (pure leaf utilities)]\n1. `crc32`\n2. `utf8`\n3. `lexer.c` / `cf-lexer.c` / `cf-parser.c`\n4. `text-lookup.c`\n5. `dstr.c`\n6. `base.c` (done: the variadic `blog`/`blogva`/`bcrash` stay in\n   `util/base-variadic.c`). `cf-lexer.c` / `cf-parser.c` from step 3 are\n   deferred to a follow-up.\n7. `bmem.c` last: a wrong allocator breaks every other Tier 2 run.\n\n- The `utf8` and `dstr` Tier 3 parity tests MUST generate arbitrary byte\n  strings, including invalid UTF-8.\n- The `bmem` port MUST match the 32-byte alignment, the\n  `bmalloc`/`brealloc`/`bfree` hooks, and `bnum_allocs` accounting:\n  `brealloc(NULL, n)` counts as an allocation, and `bfree(NULL)` does not\n  decrement.","chars":774,"tokens_est":194,"sha256":"a8f7876c0c286d8e642c801ec929e97fdf5cabf8614ff8bff83488104841b0f2"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-characterization-tests-for-units-without-c-tests-port-o-2","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Characterization tests for units without C tests","Port order and rules for Phase 4 (stateful, I/O and platform utilities)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#port-order-and-rules-for-phase-4-stateful-io-and-platform-utilities","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Characterization tests for units without C tests \u203a Port order and rules for Phase 4 (stateful, I/O and platform utilities)]\nThe characterization tests `test_file_serializer`, `test_config_file`,\n`test_threading`, `test_task`, `test_pipe`, `test_profiler` and\n`test_platform` land first (the first Phase 4 PR) and are thereafter unchanged\nTier 2 checks.\n\n1. `file-serializer.c` and `buffered-file-serializer.c`\n2. `config-file.c`\n3. `task.c`\n4. `profiler.c` (`source-profiler.c` is Phase 6 core work because it accesses\n   `obs-internal.h` and source/graphics state directly)\n5. `pipe.c` / `pipe-posix.c` / `pipe-windows.c`\n6. `threading-posix.c` / `threading-windows.c`\n7. `platform.c`, then `platform-nix*.c` / `platform-windows.c`","chars":760,"tokens_est":190,"sha256":"83cfc7d544bef207f56af4251de8482ad8848db6546715bec75c987c8c15b576"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-characterization-tests-for-units-without-c-tests-port-o~2","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Characterization tests for units without C tests","Port order and rules for Phase 4 (stateful, I/O and platform utilities)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#port-order-and-rules-for-phase-4-stateful-io-and-platform-utilities","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Characterization tests for units without C tests \u203a Port order and rules for Phase 4 (stateful, I/O and platform utilities)]\n- Every test that touches files uses its own temp directory, relative to the\n  ctest working directory, and removes it in teardown.\n- No sleeps: synchronize on events, semaphores or joins. Before writing a test\n  that waits for frames or audio, read\n  [docs/knowledge/timing-tests.md](../knowledge/timing-tests.md): wait for the\n  result, not a frame count, and when the `timing` resource lock applies.\n- Before writing a test that touches something OBS's destroy path frees, read\n  [docs/knowledge/test-leaks.md](../knowledge/test-leaks.md): free exactly what\n  that path frees, or the asan job fails on the leak.\n- Threading tests MUST be deterministic: 100 consecutive runs without a flake.\n  Check it with the Tier 2 harness, which reruns the given tests in both the\n  OFF and ON builds after the normal run, stopping at the first failure\n  (`ctest --repeat until-fail:N`):\n  `rust/tools/linux-validate/run.py --repeat 100 --tests 'test_threading|test_task'`\n  (`tier2-validate/validate.sh` takes the same options on macOS;\n  `validate.ps1 -Repeat 100 -Tests '...'` on Windows).\n- Linux Tier 2's [known-flaky registry](../../test/cmocka/known-flaky.txt)\n  is a merge-queue shield for tracked flakes, not an exemption from that\n  100-run determinism rule for new threading tests. Every entry requires a\n  test-name regex, an open issue number and a reason. The normal OFF/ON run\n  retries its failed tests once only when every failure is registered;\n  recovery emits a warning and step-summary line naming the test and issue.\n  An unregistered failure or a second failure still fails the job. Remove\n  entries when their tracking issues are resolved. Explicit `--repeat`\n  determinism runs retain their first-failure behavior and never retry.\n- Tier 3 parity for I/O code runs the oracle and the Rust shim against\n  separate temp directories and compares the resulting files byte for byte,\n  plus the return values.\n- The `config-file` parity test MUST cover arbitrary INI input, including\n  malformed lines.\n- The threading and task ports add a loom or stress-style Rust test on top of\n  parity.\n- Per-OS files are ported per OS. A port is done only when that OS's Tier 2\n  passes in CI.","chars":2343,"tokens_est":586,"sha256":"2bbac3a151b51c885dc3a6c73cf350abf1c79396ef543edd7b8c4c5d1396baca"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-characterization-tests-for-units-without-c-tests-port-o-3","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Characterization tests for units without C tests","Port order and rules for Phase 5 (beyond util)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#port-order-and-rules-for-phase-5-beyond-util","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Characterization tests for units without C tests \u203a Port order and rules for Phase 5 (beyond util)]\n1. Graphics math in crate `obs-graphics`: `vec2.c`, then `vec3.c`, `vec4.c`,\n   `quat.c`, `matrix3.c`, `matrix4.c`, `plane.c`, `bounds.c`, `axisang.c`,\n   `math-extra.c`.\n2. `media-io` in crate `obs-media-io`.\n3. obs-websocket Tier 4 suite against the unchanged C++ plugin. Preserve it\n   as the compatibility check required by `AGENTS.md`; the earlier\n   [port proposal](websocket-port.md) is superseded.\n\n- Tier 3 parity is exact bit equality (NaN == NaN) where the C is scalar and\n  deterministic. Only where the C uses SIMD (`vec3`, `vec4`, `matrix4` via\n  SIMDe) is a per-function ULP tolerance allowed; document it in the parity\n  test file.\n- The bitstream parsers (`obs-avc.c`, `obs-hevc.c`, `obs-av1.c`) get\n  cargo-fuzz differential targets against the C oracle. Each runs at least 1\n  hour with no mismatch outside documented exclusions.\n- These and the later targets (`nal_diff`, `config_ini_diff`) run nightly\n  through the local runner described in [fuzzing.md](fuzzing.md).\n- Inputs that trigger C UB are excluded and listed. The `get_ue_golomb` UB is\n  already fixed in C (#11, #17).\n- obs-websocket gets a Tier 4 black-box suite covering every v5 request type,\n  events, the auth handshake and error codes. It MUST pass against the\n  unchanged C++ plugin on both libobs builds; the plugin is never ported.","chars":1449,"tokens_est":362,"sha256":"4a5949adff92a041ea29051b5ccba9eaadfce7f4d9d770e0280b1a5a29a27709"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-header-inline-code-static-inline-functions-and-macros","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Header-inline code (static inline functions and macros)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#header-inline-code-static-inline-functions-and-macros","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Header-inline code (static inline functions and macros)]\nCode that lives entirely in a public header as `static inline` functions or\nmacros is compiled into every caller, so no symbol swap is possible.\n\n- Exemption: Tier 2 for such a unit is (a) a layout test of every public struct\n  it defines (`size_of`, `align_of`, every field offset against the oracle) and\n  (b) the unchanged C tests passing OFF and ON.\n- Do not modify the header.\n- Tier 1 and Tier 3 still apply. The Rust equivalent, which Rust ports use when\n  they manipulate those structs, gets a 1:1 port of the C test plus a\n  differential test. That test runs against oracle wrappers that instantiate\n  the inline functions as non-inline `oracle_*` functions.\n- This currently covers `util/darray.h` (the `struct darray` layout is the\n  contract), `util/deque.h` (`struct deque`), `util/serializer.h`\n  (`struct serializer`), and the `static inline` helpers in `util/dstr.h`\n  (the `struct dstr` layout is the contract).\n  `util/dstr.c` itself is ported with the normal workflow.","chars":1072,"tokens_est":268,"sha256":"9401620fa90b64d38af4d66070aa2329658b08b8c380f807228eb7a61de1cf9e"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-python-runs-through-uv","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Python runs through uv"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#python-runs-through-uv","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Python runs through uv]\nEvery Python invocation in this repo goes through `uv run` (or `uvx` for a\ntool pulled from a package), never bare `python` or `python3`: `uv run\npython -m unittest ci/test_x.py`, `uv run tools/leaderboard/generate.py`,\n`uv run --with pillow python docs/images/generate-logo-assets.py SOURCE`. This\ncovers shell scripts, `./lint`, `./unittest`, `local-gate.toml`, workflows and\ncomposite actions (which set uv up with the `astral-sh/setup-uv` step already\npinned in `build-project.yaml`), CMake `COMMAND`s, docstring usage lines and\nMarkdown code. Standalone scripts start with `#!/usr/bin/env -S uv run\n--script` (with PEP 723 inline metadata when they need packages); a\nshebang naming a bare interpreter is not allowed.\n\n`ci/test_uv_run.py` scans every tracked file and fails on a bare invocation.\nIts small, commented allowlist covers only trees we do not own (`deps/`,\n`plugins/`). Do not extend it to dodge the rule.","chars":973,"tokens_est":243,"sha256":"277d91c4eafc899fa149aac36861379499c2a0fd553b014671407c54204d85c4"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-layout-and-naming","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Layout and naming"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#layout-and-naming","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Layout and naming]\n```text\nCargo.toml                    # workspace root, members = [\"rust/*\"]\nrust-toolchain.toml           # pinned toolchain (required by soldr)\nlibobs/cmake/rust.cmake       # Corrosion import + whole-archive link into libobs\nlibobs/cmake/rust-exports.d/  # C ABI shim symbols to export (Windows /EXPORT:), one file per FFI module\nlibobs/cmake/rust-hidden.d/   # shims hidden from libobs, one file per FFI module\nlibobs/cmake/rust-hidden-base.txt # Rust internals and C glue hidden on every linker\nlibobs/cmake/rust-hidden.cmake # generates the ELF version script and macOS unexports list\nrust/\n  libobs-rust/                # the ONLY staticlib; re-exports every port's ffi\n  tools/linux-validate/       # Docker harness for Tier 2 (not a crate)\n  tools/tier2-validate/       # macOS/Windows Tier 2 (validate.sh, validate.ps1)\n  obs-util/                   # ports of libobs/util/*\n    src/bitstream.rs          # safe core (Tier 1 target)\n    src/{path_extension,darray,array_serializer,crc32,utf8,lexer,text_lookup,dstr,bmem,cf_tokenizer}.rs # more safe cores\n    src/ffi/bitstream.rs      # extern \"C\" shim, #[repr(C)] types (Tier 2)\n    src/ffi/*.rs              # matching shims for the cores above\n    src/platform/             # the only host-specific code (cfg_select!, unix/, windows/)\n    tests/suite.rs            # the one obs-util test binary (Utilities category; see Test binary budget)\n    tests/containers/main.rs  # a module of suite.rs, like config/, memory/, threading/, ...\n    tests/containers/bitstream.rs        # Tier 1: 1:1 port of test/cmocka/test_bitstream.c\n    tests/containers/bitstream_layout.rs # Tier 2: struct layout vs. C header\n    tests/containers/bitstream_parity.rs # Tier 3: proptest vs. C oracle\n  obs-graphics/               # ports of libobs/graphics/*\n  obs-media-io/               # ports of libobs/media-io/*\n  ../dylints/                 # repo Dylints run by ./lint (not workspace members)\n  obs-c-oracle/               # dev-only: original C compiled with oracle_ prefix\n    build.rs\n    oracle/bitstream.c        # #define renames + #include of libobs/util/bitstream.c\n    oracle/{path_extension,array_serializer,darray,crc32,utf8,lexer,text_lookup,dstr,dstr_libc,bmem,test_stubs,platform_conv_host,cf_tokenizer}.c\n```","chars":2318,"tokens_est":580,"sha256":"329780eb878a4ad2c534562586219131e06b2f853e67505aae259e0f13245f07"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-layout-and-naming~2","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Layout and naming"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#layout-and-naming","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Layout and naming]\nPort crates are plain `rlib`s. Only `libobs-rust` is a `staticlib`: each\nstaticlib embeds its own copy of `std`, so libobs must link exactly one. A new\nport crate is added as a dependency of `libobs-rust` and re-exported there.\n\nNew libobs areas get their own crate under `rust/` named after the libobs\ndirectory (`obs-util`, `obs-graphics`, `obs-media-io`, ...).","chars":410,"tokens_est":102,"sha256":"739c80ef6517559887afb046774c91ae1e1353290786ef1a47fb1cbc5ca3b7b8"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-test-binary-budget","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Test binary budget"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#test-binary-budget","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Test binary budget]\nMinimize the number of Rust test executables that must be compiled and\nlinked. Use **one amalgamated test binary per category**. The inventory below\nselects eight categories for the current workspace, including unit-test\nharness coverage and integration tests. Eight is the result of this grouping,\nnot an allowance per crate. Prefer fewer when categories can share a harness\nwithout losing meaningful separation.\n\nThe objective is fewer test compilation and link targets when building the\nwhole suite. The category binaries replace existing per-crate unit-test\nharnesses and integration-test executables; they must not be added alongside\nthem. Moving only integration tests while leaving the same library unit-test\nharnesses enabled does not complete consolidation. Production libraries\nremain dependencies of the shared harnesses and retain their normal builds.\nDo not compile an entire production source tree again through `include!` or `#[path]`\njust to put its tests into an amalgamated binary: that would duplicate the\ncompilation we are trying to remove. The native build resolver is a narrow\nexception: its small private helper and test share one source module with\nthe application harness, avoiding both a public test API and a second\ncompilation of the entire build engine.","chars":1331,"tokens_est":333,"sha256":"e9eacaf61af64bb2306e38bd20bd653fde3d71ec91666080c2e122bfbe057c22"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-test-binary-budget~2","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Test binary budget"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#test-binary-budget","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Test binary budget]\n| Category / selected binary | Existing suites and coverage to include |\n| --- | --- |\n| Utilities / `obs-util` library harness | All eight `obs-util` suites: config, containers, memory, platform, profiler, serializer, strings, threading; its inline platform tests; `obs-c-oracle/tests/oracle` oracle validation. |\n| Core state / `obs-tests-core` | `obs-data/tests/data`, `obs-properties/tests/properties`, `obs-hotkey/tests/hotkey`, `obs-callback/tests/callback`, `obs-mcp/tests/mcp`, `obs-missing-files/tests/missing_files`, `obs-output/tests/output`, `obs-encoder/tests/encoder`, `obs-scene/tests/scene`, `obs-audio-monitoring/tests/audio_monitoring`, `obs-audio-controls/tests/audio_controls`, `obs-core/tests/obs_core`, `obs-source/tests/source`, and `obs-source-seam/tests/source_seam`. |\n| Graphics / `obs-tests-graphics` | `obs-graphics/tests/linear`, `geometry`, and `shader`. |\n| Media I/O / `obs-media-io` library harness | `obs-media-io/tests/audio`, `video`, and inline `video_output` tests. |\n| Codecs and encoders / `obs-tests-codec` | `obs-codec/tests/codec` and `obs-nvenc/tests/nvenc`, including the NVENC plugin boundary coverage. |\n| GPU status / `obs-tests-gpu` | `obs-gpu-status/tests/gpu_status`, including frontend adapter boundary coverage. |\n| Preflight / `obs-tests-preflight` | `obs-preflight` CLI, FFI, and per-platform inline tests; `obs-preflight-ffi` boundary coverage. |\n| Application / `obs-tests-app` | `obs-studio-rust/tests/cli`, including its CLI, JSON, and WebSocket client checks; `obs-build` native compilation contracts and private resolver check; feature-gated native libobs and `obs-sys` bundled contracts. Preserve the C++ OBS WebSocket plugin as required by AGENTS.md. |","chars":1764,"tokens_est":441,"sha256":"8b45d97eefc69c14f1d83d97cd4057f71813c039d81d31eea9d6d952462146cb"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-test-binary-budget~3","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Test binary budget"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#test-binary-budget","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Test binary budget]\nUtilities and media use their library unit harness as the one category\nexecutable. Their existing integration suites are modules in that harness,\nso private unit tests retain access without extra binaries or exposed\ninternals. The other six categories use explicit integration targets.\n`libobs-rust` remains the production aggregation library; its constituent\nbehavior belongs to the categories above. `obs-c-oracle` remains a shared\ntest dependency, not a separate executable. FFI adapters with no tests have\nno empty harness. Fuzz targets, benchmarks, documentation tests, and unchanged\nC compatibility executables retain their separate execution models.\n\nThread-safe cases run with libtest's normal parallelism. Serialize tests\nsharing the profiler with their existing common lock. Tests that change\nprocess-wide allocation counters, logging callbacks, or the working directory\nmust re-exec the same category executable with an exact test selector.\nPipe-spawning oracle checks also re-exec first: their C pipe-to-CLOEXEC\nwindow must not overlap unrelated child spawns in this process.\nFile-replacement parity checks re-exec too: a concurrent Windows child can\ninherit an open C stdio handle and prevent replacement after C closes it.\nCrash probes also re-exec before forking, so they cannot inherit live pipe\nhandles from other tests. Do not serialize the whole suite or add another\ncompiled binary to obtain a clean process. Use `module_path!()` for exact\nselectors so module regrouping cannot silently run zero child tests.\nThe application category retains `libobs-integration` and `bundled-native`\nfeature gates for expensive native contracts; these add cases to the same\nexecutable, not new executables.","chars":1758,"tokens_est":440,"sha256":"ce55e4a2bf5df7fc92bda33a42d88cc77053021d9f5d344337b19ef534906f13"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-test-binary-budget~4","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Test binary budget"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#test-binary-budget","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Test binary budget]\nThe preflight CLI parser lives in the safe engine's `cli` module, consumed\nby its real executable and tested in the shared preflight suite. Its ABI\nlayout structs live in `ffi/types.rs`, consumed by the static C adapter and\nthe layout tests. Neither production source needs to be included a second\ntime in a test executable to retain those checks.\n\n- Use the category map above to choose the shared test binary. A new test\n  file, test tier, feature, or crate does not by itself justify another\n  executable. Put cases in modules included by the component's harness.\n- Keep every assertion, differential case, platform check, and required\n  test tier. This policy reduces executable count, not test-case count.\n- Avoid empty or duplicate library/binary test harnesses. Disable them with\n  `test = false` only after their coverage is included in a shared harness.\n- Count the harnesses Cargo actually builds for each supported platform,\n  including automatically discovered targets. Report documentation tests\n  and unchanged C compatibility executables separately; this Rust budget\n  does not remove either kind of coverage.\n- Any necessary split must identify a distinct component or technical\n  isolation requirement and document why the existing categories cannot\n  accommodate it. Do not split binaries just because tests live in different\n  source files or crates.\n\n`ci/test_binary_cap.py` discovers unit harnesses and integration targets from\nmanifests without requiring a Rust toolchain or compiling anything, including\nimplicit workspace path dependencies. It checks category ownership,\nrejects duplicate and missing categories, and rejects any\nextra unit or integration harness. Cargo metadata provides an independent\ninventory check enforced by the lint lane on build hosts. The guard runs\nthrough existing CI Python test discovery; `uv run ci/test_binary_cap.py --report` prints the inventory.","chars":1952,"tokens_est":488,"sha256":"6351fafae1b512d66d62db056103e8dde6142c8c608507c937635eb9e877653f"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-test-binary-budget~5","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Test binary budget"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#test-binary-budget","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Test binary budget]\nUse `soldr cargo test --workspace --locked` for the full suite. For focused\nwork, select the owning category, for example\n`soldr cargo test -p obs-data --test obs-tests-core properties::` or\n`soldr cargo test -p obs-util --lib tests::strings::`. A crate whose tests\nbelong to another category no longer has a separate executable. The fast\ngate follows dev-dependencies too, so a change to that crate still selects\nthe category owner; `ci/test_rust_scope.py` guards these relationships.\n\nVerify consolidation with Cargo's actual test target inventory and test\ndiscovery before and after: all existing cases must still be discovered on\ntheir supported platforms, and the old unit/integration targets must no\nlonger be built. Measure full-suite compilation and linking separately from\ntest execution. A smaller target count is the structural requirement; report\ntiming evidence before claiming a speed improvement.","chars":959,"tokens_est":240,"sha256":"b1f11478c493562b8fc22e9354168223b75e9f61cee736cacd2a0e504febee81"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-test-time","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Test time"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#test-time","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Test time]\nDecided on #2888. `ci/nextest.toml` gives every test a budget: nextest marks\nit SLOW at 10 s and fails it at 30 s (`slow-timeout = { period = \"10s\",\nterminate-after = 3 }`). The budget applies at the reduced parity level (PR,\nmerge queue, master push); the `full` level (local runs, nightly, release)\nuses the `full` profile, which reports SLOW but times nothing out.\n\n- A new test takes about 5 s or less in the CI debug build. Choose proptest\n  cases so that every branch is reached and every reported mutant is killed,\n  not as many as possible. A new test is not a reason for an exception.\n- Proptest counts go through `obs_c_oracle::parity::cases(N)`; 2^32 sweeps\n  through `obs_c_oracle::parity::sweep(range)`, and large fixed grids skip\n  items with `obs_c_oracle::parity::keep(i)`. All three read\n  `OBS_PARITY_CASES`: everything at `full`, a fixed tenth at `reduced`. Keep\n  the edge values on every level, outside the sampled part.\n- A test that needs more time gets a named `[[profile.default.overrides]]`\n  entry whose comment gives the reason and cites #2888 or its own issue\n  (`ci/test_nextest_budget.py`). The native build test (real compiles) is one.\n- The budget covers nextest only. Tier 2 ctest and the `obs-c-oracle` benches\n  are not under it.\n- Memory is reported, not capped: the PR's \"Test cost\" line (obs-worker \u00a74)\n  gives the longest run, the peak RSS over 20 to 50 runs and the test's own\n  threads.","chars":1467,"tokens_est":367,"sha256":"bbaa4d754be45be82a13e9c683bf72669a36ba39a1b17bd33f12d616ed9caaa0"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-rules-that-apply-everywhere","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Rules that apply everywhere"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#rules-that-apply-everywhere","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Rules that apply everywhere]\n- Use `soldr cargo ...`, never bare `cargo`.\n - The Rust toolchain is pinned in `rust-toolchain.toml` to the latest version\n  natively supported by the soldr version CI uses (`version:` of the\n  `setup-soldr` step in `.github/workflows/build-project.yaml`). Check what a\n  soldr release supports in its own `rust-toolchain.toml` (zackees/soldr, at\n  that tag). Never pin beyond it; bump the toolchain only together with, and\n  after, a soldr bump that supports it. The Tier 2 Docker image installs the\n  same pinned version (`rust/tools/linux-validate/run.py`). `./lint` enforces\n  this: `ci/test_toolchain.py` holds the expected version\n  (`SOLDR_SUPPORTED_RUST`) and fails if `rust-toolchain.toml`, the MSRV, or\n  any Dockerfile, workflow or doc pin differs.\n - `soldr cargo clippy --all-targets -- -D warnings` and `soldr cargo fmt --check`\n  must be clean.\n - **Cargo feature sets** (#2056). `--workspace` runs unify features, so they\n  build each crate only with the union of what its dependents enable (for\n  example `obs-util/gio` always on). `./lint` also runs clippy for each entry\n  of `FEATURE_SETS` in `ci/local_gate.py`, and `./unittest` runs the\n  `FEATURE_TEST_SETS` tests. `./lint` fails when a workspace feature is not\n  built both on and off by some clippy run. A new Cargo feature therefore\n  needs a `FEATURE_SETS` entry, or a `FEATURE_SET_EXEMPT` entry that says\n  why not and where it is checked instead.","chars":1483,"tokens_est":371,"sha256":"e779cfce45887def6caa520c7dfda184011e2c9ce2e91b049baa6313bfc3f60d"},{"id":"docs-rust-port-testing-policy#rust-port-testing-policy-rules-that-apply-everywhere~2","doc":"docs-rust-port-testing-policy","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Rust Port Testing Policy","Rules that apply everywhere"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md#rules-that-apply-everywhere","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/testing-policy.md","text":"[Rust Port Testing Policy \u203a Rules that apply everywhere]\n- `unsafe` is allowed only in `src/ffi/` shims, in `obs-c-oracle`, and in the\n  Tier 2/3 test files that call C ABI functions. Each `unsafe` block has a\n  `// SAFETY:` comment. Every port crate denies the `unsafe_code` lint, so a\n  safe core cannot use it: `allow` is written only where the C boundary is\n  (the `ffi` module) and on the platform modules that must call the OS\n  directly (`obs_util::platform::windows`, `obs-media-io`'s `platform::unix`,\n  each saying why). Crates with no C boundary (`libobs-rust`,\n  `obs-studio-rust`) `forbid` it outright. Keep it that way when adding a\n  crate.\n - **Platform boundary** (#323). Host-specific code lives only in the crate's\n  `src/platform/` module and in `src/ffi/` (the exported symbol set itself\n  differs per OS). `src/platform/mod.rs` is the crate's single host-selection\n  site: one `cfg_select!` that declares the per-OS children\n  (`platform/unix.rs`, `platform/windows/`, ...) and re-exports a neutral API\n  (types, functions, `const` flags, or a capability macro such as\n  `with_audio_thread_port!` for items that exist only on some hosts).\n  Everywhere else in `rust/<crate>/src/`, host `#[cfg]`/`#[cfg_attr]`/`cfg!()`\n  (`windows`, `unix`, `target_os`, `target_env`, `target_arch`, ...) and native\n  paths (`std::os::{unix,windows,..}`, `libc::`, `windows_sys`) are errors.\n  `dylints/ban_platform_cfg_outside_boundary` enforces this in `./lint`\n  (`soldr cargo dylint --all -- --workspace --lib --bins`). It reads the\n  source before cfg expansion, so code compiled out on Linux is checked too;\n  that is what lets one Linux lint lane stand in for every OS. Out of scope:\n  `obs-c-oracle`, `rust/tools`, and `tests/`. There is no allowlist: move the\n  code into `platform/`, do not opt out.\n - Do not add new GitHub Actions workflow files without explicit sign-off from\n  the maintainer. Hook tests into existing workflows instead.\n\n\n- Do not edit a public C header, an existing C test, or an exported function\n  signature as part of a port. Changing the public API is a separate,\n  explicitly approved decision with its own issue.","chars":2154,"tokens_est":538,"sha256":"0694a8f62e6506d8e9ca8c4090d56703a50f6a049bb4800c120105e10d8498a6"},{"id":"docs-rust-port-troubleshooting#troubleshooting-your-environment","doc":"docs-rust-port-troubleshooting","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Troubleshooting your environment"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md#troubleshooting-your-environment","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md","text":"[Troubleshooting your environment]\nLocal runs are optional: PR CI is the merge gate\n([coordination.md](coordination.md)). **If your environment fights you, open\nthe PR (a draft is fine) and let CI run.** A red local run caused by your\nmachine says nothing about your change.\n\n`./lint` and `./unittest` print a one-line `hint:` that points here when they\nsee one of these errors.","chars":378,"tokens_est":94,"sha256":"9b5bfd52f4064ef9fa206d3645b89846cc2810b28d51ef7cfb7dfa25c78e7fe8"},{"id":"docs-rust-port-troubleshooting#troubleshooting-your-environment-soldr-io-error-permission-denied-os-error-13","doc":"docs-rust-port-troubleshooting","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Troubleshooting your environment","soldr: IO error: Permission denied (os error 13)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md#soldr-io-error-permission-denied-os-error-13","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md","text":"[Troubleshooting your environment \u203a soldr: IO error: Permission denied (os error 13)]\n**Cause:** soldr cannot write its cache (`~/.soldr`) or the Cargo `target/`\ndirectory. Usually one of them was created by another user, by `sudo`, or by a\ncontainer running as root, or `target/` is shared between users or runners.\n\n**Fix:** give the directories back to your user:\n\n```sh\nsudo chown -R \"$(id -u):$(id -g)\" ~/.soldr target\n```\n\nDon't run the gate with `sudo`. On a self-hosted runner, give each runner\nuser its own home directory and checkout instead of a shared `target/`.","chars":574,"tokens_est":144,"sha256":"ee081232a92fdd6c726317ab3b9dbd599e65e12978b7b09fa972540f449bfcba"},{"id":"docs-rust-port-troubleshooting#troubleshooting-your-environment-soldr-command-not-found","doc":"docs-rust-port-troubleshooting","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Troubleshooting your environment","soldr: command not found"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md#soldr-command-not-found","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md","text":"[Troubleshooting your environment \u203a soldr: command not found]\n**Cause:** soldr is not installed, or not on `PATH` in this shell. The gate\nruns every Rust tool through soldr (AGENTS.md), so bare `cargo` is not a\nsubstitute.\n\n**Fix:** install it with `uv tool install --upgrade soldr`\n([zackees/soldr](https://github.com/zackees/soldr)), then open a new shell or\nrun `uv tool update-shell` so uv's tool directory is on `PATH`\n(`command -v soldr` should print a path).","chars":465,"tokens_est":116,"sha256":"25056d62ba15d81e6432820ed0b9f8868e6bd7d79ea03b439776b6bff0598be3"},{"id":"docs-rust-port-troubleshooting#troubleshooting-your-environment-soldr-warning-disk-space-is-low-free","doc":"docs-rust-port-troubleshooting","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Troubleshooting your environment","soldr: warning: disk space is low (\u2026 free)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md#soldr-warning-disk-space-is-low--free","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md","text":"[Troubleshooting your environment \u203a soldr: warning: disk space is low (\u2026 free)]\n**Cause:** less than 10 GiB is free on the volume that holds the build. Builds\nthen fail in confusing ways (truncated objects, linker errors, Docker layer\nerrors).\n\n**Fix:** run `soldr gc` to review and remove stale Rust target directories,\nand remove only your own old Tier 2 build volumes: list them with\n`docker volume ls --filter name=obs-rust-linux-validate-` and\n`docker volume rm` the ones your clone created. Never run\n`docker system prune` or `docker volume prune`: on a shared machine they\ndestroy everyone's warm caches. Check `bosn jobs` before heavy Docker work,\nand leave bosn-owned volumes to bosn\n([ci-tooling.md](../ci-tooling.md#bosn-docker-under-supervision)). Keep at\nleast 10 GiB free.","chars":786,"tokens_est":196,"sha256":"ca7fa7b8766e41a4936090b0715d1d1dac29b6b96c4d3c1814ba35473c0a16dd"},{"id":"docs-rust-port-troubleshooting#troubleshooting-your-environment-tier-2-fails-against-host-packages-ffmpeg-7-1-a","doc":"docs-rust-port-troubleshooting","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["Troubleshooting your environment","Tier 2 fails against host packages (FFmpeg 7.1 and libobs needs 8.0)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md#tier-2-fails-against-host-packages-ffmpeg-71-and-libobs-needs-80","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/troubleshooting.md","text":"[Troubleshooting your environment \u203a Tier 2 fails against host packages (FFmpeg 7.1 and libobs needs 8.0)]\n`Could NOT find FFmpeg \u2026 (Required is at least version \"8.0\")`, or other\nmissing or too-old libraries.\n\n**Cause:** Tier 2 was built natively against the host's packages. libobs\nneeds newer versions (FFmpeg 8.0) than many distributions ship.\n\n**Fix:** Tier 2 runs in Docker. Use `./unittest` (or\n`rust/tools/linux-validate/run.py`), which builds in an image with the right\ndependencies. Don't run Tier 2 against host packages.\n\n## Cannot connect to the Docker daemon\n**Cause:** Docker is not installed, not running, or your user cannot use it.\n\n**Fix:** start Docker, and add your user to the `docker` group (log out and\nback in) so `docker ps` works without `sudo`. If you can't run Docker, skip\n`./unittest` and let PR CI run Tier 2.","chars":840,"tokens_est":210,"sha256":"455920c3b2bdb35db39faaf579fa8cd728870a054f4b135a0e453c8677b77cfb"},{"id":"docs-rust-port-websocket-port#obs-websocket-v5-port-boundary","doc":"docs-rust-port-websocket-port","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["obs-websocket v5 port boundary"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md#obs-websocket-v5-port-boundary","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md","text":"[obs-websocket v5 port boundary]\n**Superseded:** preserve the existing C++ OBS WebSocket plugin as a binary\ncompatibility check, per [AGENTS.md](../../AGENTS.md#obs-websocket-compatibility-directive).\nThe design below is historical and must not be implemented without an explicit\nuser request changing that directive.\n\nThis is the Phase 5 design decision for #147. Port the protocol and session\ncore first, behind the existing C++ plugin. Keep the WebSocket++/Asio listener,\nOBS request and event handlers, plugin API, configuration, and Qt/frontend UI\nin C++ during that stage. A whole-plugin rewrite would mix protocol behavior\nwith Qt and OBS lifecycle changes, making a Tier 4 failure hard to isolate.","chars":705,"tokens_est":176,"sha256":"ec5b61df3df5dfb8359c173561c5af0de38704a26536f9e589c225d5981c0428"},{"id":"docs-rust-port-websocket-port#obs-websocket-v5-port-boundary-first-rust-unit","doc":"docs-rust-port-websocket-port","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["obs-websocket v5 port boundary","First Rust unit"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md#first-rust-unit","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md","text":"[obs-websocket v5 port boundary \u203a First Rust unit]\nThe Rust core owns v5 message envelopes, Hello/Identify/Reidentify state,\nauthentication validation, subscription masks, request and batch validation,\nresponse envelope construction, and protocol close/status codes. The C++\nlistener owns connections and passes frame bytes, opcode, and a stable opaque\nsession handle across a private C ABI. Rust returns owned response bytes or a\nclose code; a paired free function releases every returned buffer. The\nboundary must not pass `nlohmann::json`, Qt objects, C++ exceptions, or OBS\nobject pointers into Rust. C++ dispatch callbacks execute the existing\nrequest handlers and return serialized results; events still originate in the\nexisting C++ handler and pass through the core for subscription filtering and\nenvelope construction. Document ownership, buffer limits, and callback\nreentrancy in the C ABI before implementing it.\n\nThe public `obs-websocket-api` and wire protocol stay compatible. The plugin\ndoes not acquire a new public Rust ABI. Keep the existing C++ path buildable\nbehind a switch until the Rust path passes the gates below; remove it only\nunder the release and rollback criteria.","chars":1194,"tokens_est":298,"sha256":"8f45dac32bf0d15e0cc295dadc81564402e52b1ee1937403ddf693529ff9d69e"},{"id":"docs-rust-port-websocket-port#obs-websocket-v5-port-boundary-threads-and-lifecycle","doc":"docs-rust-port-websocket-port","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["obs-websocket v5 port boundary","Threads and lifecycle"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md#threads-and-lifecycle","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md","text":"[obs-websocket v5 port boundary \u203a Threads and lifecycle]\nWebSocket++ continues to run on its server I/O thread. Its message handler\nmay hand frames to the existing Qt thread pool. Each session is processed\nserially, preserving Identify before requests and the current per-session\noperation order. Distinct sessions may run concurrently. The Rust core owns\nonly session state and never calls Qt or OBS directly; the C++ dispatch layer\npreserves the current main-thread routing required by individual handlers.\nBatch execution keeps the current serial and parallel modes. Stop accepting\nnew work before draining workers and destroying sessions; no callback may\ncross into a destroyed plugin or Rust core. Add concurrency and shutdown\ntests alongside protocol tests, including disconnect during a batch.","chars":800,"tokens_est":200,"sha256":"cba80582d6753cf9a7a99c9b097b473f761d3c382c51758a59117cf1fff061b2"},{"id":"docs-rust-port-websocket-port#obs-websocket-v5-port-boundary-security-and-acceptance","doc":"docs-rust-port-websocket-port","group":"rust-port","tier":"process","kind":"prose","breadcrumb":["obs-websocket v5 port boundary","Security and acceptance"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md#security-and-acceptance","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/rust-port/websocket-port.md","text":"[obs-websocket v5 port boundary \u203a Security and acceptance]\nFix #99 in the existing C++ path before swapping the parser. Bound both frame\nsize and JSON/MsgPack nesting depth before recursive parsing, including\npre-auth frames. Apply the same limits in Rust and add wire tests for both\nformats at and beyond the limits. Reject malformed frames without crashing\nthe OBS process.\n\nUse the unchanged `test/websocket-tier4` suite as the acceptance oracle. It\nalready passed 179 checks, including all 147 documented request types,\nagainst the C++ server. Run it against the C++ and Rust paths using the same\nOBS build/profile setup; compare envelopes, close and status codes, auth,\nevents, and batch behavior. Unit tests exercise pure Rust state and malformed\ninput; differential tests feed the same frames to both protocol cores where\ndeterministic. #140 supplies a full `ENABLE_RUST_LIBOBS=ON` OBS build and a\nheadless Tier 4 CI job. Keep the C++ baseline job while the Rust path is\nbeing introduced, and run the Rust job before merging the swap. The local\ngate remains `./lint`, `./unittest`, and the stamped local gate; Tier 4 is an\nadditional full-app gate for this port.\n\nAfter this unit is stable, claim request-handler groups and event-handler\ngroups separately. Each group needs the applicable four test tiers and must\nkeep Qt/frontend access in a C++ adapter until that behavior has its own\nacceptance coverage. Do not replace the listener or UI as part of the first\nprotocol-core PR.","chars":1487,"tokens_est":372,"sha256":"6ff1bd706c040effd27345c9ef6724a6f870e5922a19514be38c38b628868946"},{"id":"docs-knowledge-asan-allocation-unwinder#top","doc":"docs-knowledge-asan-allocation-unwinder","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Which asan tests keep the slow allocation unwinder"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md","text":"[Which asan tests keep the slow allocation unwinder]\n---\ntype: concept\ntitle: Which asan tests keep the slow allocation unwinder\ndescription: \"Distro FFmpeg has no frame pointers, so the fast unwinder stops at av_malloc; only tests that link FFmpeg keep the slow one, and a test the scan does not find stays slow.\"\nsources: [\"#2035\", \"#3249\", \"#3365\", \"#3456\"]\nstatus: active\n---","chars":379,"tokens_est":95,"sha256":"b23f181306c86c1bf8de2479cff4ac47243e4fa54f8c1aeaa0ca5114f82e2201"},{"id":"docs-knowledge-asan-allocation-unwinder#which-asan-tests-keep-the-slow-allocation-unwinder-the-trap","doc":"docs-knowledge-asan-allocation-unwinder","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Which asan tests keep the slow allocation unwinder","The trap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md#the-trap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md","text":"[Which asan tests keep the slow allocation unwinder \u203a The trap]\n`fast_unwind_on_malloc=0` makes ASan unwind every allocation the slow way, which is\nmost of the time that allocation-heavy tests spend. `=1` is much faster, but it\nfollows frame pointers, and FFmpeg on ubuntu-26.04 has none. `objdump` of\nlibavutil and libavformat confirms this. So a leak allocated inside FFmpeg shows a\nstack that stops at `av_malloc`, and triage cannot name an OBS location.","chars":457,"tokens_est":114,"sha256":"0d992ed53eddc138b90727a23be67ab7a235fb4220699bd8cd72742dc97038db"},{"id":"docs-knowledge-asan-allocation-unwinder#which-asan-tests-keep-the-slow-allocation-unwinder-how-it-showed-up","doc":"docs-knowledge-asan-allocation-unwinder","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Which asan tests keep the slow allocation unwinder","How it showed up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md#how-it-showed-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md","text":"[Which asan tests keep the slow allocation unwinder \u203a How it showed up]\n- #2035: stacks cut at `av_malloc` led to the global `fast_unwind_on_malloc=0`.\n- #3249: with `=1` for the whole pass, the unit tests took 302 s against 366 s, and\n  `test_context_names` went from 29 s to 2 s. The stacks of `test_media_alpha_network`\n  (#3365) went from 10 to 13 frames down to 2.\n- #3456 then split it per test: `UnwindPolicy` in `rust/tools/sanitize/sanitize.py`.","chars":454,"tokens_est":114,"sha256":"7f3e0d19cadc2fe66432ee6d6a8686add4a1d870b256bedc30f42ffeee3544dc"},{"id":"docs-knowledge-asan-allocation-unwinder#which-asan-tests-keep-the-slow-allocation-unwinder-the-rule","doc":"docs-knowledge-asan-allocation-unwinder","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Which asan tests keep the slow allocation unwinder","The rule"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md#the-rule","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-allocation-unwinder.md","text":"[Which asan tests keep the slow allocation unwinder \u203a The rule]\nA test gets the fast unwinder only in the asan pass, and only when all of this holds:\n\n- The scan of the test's build definition found it.\n- It does not link `FFmpeg::*` or `OBS::media-playback` (`FFMPEG_LIBRARY`).\n- It is not in `SLOW_UNWIND_TESTS`. `test_core_module_load` is, because it failed\n  24 of 30 runs under load with the fast unwinder (`XOpenDisplay` during hotkey\n  initialization, #3249). The cause is not known.\n\nA test the scan does not find keeps the slow unwinder. The app launch always uses\nthe slow one.\n\n## What to do instead\nIf a new leak's stack stops at `av_malloc` or looks cut off, check which unwinder\nthe test used before you look for a bug in the report. Do not add a frame-pointer\nassumption about a system library without `objdump`: that assumption was wrong once\non #3249.\n\n## Checks\n`test_sanitize_harness.py` covers which tests keep the slow unwinder.","chars":949,"tokens_est":237,"sha256":"2c04ccbaa7cf536dd77c34fe4a4bf4e7c6bb108739de31bfc5dfc6d3ab93a831"},{"id":"docs-knowledge-asan-cold-builds#top","doc":"docs-knowledge-asan-cold-builds","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Most asan builds start cold"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-cold-builds.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-cold-builds.md","text":"[Most asan builds start cold]\n---\ntype: concept\ntitle: Most asan builds start cold\ndescription: \"Only a master run saves the asan compiler cache, and the merge queue does not run asan, so check whether a run restored a cache before you compare its build time.\"\nsources: [\"#3249\", \"#2923\", \"#3129\", \"#3457\"]\nstatus: active\nstale_after: 2027-02-01\n---\n\n## The trap\nAn asan build time means little until you know its cache state. On 4 cores, a cold\nbuild took 15 to 27 minutes and a warm one about 4. Cold times alone vary by\n10 minutes between runs, so one run shows little about a change.","chars":587,"tokens_est":147,"sha256":"03254c337009b91d68c5865c2b482b24a939b80d0fb0f17100caa1bad9041793"},{"id":"docs-knowledge-asan-cold-builds#most-asan-builds-start-cold-why-the-cache-is-often-missing","doc":"docs-knowledge-asan-cold-builds","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Most asan builds start cold","Why the cache is often missing"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-cold-builds.md#why-the-cache-is-often-missing","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-cold-builds.md","text":"[Most asan builds start cold \u203a Why the cache is often missing]\n- Only a run on master saves it (`Save zccache` in\n  `.github/workflows/sanitizers.yaml`), and on master only the nightly runs asan.\n- No PR and no merge-queue run builds asan (maintainer directive 2026-11-09;\n  until then a PR that changed a ratcheted target's compile input did, #2923).\n- A PR or a dispatch restores by prefix, so it takes the newest nightly's cache if\n  there is one.\n- The cache can be gone hours after the nightly. On 2026-11-01 the 14:57 and 15:44\n  UTC PR runs hit it (build 4.3 minutes). From 19:59 UTC on, every run logged\n  `Cache not found`. The cause of that eviction is open (#3249).\n- A hit is not always a warm build. Two runs on 2026-11-01 restored the same older\n  key and took 13.8 and 33.8 minutes.","chars":797,"tokens_est":199,"sha256":"0ab8941ad3016ab5f4be241675c0b53c0992059ba972e09d601684e59e7bab06"},{"id":"docs-knowledge-asan-cold-builds#most-asan-builds-start-cold-what-to-do-instead","doc":"docs-knowledge-asan-cold-builds","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Most asan builds start cold","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-cold-builds.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-cold-builds.md","text":"[Most asan builds start cold \u203a What to do instead]\n- Before you quote a build time, read the `Restore zccache` step of the job:\n  `Cache restored from key` or `Cache not found`.\n- Compare the time between the log lines `== [asan] configure + build` and\n  `== [asan] unit tests`, not the job's total.\n- Quote several runs, and say how many. To compare two changes, run them side by\n  side on the same machine.\n\n## Why stale_after\nThis depends on the cache budget in `ci.toml`, the runners and the fix for the\neviction. Check it again after that date, or when #3249 closes.","chars":571,"tokens_est":143,"sha256":"e202f0a1f8ad76b27133738d31b47dd4b84a48c9bbb67de109c5acc234669a58"},{"id":"docs-knowledge-asan-pr-failure#top","doc":"docs-knowledge-asan-pr-failure","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["An asan failure on your PR"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md","text":"[An asan failure on your PR]\n---\ntype: concept\ntitle: An asan failure on your PR\ndescription: \"What to do when the asan job fails a PR: fix the leak or the test, find out if the failure is yours, and why the known list is the last step and not the first.\"\nsources: [\"#3290\", \"#3563\", \"#3575\", \"#3576\", \"#3577\", \"#3370\"]\nstatus: active\n---\n\n# An asan failure on your PR\nSince 2026-11-09 no PR runs asan: it runs nightly and on dispatch only. A nightly\nfailure, or a dispatch of `sanitizers.yaml -f tools=asan` for your branch (on a\nseparate ref, see [sanitizer-dispatch.md](sanitizer-dispatch.md)), is handled the\nsame way.","chars":622,"tokens_est":156,"sha256":"599f7a1464bd31c58020c13415c4719c19339050a8df01e9631a98ffa5099a5f"},{"id":"docs-knowledge-asan-pr-failure#an-asan-failure-on-your-pr-the-trap","doc":"docs-knowledge-asan-pr-failure","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["An asan failure on your PR","The trap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md#the-trap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md","text":"[An asan failure on your PR \u203a The trap]\nThe asan job fails a PR on any unit-test failure or sanitizer report (#3290). The\nquick way to get a green run is to add the test to `KNOWN` in\n`rust/tools/sanitize/triage.py`. The test still runs, but it can no longer fail\nthe job, so a real bug in it stays hidden. A test that can not fail tells nobody\nanything. The goal for that list is zero entries.","chars":394,"tokens_est":98,"sha256":"dc4c1380b12299c770374119a961adf86ac17249a70ab8edf32c93ada5ada28c"},{"id":"docs-knowledge-asan-pr-failure#an-asan-failure-on-your-pr-what-to-do-instead","doc":"docs-knowledge-asan-pr-failure","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["An asan failure on your PR","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md","text":"[An asan failure on your PR \u203a What to do instead]\nDo these in order:\n\n1. Read the job's triage summary, then the test's log in the `sanitize-asan`\n   artifact (`tests/<test>.log`).\n2. A report that names your change is yours: fix it. A leak in a test goes in the\n   test ([test-leaks.md](test-leaks.md)). A leak in OBS goes in OBS.\n3. A test that fails on timing: make it wait for its result\n   ([timing-tests.md](timing-tests.md)).\n4. A failure with no link to your change: look for an issue on that test. If\n   there is none, file one with the log, and rerun the job once\n   (`gh run rerun --job <id>`). Do not rerun it again and again to get a pass.\n5. The known list is the last step, for a test that keeps failing unrelated PRs\n   while its issue finds the cause. Never list a test your PR adds or changes.\n\n\"Flaky\" is not a cause. #3576 is on a virtual clock, so a slow runner should not\nchange its result, and #3577 is a hang. Either can be a real bug. An entry stays\nuntil the issue finds the cause, and the fixing PR drops the entry.\n\n## How it showed up\n#3563 failed asan on two different tests in two attempts, then passed on a later\nattempt with no change to its code. It touched neither test. One failure was a\nrace in the test (#3575). The other (#3576) and a hang on another PR (#3577) have\nno known cause yet.","chars":1325,"tokens_est":331,"sha256":"d0c19688f2120e2e221e974aa90a4fee07af9451ad86ca1e1fb02ebb12c5a449"},{"id":"docs-knowledge-asan-pr-failure#an-asan-failure-on-your-pr-checks","doc":"docs-knowledge-asan-pr-failure","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["An asan failure on your PR","Checks"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md#checks","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/asan-pr-failure.md","text":"[An asan failure on your PR \u203a Checks]\n- `ci/test_sanitize_triage.py` `KnownListTest`: only `bug`, `third-party` and `tool` kinds are\n  allowed, each `bug` and `third-party` entry names an issue, and the number of entries matches\n  `KNOWN_ENTRIES`. To add an entry you\n  must raise that number, which shows in the diff for the reviewer. To drop one\n  you must lower it, so the number can not go stale.\n- The rules for each kind are in [sanitizer-known-list.md](sanitizer-known-list.md).","chars":485,"tokens_est":121,"sha256":"c33771fb121c99a9242c054473789ec9bbafbba0a78739d355056db4a475a49d"},{"id":"docs-knowledge-host-compiler-float#top","doc":"docs-knowledge-host-compiler-float","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Float results depend on the host compiler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md","text":"[Float results depend on the host compiler]\n---\ntype: concept\ntitle: Float results depend on the host compiler\ndescription: The CI runner's gcc contracts mul+add into an FMA and the Tier 2 image's gcc does not, so the same C source gives different float results.\nsources: [\"#3422\", \"#3362\", \"#3428\", \"#3489\"]\nstatus: active\nstale_after: 2027-01-01\n---","chars":351,"tokens_est":88,"sha256":"adb2ccc61ec33d19401f1011ec2e8893bb34e9171a431cf58a1d6f328341ca56"},{"id":"docs-knowledge-host-compiler-float#float-results-depend-on-the-host-compiler-the-trap","doc":"docs-knowledge-host-compiler-float","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Float results depend on the host compiler","The trap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md#the-trap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md","text":"[Float results depend on the host compiler \u203a The trap]\nOn the GitHub `ubuntu-26.04` runners, gcc fuses a multiply and an add into one\nfused multiply-add (FMA) by default. In the Tier 2 Docker image, gcc 15.2.0\n(the same version) defaults to `-march=x86-64` without FMA and emits a separate\nmultiply and add. Same source, same command line (only `-O2`, no `-march`,\n`-mfma` or `-ffp-contract`), different machine code, different last bit.","chars":437,"tokens_est":109,"sha256":"e6ee8c42dc82f8d09123c1a605a1e13ba96722082d1b0a26be712547df85d7ca"},{"id":"docs-knowledge-host-compiler-float#float-results-depend-on-the-host-compiler-how-it-showed-up","doc":"docs-knowledge-host-compiler-float","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Float results depend on the host compiler","How it showed up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md#how-it-showed-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md","text":"[Float results depend on the host compiler \u203a How it showed up]\n#3362 / #3422: `obs_source_transition_render_offset()`\n(`libobs/obs-source-transition-render.c.h`) compiled to `vfnmadd231ss` in the\nsanitizer job and to `mulss` + `subss` in Tier 2. `1920 - 1000 * 1.08f` is\n`840.0` with the product rounded to `float` first, and differs in the last\nbit when fused. A differential test that compares C and Rust exactly passed in\none place and failed in the other.","chars":459,"tokens_est":115,"sha256":"cbee01988130f141e6e06d4f9c9ab9ec276015fd6d9c2e54285b63889541381e"},{"id":"docs-knowledge-host-compiler-float#float-results-depend-on-the-host-compiler-what-to-do-instead","doc":"docs-knowledge-host-compiler-float","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Float results depend on the host compiler","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/host-compiler-float.md","text":"[Float results depend on the host compiler \u203a What to do instead]\n- When a C-vs-Rust or golden comparison of floats differs only in the last bit\n  between hosts, suspect FMA contraction first; check the disassembly\n  (`objdump -d`) of the C function on both hosts before changing Rust.\n- Rust does not contract `a * b + c` on its own, so every C build that is\n  compared with Rust or with golden floats compiles without contraction\n  (#3422, option B): the CMake test build (`-ffp-contract=off` on every C\n  and C++ target when `ENABLE_UNIT_TESTS` is on, in the Linux and macOS\n  `compilerconfig.cmake`), the test graph that `obs-build`\n  compiles (`configure_c_tests`), the C oracle (`rust/obs-c-oracle/build.rs`)\n  and the three sanitizer passes (`TOOL_FLAGS` in `sanitize.py`, #3428). MSVC\n  does not contract under its default `/fp:precise`.\n- App and release builds keep the compiler default, so the shipped C may round\n  the last bit differently from the Rust port on a host that contracts. Don't\n  pin a shipped-build float result in a test.\n- A new C test, oracle or parity build compiles with `-ffp-contract=off` too.\n  `test_float_contraction` has no flag of its own and fails when the CMake\n  test build loses it on a host that contracts (the hosted runners, macOS\n  arm64). Reproduce it locally with `-mfma`: `gcc -O2 -mfma` gives\n  `839.99994`.\n\n## Why stale_after\nThe finding depends on the runner image and the Tier 2 image. Re-check it after\nthe date or any compiler/image bump, and update or retire this file.","chars":1525,"tokens_est":381,"sha256":"60825a13b212d28e375545eaf80948b5f3e66b534721139bfb3213b2dcf4036a"},{"id":"docs-knowledge-index#top","doc":"docs-knowledge-index","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Knowledge bundle"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md","text":"[Knowledge bundle]\n---\ntype: index\ntitle: obs-rust knowledge bundle\ndescription: What agents and contributors learned about this codebase the hard way, one concept per file.\nstatus: active\n---\n\n# Knowledge bundle\nLessons that cost someone hours to find and that the next worker would otherwise\nfind again. One markdown file per concept, in the core of the\n[Open Knowledge Format](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)\n(OKF): YAML frontmatter with `type`, `title`, `description`, `sources`, `status`\nand, where a decision can invalidate the finding, `stale_after`. Nothing beyond\nthat core. `./lint` fails when a file here has no frontmatter or no `type`,\n`title` or `description` (`ci/knowledge_lint.py`). Decided in #3438 (from\ndiscussion #3426); a normal PR review is enough to add a concept.\n\nTo add a concept, add its file and run `./lint --fix`, which writes the list below\nfrom the frontmatter. Do not edit the list by hand. When two concept PRs collide\nin the merge queue, rebase, run `./lint --fix` and push. Quote a `title` or\n`description` that holds ` #`: YAML ends a plain value there.\n\n**If it can be a check, the check is the rule.** A concept explains why a check\nexists and links to it; it never replaces one. History that teaches nothing for\nthe next change stays in its issue or PR.\n\n## When to write a concept\nA lesson goes in its own PR, after the code PR has merged and the result is known.\nThat PR cannot eject the code from the merge queue, and it can quote what really\nhappened. Text that describes what the code PR changes, such as a new setting,\nstays in the code PR.","chars":1635,"tokens_est":409,"sha256":"5fff62376e2794de2d40af3bb1ad423f3bbc1e4d161290708b8f91a1f6c508db"},{"id":"docs-knowledge-index#knowledge-bundle-correcting-a-concept","doc":"docs-knowledge-index","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Knowledge bundle","Correcting a concept"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md#correcting-a-concept","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md","text":"[Knowledge bundle \u203a Correcting a concept]\n1. Each claim names what can recheck it: the code path, the check, a CI run or a\n   command.\n2. A correction changes the same file in a normal PR and adds its evidence to\n   `sources`. It replaces the wrong text, so a file never contradicts itself.\n3. A claim that is wholly wrong is removed, or the concept gets `status: retracted`\n   with one line that says why and links the evidence.\n4. A claim that was right but can change uses `stale_after` or `status`.","chars":502,"tokens_est":126,"sha256":"6bd5adae5146638055c26e615f63432a8007c353f22e956c6877883c66da7dc7"},{"id":"docs-knowledge-index#knowledge-bundle-concepts","doc":"docs-knowledge-index","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Knowledge bundle","Concepts"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md#concepts","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md","text":"[Knowledge bundle \u203a Concepts]\n<!-- concepts: generated, `./lint --fix` writes this list -->\n - [Which asan tests keep the slow allocation unwinder](asan-allocation-unwinder.md) \u2014 Distro FFmpeg has no frame pointers, so the fast unwinder stops at av_malloc; only tests that link FFmpeg keep the slow one, and a test the scan does not find stays slow.\n - [Most asan builds start cold](asan-cold-builds.md) \u2014 Only a master run saves the asan compiler cache, and the merge queue does not run asan, so check whether a run restored a cache before you compare its build time.\n - [An asan failure on your PR](asan-pr-failure.md) \u2014 What to do when the asan job fails a PR: fix the leak or the test, find out if the failure is yours, and why the known list is the last step and not the first.\n - [Float results depend on the host compiler](host-compiler-float.md) \u2014 The CI runner's gcc contracts mul+add into an FMA and the Tier 2 image's gcc does not, so the same C source gives different float results.\n - [Running sanitizers locally](local-sanitizers.md) \u2014 Asan or valgrind on a few tests through the harness on a local machine, and what valgrind costs per test.\n - [A PipeWire loop stopped right after its start can hang](pipewire-stop-after-start.md) \u2014 pw_thread_loop_stop() can wait forever when the loop thread has not entered the loop yet (PipeWire 1.6.2). Wait for an event source's callback first (thread-loop.start-signal is ignored before PipeWire 0.3.77); a blocking pw_loop_invoke does not help.\n - [Where a quit hang waits, from the last lines of the log](quit-hang-log-end.md) \u2014 When OBS does not exit after a quit, the last shutdown line in its log shows which step waits: the frontend, obs_shutdown, a module unload, or the process's exit handlers after 'Number of memory leaks'. For the exit handlers, the exit watchdog's line names the library and the plugin that loaded it; otherwise take the stacks and remove plugins one at a time.","chars":1944,"tokens_est":486,"sha256":"a0d05b0c1df68a78a6562959ffffbe14fe2293e9de806ee6c94f8d3bb9d005db"},{"id":"docs-knowledge-index#knowledge-bundle-concepts~2","doc":"docs-knowledge-index","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Knowledge bundle","Concepts"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md#concepts","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/index.md","text":"[Knowledge bundle \u203a Concepts]\n- [Dispatch sanitizers on a separate ref](sanitizer-dispatch.md) \u2014 A `workflow_dispatch` of `sanitizers.yaml` on a PR branch cancels the run in progress there; dispatch on a separate ref.\n - [The sanitizer known list](sanitizer-known-list.md) \u2014 The `bug`/`third-party`/`tool` kinds in `rust/tools/sanitize/triage.py`, the LeakSanitizer suppressions in `lsan.supp`, how to add an entry, and why a `bug` entry that runs clean fails the job.\n - [A source's destroy runs later, on another thread](shutdown-deferred-destroy.md) \u2014 obs_source_destroy queues its work on the destruction task thread, so obs_shutdown can free what a queued destroy still uses; wait in a loop until the queue is empty.\n - [Free what OBS's destroy path frees](test-leaks.md) \u2014 A test that skips OBS's destroy call leaks what that call frees, and the asan job fails on that since #3290.\n - [Timing tests wait for the result](timing-tests.md) \u2014 Wait for the frame or packet you check, not a frame count or a fixed sleep; when a test needs the `timing` resource lock.\n<!-- /concepts -->","chars":1085,"tokens_est":271,"sha256":"b47b4fad7415fe36a773070673d29f9ed0774b5881597ac644b33558aecd694a"},{"id":"docs-knowledge-local-sanitizers#top","doc":"docs-knowledge-local-sanitizers","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Running sanitizers locally"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md","text":"[Running sanitizers locally]\n---\ntype: concept\ntitle: Running sanitizers locally\ndescription: Asan or valgrind on a few tests through the harness on a local machine, and what valgrind costs per test.\nsources: [\"#3290\", \"#3238\", \"#962\", \"#3485\", \"#3366\", \"#3489\", \"#3701\"]\nstatus: active\nstale_after: 2027-05-01\n---\n\n## The harness\n`rust/tools/sanitize/sanitize.py` is what CI runs (`sanitizers.yaml`):\n\n```sh\nuv run --no-project rust/tools/sanitize/install_ubuntu_deps.py      # Ubuntu, once\nuv run --no-project rust/tools/sanitize/sanitize.py asan      # or tsan / valgrind\nuv run --no-project rust/tools/sanitize/triage.py rust/tools/sanitize/out/asan\n```\n\nIt configures and builds OBS for the tool in `$SAN_OUT/build-<tool>` (default\n`rust/tools/sanitize/out/`), runs every registered cmocka test under it, then\nlaunches the app headless. Results go to `$SAN_OUT/<tool>`. `SANITIZE_JOBS`\nsets how many tests run at once (`1` runs serially on one shared display);\n`SKIP_TESTS=1` only relaunches the app.\n`ZCCACHE_MAX_PARALLEL_COMPILES` sets how many files zccache compiles at once.\nThe harness does not set it: only `sanitizers.yaml` does, for the 4-core\nrunners, so a local machine with more cores keeps zccache's default or sets its\nown value.","chars":1247,"tokens_est":312,"sha256":"6ef3baa1922baaf80ca403c496fc722b1bea18e5e3c692e046c8ef1b0a2418c1"},{"id":"docs-knowledge-local-sanitizers#running-sanitizers-locally-a-few-tests","doc":"docs-knowledge-local-sanitizers","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Running sanitizers locally","A few tests"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md#a-few-tests","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md","text":"[Running sanitizers locally \u203a A few tests]\nThe harness has no test filter: one full run builds the tree and runs all ~670\ntests (asan: about 5.5 minutes of tests on 4 cores). After that build, run just\nthe tests you care about from the same tree, with the harness's options:\n\n```sh\nctest --test-dir rust/tools/sanitize/out/build-asan -R '^test_rtmp_send_batch$' --output-on-failure\n```\n\nwith `ASAN_OPTIONS=detect_leaks=1:fast_unwind_on_malloc=0` (see\n`SANITIZER_OPTIONS` in `sanitize.py`). For valgrind, build with the\n`valgrind` tool (no per-target ASan: `-DOBS_TEST_SANITIZE_PER_TARGET=OFF`) and\nrun the test binary under the `VALGRIND` argument list from `sanitize.py`\n(`--error-exitcode=99 --leak-check=full --errors-for-leak-kinds=definite ...`).\nExit 99 is a valgrind error, 77 is a skip.\n\n`ctest -R` does not run a test the way the harness does. `run_one_test` in\n`sanitize.py` gives each test its own Xvfb server and its own `*_OPTIONS` log\npath, and the tests run side by side. In #3366 a test failed in the asan job and\npassed in Tier 2. If `ctest -R` does not show a failure from the job, call\n`run_one_test` from the built tree, then change one environment variable at a\ntime.\n\nRun a timing-sensitive test alone and expect it to be slower than in Tier 2 (see\n[timing-tests.md](timing-tests.md)).","chars":1307,"tokens_est":327,"sha256":"aa2fdd6f54e26032c44c0f664a8b81a66b21159b6085f76fe9f9331c4e29bd2d"},{"id":"docs-knowledge-local-sanitizers#running-sanitizers-locally-in-a-container","doc":"docs-knowledge-local-sanitizers","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Running sanitizers locally","In a container"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md#in-a-container","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md","text":"[Running sanitizers locally \u203a In a container]\nThe harness does not know it runs in Docker. On a build machine:\n\n- tsan needs `--security-opt seccomp=unconfined` on a recent kernel (7.0). Without\n  it, tsan stops with \"incompatible memory layout, unable to disable ASLR\".\n- With `--cpuset-cpus`, `nproc` follows the limit, but Python's `os.cpu_count()`\n  does not, and that sets the test jobs. Set `SANITIZE_JOBS` too.\n- `capture_hang` calls `sudo -n gdb` when the app does not exit. The linux-validate image has no\n  `sudo`, so the harness stops with `FileNotFoundError: 'sudo'`. Install it, or\n  relaunch with `SKIP_TESTS=1`.\n- For a cold build, use a new `SAN_OUT` and `ZCCACHE_CACHE_DIR`.\n\ntsan runs with `exitcode=0` and `rust/tools/sanitize/tsan.supp`: `triage.py` decides\nfrom the reports, so a test is clean with exit 0 and no counted report. Reports with\nno OBS frame are listed as external. `called_from_lib` for the glib family removes\nabout 1900 of them. Do not add Mesa: TSan then does not see Mesa's mutexes, and its\ntests report about 3 times more (#3701).\n\nasan runs with `LSAN_OPTIONS=suppressions=rust/tools/sanitize/lsan.supp`, for leaks\nwholly inside a library (today one: FFmpeg 8.0.1's VP9-alpha probe, #3365). A local\nFFmpeg past 8.0 does not have that leak, so the line matches nothing there.\n\ntsan does not instrument Rust, so `-DOBS_RUST_TSAN=ON` (set by the harness) makes\nthe Rust primitives call `__tsan_acquire` and `__tsan_release`. A primitive\nwithout them shows its hand-offs as data races in the C code (#3507).","chars":1544,"tokens_est":386,"sha256":"7155f01a7d414ca563b3c5e6ca6106b7d92827af1c21812bb2abb49d787ba764"},{"id":"docs-knowledge-local-sanitizers#running-sanitizers-locally-what-valgrind-costs","doc":"docs-knowledge-local-sanitizers","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Running sanitizers locally","What valgrind costs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md#what-valgrind-costs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/local-sanitizers.md","text":"[Running sanitizers locally \u203a What valgrind costs]\nMeasured in #3290 (4-core `ubuntu-26.04` runner): valgrind's unit tests took\n53.8 minutes with 2 at a time, against 6.5 for asan on every core; serially\nthey did not fit the job's 150 minutes. More than 2 valgrind jobs on 4 cores\nbroke 9 tests on timing.\n\nA few tests take most of that time. In the nightly run 41312715761, 524 of 666\ntests took under 5 s (median 1.6 s), and the 9 tests of 60 s or more took 43 of\nthe 96 test minutes. Three of them hit the 600 s per-test limit:\n`test_slideshow_mem_cap`, `test_output_filename_reserve` and\n`test_audio_clock_drift`. So a handful of tests is cheap on a local machine, if\nthese are not among them.\n\n`stale_after`: the numbers change with the runner and the test set; re-measure\nfrom the latest `sanitizers.yaml` run after that date.","chars":832,"tokens_est":208,"sha256":"ab0623d7976cfbec0ff5fcc3b08c31bbff89cdb038af89cf88722bc4c09ecddc"},{"id":"docs-knowledge-pipewire-stop-after-start#top","doc":"docs-knowledge-pipewire-stop-after-start","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A PipeWire loop stopped right after its start can hang"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md","text":"[A PipeWire loop stopped right after its start can hang]\n---\ntype: concept\ntitle: A PipeWire loop stopped right after its start can hang\ndescription: \"pw_thread_loop_stop() can wait forever when the loop thread has not entered the loop yet (PipeWire 1.6.2). Wait for an event source's callback first (thread-loop.start-signal is ignored before PipeWire 0.3.77); a blocking pw_loop_invoke does not help.\"\nsources: [\"#3577\", \"#3596\", \"#2431\"]\nstatus: active\nstale_after: \"a PipeWire release that fixes loop_queue_invoke's check of impl->thread\"\n---","chars":546,"tokens_est":136,"sha256":"650442bcdc1d94a2280fe5afa5aa37af531e1efd23b5d274274528d3122d7afd"},{"id":"docs-knowledge-pipewire-stop-after-start#a-pipewire-loop-stopped-right-after-its-start-can-hang-the-trap","doc":"docs-knowledge-pipewire-stop-after-start","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A PipeWire loop stopped right after its start can hang","The trap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md#the-trap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md","text":"[A PipeWire loop stopped right after its start can hang \u203a The trap]\n`pw_thread_loop_start()` followed at once by `pw_thread_loop_stop()` can hang.\nFrom PipeWire 1.6.2's source (`spa/plugins/support/loop.c`, `thread-loop.c`):\n\n1. `pw_thread_loop_stop()` calls `pw_loop_invoke(do_stop)`.\n2. `loop_queue_invoke()` reads `impl->thread` with no lock. If it is still 0, it\n   treats the caller as the loop thread, so `do_stop` runs on the caller, with no\n   wakeup.\n3. The loop thread enters the loop, sees `running` still true, and goes into\n   `epoll_wait`.\n4. The caller sets `running = false` and waits in `pthread_join`. Nothing wakes\n   the loop thread.","chars":653,"tokens_est":163,"sha256":"ac7f443e345cf3dfb8364ba32d57f20b5a2e6f9400ea6708ae0d53245b66e872"},{"id":"docs-knowledge-pipewire-stop-after-start#a-pipewire-loop-stopped-right-after-its-start-can-hang-how-it-showed-up","doc":"docs-knowledge-pipewire-stop-after-start","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A PipeWire loop stopped right after its start can hang","How it showed up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md#how-it-showed-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md","text":"[A PipeWire loop stopped right after its start can hang \u203a How it showed up]\n`test_pipewire_teardown_wait` hit the 10-minute limit in 2 of 13 asan jobs (#3577):\nits log ends at the `RUN` line, with exit 124. The window is a few instructions.\nLocally it hung about once in 800 asan runs under load, and not in 9600 runs of a\ntsan build.\n\nThe stack has the main thread in `pthread_join` under `pw_thread_loop_stop`, and\nthe thread named after the loop in `epoll_wait`. Attaching `gdb` ends the hang,\nbecause the interrupted `epoll_wait` lets the loop thread see the flag. So a hang\nthat goes away when you attach to it can be this one.","chars":632,"tokens_est":158,"sha256":"0e2f57ee1f5e2ab043b82e99b8c9992b99537c53c98a1087e9d6c77fafd3bdd1"},{"id":"docs-knowledge-pipewire-stop-after-start#a-pipewire-loop-stopped-right-after-its-start-can-hang-what-to-do-instead","doc":"docs-knowledge-pipewire-stop-after-start","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A PipeWire loop stopped right after its start can hang","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/pipewire-stop-after-start.md","text":"[A PipeWire loop stopped right after its start can hang \u203a What to do instead]\nWait until the loop thread runs a callback of yours from inside the loop. Add an\nevent source before the start, signal it after, and wait under the lock for the\ncallback, which only runs on the loop thread once it has entered the loop:\n\n```c\nstruct entered {\n\tstruct pw_thread_loop *thread_loop;\n\tbool entered;\n};\n\nstatic void on_entered(void *data, uint64_t count)\n{\n\tstruct entered *e = data;\n\n\te->entered = true; /* loop thread, loop lock held */\n\tpw_thread_loop_signal(e->thread_loop, false);\n}\n\nstruct entered e = {.thread_loop = thread_loop};\nstruct pw_loop *loop = pw_thread_loop_get_loop(thread_loop);\nstruct spa_source *event = pw_loop_add_event(loop, on_entered, &e);\n\npw_thread_loop_lock(thread_loop);\npw_thread_loop_start(thread_loop);\npw_loop_signal_event(loop, event);\nwhile (!e.entered)\n\tpw_thread_loop_wait(thread_loop);\npw_loop_destroy_source(loop, event);\npw_thread_loop_unlock(thread_loop);\n```\n\nTake the lock before the start, or the signal can come before the wait. The\nloop thread sets `impl->thread` before it dispatches the event, and the lock it\nhands back orders that before a later `pw_thread_loop_stop()`.\n\n`thread-loop.start-signal` (the loop thread signals once it has entered) does\nthe same, but only from PipeWire 0.3.77: older versions ignore the property, so\nan unconditional wait for it never returns (#3596; Debian 12 ships 0.3.65).\nUse it only where the build already requires 0.3.77.\n\nThese do not help:\n\n- A blocking `pw_loop_invoke` first. It takes the same path: it can run on the\n  caller and prove nothing (1 hang in 3744 runs).\n- A sleep first. 50 ms gave 0 hangs in 9600 runs, but it only narrows the window.\n\n## Where else\n`obs_pipewire_connect_fd()` in `plugins/linux-pipewire/pipewire.c.h` has the same\norder on its `fail:` path, when `pw_context_connect_fd()` fails right after the\nstart. Its normal path waits for a sync first, so it is not affected.","chars":1978,"tokens_est":494,"sha256":"0de19cb0347a92c8871808e1050d5b5c7b5a63689d9953ac6942ff089ecf7552"},{"id":"docs-knowledge-quit-hang-log-end#top","doc":"docs-knowledge-quit-hang-log-end","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Where a quit hang waits, from the last lines of the log"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md","text":"[Where a quit hang waits, from the last lines of the log]\n---\ntype: concept\ntitle: Where a quit hang waits, from the last lines of the log\ndescription: \"When OBS does not exit after a quit, the last shutdown line in its log shows which step waits: the frontend, obs_shutdown, a module unload, or the process's exit handlers after 'Number of memory leaks'. For the exit handlers, the exit watchdog's line names the library and the plugin that loaded it; otherwise take the stacks and remove plugins one at a time.\"\nsources: [\"#3739\", \"#3933\", \"#3935\", \"#3833\", \"#3846\", \"#4065\", \"#4309\", \"#4525\", \"#4549\", \"#4560\"]\nstatus: active\n---","chars":632,"tokens_est":158,"sha256":"b86c096cc98133fc476ab89595129cd8f61c055a27f56d3785e810910a10c77f"},{"id":"docs-knowledge-quit-hang-log-end#where-a-quit-hang-waits-from-the-last-lines-of-the-log-the-shortcut","doc":"docs-knowledge-quit-hang-log-end","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Where a quit hang waits, from the last lines of the log","The shortcut"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md#the-shortcut","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md","text":"[Where a quit hang waits, from the last lines of the log \u203a The shortcut]\nA quit hang can be in OBS, in a plugin, or in a library that a plugin loads.\nReports of all three look the same: the window closes and the process stays.\nBefore you try to reproduce one, read the end of the reporter's log. The quit\npath writes these lines in this order:\n\n1. `==== Shutting down ====` (`OBSBasic::closeWindow()`, `SHUTDOWN_SEPARATOR` in\n   `frontend/widgets/OBSBasic.cpp.hpp`).\n2. `All scene data cleared` (`ClearSceneData`, after the\n   `OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN` event).\n3. The modules' own unload lines (for example `[obs-websocket]\n   [obs_module_unload] Finished shutting down.`), from `free_module()` in\n   `obs_shutdown()` (`libobs/obs.c.h`).\n4. `Freeing OBS context data` (`obs_free_data()`, after every module is\n   unloaded).\n5. `== Profiler Results ==`.\n6. `Number of memory leaks: N` (`frontend/obs-main.cpp.hpp`). After this line\n   `main()` only returns.\n7. `exit-watchdog: exit did not finish in 10 s: ...` (`rust/obs-exit-watchdog`,\n   armed in `frontend/obs-main.cpp.hpp` after line 6). Only when `exit()` does\n   not finish in 10 s; the process then ends with exit code 124. Linux and\n   macOS.\n\nThe last line that is present shows where the quit waits:","chars":1273,"tokens_est":318,"sha256":"88a184ccc381b8f6df5a494faae86fb034fd15bd6b08fab87730045743be439d"},{"id":"docs-knowledge-quit-hang-log-end#where-a-quit-hang-waits-from-the-last-lines-of-the-log-the-shortcut~2","doc":"docs-knowledge-quit-hang-log-end","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Where a quit hang waits, from the last lines of the log","The shortcut"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md#the-shortcut","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md","text":"[Where a quit hang waits, from the last lines of the log \u203a The shortcut]\n| Last line in the log | The quit waits in | Example |\n|---|---|---|\n| 2, and no module unload line | The frontend's own teardown after the scene data: `OBSBasic::applicationShutdown()` destroys the outputs (`outputHandler.reset()`). | #3933: an output that was stopped while it waited to reconnect never finished its stop, and `obs_output_destroy()` waited on it. Fixed in #3935. |\n| 3, before `Freeing OBS context data` | A module's `obs_module_unload()`, in a module after the last one that wrote a line. Most modules write nothing when they unload, so the stacks name the module. | #3833: CEF never finished its start, and obs-browser's unload waited for it. Bounded in #3846. |\n| 6, and the process still runs | The process's exit handlers, on a build without the watchdog (Windows, or a build before #4309). A normal quit also ends at line 6, but then the process ends. | #3739, before #4309. |\n| 7 | The process's exit handlers: static destructors and `atexit` functions of the loaded libraries. OBS has finished. The line names the library the main thread waits in and who loaded it, for example `... is blocking in libremidi.so.4 (loaded by advanced-scene-switcher.so); ending the process`. | #3739: a plugin's static `std::vector<libremidi::observer>` was destroyed at exit, and its PipeWire observer joined a thread that waited on a lock. |\n\nIn rows 6 and 7, OBS's own shutdown is complete. libobs calls each module's\n`obs_module_unload()` but does not close its library (`free_module()` in\n`libobs/obs-module.c.h` leaves `os_dlclose` commented out), and a library that a\nplugin opens itself (for example with `QLibrary`) also stays loaded. So the\nstatic objects of every plugin live until `exit()`, and a static object that\nowns a thread can wait forever in its destructor.","chars":1858,"tokens_est":464,"sha256":"e4bca66492e86690e70fb00f227781987fa2ecb38b27e844b29cc6ade5e2e5d6"},{"id":"docs-knowledge-quit-hang-log-end#where-a-quit-hang-waits-from-the-last-lines-of-the-log-read-the-watchdog-s-name","doc":"docs-knowledge-quit-hang-log-end","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Where a quit hang waits, from the last lines of the log","Read the watchdog's name"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md#read-the-watchdogs-name","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md","text":"[Where a quit hang waits, from the last lines of the log \u203a Read the watchdog's name]\nThe name is the first library on the main thread's stack that OBS itself did\nnot load (`culprit` in `rust/obs-exit-watchdog/src/lib.rs`). The text in\nbrackets says who brought it in:\n\n- `an OBS module`: the library is the module.\n- `loaded by <module>`: a module loaded it while it loaded, also with its own\n  `dlopen` (Advanced Scene Switcher's sub-plugins). The owner is the last OBS\n  module before the library in the process's image list, which is in load\n  order (`owners` in `rust/obs-exit-watchdog/src/images.rs`).\n- `loaded during the modules' post-load` or `loaded after startup`: it came\n  later, so there is no owner. Remove plugins one at a time (below).\n\nLimits, so you do not trust the name too far:\n\n- A library that a plugin thread loads while another module loads gets that\n  other module as owner.\n- A library that two modules use belongs to the module that loaded it first.\n- The name is where the main thread waits, not always the cause. A destructor\n  that joins a thread names the joining library; the stacks show what the\n  joined thread waits for.\n- There is no name when the stack holds only OBS's own frames (the line then\n  ends `is blocking; ending the process`), and none on Windows yet.","chars":1301,"tokens_est":325,"sha256":"e451f7cd750a14d69e868fd43cd873c12c250648bf7ba2810b4caec5704dce25"},{"id":"docs-knowledge-quit-hang-log-end#where-a-quit-hang-waits-from-the-last-lines-of-the-log-get-the-stacks","doc":"docs-knowledge-quit-hang-log-end","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Where a quit hang waits, from the last lines of the log","Get the stacks"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md#get-the-stacks","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md","text":"[Where a quit hang waits, from the last lines of the log \u203a Get the stacks]\nThe stacks of the hung process show the waiting frame directly. On Linux, with\nOBS still hanging:\n\n```sh\nsudo gdb -p \"$(pidof obs-studio-rust-gui)\" -batch -ex 'thread apply all bt' > obs-hang-stacks.txt 2>&1\n```\n\n- `sudo` is necessary on distributions with `kernel.yama.ptrace_scope=1`, for\n  example Arch. Without it, gdb cannot attach.\n- Use `pidof`, not `pgrep`. `pgrep` matches the 15-character `comm`\n  (`obs-studio-rust`), so `pgrep obs-studio-rust-gui` finds nothing. `pgrep -f`\n  can also match the shell that runs the command.\n- Since #4309 the watchdog ends a row 7 hang after 10 s, so attach within\n  that time. There is no switch to turn the watchdog off.\n- For rows 6 and 7, the main thread shows `exit()` \u2192 a destructor \u2192 `join()` or a\n  lock. Find the thread that it waits for.\n\nThe function names of a distribution package come from its debug package\n(`*-debug` on Arch).","chars":962,"tokens_est":240,"sha256":"3d904dd3d55e0b1847e91d11e57aa8dc4d9468c88eeb9a609837a053584c89ce"},{"id":"docs-knowledge-quit-hang-log-end#where-a-quit-hang-waits-from-the-last-lines-of-the-log-remove-plugins-one-at-a-t","doc":"docs-knowledge-quit-hang-log-end","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Where a quit hang waits, from the last lines of the log","Remove plugins one at a time"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md#remove-plugins-one-at-a-time","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/quit-hang-log-end.md","text":"[Where a quit hang waits, from the last lines of the log \u203a Remove plugins one at a time]\nWhen there are no stacks, remove plugins until the hang stops:\n\n- The Plugin Manager (Tools, Plugin Manager) keeps its list in\n  `<config dir>/obs-studio-rust/plugin_manager/modules.json`. An entry with\n  `\"enabled\": false` keeps that module from loading. `module_name` is the\n  file name without its extension (`advanced-scene-switcher`, not\n  `advanced-scene-switcher.so`).\n- Some plugins load sub-plugins of their own, which the Plugin Manager does\n  not list. Advanced Scene Switcher loads every `.so` in\n  `obs-plugins/advanced-scene-switcher-plugins/`. Move one file out of that\n  folder at a time.\n- Test with an empty scene collection first. If that hangs too, the sources\n  are not the cause.\n- When a plugin that \"worked before\" hangs, compare its package history as\n  well as its source. In #3739 the plugin code did not change: its Arch\n  package changed the libremidi version it builds against.","chars":996,"tokens_est":249,"sha256":"7cbd6993837ff0366fb8f864b9231814558dae3ad9f21714bfd36ccfa2c9ea9e"},{"id":"docs-knowledge-sanitizer-dispatch#top","doc":"docs-knowledge-sanitizer-dispatch","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Dispatch sanitizers on a separate ref"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-dispatch.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-dispatch.md","text":"[Dispatch sanitizers on a separate ref]\n---\ntype: concept\ntitle: Dispatch sanitizers on a separate ref\ndescription: A `workflow_dispatch` of `sanitizers.yaml` on a PR branch cancels the run in progress there; dispatch on a separate ref.\nsources: [\"#3290\", \"#491\"]\nstatus: active\n---\n\n## The trap\n`.github/workflows/sanitizers.yaml` has\n\n```yaml\nconcurrency:\n  group: sanitizers-${{ github.ref }}\n  cancel-in-progress: true\n```\n\nOne group per ref. Dispatching it on a PR branch (`gh workflow run\nsanitizers.yaml --ref <branch> -f tools=asan`) while that branch's run (the\nPR's own `asan` pass, or an earlier dispatch) is in progress cancels that run.\nTwo dispatches for different tools on the same branch also cancel each other:\nonly the last survives.","chars":751,"tokens_est":188,"sha256":"2d476b389919d6ee2d8c58e8c258442c863aa466c870fd12ba78d689f1cc0761"},{"id":"docs-knowledge-sanitizer-dispatch#dispatch-sanitizers-on-a-separate-ref-what-to-do-instead","doc":"docs-knowledge-sanitizer-dispatch","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Dispatch sanitizers on a separate ref","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-dispatch.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-dispatch.md","text":"[Dispatch sanitizers on a separate ref \u203a What to do instead]\nPush the commit you want to measure to its own throwaway ref and dispatch there,\none ref per concurrent run:\n\n```sh\ngit push origin HEAD:refs/heads/san/<issue>-asan\ngh workflow run sanitizers.yaml --ref san/<issue>-asan -f tools=asan\n```\n\nOr use `-f tools=all` in a single dispatch. Delete the throwaway branches when\ndone (#3290 did this for its measurement runs).","chars":426,"tokens_est":106,"sha256":"388f6f31bf027cd269089bd119510027d8e5a993f91ff6d2281e760e1eeca86f"},{"id":"docs-knowledge-sanitizer-known-list#top","doc":"docs-knowledge-sanitizer-known-list","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["The sanitizer known list"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md","text":"[The sanitizer known list]\n---\ntype: concept\ntitle: The sanitizer known list\ndescription: The `bug`/`third-party`/`tool` kinds in `rust/tools/sanitize/triage.py`, the LeakSanitizer suppressions in `lsan.supp`, how to add an entry, and why a `bug` entry that runs clean fails the job.\nsources: [\"#3290\", \"#3238\", \"#3365\", \"#3368\", \"#3370\"]\nstatus: active\n---","chars":357,"tokens_est":89,"sha256":"f4338f2bc267fde6c83b4ea41595d2254ae6a44d64ff51890f4d8988b04a1646"},{"id":"docs-knowledge-sanitizer-known-list#the-sanitizer-known-list-what-it-is","doc":"docs-knowledge-sanitizer-known-list","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["The sanitizer known list","What it is"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md#what-it-is","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md","text":"[The sanitizer known list \u203a What it is]\n`KNOWN` in `rust/tools/sanitize/triage.py` maps `(tool, test)` to\n`(kind, why)`. A listed test's exit and its sanitizer reports are shown under\n\"Known (not counted)\" and do not fail the job. The kinds:\n\n- `bug`: the test is right and OBS (or its build) is wrong. `why` names the\n  open issue.\n- `third-party`: the failure is inside a library OBS uses, and no narrow\n  suppression can match it. `why` names the issue that tracks the upstream fix.\n- `tool`: a limitation of the sanitizer itself, no OBS issue (two valgrind entries).","chars":570,"tokens_est":142,"sha256":"b44454f973cb92ce6346d8bb03afb155100107e60aecab6b3f9f71d0d3fbc62c"},{"id":"docs-knowledge-sanitizer-known-list#the-sanitizer-known-list-suppress-a-library-s-own-leak-don-t-list-the-test","doc":"docs-knowledge-sanitizer-known-list","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["The sanitizer known list","Suppress a library's own leak, don't list the test"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md#suppress-a-librarys-own-leak-dont-list-the-test","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md","text":"[The sanitizer known list \u203a Suppress a library's own leak, don't list the test]\nA leak whose whole allocation stack is inside a library (no OBS frame) goes in\n`rust/tools/sanitize/lsan.supp`, one `leak:` line that matches only that\nstack. `sanitize.py` passes it as `LSAN_OPTIONS=suppressions=...` to every\ntest and the app. The test stays off the known list, so any other leak in it\nstill fails the job. Match one library entry point, never a whole module\n(`libavcodec.so` would also hide an `AVPacket` OBS never frees). The first one is\nFFmpeg 8.0.1's leak in `avformat_find_stream_info` on a VP9-alpha WebM that starts\nbetween keyframes, which `test_media_alpha_network` hit (#3365); FFmpeg 9.0.2 does\nnot leak there. Take a line out when the library is updated past the fix.","chars":778,"tokens_est":194,"sha256":"dc880fae36a7ca7a61b29bd2c562cbbfb6b103f1240a0ec458d819e5f546fb29"},{"id":"docs-knowledge-sanitizer-known-list#the-sanitizer-known-list-the-trap","doc":"docs-knowledge-sanitizer-known-list","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["The sanitizer known list","The trap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md#the-trap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md","text":"[The sanitizer known list \u203a The trap]\nA `bug` or `third-party` entry whose test ran clean is reported under \"Known bugs that ran clean:\ndrop the entry (counted)\" and counts as a finding, so with\n`--fail-on-findings` (always on for asan) the job fails. That is on purpose:\nthe fix for the bug must remove its entry in the same PR, or the list goes\nstale and starts hiding the next regression. A clean `tool` entry is only listed.\n\nThe former `flaky` kind was retired after its last tracked failure was fixed\n(#3368, #3370). An intermittent failure still needs its cause investigated;\nit is not a separate exemption kind.","chars":619,"tokens_est":155,"sha256":"49f114fdf068c858627ef20497086d0706fb713b687ccfb99e712f91bc4194bd"},{"id":"docs-knowledge-sanitizer-known-list#the-sanitizer-known-list-how-to-add-an-entry","doc":"docs-knowledge-sanitizer-known-list","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["The sanitizer known list","How to add an entry"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md#how-to-add-an-entry","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/sanitizer-known-list.md","text":"[The sanitizer known list \u203a How to add an entry]\nRead [asan-pr-failure.md](asan-pr-failure.md) first: fix the test if you can. The\ngoal for this list is zero entries.\n\n1. Open (or find) the issue that tracks the failure; never add an entry without one,\n   except `tool`.\n2. Pick the kind honestly: an OBS bug is `bug`, a library bug no suppression can\n   match is `third-party`, a sanitizer limitation is `tool`.\n   Fix timing tests to wait for their result ([timing-tests.md](timing-tests.md));\n   a leak in the test is not an entry at all: fix the test\n   ([test-leaks.md](test-leaks.md)).\n3. Add `(\"<tool>\", \"<test>\"): (\"<kind>\", \"<what happens> (#<issue>)\")`.\n4. When the issue is fixed, drop the entry in the fixing PR.\n\n## Checks\n- `triage.py --fail-on-findings`, passed for asan by `ci/sanitizers_step.py` since #3290.","chars":825,"tokens_est":206,"sha256":"c36003e5bdbb21fdbb6b256befba06eefc4fbf3eb5b8ffa65b37cbad9f476339"},{"id":"docs-knowledge-shutdown-deferred-destroy#top","doc":"docs-knowledge-shutdown-deferred-destroy","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A source's destroy runs later, on another thread"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md","text":"[A source's destroy runs later, on another thread]\n---\ntype: concept\ntitle: A source's destroy runs later, on another thread\ndescription: \"obs_source_destroy queues its work on the destruction task thread, so obs_shutdown can free what a queued destroy still uses; wait in a loop until the queue is empty.\"\nsources: [\"#3431\", \"#3441\", \"#3442\", \"#3364\", \"#3458\"]\nstatus: active\n---","chars":380,"tokens_est":95,"sha256":"7c76d1b4cb5829ec974929f3bd0241da68921148422aa60702b0769285b7eafb"},{"id":"docs-knowledge-shutdown-deferred-destroy#a-source-s-destroy-runs-later-on-another-thread-the-trap","doc":"docs-knowledge-shutdown-deferred-destroy","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A source's destroy runs later, on another thread","The trap"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md#the-trap","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md","text":"[A source's destroy runs later, on another thread \u203a The trap]\n`obs_source_destroy()` does not finish the destroy. It queues\n`obs_source_destroy_defer()` on `obs->destruction_task_thread`\n(`libobs/obs-source.c.h`). A scene's deferred destroy then releases the sources in\nits items, so it can queue more work and drop more references, on that thread,\nwhile the main thread goes on.\n\n`os_task_queue_wait()` does not mean \"the queue is empty\". It returns true if\ntasks ran before its marker (`wait` in `rust/obs-util/src/task.rs`). A task\nthat ran can have queued another.","chars":568,"tokens_est":142,"sha256":"147b0a07bb90b53a44f64cae7e542853491ea415abbf0537c1bec5b44833e539"},{"id":"docs-knowledge-shutdown-deferred-destroy#a-source-s-destroy-runs-later-on-another-thread-how-it-showed-up","doc":"docs-knowledge-shutdown-deferred-destroy","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A source's destroy runs later, on another thread","How it showed up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md#how-it-showed-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md","text":"[A source's destroy runs later, on another thread \u203a How it showed up]\n#3431 made `obs_shutdown()` give back the control block of each source left alive.\nA scene's deferred destroy could still release one of those sources, so that\nrelease wrote to a freed block (#3441). It shipped in a beta. The ASan report depends\non timing: through the harness, with load on 4 cores, 26 of 30 runs showed it.","chars":394,"tokens_est":98,"sha256":"c4239955dab9fe222a4568e199b91bf73cc28576db2d117f5c3e274355a7d066"},{"id":"docs-knowledge-shutdown-deferred-destroy#a-source-s-destroy-runs-later-on-another-thread-what-to-do-instead","doc":"docs-knowledge-shutdown-deferred-destroy","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["A source's destroy runs later, on another thread","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/shutdown-deferred-destroy.md","text":"[A source's destroy runs later, on another thread \u203a What to do instead]\n- Before you free something a queued destroy can touch, run the queue until it is\n  empty: `while (os_task_queue_wait(obs->destruction_task_thread)) ;`.\n- If a destroy that starts later can still drop the last reference, hold the\n  control block yourself across it, as `obs_free_data()` in `libobs/obs.c.h` does.\n- To test an order like this, force the race on every run. Do not depend on load:\n  `test_scene_items_are_released_not_left_alive` in\n  `test/cmocka/test_shutdown_canvas_weak_ref.c` delays the first item removal by\n  200 ms.\n\n#3458 tracks the hazards that are left when the host leaks a scene at shutdown.\n\n## Checks\n`test_shutdown_canvas_weak_ref` (Tier 2, all libobs backends) and the asan job.","chars":781,"tokens_est":195,"sha256":"cf56ef32f67a29fe4522023797237707973125bf7b7c7895f7ebef0e15938627"},{"id":"docs-knowledge-test-leaks#top","doc":"docs-knowledge-test-leaks","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Free what OBS's destroy path frees"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/test-leaks.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/test-leaks.md","text":"[Free what OBS's destroy path frees]\n---\ntype: concept\ntitle: Free what OBS's destroy path frees\ndescription: \"A test that skips OBS's destroy call leaks what that call frees, and the asan job fails on that since #3290.\"\nsources: [\"#3400\", \"#3401\", \"#3290\"]\nstatus: active\n---\n\n## The trap\nA unit test drives one internal function on a struct it built itself (on the\nstack, or with only part of the create call). OBS never leaks there, because\nits destroy or close path frees what the function allocated. The test does not\ngo through that path, so it leaks. Tier 2 does not check leaks, so it passes\nthere; LeakSanitizer and valgrind report it.","chars":644,"tokens_est":161,"sha256":"eae34800a6b80c39d1071738accd1fe160c6536e3b3d017772635d3c0eea156b"},{"id":"docs-knowledge-test-leaks#free-what-obs-s-destroy-path-frees-how-it-showed-up","doc":"docs-knowledge-test-leaks","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Free what OBS's destroy path frees","How it showed up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/test-leaks.md#how-it-showed-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/test-leaks.md","text":"[Free what OBS's destroy path frees \u203a How it showed up]\n- #3400: `test_ffmpeg_mux_write_packet` leaked the 64 KiB `stream->packet_buf`\n  that `write_packet()` grows with `da_*`. OBS frees it in\n  `ffmpeg_mux_destroy()`; the test's stream never went there. Fix: `da_free()`\n  the buffer at the end of the test.\n- #3401: `test_rtmp_send_batch` leaked the per-channel packets\n  `RTMP_SendPacket()` keeps. OBS calls `RTMP_Close()` (which frees\n  `m_vecChannelsOut`) on every disconnect; the test only called `RTMP_Free()`.\n  Fix: `RTMP_Close()` before `RTMP_Free()`.","chars":562,"tokens_est":140,"sha256":"e956db6e95c0baf60425010b5d7a3e75148a13eaa02fa9f15870f5071f868b34"},{"id":"docs-knowledge-test-leaks#free-what-obs-s-destroy-path-frees-what-to-do-instead","doc":"docs-knowledge-test-leaks","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Free what OBS's destroy path frees","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/test-leaks.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/test-leaks.md","text":"[Free what OBS's destroy path frees \u203a What to do instead]\nBefore writing such a test, read the destroy/close path of the object you\ntouch and free exactly what it frees, the way it frees it (call the same close\nfunction where you can, rather than freeing fields by hand). Do not free more:\nthat hides a real leak in OBS. Never change an assertion to fix a leak.\n\n## Checks\n- The `asan` job in `sanitizers.yaml` runs with `--fail-on-findings` since\n  #3290, so a LeakSanitizer report from a test fails it.\n- A leak you cannot fix in the test belongs in the known list only as a\n  tracked `bug` (see [sanitizer-known-list.md](sanitizer-known-list.md)).","chars":650,"tokens_est":162,"sha256":"045c1ef4035e3041a05b3e64646f24863cd1917ed7c048d2bd0bac9e635e4c34"},{"id":"docs-knowledge-timing-tests#top","doc":"docs-knowledge-timing-tests","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Timing tests wait for the result"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/timing-tests.md#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/timing-tests.md","text":"[Timing tests wait for the result]\n---\ntype: concept\ntitle: Timing tests wait for the result\ndescription: Wait for the frame or packet you check, not a frame count or a fixed sleep; when a test needs the `timing` resource lock.\nsources: [\"#3389\", \"#3390\", \"#3421\", \"#3290\"]\nstatus: active\n---\n\n## The trap\nA test that renders a scene or plays media checks the output after \"enough\"\nframes or after a fixed time. On an idle machine that is enough; in the asan\npool (every core busy, ASan slowing each process) it is not, and the test reads\noutput from before the thing it checks happened. `testing-policy.md` says \"No\nsleeps: synchronize on events\"; a frame count is a sleep measured in frames.","chars":693,"tokens_est":173,"sha256":"3fd7f2c5b78893faeb56684717dfed7e096cd0d5238a4420b14023491c07e2c0"},{"id":"docs-knowledge-timing-tests#timing-tests-wait-for-the-result-how-it-showed-up","doc":"docs-knowledge-timing-tests","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Timing tests wait for the result","How it showed up"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/timing-tests.md#how-it-showed-up","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/timing-tests.md","text":"[Timing tests wait for the result \u203a How it showed up]\n- #3389: `test_darken_transparent`'s `run_scene` was \"ready\" after 10 output\n  frames, not after a frame that showed the scene. Under load the first pass\n  measured luma 0 (no frame drawn yet, not even video black 16).\n- #3390: `test_deinterlace_mode_load` pushed at most 90 frames (3 s) for Yadif\n  2x to show the source; under ASan it needed close to all of them.\n- #3421: `test_media_cover_art_monitor` plays real media in real time; in the\n  pool the first play got 0 packets inside its window.\n- #3290: `test_slideshow_mem_cap` waited out a 5 s timeout on each of 12\n  presses that never landed (100 s, now 42 s once each press waits for its picture).","chars":710,"tokens_est":178,"sha256":"cbe69b86a8a5aea6971cc6727d0b45a4e99535d84aac50816565fc6968e51dcf"},{"id":"docs-knowledge-timing-tests#timing-tests-wait-for-the-result-what-to-do-instead","doc":"docs-knowledge-timing-tests","group":"knowledge","tier":"process","kind":"prose","breadcrumb":["Timing tests wait for the result","What to do instead"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/timing-tests.md#what-to-do-instead","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/knowledge/timing-tests.md","text":"[Timing tests wait for the result \u203a What to do instead]\n1. Wait on the condition the assertion checks: poll output frames until one\n   shows the scene (for example, a pixel that is not black), or until the\n   packet you count has arrived, with a generous upper bound that only turns a\n   hang into a failure. Report how many frames or how long it took on failure.\n2. Never make the bound the thing that passes the test.\n3. If the test inherently depends on wall-clock (real-time playback, an audio\n   tone, a dock layout settling), add it to the `timing` resource lock:\n   `set_tests_properties(<test> PROPERTIES RESOURCE_LOCK timing)` in its\n   `test/cmocka/tests.d/<test>.cmake`, or `resource_locks: [\"timing\"]` in\n   `test/cmocka/build/test-graph.json`. The sanitizer pool then runs it alone\n   after the others; in Tier 2 ctest only keeps such tests from overlapping.\n   Add the name to `TIMING_TESTS_D`/`TIMING_TESTS_GRAPH` in\n   `ci/test_sanitize_harness.py`.\n\nThe lock is a mitigation, not a fix: a test that waits for its result\ndoes not need it.\n\n## Checks\n- `ci/test_sanitize_harness.py` `TimingLockTest`: the listed timing tests hold the lock.\n- The asan job (`sanitizers.yaml`) fails on a unit-test failure since #3290.","chars":1231,"tokens_est":308,"sha256":"696f200295d4fd23f076062da99a2462d2fd02afec8837ccab320bc65a11cf35"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#obs-studio-backend-design","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design]\nThe OBS Studio backend is powered by the library libobs.  Libobs\nprovides the main pipeline, the video/audio subsystems, and the general\nframework for all plugins.\n\n## Libobs Plugin Objects\nLibobs is designed to be modular, where adding modules will add custom\nfunctionality.  There are four libobs objects that you can make plugins\nfor:\n\n- `plugins_sources` -- Sources are used to render video and/or\n  audio on stream.  Things such as capturing displays/games/audio,\n  playing a video, showing an image, or playing audio.  Sources can also\n  be used to implement audio and video filters.\n\n- `plugins_outputs` -- Outputs allow the ability to output the\n  currently rendering audio/video.  Streaming and recording are two\n  common examples of outputs, but not the only types of outputs.\n  Outputs can receive the raw data or receive encoded data.\n\n- `plugins_encoders` -- Encoders are OBS-specific implementations\n  of video/audio encoders, which are used with outputs that use\n  encoders.  x264, NVENC, Quicksync are examples of encoder\n  implementations.\n\n- `plugins_services` -- Services are custom implementations of\n  streaming services, which are used with outputs that stream.  For\n  example, you could have a custom implementation for streaming to\n  Twitch, and another for YouTube to allow the ability to log in and use\n  their APIs to do things such as get the RTMP servers or control the\n  channel.\n\n*(Author's note: the service API is incomplete as of this writing)*","chars":1506,"tokens_est":376,"sha256":"5777d3f59266f4892756d2901875ed0f33963c1a20a8f3bc87af58c85287b70f"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design-libobs-threads","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design","Libobs Threads"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#libobs-threads","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design \u203a Libobs Threads]\nThere are three primary threads spawned by libobs on initialization:\n\n- The obs_graphics_thread_ function used exclusively for rendering in\n  `libobs/obs-video.c`_\n\n- The video_thread_ function used exclusively for video encoding/output\n  in `libobs/media-io/video-io.c`_\n\n- The audio_thread_ function used for all audio\n  processing/encoding/output in `libobs/media-io/audio-io.c`_\n\n*(Author's note: obs_graphics_thread was originally named\nobs_video_thread; it was renamed as of this writing to prevent confusion\nwith video_thread)*\n\n.. _output_channels:","chars":601,"tokens_est":150,"sha256":"45d59b5a0d2a95612f9ee41aecda47303d753669479637fb9f79fed1110ce350"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design-output-channels","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design","Output Channels"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#output-channels","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design \u203a Output Channels]\nRendering video or audio starts from output channels.  You assign a\nsource to an output channel via the `obs_set_output_source()`\nfunction.  The *channel* parameter can be any number from\n0..(MAX_CHANNELS_-1).  You may initially think that this is how you\ndisplay multiple sources at once; however, sources are hierarchical.\nSources such as scenes or transitions can have multiple sub-sources, and\nthose sub-sources in turn can have sub-sources and so on (see\n`displaying_sources` for more information).  Typically, you would\nuse scenes to draw multiple sources as a group with specific transforms\nfor each source, as a scene is just another type of source.  The\n\"channel\" design allows for highly complex video presentation setups.\nThe OBS Studio front-end has yet to even fully utilize this back-end\ndesign for its rendering, and currently only uses one output channel to\nrender one scene at a time.  It does however utilize additional channels\nfor things such as global audio sources which are set in audio settings.\n\n*(Author's note: \"Output channels\" are not to be confused with output\nobjects or audio channels.  Output channels are used to set the sources\nyou want to output, and output objects are used for actually\nstreaming/recording/etc.)*","chars":1296,"tokens_est":324,"sha256":"473350a4ca0a44bc4bf8ca12e1d50c9beaecefe25aa3aa8715ab11ca4599ddc6"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design-general-video-pipeline-overview","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design","General Video Pipeline Overview"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#general-video-pipeline-overview","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design \u203a General Video Pipeline Overview]\nThe video graphics pipeline is run from two threads: a dedicated\ngraphics thread that renders preview displays as well as the final mix\n(the obs_graphics_thread_ function in `libobs/obs-video.c`_), and a\ndedicated thread specific to video encoding/output (the video_thread_\nfunction in `libobs/media-io/video-io.c`_).\n\nSources assigned to output channels will be drawn from channels\n0..(MAX_CHANNELS_-1).  They are drawn on to the final texture which will\nbe used for output `[1]`_.  Once all sources are drawn, the final\ntexture is converted to whatever format that libobs is set to (typically\na YUV format).  After being converted to the back-end video format, it's\nthen sent along with its timestamp to the current video handler,\n`obs_core_video::video`_.\n\nIt then puts that raw frame in a queue of MAX_CACHE_SIZE_ in the `video\noutput handler`_.  A semaphore is posted, then the video-io thread will\nprocess frames as it's able.  If the video frame queue is full, it will\nduplicate the last frame in the queue in an attempt to reduce video\nencoding complexity (and thus CPU usage) `[2]`_.  This is why you may\nsee frame skipping when the encoder can't keep up.  Frames are sent to\nany raw outputs or video encoders that are currently active `[3]`_.\n\nIf it's sent to a video encoder object (`libobs/obs-encoder.c`_), it\nencodes the frame and sends the encoded packet off to the outputs that\nencoder is connected to (which can be multiple).  If the output takes\nboth encoded video/audio, it puts the packets in an interleave queue to\nensure encoded packets are sent in monotonic timestamp order `[4]`_.\n\nThe encoded packet or raw frame is then sent to the output.","chars":1727,"tokens_est":432,"sha256":"02594d01a067be4b92cf01fd853581eaaf2927d264db4ee33d021717bba66036"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design-general-audio-pipeline-overview","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design","General Audio Pipeline Overview"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#general-audio-pipeline-overview","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design \u203a General Audio Pipeline Overview]\nThe audio pipeline is run from a dedicated audio thread in the audio\nhandler (the `audio_thread`_ function in `libobs/media-io/audio-io.c`_);\nassuming that AUDIO_OUTPUT_FRAMES_ is set to 1024, the audio thread\n\"ticks\" (processes audio data) once every 1024 audio samples (around\nevery 21 millisecond intervals at 48khz), and calls the audio_callback_\nfunction in `libobs/obs-audio.c`_ where most of the audio processing is\naccomplished.\n\nA source with audio will output its audio via the\nobs_source_output_audio_ function, and that audio data will be appended\nor inserted in to the circular buffer `obs_source::audio_input_buf`_.\nIf the sample rate or channel count does not match what the back-end is\nset to, the audio is automatically remixed/resampled via swresample\n`[5]`_.  Before insertion, audio data is also run through any audio\nfilters attached to the source `[6]`_.\n\nEach audio tick, the audio thread takes a reference snapshot of the\naudio source tree (stores references of all sources that output/process\naudio) `[7]`_.  On each audio leaf (audio source), it takes the closest\naudio (relative to the current audio thread timestamp) stored in the\ncircular buffer `obs_source::audio_input_buf`_, and puts it in\n`obs_source::audio_output_buf`_.\n\nThen, the audio samples stored in `obs_source::audio_output_buf`_ of the\nleaves get sent through their parents in the source tree snapshot for\nmixing or processing at each source node in the hierarchy `[8]`_.\nSources with multiple children such as scenes or transitions will\nmix/process their children's audio themselves via the\n`obs_source_info::audio_render`_ callback.  This allows, for example,\ntransitions to fade in the audio of one source and fade in the audio of\na new source when they're transitioning between two sources.  The mix or\nprocessed audio data is then stored in `obs_source::audio_output_buf`_\nof that node similarly, and the process is repeated until the audio\nreaches the root nodes of the tree.","chars":2036,"tokens_est":509,"sha256":"3a6df6ed9811a9580bdf8cd5f55ebbe2915517f962a5f45ad2e5cb584130fb7d"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design-general-audio-pipeline-overview~2","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design","General Audio Pipeline Overview"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#general-audio-pipeline-overview","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design \u203a General Audio Pipeline Overview]\nFinally, when the audio has reached the base of the snapshot tree, the\naudio of all the sources in each output channel are mixed together for a\nfinal mix `[9]`_.  That final mix is then sent to any raw outputs or\naudio encoders that are currently active `[10]`_.\n\nIf it's sent to an audio encoder object (`libobs/obs-encoder.c`_), it\nencodes the audio data and sends the encoded packet off to the outputs\nthat encoder is connected to (which can be multiple).  If the output\ntakes both encoded video/audio, it puts the packets in an interleave\nqueue to ensure encoded packets are sent in monotonic timestamp order\n`[4]`_.\n\nThe encoded packet or raw audio data is then sent to the output.","chars":748,"tokens_est":187,"sha256":"b8a3340728ae2d7fa526604a6dba598c6caa7bd11ae1b72f02e3751776262e1f"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design-general-audio-pipeline-overview~3","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design","General Audio Pipeline Overview"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#general-audio-pipeline-overview","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design \u203a General Audio Pipeline Overview]\n.. _obs_graphics_thread: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-video.c#L588-L651\n.. _libobs/obs-audio.c: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-audio.c\n.. _libobs/obs-video.c: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-video.c\n.. _video_thread: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/media-io/video-io.c#L169-L195\n.. _libobs/media-io/video-io.c: https://github.com/obsproject/obs-studio/blob/master/libobs/media-io/video-io.c\n.. _video output handler: https://github.com/obsproject/obs-studio/blob/master/libobs/media-io/video-io.c\n.. _audio_thread: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/media-io/audio-io.c#L241-L282\n.. _libobs/media-io/audio-io.c: https://github.com/obsproject/obs-studio/blob/master/libobs/media-io/audio-io.c\n.. _MAX_CHANNELS: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-defs.h#L20-L21\n.. _[1]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-video.c#L99-L129\n.. _obs_core_video::video: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-internal.h#L250\n.. _MAX_CACHE_SIZE: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/media-io/video-io.c#L34\n.. _[2]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/media-io/video-io.c#L431-L434\n.. _[3]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/media-io/video-io.c#L115-L167\n.. _libobs/obs-encoder.c: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-encoder.c\n.. _[4]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-output.c#L1382-L1439\n..","chars":2039,"tokens_est":510,"sha256":"782761f72cc907d982b0183d55fd2120904c2d60604898fce7f1ece8ba044f85"},{"id":"docs-sphinx-backend-design#obs-studio-backend-design-general-audio-pipeline-overview~4","doc":"docs-sphinx-backend-design","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Backend Design","General Audio Pipeline Overview"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst#general-audio-pipeline-overview","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/backend-design.rst","text":"[OBS Studio Backend Design \u203a General Audio Pipeline Overview]\n_AUDIO_OUTPUT_FRAMES: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/media-io/audio-io.h#L30\n.. _audio_callback: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-audio.c#L367-L485\n.. _obs_source_output_audio: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-source.c#L2578-L2608\n.. _obs_source::audio_input_buf: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-source.c#L1280-L1283\n.. _[5]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-source.c#L2561-L2563\n.. _[6]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-source.c#L2591\n.. _[7]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-audio.c#L393-L415\n.. _obs_source::audio_output_buf: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-internal.h#L580\n.. _[8]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-audio.c#L417-L423\n.. _obs_source_info::audio_render: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-source.h#L410-L412\n.. _[9]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/obs-audio.c#L436-L453\n.. _[10]: https://github.com/obsproject/obs-studio/blob/2c58185af3c85f4e594a4c067c9dfe5fa4b5b0a9/libobs/media-io/audio-io.c#L144-L165","chars":1696,"tokens_est":424,"sha256":"af83762be79eed2915e84783458bd71a94d2aaa76c1e629cac23f44665cbbb75"},{"id":"docs-sphinx-frontends#frontends-initialization-and-shutdown","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Initialization and Shutdown"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#initialization-and-shutdown","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Initialization and Shutdown]\nTo initialize libobs, you must call `obs_startup()`,\n`obs_reset_video()`, and then `obs_reset_audio()`.\nAfter that, modules typically should be loaded.\n\nYou can load individual modules manually by calling\n`obs_open_module()`.  After loading, the\n`obs_open_module()` function, you must then call\n`obs_init_module()` to initialize the module.\n\nYou can load modules automatically via two functions:\n`obs_add_module_path()` and `obs_load_all_modules()`.\n\nAfter all plugin modules have been loaded, call\n`obs_post_load_modules()`.\n\nCertain modules may optionally use a configuration storage directory,\nwhich is set as a parameter to `obs_startup()`.\n\nWhen it's time to shut down the frontend, make sure to release all\nreferences to any objects, free any data, and then call\n`obs_shutdown()`.  If for some reason any libobs objects have\nnot been released, they will be destroyed automatically and a warning\nwill be logged.\n\nTo detect if any general memory allocations have not been freed, call\nthe `bnum_allocs()` to get the number of allocations remaining.\nIf the number remaining is above 0, there are memory leaks.\n\nSee `obs_init_shutdown_reference` for more information.","chars":1210,"tokens_est":302,"sha256":"59829ee23a9e29004b2d96486fda5486f86b1adc8f09369bc4560772fa0ec5e0"},{"id":"docs-sphinx-frontends#frontends-reconfiguring-video","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Reconfiguring Video"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#reconfiguring-video","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Reconfiguring Video]\nAny time after initialization, video settings can be reconfigured by\ncalling `obs_reset_video()` as long as no outputs are active.\nAudio was originally intended to have this capability as well, but\ncurrently is not able to be reset once initialized; libobs must be fully\nshutdown in order to reconfigure audio settings.","chars":353,"tokens_est":88,"sha256":"a2faccbd51c59c19af5662840aa12f3f4ef5a11af9aaf1cc51f8788710e75728"},{"id":"docs-sphinx-frontends#frontends-displays","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Displays"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#displays","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Displays]\nDisplays as the name implies are used for display/preview panes.  To use\ndisplays, you must have a native window handle or identifier to draw on.\n\nFirst you must call `obs_display_create()` to initialize the\ndisplay, then you must assign a draw callback with\n`obs_display_add_draw_callback()`.  If you need to remove a draw\ncallback, call `obs_display_remove_draw_callback()` similarly.\n\nWhen drawing, to draw the main preview window (if any), call\n`obs_render_main_texture()`.  If you need to render a specific\nsource on a secondary display, you can increment its \"showing\" state\nwith `obs_source_inc_showing()` while it's showing in the\nsecondary display, draw it with `obs_source_video_render()` in\nthe draw callback, then when it's no longer showing in the secondary\ndisplay, call `obs_source_dec_showing()`.\n\nIf the display needs to be resized, call `obs_display_resize()`.\n\nIf the display needs a custom background color other than black, call\n`obs_display_set_background_color()`.\n\nIf the display needs to be temporarily disabled, call\n`obs_display_set_enabled()` to disable, and\n`obs_display_enabled()` to get its enabled/disabled state.\n\nThen call `obs_display_destroy()` to destroy the display when\nit's no longer needed.\n\n*(Important note: do not use more than one display widget within the\nhierarchy of the same base window; this will cause presentation stalls\non macOS.)*\n\nFor an example of how displays are used with Qt, see\n`UI/qt-display.hpp`_ and `UI/qt-display.cpp`_.\n\nSee `display_reference` for more information.","chars":1555,"tokens_est":389,"sha256":"30fd97e8bf3d079dd101d0c674c7af835d65ea89c38581d1f36fe7271f2f8f97"},{"id":"docs-sphinx-frontends#frontends-saving-loading-objects-and-object-management","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Saving/Loading Objects and Object Management"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#savingloading-objects-and-object-management","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Saving/Loading Objects and Object Management]\nThe frontend is generally expected to manage its own objects, however\nfor sources, there are some helper functions to allow easier\nsaving/loading all sources: `obs_save_sources()` and\n`obs_load_sources()`.  With those functions, all sources that\naren't private will automatically be saved and loaded.  You can also\nsave/load individual sources manually by using\n`obs_save_source()` and `obs_load_source()`.\n\n*(Author's note: I should not have written those helper functions; the\ndownside is I had to add \"private\" sources that aren't saveable via the*\n`obs_source_create_private()` *function.  Just one of the many\nminor design flaws that can occur during long-term development.)*\n\nFor outputs, encoders, and services, there are no helper functions, so\nusually you'd get their settings individually and save them as json.\n(See `obs_output_get_settings()`).  You don't have to save each\nobject to different files individually; you'd save multiple objects\ntogether in a bigger `obs_data_t` object, then save that via\n`obs_data_save_json_safe()`, then load everything again via\n`obs_data_create_from_json_file_safe()`.","chars":1174,"tokens_est":294,"sha256":"9fe209b251bdd223f866edea73a762ee6a11a1e60b29831f2e2c90731980b1f7"},{"id":"docs-sphinx-frontends#frontends-signals","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Signals]\nThe core, as well as scenes and sources, have a set of standard signals\nthat are used to determine when something happens or changes.\n\nTypically the most important signals are the\n`output_signal_handler_reference`:  the **start**, **stop**,\n**starting**, **stopping**, **reconnect**, **reconnect_success**\nsignals in particular.\n\nMost other signals for scenes/sources are optional if you are the only\nthing controlling their state.  However, it's generally recommended to\nwatch most signals when possible for consistency.  See\n`source_signal_handler_reference` and `scene_signal_reference`\nfor more information.\n\nFor example, let's say you wanted to connect a callback to the **stop**\nsignal of an output.  The **stop** signal has two parameters:  *output*\nand *code*.  A callback for this signal would typically look something\nlike this:\n\n.. code:: cpp\n\n   static void output_stopped(void *my_data, calldata_t *cd)\n   {\n           obs_output_t *output = calldata_ptr(cd, \"output\");\n           int code = calldata_int(cd, \"code\");\n\n           [...]\n   }\n\n*(Note that callbacks are not thread-safe.)*\n\nThen to connect it to the **stop** signal, you use the\n`signal_handler_connect()` with the callback.  In this case for\nexample:\n\n.. code:: cpp\n\n   signal_handler_t *handler = obs_output_get_signal_handler(output);\n   signal_handler_connect(handler, \"stop\", output_stopped);\n\n.. _displaying_sources:","chars":1421,"tokens_est":355,"sha256":"310b2a89928c1eb42d4084b2aae57276d01970ea453456ba0f2c3e11dd1c07ac"},{"id":"docs-sphinx-frontends#frontends-displaying-sources","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Displaying Sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#displaying-sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Displaying Sources]\nSources are displayed on stream/recording via `output_channels`\nwith the `obs_set_output_source()` function.  There are 64\nchannels that you can assign sources to, which will draw on top of each\nother in ascending index order.  Typically, a normal source shouldn't be\ndirectly assigned with this function; you would use a scene or a\ntransition containing scenes.\n\nTo draw one or more sources together with a specific transform applied\nto them, scenes are used.  To create a scene, you call\n`obs_scene_create()`.  Child sources are referenced using scene\nitems, and then specific transforms are applied to those scene items.\nScene items are not sources but containers for sources; the same source\ncan be referenced by multiple scene items within the same scene, or can\nbe referenced in multiple scenes.  To create a scene item that\nreferences a source, you call `obs_scene_add()`, which returns a\nnew reference to a scene item.\n\nTo change the transform of a scene item, you typically would call a\nfunction like `obs_sceneitem_set_pos()` to change its position,\n`obs_sceneitem_set_rot()` to change its rotation, or\n`obs_sceneitem_set_scale()` to change its scaling.  Scene items\ncan also force scaling in to a custom size constraint referred to as a\n\"bounding box\"; a bounding box will force the source to be drawn at a\nspecific size and with specific scaling constraint within that size.  To\nuse a bounding box, you call the\n`obs_sceneitem_set_bounds_type()`,\n`obs_sceneitem_set_bounds()`, and\n`obs_sceneitem_set_bounds_alignment()`.  Though the easiest way\nto handle everything related to transforms is to use the\n`obs_sceneitem_set_info2()` and\n`obs_sceneitem_get_info2()` functions.  See\n`scene_item_reference` for all the functions related to scene\nitems.","chars":1791,"tokens_est":448,"sha256":"d9d3997c246e2870570998d15907b5ca94ffc5f7873cf0f1f2fcf5c2caea894b"},{"id":"docs-sphinx-frontends#frontends-displaying-sources~2","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Displaying Sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#displaying-sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Displaying Sources]\nUsually, a smooth transition between multiple scenes is required.  To do\nthis, transitions are used.  To create a transition, you use\n`obs_source_create()` or `obs_source_create_private()`\nlike any other source.  Then, to activate a transition, you call\n`obs_transition_start()`.  When the transition is not active and\nis only displaying one source, it performs a pass-through to the current\ndisplaying source.  See `transitions` for more functions related to\nusing transitions.\n\nThe recommended way to set up your structure is to have a transition as\nthe source that is used as the main output source, then your scene as a\nchild of the transition, then your sources as children in the scene.\nWhen you need to switch to a new scene, simply call\n`obs_transition_start()`.","chars":803,"tokens_est":201,"sha256":"85a4fec7260f84ef0d7de916fc2967d22f65efe8d61e42079b54ea07916bfe7d"},{"id":"docs-sphinx-frontends#frontends-outputs-encoders-and-services","doc":"docs-sphinx-frontends","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Frontends","Outputs, Encoders, and Services"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst#outputs-encoders-and-services","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/frontends.rst","text":"[Frontends \u203a Outputs, Encoders, and Services]\nOutputs, encoders, and services are all used together, and managed a bit\ndifferently than sources.  There currently is no global function to\nsave/load them, that must be accomplished manually for now via their\nsettings if needed.\n\nEncoders are used with outputs that expect encoded data (which is almost\nall typical outputs), such as standard file recording or streaming.\n\nServices are used with outputs to a stream; the `RTMP output`_ is the\nquintessential example of this.\n\nHere's an example of how an output would be used with encoders and\nservices:\n\n.. code:: cpp\n\n   obs_encoder_set_video(my_h264_encoder, obs_get_video());\n   obs_encoder_set_audio(my_aac_encoder, obs_get_audio());\n   obs_output_set_video_encoder(my_output, my_h264_encoder);\n   obs_output_set_audio_encoder(my_output, my_aac_encoder);\n   obs_output_set_service(my_output, my_service); /* if a stream */\n   obs_output_start(my_output);\n\nOnce the output has started successfully, it automatically starts\ncapturing the video and/or audio from the current video/audio output\n(i.e. any sources that are assigned to the `output_channels`).\n\nIf the output fails to start up, it will send the **stop** signal with\nan error code in the *code* parameter, possibly accompanied by a\ntranslated error message stored that can be obtained via the\n`obs_output_get_last_error()` function.\n\n.. --------------------------------------------------------------------\n\n.. _RTMP Output: https://github.com/obsproject/obs-studio/blob/master/plugins/obs-outputs/rtmp-stream.c\n.. _UI/qt-display.hpp: https://github.com/obsproject/obs-studio/blob/master/UI/qt-display.hpp\n.. _UI/qt-display.cpp: https://github.com/obsproject/obs-studio/blob/master/UI/qt-display.cpp","chars":1757,"tokens_est":439,"sha256":"8c90720d4fbd5842568aee781ec176deff56655b3e8377250aa4c119524c0ffa"},{"id":"docs-sphinx-graphics#rendering-graphics","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#rendering-graphics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics]\nLibobs has a custom-made programmable graphics subsystem that wraps both\nDirect3D 11 and OpenGL.  The reason why it was designed with a custom\ngraphics subsystem was to accommodate custom capture features only\navailable on specific operating systems.\n\n*(Author's note: In retrospect, I probably should have used something\nlike ANGLE, but I would have to modify it to accommodate my specific\nuse-cases.)*\n\nMost rendering is dependent upon effects.  Effects are used by all video\nobjects in libobs; they're used to easily bundle related vertex/pixel\nshaders in to one file.\n\nAn effect file has a nearly identical syntax to Direct3D 11 HLSL effect\nfiles.  The only differences are as follows:\n\n- Sampler states are named \"sampler_state\"\n- Position semantic is called \"POSITION\" rather than \"SV_Position\"\n- Target semantic is called \"TARGET\" rather than \"SV_Target\"\n\n*(Author's note: I'm probably missing a few exceptions here, if I am\nplease let me know)*","chars":973,"tokens_est":243,"sha256":"2ad3473ca10ba6a80a636894fc0200727dd7fd632e6eb2e30e115c4290d9c71b"},{"id":"docs-sphinx-graphics#rendering-graphics-the-graphics-context","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","The Graphics Context"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#the-graphics-context","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a The Graphics Context]\nUsing graphics functions isn't possible unless the current thread has\nentered a graphics context, and the graphics context can only be used by\none thread at a time.  To enter the graphics context, use\n`obs_enter_graphics()`, and to leave the graphics context, use\n`obs_leave_graphics()`.\n\nCertain callback will automatically be within the graphics context:\n`obs_source_info.video_render`, and the draw callback\nparameter of `obs_display_add_draw_callback()`, and\n`obs_add_main_render_callback()`.","chars":540,"tokens_est":135,"sha256":"336f908288f8960191b80983cb94f8726d3fcacbf5b6f94e4231be5898a1895c"},{"id":"docs-sphinx-graphics#rendering-graphics-creating-effects-effect-parameters","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","Creating Effects","Effect Parameters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#effect-parameters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a Creating Effects \u203a Effect Parameters]\nTo create an effect, it's recommended to start with the uniforms\n(parameters) of the effect.\n\nThere are a number of different types of uniforms:\n\n+------------------+---------------+------------------+------------+------------+\n| Floating points: | **float**     | **float2**       | **float3** | **float4** |\n+------------------+---------------+------------------+------------+------------+\n| Matrices:        | **float3x3**  | **float4x4**     |            |            |\n+------------------+---------------+------------------+------------+------------+\n| Integers:        | **int**       | **int2**         | **int3**   | **int4**   |\n+------------------+---------------+------------------+------------+------------+\n| Booleans:        | **bool**      |                  |            |            |\n+------------------+---------------+------------------+------------+------------+\n| Textures:        | **texture2d** | **texture_cube** |            |            |\n+------------------+---------------+------------------+------------+------------+\n\nTo get the effect uniform parameters, you use\n`gs_effect_get_param_by_name()` or\n`gs_effect_get_param_by_idx()`.\n\nThen the uniforms are set through the following functions:\n\n- `gs_effect_set_bool()`\n- `gs_effect_set_float()`\n- `gs_effect_set_int()`\n- `gs_effect_set_matrix4()`\n- `gs_effect_set_vec2()`\n- `gs_effect_set_vec3()`\n- `gs_effect_set_vec4()`\n- `gs_effect_set_texture()`\n- `gs_effect_set_texture_srgb()`\n\nThere are two \"universal\" effect parameters that may be expected of\neffects:  **ViewProj**, and **image**.  The **ViewProj** parameter\n(which is a float4x4) is used for the primary view/projection matrix\ncombination.  The **image** parameter (which is a texture2d) is a\ncommonly used parameter for the main texture; this parameter will be\nused with the functions `obs_source_draw()`,\n`gs_draw_sprite()`, `gs_draw_quadf()`, and\n`obs_source_process_filter_end()`.\n\nHere is an example of effect parameters:\n\n.. code:: cpp","chars":2041,"tokens_est":510,"sha256":"61167fa71b1dcb25f3cd984ca1ffb36162da598340039cfd54b03c4d2fe08dff"},{"id":"docs-sphinx-graphics#rendering-graphics-creating-effects-effect-parameters~2","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","Creating Effects","Effect Parameters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#effect-parameters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a Creating Effects \u203a Effect Parameters]\nuniform float4x4 ViewProj;\n   uniform texture2d image;\n\n   uniform float4 my_color_param;\n   uniform float my_float_param;\n\nEffect parameters can also have default values.  Default parameters of\nelements that have multiple elements should be treated as an array.\n\nHere are some examples of default parameters:\n\n.. code:: cpp\n\n   uniform float4x4 my_matrix = {1.0, 0.0, 0.0, 0.0,\n                                 0.0, 1.0, 0.0, 0.0,\n                                 0.0, 0.0, 1.0, 0.0,\n                                 0.0, 0.0, 0.0, 1.0};\n\n   uniform float4 my_float4 = {1.0, 0.5, 0.25, 0.0};\n   uniform float my_float = 4.0;\n   uniform int my_int = 5;","chars":712,"tokens_est":178,"sha256":"c59c9ce6603608ff62be47bf80537d1253c312e53d643cd6d6bb29699fd50c97"},{"id":"docs-sphinx-graphics#rendering-graphics-creating-effects-effect-sampler-states","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","Creating Effects","Effect Sampler States"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#effect-sampler-states","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a Creating Effects \u203a Effect Sampler States]\nThen, if textures are used, sampler states should be defined.  Sampler\nstates have certain sub-parameters:\n\n- **Filter** - The type of filtering to use.  Can be one of the\n  following values:\n\n  - **Anisotropy**\n  - **Point**\n  - **Linear**\n  - **MIN_MAG_POINT_MIP_LINEAR**\n  - **MIN_POINT_MAG_LINEAR_MIP_POINT**\n  - **MIN_POINT_MAG_MIP_LINEAR**\n  - **MIN_LINEAR_MAG_MIP_POINT**\n  - **MIN_LINEAR_MAG_POINT_MIP_LINEAR**\n  - **MIN_MAG_LINEAR_MIP_POINT**\n\n- **AddressU**, **AddressV** -  Specifies how to handle the sampling\n  when the coordinate goes beyond 0.0..1.0.  Can be one of the following\n  values:\n\n  - **Wrap** or **Repeat**\n  - **Clamp** or **None**\n  - **Mirror**\n  - **Border** (uses *BorderColor* to fill the color)\n  - **MirrorOnce**\n\n- **BorderColor** - Specifies the border color if using the \"Border\"\n  address mode.  This value should be a hexadecimal value representing\n  the color, in the format of: AARRGGBB.  For example, 7FFF0000 would\n  have its alpha value at 127, its red value at 255, and blue and green\n  at 0.  If *Border* is not used as an addressing type, this value is\n  ignored.\n\nHere is an example of writing a sampler state in an effect file:\n\n.. code:: cpp\n\n   sampler_state defaultSampler {\n           Filter      = Linear;\n           AddressU    = Border;\n           AddressV    = Border;\n           BorderColor = 7FFF0000;\n   };\n\nThis sampler state would use linear filtering, would use border\naddressing for texture coordinate values beyond 0.0..1.0, and the border\ncolor would be the color specified above.\n\nWhen a sampler state is used, it's used identically to the HLSL form:\n\n.. code:: cpp\n\n   [...]\n\n   uniform texture2d image;\n\n   sampler_state defaultSampler {\n           Filter      = Linear;\n           AddressU    = Clamp;\n           AddressV    = Clamp;\n   };\n\n   [...]\n\n   float4 MyPixelShaderFunc(VertInOut vert_in) : TARGET\n   {\n           return image.Sample(def_sampler, vert_in.uv);\n   }","chars":2007,"tokens_est":502,"sha256":"35bb26ab60f67e49f595246d8d3e4dfd4324d2d27cfe73daab0693f1052f26f3"},{"id":"docs-sphinx-graphics#rendering-graphics-creating-effects-effect-vertex-pixel-semantics","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","Creating Effects","Effect Vertex/Pixel Semantics"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#effect-vertexpixel-semantics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a Creating Effects \u203a Effect Vertex/Pixel Semantics]\nThen structures should be defined for inputs and outputs vertex\nsemantics.\n\nVertex components can have the following semantics:\n\n- **COLOR**          - Color value (*float4*).\n- **POSITION**       - Position value (*float4*).\n- **NORMAL**         - Normal value (*float4*).\n- **TANGENT**        - Tangent value (*float4*).\n- **TEXCOORD[0..7]** - Texture coordinate value (*float2*, *float3*, or\n  *float4*).\n\nHere is an example of a vertex semantic structure:\n\n.. code:: cpp\n\n   struct VertexIn {\n           float4 my_position : POSITION;\n           float2 my_texcoord : TEXCOORD0;\n   };\n\nThese semantic structures are then passed in as a parameter to the\nprimary shader entry point, and used as a return value for the vertex\nshader.  Note that the vertex shader is allowed to return different\nsemantics than it takes in; but the return type of the vertex shader and\nthe parameter of the pixel shader must match.\n\nThe semantic structure used for the parameter to the vertex shader\nfunction will require that the vertex buffer have those values, so if\nyou have POSITION and TEXCOORD0, the vertex buffer will have to have at\nleast a position buffer and a texture coordinate buffer in it.\n\nFor pixel shaders, they need to return with a TARGET semantic (which is\na float4 RGBA value).  Here is an example of how it's usually used with\na pixel shader function:\n\n.. code:: cpp\n\n   float4 MyPixelShaderFunc(VertInOut vert_in) : TARGET\n   {\n           return image.Sample(def_sampler, vert_in.uv);\n   }","chars":1566,"tokens_est":392,"sha256":"9a39b74509d3d1e61033e0982e35f5823919fbbf23e27255c1087eefce22353c"},{"id":"docs-sphinx-graphics#rendering-graphics-creating-effects-effect-techniques","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","Creating Effects","Effect Techniques"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#effect-techniques","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a Creating Effects \u203a Effect Techniques]\nTechniques are used to define the primary vertex/pixel shader entry\nfunctions per pass.  One technique can have multiple passes or custom\npass setup.\n\n*(Author's note: These days, multiple passes aren't really needed; GPUs\nare powerful enough to where you can perform all actions in the same\nshader.  Named passes can be useful for custom draw setups, but even\nthen you can just make it a separate technique.  For that reason, it's\nbest to just ignore the extra pass functionality.)*\n\nIf you're making an effect filter for video sources, typically you'd\nname the pass **Draw**, and then\n`obs_source_process_filter_end()` will automatically call that\nspecific effect name.  However, you can also use\n`obs_source_process_filter_tech_end()` to make the filter use a\nspecific technique by its name.\n\nThe first parameter of the vertex/pixel shader functions in passes\nshould always be the name of its vertex semantic structure parameter.\n\nFor techniques, it's better to show some examples of how techniques\nwould be used:\n\n.. code:: cpp\n\n   uniform float4x4 ViewProj;\n   uniform texture2d image;\n\n   struct VertInOut {\n           float4 pos : POSITION;\n           float2 uv : TEXCOORD0;\n   };\n\n   VertInOut MyVertexShaderFunc(VertInOut vert_in)\n   {\n           VertInOut vert_out;\n           vert_out.pos = mul(float4(vert_in.pos.xyz, 1.0), ViewProj);\n           vert_out.uv  = vert_in.uv;\n           return vert_out;\n   }\n\n   float4 MyPixelShaderFunc(VertInOut vert_in) : TARGET\n   {\n           return image.Sample(def_sampler, vert_in.uv);\n   }\n\n   technique Draw\n   {\n           pass\n           {\n                   vertex_shader = MyVertexShaderFunc(vert_in);\n                   pixel_shader  = MyPixelShaderFunc(vert_in);\n           }\n   };\n\n## Using Effects\nThe recommended way to use effects is like so:\n\n.. code:: cpp\n\n   for (gs_effect_loop(effect, \"technique\")) {\n           [draw calls go here]\n   }\n\nThis will automatically handle loading/unloading of the effect and its\nshaders for a given technique name.","chars":2073,"tokens_est":518,"sha256":"ba1fd632eb45852b3160d147e5b469e106d05a9a4d87896f691cc89516821acb"},{"id":"docs-sphinx-graphics#rendering-graphics-rendering-video-sources","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","Rendering Video Sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#rendering-video-sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a Rendering Video Sources]\nA synchronous video source renders in its\n`obs_source_info.video_render` callback.\n\nSources can render with custom drawing (via the OBS_SOURCE_CUSTOM_DRAW\noutput capability flag), or without.  When sources render without custom\nrendering, it's recommended to render a single texture with\n`obs_source_draw()`.  Otherwise the source is expected to\nperform rendering on its own and manage its own effects.\n\nLibobs comes with a set of default/standard effects that can be accessed\nvia the `obs_get_base_effect()` function.  You can use these\neffects to render, or you can create custom effects with\n`gs_effect_create_from_file()` and render with a custom effect.","chars":705,"tokens_est":176,"sha256":"05ef4bdf087d0d476a078e0212cd44145400c2f8ed1094f3c3186dfcd09626bd"},{"id":"docs-sphinx-graphics#rendering-graphics-rendering-video-effect-filters","doc":"docs-sphinx-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Rendering Graphics","Rendering Video Effect Filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst#rendering-video-effect-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/graphics.rst","text":"[Rendering Graphics \u203a Rendering Video Effect Filters]\nFor most video effect filters, it comprises of adding a layer of\nprocessing shaders to an existing image in its\n`obs_source_info.video_render` callback.  When this is the\ncase, it's expected that the filter has its own effect created, and to\ndraw the effect, one would simply use the\n`obs_source_process_filter_begin()` function, set the parameters\non your custom effect, then call either\n`obs_source_process_filter_end()` or\n`obs_source_process_filter_tech_end()` to finish rendering the\nfilter.\n\nHere's an example of rendering a filter from the color key filter:\n\n.. code:: cpp\n\n   static void color_key_render(void *data, gs_effect_t *effect)\n   {\n           struct color_key_filter_data *filter = data;\n\n           if (!obs_source_process_filter_begin(filter->context, GS_RGBA,\n                                   OBS_ALLOW_DIRECT_RENDERING))\n                   return;\n\n           gs_effect_set_vec4(filter->color_param, &filter->color);\n           gs_effect_set_float(filter->contrast_param, filter->contrast);\n           gs_effect_set_float(filter->brightness_param, filter->brightness);\n           gs_effect_set_float(filter->gamma_param, filter->gamma);\n           gs_effect_set_vec4(filter->key_color_param, &filter->key_color);\n           gs_effect_set_float(filter->similarity_param, filter->similarity);\n           gs_effect_set_float(filter->smoothness_param, filter->smoothness);\n\n           obs_source_process_filter_end(filter->context, filter->effect, 0, 0);\n\n           UNUSED_PARAMETER(effect);\n   }","chars":1572,"tokens_est":393,"sha256":"5f3d000b4decb89e66a4b0731078adaca037e0cf8d74c112e4196221725f162a"},{"id":"docs-sphinx-index#top","doc":"docs-sphinx-index","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Welcome to OBS Studio's documentation!"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/index.rst#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/index.rst","text":"[Welcome to OBS Studio's documentation!]\n.. OBS Studio documentation master file, created by\n   sphinx-quickstart on Wed Oct 25 00:03:21 2017.\n   You can adapt this file completely to your liking, but it should at least\n   contain the root `toctree` directive.\n\n.. _contents:\n\n# Welcome to OBS Studio's documentation!\n* **Setting up an OBS development environment?** :wiki:`Use the Wiki <Install-Instructions>`\n* **Developing your first OBS plugin?** `Use the obs-plugintemplate <https://github.com/obsproject/obs-plugintemplate#obs-plugin-template>`_\n\n.. toctree::\n   :caption: Core Concepts\n   :maxdepth: 1\n\n   backend-design\n   plugins\n   frontends\n   graphics\n   scripting\n\n.. toctree::\n   :caption: API Reference\n   :maxdepth: 2\n\n   OBS Core <reference-core>\n   Modules <reference-modules>\n   Core API Object <reference-core-objects>\n   Platform/Utility <reference-libobs-util>\n   Callbacks (libobs/callback) <reference-libobs-callback>\n   Graphics (libobs/graphics) <reference-libobs-graphics>\n   Media I/O (libobs/media-io) <reference-libobs-media-io>\n   reference-frontend-api\n\n.. toctree::\n   :caption: Additional Resources\n   :maxdepth: 1\n   :hidden:\n\n   Build Instructions <https://obsproject.com/wiki/Install-Instructions>\n   Plugin Template <https://github.com/obsproject/obs-plugintemplate#obs-plugin-template>","chars":1324,"tokens_est":331,"sha256":"cfd96a5fff43c96aaadab03240803ddd11453a5e26db95a93abec1c2de6a8766"},{"id":"docs-sphinx-plugins#plugins","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#plugins","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins]\nAlmost all custom functionality is added through plugin modules, which\nare typically dynamic libraries or scripts.  The ability to capture\nand/or output audio/video, make a recording, output to an RTMP stream,\nencode in x264 are all examples of things that are accomplished via\nplugin modules.\n\nPlugins can implement sources, outputs, encoders, and services.\n\nWriting your first plugin? We provide `a basic template plugin <https://github.com/obsproject/obs-plugintemplate#obs-plugin-template>`_\nto get you started.","chars":525,"tokens_est":131,"sha256":"f5162a4a14b11305e6fc7b9e2a156bd1e58275e7cb41909ee32f7172ebc9dc92"},{"id":"docs-sphinx-plugins#plugins-plugin-module-headers","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Plugin Module Headers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#plugin-module-headers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Plugin Module Headers]\nThese are some notable headers commonly used by plugins:\n\n- `libobs/obs-module.h`_ -- The primary header used for creating plugin\n  modules.  This file automatically includes the following files: \n\n  - `libobs/obs.h`_ -- The main libobs header.  This file automatically\n    includes the following files:\n\n    - `libobs/obs-source.h`_ -- Used for implementing sources in plugin\n      modules\n\n    - `libobs/obs-output.h`_ -- Used for implementing outputs in plugin\n      modules\n\n    - `libobs/obs-encoder.h`_ -- Used for implementing encoders in\n      plugin modules\n\n    - `libobs/obs-service.h`_ -- Used for implementing services in\n      plugin modules\n\n    - `libobs/obs-data.h`_ -- Used for managing settings for libobs\n      objects\n\n    - `libobs/obs-properties.h`_ -- Used for generating properties for\n      libobs objects\n\n    - `libobs/graphics/graphics.h`_ -- Used for graphics rendering","chars":933,"tokens_est":233,"sha256":"e40eedbba4cfaa187a6a83ed0091f1a2b7d2ecc9c7cf1718e9fb6894617c6983"},{"id":"docs-sphinx-plugins#plugins-common-directory-structure-and-cmakelists-txt","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Common Directory Structure and CMakeLists.txt"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#common-directory-structure-and-cmakeliststxt","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Common Directory Structure and CMakeLists.txt]\nThe common way source files are organized is to have one file for plugin\ninitialization, and then specific files for each individual object\nyou're implementing.  For example, if you were to create a plugin called\n'my-plugin', you'd have something like my-plugin.c where plugin\ninitialization is done, my-source.c for the definition of a custom\nsource, my-output.c for the definition of a custom output, etc.  (This\nis not a rule of course)\n\nThis is an example of a common directory structure for a native plugin\nmodule::\n\n  my-plugin/data/locale/en-US.ini\n  my-plugin/CMakeLists.txt\n  my-plugin/my-plugin.c\n  my-plugin/my-source.c\n  my-plugin/my-output.c\n  my-plugin/my-encoder.c\n  my-plugin/my-service.c\n\nThis would be an example of a common CMakeLists.txt file associated with\nthese files::\n\n  # my-plugin/CMakeLists.txt\n\n  project(my-plugin)\n\n  set(my-plugin_SOURCES\n        my-plugin.c\n        my-source.c\n        my-output.c\n        my-encoder.c\n        my-service.c)\n\n  add_library(my-plugin MODULE\n        ${my-plugin_SOURCES})\n  target_link_libraries(my-plugin\n        libobs)\n\n  install_obs_plugin_with_data(my-plugin data)","chars":1190,"tokens_est":298,"sha256":"3430c0d82cce56e2e700f043aa10dd053c361912c648b10caf07005517ee8784"},{"id":"docs-sphinx-plugins#plugins-native-plugin-initialization","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Native Plugin Initialization"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#native-plugin-initialization","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Native Plugin Initialization]\nTo create a native plugin module, you will need to include the\n`libobs/obs-module.h`_ header, use `OBS_DECLARE_MODULE()` macro,\nthen create a definition of the function `obs_module_load()`.\nIn your `obs_module_load()` function, you then register any of\nyour custom sources, outputs, encoders, or services.  See the\n`reference-modules` for more information.\n\nThe following is an example of my-plugin.c, which would register one\nobject of each type:\n\n.. code:: cpp\n\n  /* my-plugin.c */\n  #include <obs-module.h>\n\n  /* Defines common functions (required) */\n  OBS_DECLARE_MODULE()\n\n  /* Implements common ini-based locale (optional) */\n  OBS_MODULE_USE_DEFAULT_LOCALE(\"my-plugin\", \"en-US\")\n\n  extern struct obs_source_info  my_source;  /* Defined in my-source.c  */\n  extern struct obs_output_info  my_output;  /* Defined in my-output.c  */\n  extern struct obs_encoder_info my_encoder; /* Defined in my-encoder.c */\n  extern struct obs_service_info my_service; /* Defined in my-service.c */\n\n  bool obs_module_load(void)\n  {\n          obs_register_source(&my_source);\n          obs_register_output(&my_output);\n          obs_register_encoder(&my_encoder);\n          obs_register_service(&my_service);\n          return true;\n  }\n\n.. _plugins_sources:","chars":1287,"tokens_est":322,"sha256":"02b216f01d74a74a2c48f95ef6dc6b614308037a063812ca773c3fbc0ceabf91"},{"id":"docs-sphinx-plugins#plugins-sources","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Sources]\nSources are used to render video and/or audio on stream.  Things such as\ncapturing displays/games/audio, playing a video, showing an image, or\nplaying audio.  Sources can also be used to implement audio and video\nfilters as well as transitions.  The `libobs/obs-source.h`_ file is the\ndedicated header for implementing sources.  See the\n`reference-sources` for more information.\n\nFor example, to implement a source object, you need to define an\n`obs_source_info` structure and fill it out with information and\ncallbacks related to your source:\n\n.. code:: cpp\n\n  /* my-source.c */\n\n  [...]\n\n  struct obs_source_info my_source {\n          .id           = \"my_source\",\n          .type         = OBS_SOURCE_TYPE_INPUT,\n          .output_flags = OBS_SOURCE_VIDEO,\n          .get_name     = my_source_name,\n          .create       = my_source_create,\n          .destroy      = my_source_destroy,\n          .update       = my_source_update,\n          .video_render = my_source_render,\n          .get_width    = my_source_width,\n          .get_height   = my_source_height\n  };\n\nThen, in my-plugin.c, you would call `obs_register_source()` in\n`obs_module_load()` to register the source with libobs.\n\n.. code:: cpp\n\n  /* my-plugin.c */\n\n  [...]\n\n  extern struct obs_source_info  my_source;  /* Defined in my-source.c  */\n\n  bool obs_module_load(void)\n  {\n          obs_register_source(&my_source);\n\n          [...]\n\n          return true;\n  }\n\nSome simple examples of sources:","chars":1486,"tokens_est":372,"sha256":"0e9cd1cad5f858e81c16b06ef5754cdc930fa562c5cdd39f5c15dc4337e31fbe"},{"id":"docs-sphinx-plugins#plugins-sources~2","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Sources]\n- Synchronous video source: The `image source <https://github.com/obsproject/obs-studio/blob/master/plugins/image-source/image-source.c>`_\n- Asynchronous video source: The `random texture test source <https://github.com/obsproject/obs-studio/blob/master/test/test-input/test-random.c>`_\n- Audio source: The `sine wave test source <https://github.com/obsproject/obs-studio/blob/master/test/test-input/test-sinewave.c>`_\n- Video filter: The `test video filter <https://github.com/obsproject/obs-studio/blob/master/test/test-input/test-filter.c>`_\n- Audio filter: The `gain audio filter <https://github.com/obsproject/obs-studio/blob/master/plugins/obs-filters/gain-filter.c>`_\n\n.. _plugins_outputs:","chars":716,"tokens_est":179,"sha256":"7bd7d01c05f2ec821bd2b3011867c79dee9b19ac59242a883926d1ef8aed7ed6"},{"id":"docs-sphinx-plugins#plugins-outputs","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Outputs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#outputs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Outputs]\nOutputs allow the ability to output the currently rendering audio/video.\nStreaming and recording are two common examples of outputs, but not the\nonly types of outputs.  Outputs can receive the raw data or receive\nencoded data.  The `libobs/obs-output.h`_ file is the dedicated header\nfor implementing outputs.  See the `reference-outputs` for more\ninformation.\n\nFor example, to implement an output object, you need to define an\n`obs_output_info` structure and fill it out with information and\ncallbacks related to your output:\n\n.. code:: cpp\n\n  /* my-output.c */\n\n  [...]\n\n  struct obs_output_info my_output {\n          .id                   = \"my_output\",\n          .flags                = OBS_OUTPUT_AV | OBS_OUTPUT_ENCODED,\n          .get_name             = my_output_name,\n          .create               = my_output_create,\n          .destroy              = my_output_destroy,\n          .start                = my_output_start,\n          .stop                 = my_output_stop,\n          .encoded_packet       = my_output_data,\n          .get_total_bytes      = my_output_total_bytes,\n          .encoded_video_codecs = \"h264\",\n          .encoded_audio_codecs = \"aac\"\n  };\n\nThen, in my-plugin.c, you would call `obs_register_output()` in\n`obs_module_load()` to register the output with libobs.\n\n.. code:: cpp\n\n  /* my-plugin.c */\n\n  [...]\n\n  extern struct obs_output_info  my_output;  /* Defined in my-output.c  */\n\n  bool obs_module_load(void)\n  {\n          obs_register_output(&my_output);\n\n          [...]\n\n          return true;\n  }\n\nSome examples of outputs:\n\n- Encoded video/audio outputs:\n\n  - The `FLV output <https://github.com/obsproject/obs-studio/blob/master/plugins/obs-outputs/flv-output.c>`_\n  - The `FFmpeg muxer output <https://github.com/obsproject/obs-studio/blob/master/plugins/obs-ffmpeg/obs-ffmpeg-mux.c>`_\n  - The `RTMP stream output <https://github.com/obsproject/obs-studio/blob/master/plugins/obs-outputs/rtmp-stream.c>`_\n\n- Raw video/audio outputs:\n\n  - The `FFmpeg output <https://github.com/obsproject/obs-studio/blob/master/plugins/obs-ffmpeg/obs-ffmpeg-output.c>`_\n\n.. _plugins_encoders:","chars":2142,"tokens_est":536,"sha256":"5cdd601bcba68e20d5d3453ed1e95d03a51ccb486aea9b1ebda529f74f5f7dc1"},{"id":"docs-sphinx-plugins#plugins-encoders","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Encoders"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#encoders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Encoders]\nEncoders are OBS-specific implementations of video/audio encoders, which\nare used with outputs that use encoders.  x264, NVENC, Quicksync are\nexamples of encoder implementations.  The `libobs/obs-encoder.h`_ file\nis the dedicated header for implementing encoders.  See the\n`reference-encoders` for more information.\n\nFor example, to implement an encoder object, you need to define an\n`obs_encoder_info` structure and fill it out with information\nand callbacks related to your encoder:\n\n.. code:: cpp\n\n  /* my-encoder.c */\n\n  [...]\n\n  struct obs_encoder_info my_encoder_encoder = {\n          .id             = \"my_encoder\",\n          .type           = OBS_ENCODER_VIDEO,\n          .codec          = \"h264\",\n          .get_name       = my_encoder_name,\n          .create         = my_encoder_create,\n          .destroy        = my_encoder_destroy,\n          .encode         = my_encoder_encode,\n          .update         = my_encoder_update,\n          .get_extra_data = my_encoder_extra_data,\n          .get_sei_data   = my_encoder_sei,\n          .get_video_info = my_encoder_video_info\n  };\n\nThen, in my-plugin.c, you would call `obs_register_encoder()`\nin `obs_module_load()` to register the encoder with libobs.\n\n.. code:: cpp\n\n  /* my-plugin.c */\n\n  [...]\n\n  extern struct obs_encoder_info my_encoder; /* Defined in my-encoder.c */\n\n  bool obs_module_load(void)\n  {\n          obs_register_encoder(&my_encoder);\n\n          [...]\n\n          return true;\n  }\n\n**IMPORTANT NOTE:** Encoder settings currently have a few expected\ncommon setting values that should have a specific naming convention:","chars":1615,"tokens_est":404,"sha256":"958cc85a55a987b99694a186691c557c2e72cb5c2d8a2366bf6853624d1ccbff"},{"id":"docs-sphinx-plugins#plugins-encoders~2","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Encoders"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#encoders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Encoders]\n- **\"bitrate\"** - This value should be used for both video and audio\n    encoders: bitrate, in kilobits.\n  - **\"rate_control\"** - This is a setting used for video encoders.\n    It's generally expected to have at least a \"CBR\" rate control.\n    Other common rate controls are \"VBR\", \"CQP\".\n  - **\"keyint_sec\"** - For video encoders, sets the keyframe interval\n    value, in seconds, or closest possible approximation.  *(Author's\n    note: This should have have been \"keyint\", in frames.)*\n\nExamples of encoders:\n\n- Video encoders:\n\n  - The `x264 encoder <https://github.com/obsproject/obs-studio/tree/master/plugins/obs-x264>`_\n  - The `FFmpeg NVENC encoder <https://github.com/obsproject/obs-studio/blob/master/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c>`_\n  - The `Quicksync encoder <https://github.com/obsproject/obs-studio/tree/master/plugins/obs-qsv11>`_\n\n- Audio encoders:\n\n  - The `FFmpeg AAC/Opus encoder <https://github.com/obsproject/obs-studio/blob/master/plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c>`_\n\n.. _plugins_services:","chars":1055,"tokens_est":264,"sha256":"489eb3a12119112e5f4aeb878ff4e0977ff20fb344e30a053c3a38c6e83326e2"},{"id":"docs-sphinx-plugins#plugins-services","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Services"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#services","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Services]\nServices are custom implementations of streaming services, which are\nused with outputs that stream.  For example, you could have a custom\nimplementation for streaming to Twitch, and another for YouTube to allow\nthe ability to log in and use their APIs to do things such as get the\nRTMP servers or control the channel.  The `libobs/obs-service.h`_ file\nis the dedicated header for implementing services.  See the\n`reference-services` for more information.\n\n*(Author's note: the service API is incomplete as of this writing)*\n\nFor example, to implement a service object, you need to define an\n`obs_service_info` structure and fill it out with information\nand callbacks related to your service:\n\n.. code:: cpp\n\n  /* my-service.c */\n\n  [...]\n\n  struct obs_service_info my_service_service = {\n          .id       = \"my_service\",\n          .get_name = my_service_name,\n          .create   = my_service_create,\n          .destroy  = my_service_destroy,\n          .encode   = my_service_encode,\n          .update   = my_service_update,\n          .get_url  = my_service_url,\n          .get_key  = my_service_key\n  };\n\nThen, in my-plugin.c, you would call `obs_register_service()` in\n`obs_module_load()` to register the service with libobs.\n\n.. code:: cpp\n\n  /* my-plugin.c */\n\n  [...]\n\n  extern struct obs_service_info my_service; /* Defined in my-service.c */\n\n  bool obs_module_load(void)\n  {\n          obs_register_service(&my_service);\n\n          [...]\n\n          return true;\n  }\n\nThe only two existing services objects are the \"common RTMP services\"\nand \"custom RTMP service\" objects in `plugins/rtmp-services\n<https://github.com/obsproject/obs-studio/tree/master/plugins/rtmp-services>`_","chars":1706,"tokens_est":426,"sha256":"a39b3fdaf4d2ad9b7ee90f8169a566a99b879efab31aa5c5e7e3dd1f8984f2a5"},{"id":"docs-sphinx-plugins#plugins-settings","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Settings"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#settings","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Settings]\nSettings (see `libobs/obs-data.h`_) are used to get or set settings data\ntypically associated with libobs objects, and can then be saved and\nloaded via Json text.  See the `reference-settings` for more\ninformation.\n\nThe *obs_data_t* is the equivalent of a Json object, where it's a string\ntable of sub-objects, and the *obs_data_array_t* is similarly used to\nstore an array of *obs_data_t* objects, similar to Json arrays (though\nnot quite identical).\n\nTo create an *obs_data_t* or *obs_data_array_t* object, you'd call the\n`obs_data_create()` or `obs_data_array_create()`\nfunctions.  *obs_data_t* and *obs_data_array_t* objects are reference\ncounted, so when you are finished with the object, call\n`obs_data_release()` or `obs_data_array_release()` to\nrelease those references.  Any time an *obs_data_t* or\n*obs_data_array_t* object is returned by a function, their references\nare incremented, so you must release those references each time.\n\nTo set values for an *obs_data_t* object, you'd use one of the following\nfunctions:\n\n.. code:: cpp\n\n  /* Set functions */\n  EXPORT void obs_data_set_string(obs_data_t *data, const char *name, const char *val);\n  EXPORT void obs_data_set_int(obs_data_t *data, const char *name, long long val);\n  EXPORT void obs_data_set_double(obs_data_t *data, const char *name, double val);\n  EXPORT void obs_data_set_bool(obs_data_t *data, const char *name, bool val);\n  EXPORT void obs_data_set_obj(obs_data_t *data, const char *name, obs_data_t *obj);\n  EXPORT void obs_data_set_array(obs_data_t *data, const char *name, obs_data_array_t *array);\n\nSimilarly, to get a value from an *obs_data_t* object, you'd use one of\nthe following functions:\n\n.. code:: cpp","chars":1712,"tokens_est":428,"sha256":"67d2c27f7fbdf628d3c24ff424a1758a1018826699ecaad88ab6e879753c3715"},{"id":"docs-sphinx-plugins#plugins-settings~2","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Settings"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#settings","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Settings]\n/* Get functions */\n  EXPORT const char *obs_data_get_string(obs_data_t *data, const char *name);\n  EXPORT long long obs_data_get_int(obs_data_t *data, const char *name);\n  EXPORT double obs_data_get_double(obs_data_t *data, const char *name);\n  EXPORT bool obs_data_get_bool(obs_data_t *data, const char *name);\n  EXPORT obs_data_t *obs_data_get_obj(obs_data_t *data, const char *name);\n  EXPORT obs_data_array_t *obs_data_get_array(obs_data_t *data, const char *name);\n\nUnlike typical Json data objects, the *obs_data_t* object can also set\ndefault values.  This allows the ability to control what is returned if\nthere is no value assigned to a specific string in an *obs_data_t*\nobject when that data is loaded from a Json string or Json file.  Each\nlibobs object also has a *get_defaults* callback which allows setting\nthe default settings for the object on creation.\n\nThese functions control the default values are as follows:\n\n.. code:: cpp\n\n  /* Default value functions. */\n  EXPORT void obs_data_set_default_string(obs_data_t *data, const char *name, const char *val);\n  EXPORT void obs_data_set_default_int(obs_data_t *data, const char *name, long long val);\n  EXPORT void obs_data_set_default_double(obs_data_t *data, const char *name, double val);\n  EXPORT void obs_data_set_default_bool(obs_data_t *data, const char *name, bool val);\n  EXPORT void obs_data_set_default_obj(obs_data_t *data, const char *name, obs_data_t *obj);","chars":1459,"tokens_est":365,"sha256":"8c579eea8e0b33542c119246bf276ef399a0b64e811b32233bc82bf7979da8c3"},{"id":"docs-sphinx-plugins#plugins-properties","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Properties"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#properties","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Properties]\nProperties (see `libobs/obs-properties.h`_) are used to automatically\ngenerate user interface to modify settings for a libobs object (if\ndesired).  Each libobs object has a *get_properties* callback which is\nused to generate properties.  The properties API defines specific\nproperties that are linked to the object's settings, and the front-end\nuses those properties to generate widgets in order to allow the user to\nmodify the settings.  For example, if you had a boolean setting, you\nwould use `obs_properties_add_bool()` to allow the user to be\nable to change that setting.  See the `reference-properties` for\nmore information.\n\nAn example of this:\n\n.. code:: cpp\n\n   static obs_properties_t *my_source_properties(void *data)\n   {\n           obs_properties_t *ppts = obs_properties_create();\n           obs_properties_add_bool(ppts, \"my_bool\",\n                           obs_module_text(\"MyBool\"));\n           UNUSED_PARAMETER(data);\n           return ppts;\n   }\n\n   [...]\n\n   struct obs_source_info my_source {\n           .get_properties = my_source_properties,\n           [...]\n   };\n\nThe *data* parameter is the object's data if the object is present.\nTypically this is unused and probably shouldn't be used if possible.  It\ncan be null if the properties are retrieved without an object associated\nwith it.\n\nProperties can also be modified depending on what settings are shown.\nFor example, you can mark certain properties as disabled or invisible\ndepending on what a particular setting is set to using the\n`obs_property_set_modified_callback()` function.\n\nFor example, if you wanted boolean property A to hide text property B:\n\n.. code:: cpp\n\n   static bool setting_a_modified(obs_properties_t *ppts,\n                   obs_property_t *p, obs_data_t *settings)\n   {\n           bool enabled = obs_data_get_bool(settings, \"setting_a\");\n           p = obs_properties_get(ppts, \"setting_b\");\n           obs_property_set_enabled(p, enabled);","chars":1966,"tokens_est":492,"sha256":"3d18c57609ddf477e52f989253e5e2f3f120a95c1566f109d4f5be73ddc0d26d"},{"id":"docs-sphinx-plugins#plugins-properties~2","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Properties"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#properties","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Properties]\n/* return true to update property widgets, false\n              otherwise */\n           return true;\n   }\n\n   [...]\n\n   static obs_properties_t *my_source_properties(void *data)\n   {\n           obs_properties_t *ppts = obs_properties_create();\n           obs_property_t *p;\n\n           p = obs_properties_add_bool(ppts, \"setting_a\",\n                           obs_module_text(\"SettingA\"));\n           obs_property_set_modified_callback(p, setting_a_modified);\n\n           obs_properties_add_text(ppts, \"setting_b\",\n                           obs_module_text(\"SettingB\"),\n                           OBS_TEXT_DEFAULT);\n           return ppts;\n   }","chars":667,"tokens_est":167,"sha256":"d11aa01184695c743dc07b1b0610089d95fa4fba387dcc0ce0ea750e682cde62"},{"id":"docs-sphinx-plugins#plugins-localization","doc":"docs-sphinx-plugins","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Plugins","Localization"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst#localization","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/plugins.rst","text":"[Plugins \u203a Localization]\nTypically, most plugins bundled with OBS Studio will use a simple\nini-file localization method, where each file is a different language.\nWhen using this method, the `OBS_MODULE_USE_DEFAULT_LOCALE()`\nmacro is used which will automatically load/destroy the locale data with\nno extra effort on part of the plugin.  Then the\n`obs_module_text()` function (which is automatically declared as\nan extern by `libobs/obs-module.h`_) is used when text lookup is needed.\n\nThere are two exports the module used to load/destroy locale: the\n`obs_module_set_locale()` export, and the\n`obs_module_free_locale()` export.  The\n`obs_module_set_locale()` export is called by libobs to set the\ncurrent language, and then the `obs_module_free_locale()` export\nis called by libobs on destruction of the module.  If you wish to\nimplement a custom locale implementation for your plugin, you'd want to\ndefine these exports along with the `obs_module_text()` extern\nyourself instead of relying on the\n`OBS_MODULE_USE_DEFAULT_LOCALE()` macro.\n\n.. ---------------------------------------------------------------------------\n\n.. _libobs/obs-module.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-module.h\n.. _libobs/obs.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs.h\n.. _libobs/obs-source.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-source.h\n.. _libobs/obs-output.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-output.h\n.. _libobs/obs-encoder.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-encoder.h\n.. _libobs/obs-service.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-service.h\n.. _libobs/obs-data.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-data.h\n.. _libobs/obs-properties.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-properties.h\n.. _libobs/graphics/graphics.h: https://github.com/obsproject/obs-studio/blob/master/libobs/graphics/graphics.h","chars":2009,"tokens_est":502,"sha256":"b0d7eafdf7fb4473a9c4cfe1c82d471fb9837cfd9c5280d80605e30c677d8bc3"},{"id":"docs-sphinx-reference-canvases#canvas-api-reference-obs-canvas-t","doc":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Canvas API Reference (obs_canvas_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst#canvas-api-reference-obs_canvas_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst","text":"[Canvas API Reference (obs_canvas_t)]\n.. danger::\n\n   Canvases are still in their early stages of implementation and the API will evolve as they are gradually integrated\n   across OBS Studio.\n\n   The Canvas API should be considered **unstable** and may be changed without warning. This documentation serves to aid\n   in their iterative development within OBS Studio.\n\n   **If you are developing a plugin that utilizes canvases, proceed with great caution.**\n\nCanvases are reference-counted objects that contain scenes and define how those are rendered.\nThey provide a video object which can be used with encoders or raw outputs.\n\nlibobs maintains a main canvas that exists at all times and is used for the default video outputs.\n\n`obs_canvas_t`\n\n   A reference-counted canvas.\n\n`obs_weak_canvas_t`\n\n   A weak reference to a canvas.\n\n.. code:: cpp\n\n   #include <obs.h>\n\n.. _canvas_signal_handler_reference:","chars":905,"tokens_est":226,"sha256":"0fdd7320db23f5b0974539ebae7b07756474cfe7506ca7f24563e654d87fc9ff"},{"id":"docs-sphinx-reference-canvases#canvas-api-reference-obs-canvas-t-canvas-signals","doc":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Canvas API Reference (obs_canvas_t)","Canvas Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst#canvas-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst","text":"[Canvas API Reference (obs_canvas_t) \u203a Canvas Signals]\nThe following signals are defined for canvases:\n\n**remove** (ptr canvas)\n\n   Called when the `obs_canvas_remove()` function is called on the canvas.\n\n**destroy** (ptr canvas)\n\n   Called when a canvas is about to be destroyed.\n\n**video_reset** (ptr canvas)\n\n   Called when the canvas's video mix has been reset after a call to\n   `obs_reset_video()` or `obs_canvas_reset_video()`.\n\n**source_add** (ptr canvas, ptr source)\n\n   Called when a source has been added to the canvas.\n\n**source_remove** (ptr canvas, ptr source)\n\n   Called when a source has been removed from the canvas.\n\n**rename** (ptr canvas, string new_name, string prev_name)\n\n   Called when the canvas has been renamed.\n\n**channel_change** (ptr canvas, int channel, in out ptr source, ptr prev_source)\n\n   Called when a channel source has been changed.","chars":871,"tokens_est":218,"sha256":"babd397336227a2cde378e380bc45b71b37aae7dd32b6cd159c6413479f95942"},{"id":"docs-sphinx-reference-canvases#canvas-api-reference-obs-canvas-t-canvas-flags","doc":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Canvas API Reference (obs_canvas_t)","Canvas Flags"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst#canvas-flags","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst","text":"[Canvas API Reference (obs_canvas_t) \u203a Canvas Flags]\nCanvases can have different behaviors, these can be controlled via the **flags** parameter when creating a canvas.\n\nFlags may be `0` or a bitwise `OR` combination of the following values:\n\n- **MAIN** - Main canvas, cannot be renamed or reset, cannot be set by user\n- **ACTIVATE** - Canvas's sources will become active when they are visible\n- **MIX_AUDIO** - Audio from channels in this canvas will be mixed into the audio output\n- **SCENE_REF** - Canvas will hold references for scene sources\n- **EPHEMERAL** - Indicates this canvas is not supposed to be saved\n\nAdditionally, the following preset combinations of flags are defined:\n\n- **PROGRAM** which equals `ACTIVATE | MIX_AUDIO | SCENE_REF`\n- **PREVIEW** which equals `EPHEMERAL`\n- **DEVICE** which equals `ACTIVATE | EPHEMERAL`","chars":835,"tokens_est":209,"sha256":"3a5e794cdcde1df36d0dd130d8cd0829e8198e841a7a5be998b9d0c03d5db251"},{"id":"docs-sphinx-reference-canvases#canvas-api-reference-obs-canvas-t-general-canvas-functions","doc":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Canvas API Reference (obs_canvas_t)","General Canvas Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst#general-canvas-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst","text":"[Canvas API Reference (obs_canvas_t) \u203a General Canvas Functions]\n`obs_canvas_t *obs_get_main_canvas()`\n\n   Get a strong reference to the main OBS canvas.\n\n`obs_canvas_t *obs_canvas_create(const char *name, struct obs_video_info *ovi, uint32_t flags)`\n\n   Creates a new canvas.\n\n   :param name: Name, will be deduplicated if necessary\n   :param ovi: Video configuration to use for this canvas's video output\n   :param flags: Canvas flags\n   :return: Canvas object\n\n`obs_canvas_t *obs_canvas_create_private(const char *name, struct obs_video_info *ovi, uint32_t flags)`\n\n   Creates a new private canvas.\n\n   :param name: Name, will **not** be deduplicated\n   :param ovi: Video configuration to use for this canvas's video output\n   :param flags: Canvas flags\n   :return: Canvas object\n\n`void obs_canvas_remove(obs_canvas_t *canvas)`\n\n   Signal that references to canvas should be released and mark the canvas as removed.\n\n`bool obs_canvas_removed(obs_canvas_t *canvas)`\n\n   Returns if a canvas is marked as removed (i.e., should no longer be used).\n\n`void obs_canvas_set_name(obs_canvas_t *canvas, const char *name)`\n\n   Set canvas name\n\n`const char *obs_canvas_get_name(const obs_canvas_t *canvas)`\n\n   Get canvas name\n\n`const char *obs_canvas_get_uuid(const obs_canvas_t *canvas)`\n\n   Get canvas UUID\n\n`uint32_t obs_canvas_get_flags(const obs_canvas_t *canvas)`\n\n   Gets flags set on a canvas\n\n## Saving/Loading Functions\n`obs_data_t *obs_save_canvas(obs_canvas_t *source)`\n\n   Saves a canvas to settings data\n\n`obs_canvas_t *obs_load_canvas(obs_data_t *data)`\n\n   Loads a canvas from settings data","chars":1598,"tokens_est":400,"sha256":"78161243e6333149feef79cf25c70331be652c65e834f0edc56e0d09d4e45877"},{"id":"docs-sphinx-reference-canvases#canvas-api-reference-obs-canvas-t-reference-counting-functions","doc":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Canvas API Reference (obs_canvas_t)","Reference Counting Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst#reference-counting-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst","text":"[Canvas API Reference (obs_canvas_t) \u203a Reference Counting Functions]\n`obs_canvas_t *obs_canvas_get_ref(obs_canvas_t *canvas)`\n\n   Add strong reference to a canvas\n\n`void obs_canvas_release(obs_canvas_t *canvas)`\n\n   Release strong reference\n\n`void obs_weak_canvas_addref(obs_weak_canvas_t *weak)`\n\n   Add weak reference\n\n`void obs_weak_canvas_release(obs_weak_canvas_t *weak)`\n\n   Release weak reference\n\n`obs_weak_canvas_t *obs_canvas_get_weak_canvas(obs_canvas_t *canvas)`\n\n   Get weak reference from strong reference\n\n`obs_canvas_t *obs_weak_canvas_get_canvas(obs_weak_canvas_t *weak)`\n\n   Get strong reference from weak reference\n\n## Canvas Channel Functions\n`void obs_canvas_set_channel(obs_canvas_t *canvas, uint32_t channel, obs_source_t *source)`\n\n   Sets the source to be used for a canvas channel.\n\n`obs_source_t *obs_canvas_get_channel(obs_canvas_t *canvas, uint32_t channel)`\n\n   Gets the source currently in use for a canvas channel.","chars":946,"tokens_est":236,"sha256":"a42afe27553618a6a69a0964e6dfe2cd8239f5ed8aa95512dcd9f84b685e568f"},{"id":"docs-sphinx-reference-canvases#canvas-api-reference-obs-canvas-t-canvas-source-list-functions","doc":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Canvas API Reference (obs_canvas_t)","Canvas Source List Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst#canvas-source-list-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst","text":"[Canvas API Reference (obs_canvas_t) \u203a Canvas Source List Functions]\n`obs_scene_t *obs_canvas_scene_create(obs_canvas_t *canvas, const char *name)`\n\n   Create scene attached to a canvas.\n\n`void obs_canvas_scene_remove(obs_scene_t *scene)`\n\n   Remove a scene from a canvas.\n\n`void obs_canvas_move_scene(obs_scene_t *scene, obs_canvas_t *dst)`\n\n   Move scene to another canvas, detaching it from the previous one and deduplicating the name if needed.\n\n`void obs_canvas_enum_scenes(obs_canvas_t *canvas, bool (*enum_proc)(void *, obs_source_t *), void *param)`\n\n   Enumerates scenes belonging to a canvas.\n\n   Callback function returns true to continue enumeration, or false to end enumeration.\n\n`obs_source_t *obs_canvas_get_source_by_name(const char *name)`\n\n   Gets a canvas source by its name.\n\n   Increments the source reference counter, use\n   `obs_source_release()` to release it when complete.\n\n`obs_scene_t *obs_canvas_get_scene_by_name(const char *name)`\n\n   Gets a canvas scene by its name.\n\n   Increments the source reference counter, use\n   `obs_scene_release()` to release it when complete.","chars":1101,"tokens_est":275,"sha256":"4889a2297cc7d30541a0d4aa44c4c8be4881c66904dd453b36a2d3ed210eacd5"},{"id":"docs-sphinx-reference-canvases#canvas-api-reference-obs-canvas-t-canvas-video-functions","doc":"docs-sphinx-reference-canvases","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Canvas API Reference (obs_canvas_t)","Canvas Video Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst#canvas-video-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-canvases.rst","text":"[Canvas API Reference (obs_canvas_t) \u203a Canvas Video Functions]\n`bool obs_canvas_reset_video(obs_canvas_t *canvas, struct obs_video_info *ovi)`\n\n   Reset a canvas's video configuration.\n\n   Note that the frame rate property is ignored and the global rendering frame rate is used instead.\n\n`bool obs_canvas_has_video(obs_canvas_t *canvas)`\n\n   Returns true if the canvas video is configured.\n\n`video_t *obs_canvas_get_video(const obs_canvas_t *canvas)`\n\n   Get canvas video output\n\n`bool obs_canvas_get_video_info(const obs_canvas_t *canvas, struct obs_video_info *ovi)`\n\n   Get canvas video info (if any)\n\n`void obs_canvas_render(obs_canvas_t *canvas)`\n\n   Render the canvas's view. Must be called on the graphics thread.","chars":720,"tokens_est":180,"sha256":"3b18db1b287a15595e57dd4393b8d628d5bca7b8237c20921f415e70c1b7089b"},{"id":"docs-sphinx-reference-core-objects#core-api-object-reference","doc":"docs-sphinx-reference-core-objects","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core API Object Reference"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core-objects.rst#core-api-object-reference","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core-objects.rst","text":"[Core API Object Reference]\n.. toctree::\n   :maxdepth: 3\n\n   Sources (obs_source_t) <reference-sources>\n   Scenes (obs_scene_t) <reference-scenes>\n   Outputs (obs_output_t) <reference-outputs>\n   Encoders (obs_encoder_t) <reference-encoders>\n   Services (obs_service_t) <reference-services>\n   Data Settings (obs_data_t) <reference-settings>\n   Properties (obs_properties_t) <reference-properties>","chars":397,"tokens_est":99,"sha256":"c4b57988e677969fc824359af2bf44a28fd47329f05b791ea4495bcf042dfb32"},{"id":"docs-sphinx-reference-core#obs-core-api-reference","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#obs-core-api-reference","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference]\n.. code:: cpp\n\n   #include <obs.h>\n\n.. _obs_init_shutdown_reference:\n\n## Initialization, Shutdown, and Information\n`bool obs_startup(const char *locale, const char *module_config_path, profiler_name_store_t *store)`\n\n   Initializes the OBS core context.\n\n   :param  locale:             The locale to use for modules\n                               (E.G. \"en-US\")\n   :param  module_config_path: Path to module config storage directory\n                               (or *NULL* if none)\n   :param  store:              The profiler name store for OBS to use or NULL\n   :return:                    *false* if already initialized or failed\n                               to initialize\n\n`void obs_shutdown(void)`\n\n   Releases all data associated with OBS and terminates the OBS context.\n\n`bool obs_initialized(void)`\n\n   :return: true if the main OBS context has been initialized\n\n`uint32_t obs_get_version(void)`\n\n   :return: The current core version\n\n`const char *obs_get_version_string(void)`\n\n   :return: The current core version string\n\n`void obs_set_locale(const char *locale)`\n\n   Sets a new locale to use for modules.  This will call\n   `obs_module_set_locale()` for each module with the new locale.\n\n   :param  locale: The locale to use for modules\n\n`const char *obs_get_locale(void)`\n\n   :return: The current locale\n\n`profiler_name_store_t *obs_get_profiler_name_store(void)`\n\n   :return: The profiler name store (see util/profiler.h) used by OBS,\n            which is either a name store passed to `obs_startup()`, an\n            internal name store, or NULL in case `obs_initialized()`\n            returns false.\n\n`int obs_reset_video(struct obs_video_info *ovi)`\n\n   Sets base video output base resolution/fps/format.\n\n   Note: This data cannot be changed if an output is currently active.\n\n   Note: The graphics module cannot be changed without fully destroying\n   the OBS context.","chars":1913,"tokens_est":478,"sha256":"03672969aaed0c8d29bfa8e2af59a5c38fbc897bfdfbd3185b64e65b72d7e0b7"},{"id":"docs-sphinx-reference-core#obs-core-api-reference~2","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#obs-core-api-reference","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference]\n:param   ovi: Pointer to an obs_video_info structure containing the\n                 specification of the graphics subsystem,\n   :return:      | OBS_VIDEO_SUCCESS          - Success\n                 | OBS_VIDEO_NOT_SUPPORTED    - The adapter lacks capabilities\n                 | OBS_VIDEO_INVALID_PARAM    - A parameter is invalid\n                 | OBS_VIDEO_CURRENTLY_ACTIVE - Video is currently active\n                 | OBS_VIDEO_MODULE_NOT_FOUND - The graphics module is not found\n                 | OBS_VIDEO_FAIL             - Generic failure\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   struct obs_video_info {\n           /**\n            * Graphics module to use (usually \"libobs-opengl\" or \"libobs-d3d11\")\n            */\n           const char          *graphics_module;\n\n           uint32_t            fps_num;       /**< Output FPS numerator */\n           uint32_t            fps_den;       /**< Output FPS denominator */\n\n           uint32_t            base_width;    /**< Base compositing width */\n           uint32_t            base_height;   /**< Base compositing height */\n\n           uint32_t            output_width;  /**< Output width */\n           uint32_t            output_height; /**< Output height */\n           enum video_format   output_format; /**< Output format */\n\n           /** Video adapter index to use (NOTE: avoid for optimus laptops) */\n           uint32_t            adapter;\n\n           /** Use shaders to convert to different color formats */\n           bool                gpu_conversion;\n\n           enum video_colorspace colorspace;  /**< YUV type (if YUV) */\n           enum video_range_type range;       /**< YUV range (if YUV) */\n\n           enum obs_scale_type scale_type;    /**< How to scale if scaling */\n   };\n\n`bool obs_reset_audio(const struct obs_audio_info *oai)`\n\n   Sets base audio output format/channels/samples/etc.\n\n   Note: Cannot reset base audio if an output is currently active.","chars":1989,"tokens_est":497,"sha256":"a86cf969ab42dadd7004b791505430bfc1e083481030dcd937537ccaa8f263e3"},{"id":"docs-sphinx-reference-core#obs-core-api-reference~3","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#obs-core-api-reference","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference]\n:return: *true* if successful, *false* otherwise\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   struct obs_audio_info {\n           uint32_t            samples_per_sec;\n           enum speaker_layout speakers;\n   };\n\n`bool obs_reset_audio2(const struct obs_audio_info2 *oai)`\n\n   Sets base audio output format/channels/samples/etc. Also allows the\n   ability to set the maximum audio latency of OBS, and set whether the\n   audio buffering is fixed or dynamically increasing.\n\n   When using fixed audio buffering, OBS will automatically buffer to\n   the maximum audio latency on startup.\n\n   Maximum audio latency will clamp to the closest multiple of the audio\n   output frames (which is typically 1024 audio frames).\n\n   Note: Cannot reset base audio if an output is currently active.\n\n   :return: *true* if successful, *false* otherwise\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   struct obs_audio_info2 {\n           uint32_t            samples_per_sec;\n           enum speaker_layout speakers;\n\n           uint32_t max_buffering_ms;\n           bool fixed_buffering;\n   };\n\n`bool obs_get_video_info(struct obs_video_info *ovi)`\n\n   Gets the current video settings.\n\n   :return: *false* if no video\n\n`float obs_get_video_sdr_white_level(void)`\n\n   Gets the current SDR white level.\n\n   :return: SDR white level, 300.f if no video\n\n`float obs_get_video_hdr_nominal_peak_level(void)`\n\n   Gets the current HDR nominal peak level.\n\n   :return: HDR nominal peak level, 1000.f if no video\n\n`void obs_set_video_levels(float sdr_white_level, float hdr_nominal_peak_level)`\n\n   Sets the current video levels.\n\n`bool obs_get_audio_info(struct obs_audio_info *oai)`\n\n   Gets the current audio settings.\n\n   :return: *false* if no audio","chars":1794,"tokens_est":448,"sha256":"48d49a8ecfe2a23ce0b16ebfb8e1b8e04bc1c77c7833defa22b2fb60f77eea2b"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-libobs-objects","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Libobs Objects"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#libobs-objects","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Libobs Objects]\n`bool obs_enum_source_types(size_t idx, const char **id)`\n\n   Enumerates all source types (inputs, filters, transitions, etc).\n\n`bool obs_enum_input_types(size_t idx, const char **id)`\n\n   Enumerates all available inputs source types.\n\n   Inputs are general source inputs (such as capture sources, device sources,\n   etc).\n\n`bool obs_enum_filter_types(size_t idx, const char **id)`\n\n   Enumerates all available filter source types.\n\n   Filters are sources that are used to modify the video/audio output of\n   other sources.\n\n`bool obs_enum_transition_types(size_t idx, const char **id)`\n\n   Enumerates all available transition source types.\n\n   Transitions are sources used to transition between two or more other\n   sources.\n\n`bool obs_enum_output_types(size_t idx, const char **id)`\n\n   Enumerates all available output types.\n\n`bool obs_enum_encoder_types(size_t idx, const char **id)`\n\n   Enumerates all available encoder types.\n\n`bool obs_enum_service_types(size_t idx, const char **id)`\n\n   Enumerates all available service types.\n\n`void obs_enum_sources(bool (*enum_proc)(void*, obs_source_t*), void *param)`\n\n   Enumerates all input sources.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.\n\n   Use `obs_source_get_ref()` or\n   `obs_source_get_weak_source()` if you want to retain a\n   reference after obs_enum_sources finishes.\n\n   For scripting, use :py`obs_enum_sources`.\n\n`void obs_enum_scenes(bool (*enum_proc)(void*, obs_source_t*), void *param)`\n\n   Enumerates all scenes. Use `obs_scene_from_source()` if the scene is\n   needed as an `obs_scene_t`. The order that they are enumerated should\n   not be relied on. If one intends to enumerate the scenes in the order\n   presented by the OBS Studio Frontend, use `obs_frontend_get_scenes()`.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.","chars":1929,"tokens_est":482,"sha256":"458ba5513ea326ad9d2a32c281bb1e254cac5fcc7d402b656e0f548a350d7584"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-libobs-objects~2","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Libobs Objects"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#libobs-objects","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Libobs Objects]\nUse `obs_source_get_ref()` or\n   `obs_source_get_weak_source()` if you want to retain a\n   reference after obs_enum_scenes finishes.\n\n`void obs_enum_outputs(bool (*enum_proc)(void*, obs_output_t*), void *param)`\n\n   Enumerates outputs.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.\n\n   Use `obs_output_get_ref()` or\n   `obs_output_get_weak_output()` if you want to retain a\n   reference after obs_enum_outputs finishes.\n\n`void obs_enum_encoders(bool (*enum_proc)(void*, obs_encoder_t*), void *param)`\n\n   Enumerates encoders.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.\n\n   Use `obs_encoder_get_ref()` or\n   `obs_encoder_get_weak_encoder()` if you want to retain a\n   reference after obs_enum_encoders finishes.\n\n`void obs_enum_canvases(bool (*enum_proc)(void*, obs_canvas_t*), void *param)`\n\n   Enumerates canvases.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.\n\n   Use `obs_canvas_get_ref()` or\n   `obs_canvas_get_weak_canvas()` if you want to retain a\n   reference after obs_enum_canvases finishes.\n\n`obs_source_t *obs_get_source_by_name(const char *name)`\n\n   Gets a source by its name.\n\n   Increments the source reference counter, use\n   `obs_source_release()` to release it when complete.\n\n`obs_source_t *obs_get_source_by_uuid(const char *uuid)`\n\n   Gets a source by its UUID.\n\n   Increments the source reference counter, use\n   `obs_source_release()` to release it when complete.\n\n   .. versionadded:: 29.1\n\n`obs_source_t *obs_get_transition_by_name(const char *name)`\n\n   Gets a transition by its name.\n\n   Increments the source reference counter, use\n   `obs_source_release()` to release it when complete.\n\n   .. deprecated:: 31.1\n      Use `obs_frontend_get_transitions` from the Frontend API or `obs_get_source_by_uuid` instead.\n\n`obs_source_t *obs_get_transition_by_uuid(const char *uuid)`\n\n   Gets a transition by its UUID.","chars":2019,"tokens_est":505,"sha256":"de9f695622dd152718e45c381cdab135bb050a9da03ac6779a6ec6b254ef2de5"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-libobs-objects~3","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Libobs Objects"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#libobs-objects","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Libobs Objects]\nIncrements the source reference counter, use\n   `obs_source_release()` to release it when complete.\n\n   .. versionadded:: 29.1\n\n   .. deprecated:: 31.1\n      Use `obs_get_source_by_uuid` instead.\n\n`obs_scene_t *obs_get_scene_by_name(const char *name)`\n\n   Gets a scene by its name.\n\n   Increments the scene reference counter, use\n   `obs_scene_release()` to release it when complete.\n\n`obs_output_t *obs_get_output_by_name(const char *name)`\n\n   Gets an output by its name.\n\n   Increments the output reference counter, use\n   `obs_output_release()` to release it when complete.\n\n`obs_encoder_t *obs_get_encoder_by_name(const char *name)`\n\n   Gets an encoder by its name.\n\n   Increments the encoder reference counter, use\n   `obs_encoder_release()` to release it when complete.\n\n`obs_service_t *obs_get_service_by_name(const char *name)`\n\n   Gets an service by its name.\n\n   Increments the service reference counter, use\n   `obs_service_release()` to release it when complete.\n\n`obs_canvas_t *obs_get_canvas_by_name(const char *name)`\n\n   Get a canvas by its name.\n\n   Increments the canvas reference counter, use\n   `obs_canvas_release()` to release it when complete.\n\n`obs_canvas_t *obs_get_canvas_by_uuid(const char *uuid)`\n\n   Get a canvas by its UUID.\n\n   Increments the canvas reference counter, use\n   `obs_canvas_release()` to release it when complete.\n\n`obs_data_t *obs_save_source(obs_source_t *source)`\n\n   :return: A new reference to a source's saved data. Use\n            `obs_data_release()` to release it when complete.\n\n`obs_source_t *obs_load_source(obs_data_t *data)`\n\n   :return: A source created from saved data\n\n`void obs_load_sources(obs_data_array_t *array, obs_load_source_cb cb, void *private_data)`\n\n   Helper function to load active sources from a data array.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef void (*obs_load_source_cb)(void *private_data, obs_source_t *source);\n\n`obs_data_array_t *obs_save_sources(void)`","chars":2017,"tokens_est":504,"sha256":"87f66177490b208fa59f76f4f315e2943cdc6b27951ac50f60e5e3b423fb30a6"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-libobs-objects~4","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Libobs Objects"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#libobs-objects","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Libobs Objects]\n:return: A data array with the saved data of all active sources\n\n`obs_data_array_t *obs_save_sources_filtered(obs_save_source_filter_cb cb, void *data)`\n\n   :return: A data array with the saved data of all active sources,\n            filtered by the *cb* function\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef bool (*obs_save_source_filter_cb)(void *data, obs_source_t *source);","chars":450,"tokens_est":112,"sha256":"235034be5c80f00e8625681cd5b53b40339ae27ed89c9146ebbfa07626077ea8"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-video-audio-and-graphics","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Video, Audio, and Graphics"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#video-audio-and-graphics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Video, Audio, and Graphics]\n`void obs_enter_graphics(void)`\n\n   Helper function for entering the OBS graphics context.\n\n`void obs_leave_graphics(void)`\n\n   Helper function for leaving the OBS graphics context.\n\n`audio_t *obs_get_audio(void)`\n\n   :return: The main audio output handler for this OBS context\n\n`video_t *obs_get_video(void)`\n\n   :return: The main video output handler for this OBS context\n\n`void obs_get_video_frame_counts(uint32_t *total, uint32_t *skipped)`\n\n   Gets the number of frames the main canvas has sent to its video\n   encoders and raw outputs, and the number it skipped because one of them\n   could not keep up (encoding lag). Counts the main video mix and the\n   video mixes created for encoders that rescale it on the GPU\n   (`obs_encoder_set_scaled_size()` with a GPU scale type), each\n   once; `video_output_get_total_frames()` of\n   `obs_get_video()` misses the latter. A rescaling encoder's mix\n   is removed when the encoder stops, so the totals can go down.\n\n   :param total:   Receives the number of frames (may be *NULL*)\n   :param skipped: Receives the number of skipped frames (may be *NULL*)\n\n`void obs_set_output_source(uint32_t channel, obs_source_t *source)`\n\n   Sets the primary output source for a channel.\n\n`obs_source_t *obs_get_output_source(uint32_t channel)`\n\n   Gets the primary output source for a channel and increments the reference\n   counter for that source.  Use `obs_source_release()` to release.\n\n`gs_effect_t *obs_get_base_effect(enum obs_base_effect effect)`\n\n   Returns a commonly used base effect.","chars":1585,"tokens_est":396,"sha256":"d360ab0ac4f0ca509a99bfcaecd794e1f4e5cf5b39854d2bd1ef1ce484099621"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-video-audio-and-graphics~2","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Video, Audio, and Graphics"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#video-audio-and-graphics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Video, Audio, and Graphics]\n:param effect: | Can be one of the following values:\n                  | OBS_EFFECT_DEFAULT             - RGB/YUV\n                  | OBS_EFFECT_DEFAULT_RECT        - RGB/YUV (using texture_rect)\n                  | OBS_EFFECT_OPAQUE              - RGB/YUV (alpha set to 1.0)\n                  | OBS_EFFECT_SOLID               - RGB/YUV (solid color only)\n                  | OBS_EFFECT_BICUBIC             - Bicubic downscale\n                  | OBS_EFFECT_LANCZOS             - Lanczos downscale\n                  | OBS_EFFECT_BILINEAR_LOWRES     - Bilinear low resolution downscale\n                  | OBS_EFFECT_PREMULTIPLIED_ALPHA - Premultiplied alpha\n\n`void obs_render_main_texture(void)`\n\n   Renders the main output texture.  Useful for rendering a preview pane\n   of the main output.\n\n`bool obs_audio_monitoring_available(void)`\n\n   :return: Whether audio monitoring is supported and available on the current platform\n\n`void obs_reset_audio_monitoring(void)`\n\n   Resets all audio monitoring devices.\n\n   .. versionadded:: 30.1\n\n`void obs_enum_audio_monitoring_devices(obs_enum_audio_device_cb cb, void *data)`\n\n   Enumerates audio devices which can be used for audio monitoring.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef bool (*obs_enum_audio_device_cb)(void *data, const char *name, const char *id);\n\n`bool obs_set_audio_monitoring_device(const char *name, const char *id)`\n\n   Sets the current audio device for audio monitoring.\n\n`void obs_get_audio_monitoring_device(const char **name, const char **id)`\n\n   Gets the current audio device for audio monitoring.\n\n`void obs_add_main_render_callback(void (*draw)(void *param, uint32_t cx, uint32_t cy), void *param)`\n              void obs_remove_main_render_callback(void (*draw)(void *param, uint32_t cx, uint32_t cy), void *param)","chars":1971,"tokens_est":493,"sha256":"c40441a02ad9ddb8f3e49cb2abc0f872041674a273f1058ba99a49a5996906f1"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-video-audio-and-graphics~3","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Video, Audio, and Graphics"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#video-audio-and-graphics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Video, Audio, and Graphics]\nAdds/removes a main rendering callback.  Allows custom rendering to\n   the main stream/recording output.\n\n   For scripting (**Lua only**), use :py`obs_add_main_render_callback`\n   and :py`obs_remove_main_render_callback`.\n\n`void obs_add_main_rendered_callback(void (*rendered)(void *param), void *param)`\n              void obs_remove_main_rendered_callback(void (*rendered)(void *param), void *param)\n\n   Adds/removes a main rendered callback.  Allows using the result of\n   the main stream/recording output.\n\n   .. versionadded:: 29.1\n\n`void obs_add_raw_video_callback(const struct video_scale_info *conversion, void (*callback)(void *param, struct video_data *frame), void *param)`\n              void obs_remove_raw_video_callback(void (*callback)(void *param, struct video_data *frame), void *param)\n\n   Adds/removes a raw video callback.  Allows the ability to obtain raw\n   video frames without necessarily using an output.\n\n   :param conversion: Specifies conversion requirements.  Can be NULL.\n   :param callback:   The callback that receives raw video frames.\n   :param param:      The private data associated with the callback.\n\n`void obs_add_raw_audio_callback(size_t mix_idx, const struct audio_convert_info *conversion, audio_output_callback_t callback, void *param)`\n              void obs_remove_raw_raw_callback(size_t track, audio_output_callback_t callback, void *param)\n\n   Adds/removes a raw audio callback.  Allows the ability to obtain raw\n   audio data without necessarily using an output.\n\n   :param mix_idx:    Specifies audio track to get data from.\n   :param conversion: Specifies conversion requirements.  Can be NULL.\n   :param callback:   The callback that receives raw audio data.\n   :param param:      The private data associated with the callback.","chars":1834,"tokens_est":458,"sha256":"feac7569c9bc95812b4e2366599a80387778012e19103c408fe3adc2346c92c4"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-primary-signal-procedure-handlers","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Primary signal/procedure handlers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#primary-signalprocedure-handlers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Primary signal/procedure handlers]\n`signal_handler_t *obs_get_signal_handler(void)`\n\n   :return: The primary obs signal handler. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n   See `core_signal_handler_reference` for more information on\n   core signals.\n\n`proc_handler_t *obs_get_proc_handler(void)`\n\n   :return: The primary obs procedure handler. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n.. _core_signal_handler_reference:","chars":527,"tokens_est":132,"sha256":"f9075d74a9c992b33b16d3e11e0aa5146cb6e88dfc21b21ba44b6638f1d3aa0b"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-core-obs-signals","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Core OBS Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#core-obs-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Core OBS Signals]\n**source_create** (ptr source)\n\n   Called when a source has been created.\n\n**source_destroy** (ptr source)\n\n   Called when a source has been destroyed.\n\n**source_remove** (ptr source)\n\n   Called when a source has been removed (`obs_source_remove()`\n   has been called on the source).\n\n**source_update** (ptr source)\n\n   Called when a source's settings have been updated.\n\n**source_save** (ptr source)\n\n   Called when a source is being saved.\n\n**source_load** (ptr source)\n\n   Called when a source is being loaded.\n\n**source_activate** (ptr source)\n\n   Called when a source has been activated in the main view (visible on\n   stream/recording).\n\n**source_deactivate** (ptr source)\n\n   Called when a source has been deactivated from the main view (no\n   longer visible on stream/recording).\n\n**source_show** (ptr source)\n\n   Called when a source is visible on any display and/or on the main\n   view.\n\n**source_hide** (ptr source)\n\n   Called when a source is no longer visible on any display and/or on\n   the main view.\n\n**source_rename** (ptr source, string new_name, string prev_name)\n\n   Called when a source has been renamed.\n\n**source_volume** (ptr source, in out float volume)\n\n   Called when a source's volume has changed.\n\n**source_audio_activate** (ptr source)\n\n   Called when a source's audio becomes active.\n\n**source_audio_deactivate** (ptr source)\n\n   Called when a source's audio becomes inactive.\n\n**source_filter_add** (ptr source, ptr filter)\n\n   Called when a filter is added to a source.\n\n**source_filter_remove** (ptr source, ptr filter)\n\n   Called when a filter is removed from a source.\n\n**source_transition_start** (ptr source)\n\n   Called when a transition has started its transition.\n\n**source_transition_video_stop** (ptr source)\n\n   Called when a transition has stopped its video transitioning.\n\n**source_transition_stop** (ptr source)\n\n   Called when a transition has stopped its transition.\n\n**channel_change** (int channel, in out ptr source, ptr prev_source)","chars":2028,"tokens_est":507,"sha256":"1d481e155431bbdaae5493a5fc40790b53bba755398a9cc9192129aa88d40950"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-core-obs-signals~2","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Core OBS Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#core-obs-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Core OBS Signals]\nCalled when `obs_set_output_source()` has been called.\n\n**hotkey_layout_change** ()\n\n   Called when the hotkey layout has changed.\n\n**hotkey_register** (ptr hotkey)\n\n   Called when a hotkey has been registered.\n\n**hotkey_unregister** (ptr hotkey)\n\n   Called when a hotkey has been unregistered.\n\n**hotkey_bindings_changed** (ptr hotkey)\n\n   Called when a hotkey's bindings has changed.\n\n**hotkey_background_press_changed** (bool enabled)\n\n   Called when `obs_hotkey_enable_background_press()` changes\n   whether the hotkey thread presses hotkeys.\n\n**hotkey_background_status_changed** ()\n\n   Called (on any thread) when the state of background hotkeys provided by\n   the desktop changes (the GlobalShortcuts portal on Wayland); see\n   `obs_hotkeys_get_background_state()` in obs-hotkey.h.\n\n**hotkey_background_probe** (string id)\n\n   Called when the desktop activates the shortcut *id* while\n   `obs_hotkeys_set_background_probe(true)` is in effect; no hotkey is\n   pressed meanwhile.\n\n**canvas_create** (ptr canvas)\n\n   Called when a new public canvas has been created.\n\n**canvas_remove** (ptr canvas)\n\n   Called when the `obs_canvas_remove()` function is called on a public canvas.\n\n**canvas_destroy** (ptr canvas)\n\n   Called when a public canvas is about to be destroyed.\n\n**canvas_video_reset** (ptr canvas)\n\n   Called when a public canvas's video mix has been reset after a call to\n   `obs_reset_video()` or `obs_canvas_reset_video()`.\n\n**canvas_rename** (ptr canvas, string new_name, string prev_name)\n\n   Called when a public canvas has been renamed.\n\n**core_video_release** ()\n\n   Called by `obs_reset_video()` before it frees the video mixes.\n   Every video_t from `obs_get_video()`, `obs_view_add()` or\n   a canvas is freed after this signal; drop or stop using them here. Outputs\n   that use the main video or a public canvas are moved to the new mixes by\n   libobs.\n\n**video_reset** ()\n\n   Called when a the main OBS video has been reset.\n\n.. _display_reference:","chars":2018,"tokens_est":504,"sha256":"1bf4966ad9e6dfa1416bf9c3f5549ec17b2321263bc094f4816eb033330f6418"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-displays","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Displays"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#displays","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Displays]\n`obs_display_t *obs_display_create(const struct gs_init_data *graphics_data)`\n\n   Adds a new window display linked to the main render pipeline.  This creates\n   a new swap chain which updates every frame.\n\n   *(Important note: do not use more than one display widget within the\n   hierarchy of the same base window; this will cause presentation\n   stalls on macOS.)*\n\n   :param  graphics_data: The swap chain initialization data\n   :return:               The new display context, or NULL if failed\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   enum gs_color_format {\n           [...]\n           GS_RGBA,\n           GS_BGRX,\n           GS_BGRA,\n           GS_RGBA16F,\n           GS_RGBA32F,\n           [...]\n   };\n\n   enum gs_zstencil_format {\n           GS_ZS_NONE,\n           GS_Z16,\n           GS_Z24_S8,\n           GS_Z32F,\n           GS_Z32F_S8X24\n   };\n\n   struct gs_window {\n   #if defined(_WIN32)\n           void                    *hwnd;\n   #elif defined(__APPLE__)\n           __unsafe_unretained id  view;\n   #elif defined(__linux__) || defined(__FreeBSD__)\n           uint32_t                id;\n           void                    *display;\n   #endif\n   };\n\n   struct gs_init_data {\n           struct gs_window        window;\n           uint32_t                cx, cy;\n           uint32_t                num_backbuffers;\n           enum gs_color_format    format;\n           enum gs_zstencil_format zsformat;\n           uint32_t                adapter;\n   };\n\n`void obs_display_destroy(obs_display_t *display)`\n\n   Destroys a display context.\n\n`void obs_display_resize(obs_display_t *display, uint32_t cx, uint32_t cy)`\n\n   Changes the size of a display context.\n\n`void obs_display_add_draw_callback(obs_display_t *display, void (*draw)(void *param, uint32_t cx, uint32_t cy), void *param)`\n\n   Adds a draw callback for a display context, which will be called\n   whenever the display is rendered.","chars":1964,"tokens_est":491,"sha256":"ae9b9c81eb29bf84de435179cf779e2dabfb8036ddccbd0d4d65f3694cb635c5"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-displays~2","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Displays"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#displays","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Displays]\n:param  display: The display context\n   :param  draw:    The draw callback which is called each time a frame\n                    updates\n   :param  param:   The user data to be associated with this draw callback\n\n`void obs_display_remove_draw_callback(obs_display_t *display, void (*draw)(void *param, uint32_t cx, uint32_t cy), void *param)`\n\n   Removes a draw callback for a display context.\n\n`void obs_display_set_enabled(obs_display_t *display, bool enable)`\n\n   Enables/disables a display context.\n\n`bool obs_display_enabled(obs_display_t *display)`\n\n   :return: *true* if the display is enabled, *false* otherwise\n\n`void obs_display_set_background_color(obs_display_t *display, uint32_t color)`\n\n   Sets the background (clear) color for the display context.\n\n.. _view_reference:","chars":820,"tokens_est":205,"sha256":"196319d52e3a2d14469193a89079771c30e6b95ae45952440cbaf58a72107939"},{"id":"docs-sphinx-reference-core#obs-core-api-reference-views","doc":"docs-sphinx-reference-core","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Core API Reference","Views"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst#views","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-core.rst","text":"[OBS Core API Reference \u203a Views]\n`obs_view_t *obs_view_create(void)`\n\n   :return: A view context\n\n`void obs_view_destroy(obs_view_t *view)`\n\n   Destroys a view context.\n\n`void obs_view_render(obs_view_t *view)`\n\n   Renders the sources of this view context.\n\n`video_t *obs_view_add(obs_view_t *view)`\n\n   Renders the sources of this view context.\n\n   :return: The main video output handler for the view context\n\n`video_t *obs_view_add2(obs_view_t *view, struct obs_video_info *ovi)`\n\n   Adds a view to the main render loop, with custom video settings.\n\n   :return: The main video output handler for the view context\n\n`void obs_view_remove(obs_view_t *view)`\n\n   Removes a view from the main render loop.\n\n`void obs_view_set_source(obs_view_t *view, uint32_t channel, obs_source_t *source)`\n\n   Sets the source to be used for this view context.\n\n`obs_source_t *obs_view_get_source(obs_view_t *view, uint32_t channel)`\n\n   :return: The source currently in use for this view context\n\n`void obs_view_enum_video_info(obs_view_t *view, bool (*enum_proc)(void *, struct obs_video_info *), void *param)`\n\n   Enumerates all the video info of all mixes that use the specified mix.\n\n   .. versionadded:: 30.1","chars":1196,"tokens_est":299,"sha256":"05b3b39130d5a2d624d2f9c4963f16c26194a0812fb6ea7da6473c86ae313182"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#encoder-api-reference-obs_encoder_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t)]\nEncoders are OBS-specific implementations of video/audio encoders, which\nare used with outputs that use encoders.  x264, NVENC, Quicksync are\nexamples of encoder implementations.  The `libobs/obs-encoder.h`_ file\nis the dedicated header for implementing encoders\n\n`obs_encoder_t`\n\n   A reference-counted encoder object.\n\n`obs_weak_encoder_t`\n\n   A weak reference to an encoder object.\n\n.. code:: cpp\n\n   #include <obs.h>","chars":460,"tokens_est":115,"sha256":"67921a3efe4d24e8ea89152c78db42a41ada5179491c1b37454c65bbc071172b"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-encoder-definition-structure-obs-encoder-inf","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","Encoder Definition Structure (obs_encoder_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#encoder-definition-structure-obs_encoder_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a Encoder Definition Structure (obs_encoder_info)]\n`obs_encoder_info`\n\n   Encoder definition structure.\n\n`const char *obs_encoder_info.id`\n\n   Unique string identifier for the encoder (required).\n\n`enum obs_encoder_type obs_encoder_info.type`\n\n   Type of encoder.\n\n   - **OBS_ENCODER_VIDEO** - Video encoder\n   - **OBS_ENCODER_AUDIO** - Audio encoder\n\n`const char *obs_encoder_info.codec`\n\n   The codec, in string form.  For example, \"h264\" for an H.264 encoder.\n\n`const char *(*obs_encoder_info.get_name)(void *type_data)`\n\n   Get the translated name of the encoder type.\n\n   :param  type_data:  The type_data variable of this structure\n   :return:            The translated name of the encoder type\n\n`void *(*obs_encoder_info.create)(obs_data_t *settings, obs_encoder_t *encoder)`\n\n   Creates the implementation data for the encoder.\n\n   :param  settings: Settings to initialize the encoder with\n   :param  encoder:  Encoder that this data is associated with\n   :return:          The implementation data associated with this encoder\n\n`void (*obs_encoder_info.destroy)(void *data)`\n\n   Destroys the implementation data for the encoder.\n\n`bool (*encode)(void *data, struct encoder_frame *frame, struct encoder_packet *packet, bool *received_packet)`\n\n   Called to encode video or audio and outputs packets as they become\n   available.\n\n   :param frame:           Raw audio/video data to encode\n   :param packet:          Encoder packet output, if any\n   :param received_packet: Set to *true* if a packet was received,\n                           *false* otherwise\n   :return:                true if successful, false on critical failure\n\n`size_t (*get_frame_size)(void *data)`\n\n   :return: An audio encoder's frame size.  For example, for AAC this\n            number would be 1024\n\n`void (*obs_encoder_info.get_defaults)(obs_data_t *settings)`\n            void (*obs_encoder_info.get_defaults2)(obs_data_t *settings, void *type_data)\n\n   Sets the default settings for this encoder.","chars":2019,"tokens_est":505,"sha256":"c59029f43c516603b48a0f8cbadca6f324ad8658c244db739aeb052e1fa20c57"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-encoder-definition-structure-obs-encoder-inf~2","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","Encoder Definition Structure (obs_encoder_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#encoder-definition-structure-obs_encoder_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a Encoder Definition Structure (obs_encoder_info)]\n:param  settings:  Default settings.  Call obs_data_set_default*\n                      functions on this object to set default setting\n                      values\n\n`obs_properties_t *(*obs_encoder_info.get_properties)(void *data)`\n            obs_properties_t *(*obs_encoder_info.get_properties2)(void *data, void *type_data)\n\n   Gets the property information of this encoder.\n\n   :param  data:  The implementation data associated with this encoder.\n                  This value can be null (e.g., when\n                  `obs_get_encoder_properties()` is called on the\n                  encoder type), make sure to handle this gracefully.\n\n   (Optional)\n\n   :return: The properties of the encoder\n\n`void (*obs_encoder_info.update)(void *data, obs_data_t *settings)`\n\n   Updates the settings for this encoder.\n\n   (Optional)\n\n   :param settings: New settings for this encoder\n\n`bool (*obs_encoder_info.get_extra_data)(void *data, uint8_t **extra_data, size_t *size)`\n\n   Returns extra data associated with this encoder (usually header).\n\n   (Optional)\n\n   :param  extra_data: Pointer to receive the extra data\n   :param  size:       Pointer to receive the size of the extra\n                       data\n   :return:            true if extra data available, false\n                       otherwise\n\n`bool (*obs_encoder_info.get_sei_data)(void *data, uint8_t **sei_data, size_t *size)`\n\n   Gets the SEI data of a video encoder that has SEI data.\n\n   (Optional)\n\n   :param  sei_data: Pointer to receive the SEI data\n   :param  size:     Pointer to receive the SEI data size\n   :return:          true if SEI data available, false otherwise\n\n`void (*obs_encoder_info.get_audio_info)(void *data, struct audio_convert_info *info)`\n\n   Returns desired audio format and sample information.  This callback\n   can be used to tell the back-end that the audio data needs to be\n   automatically converted to a different sample rate or audio format\n   before being sent to the encoder.\n\n   (Optional)","chars":2072,"tokens_est":518,"sha256":"9b194b046d954435a5618e513989d7c91596f846caf667cc18e2bc85bd423d95"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-encoder-definition-structure-obs-encoder-inf~3","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","Encoder Definition Structure (obs_encoder_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#encoder-definition-structure-obs_encoder_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a Encoder Definition Structure (obs_encoder_info)]\n:param  info: Audio format information\n\n`void (*obs_encoder_info.get_video_info)(void *data, struct video_scale_info *info)`\n\n   Returns desired video format information.  This callback can be used\n   to tell the back-end that the video data needs to be automatically\n   converted to a different video format or specific size before being\n   sent to the encoder.\n\n   :param  info: Video format information\n\n`void *obs_encoder_info.type_data`\n            void (*obs_encoder_info.free_type_data)(void *type_data)\n\n   Private data associated with this entry.  Note that this is not the\n   same as the implementation data; this is used to differentiate\n   between two different types if the same callbacks are used for more\n   than one different type.\n\n`uint32_t obs_encoder_info.caps`\n\n   Can be 0 or a bitwise OR combination of one or more of the following\n   values:\n\n   - **OBS_ENCODER_CAP_DEPRECATED** - Encoder is deprecated\n   - **OBS_ENCODER_CAP_ROI** - Encoder supports region of interest feature\n   - **OBS_ENCODER_CAP_SCALING** - Encoder implements its own scaling logic,\n                                   desiring to receive unscaled frames\n\n`size_t (*get_priming_samples)(void *data)`\n\n   Returns the number of priming samples that must be skipped for correct playback for audio produced by this encoder.\n   Only required for lossy codecs such as AAC or Opus.\n\n   :return: Number of samples\n\n`void (*request_keyframe)(void *data)`\n\n   Video encoders only (optional). Asks the encoder to make its next frame\n   a keyframe. libobs calls it when an output starts on an encoder that is\n   already running for another output (for example a recording started\n   while the replay buffer runs), because the new output gets no packet\n   before a keyframe. It is called from the thread starting the output, so\n   set a flag that the next encode call acts on.","chars":1948,"tokens_est":487,"sha256":"b75bd4046044b147aaa8a8122c6e0270d3676809d473a002a7a378e2a3bde9ce"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-encoder-packet-structure-encoder-packet","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","Encoder Packet Structure (encoder_packet)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#encoder-packet-structure-encoder_packet","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a Encoder Packet Structure (encoder_packet)]\n`encoder_packet`\n\n   Encoder packet structure.\n\n`uint8_t               *encoder_packet.data`\n\n   Packet data.\n\n`size_t                encoder_packet.size`\n\n   Packet size.\n\n`int64_t               encoder_packet.pts`\n            int64_t               encoder_packet.dts\n\n   Packet presentation and decode timestamps.\n\n`int32_t               encoder_packet.timebase_num`\n            int32_t               encoder_packet.timebase_den\n\n   Packet time base.\n\n`enum obs_encoder_type encoder_packet.type`\n\n   Can be one of the following values:\n\n   - **OBS_ENCODER_VIDEO** - Video data\n   - **OBS_ENCODER_AUDIO** - Audio data\n\n`bool                  encoder_packet.keyframe`\n\n   Packet is a keyframe.\n\n`int64_t               encoder_packet.dts_usec`\n\n   The DTS in microseconds.\n\n   (This should not be set by the encoder implementation)\n\n`int64_t               encoder_packet.sys_dts_usec`\n\n   The system time of this packet in microseconds.\n\n   (This should not be set by the encoder implementation)\n\n`int                   encoder_packet.priority`\n\n   Packet priority.  This is no longer used.\n\n   (This should not be set by the encoder implementation)\n\n`int                   encoder_packet.drop_priority`\n\n   Packet drop priority.\n\n   If this packet needs to be dropped, the next packet must be of this\n   priority or higher to continue transmission.\n\n   (This should not be set by the encoder implementation)\n\n`size_t                encoder_packet.track_idx`\n\n   Audio track index.\n\n   (This should not be set by the encoder implementation)\n\n`obs_encoder_t         *encoder_packet.encoder`\n\n   Encoder object associated with this packet.\n\n   (This should not be set by the encoder implementation)","chars":1779,"tokens_est":445,"sha256":"b4a770d445729e1fd5c588377eb1aa58d4c41cdf392b95a1bc791f9fd0d3467f"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-raw-frame-data-structure-encoder-frame","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","Raw Frame Data Structure (encoder_frame)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#raw-frame-data-structure-encoder_frame","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a Raw Frame Data Structure (encoder_frame)]\n`encoder_frame`\n\n   Raw frame data structure.\n\n`uint8_t *encoder_frame.data[MAX_AV_PLANES]`\n\n   Raw video/audio data.\n\n`uint32_t encoder_frame.linesize[MAX_AV_PLANES]`\n\n   Line size of each plane.\n\n`uint32_t encoder_frame.frames`\n\n   Number of audio frames (if audio).\n\n`int64_t encoder_frame.pts`\n\n   Presentation timestamp.","chars":408,"tokens_est":102,"sha256":"9d54cdaf942d45f942d1be08dc6bc0b8fb23ad4c0c2bc1e99a040df8c89b2ff2"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-encoder-region-of-interest-structure-obs-enc","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","Encoder Region of Interest Structure (obs_encoder_roi)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#encoder-region-of-interest-structure-obs_encoder_roi","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a Encoder Region of Interest Structure (obs_encoder_roi)]\n`obs_encoder_roi`\n\n   Encoder region of interest structure.\n\n   .. versionadded:: 30.1\n\n`uint32_t top`\n            uint32_t bottom\n            uint32_t left\n            uint32_t right\n\n   The rectangle edges of the region are specified as number of pixels from the input video's top and left edges (i.e. row/column 0).\n\n`float priority`\n\n   Priority is specified as a float value between *-1.0f* and *1*.\n   These are converted to encoder-specific values by the encoder.\n   Values above 0 tell the encoder to increase quality for that region, values below tell it to worsen it.\n   Not all encoders support negative values and they may be ignored.","chars":743,"tokens_est":186,"sha256":"f2bcfbebb339bd8283fe1bb609377e2004034f429300f291d82317268b307afb"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-general-encoder-functions","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","General Encoder Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#general-encoder-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a General Encoder Functions]\n`void obs_register_encoder(struct obs_encoder_info *info)`\n\n   Registers an encoder type.  Typically used in\n   `obs_module_load()` or in the program's initialization phase.\n\n`const char *obs_encoder_get_display_name(const char *id)`\n\n   Calls the `obs_encoder_info.get_name` callback to get the\n   translated display name of an encoder type.\n\n   :param    id:            The encoder type string identifier\n   :return:                 The translated display name of an encoder type\n\n`obs_encoder_t *obs_video_encoder_create(const char *id, const char *name, obs_data_t *settings, obs_data_t *hotkey_data)`\n\n   Creates a video encoder with the specified settings.\n\n   The \"encoder\" context is used for encoding video/audio data.  Use\n   obs_encoder_release to release it.\n\n   :param   id:             The encoder type string identifier\n   :param   name:           The desired name of the encoder.  If this is\n                            not unique, it will be made to be unique\n   :param   settings:       The settings for the encoder, or *NULL* if\n                            none\n   :param   hotkey_data:    Saved hotkey data for the encoder, or *NULL*\n                            if none\n   :return:                 A reference to the newly created encoder, or\n                            *NULL* if failed\n\n`obs_encoder_t *obs_audio_encoder_create(const char *id, const char *name, obs_data_t *settings, size_t mixer_idx, obs_data_t *hotkey_data)`\n\n   Creates an audio encoder with the specified settings.\n\n   The \"encoder\" context is used for encoding video/audio data.  Use\n   `obs_encoder_release()` to release it.","chars":1687,"tokens_est":422,"sha256":"7af60e820142b82214ea86a1637a31e91f7d69d7ed851e411034708ce761f649"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-general-encoder-functions~2","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","General Encoder Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#general-encoder-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a General Encoder Functions]\n:param   id:             The encoder type string identifier\n   :param   name:           The desired name of the encoder.  If this is\n                            not unique, it will be made to be unique\n   :param   settings:       The settings for the encoder, or *NULL* if\n                            none\n   :param   mixer_idx:      The audio mixer index this audio encoder\n                            will capture audio from\n   :param   hotkey_data:    Saved hotkey data for the encoder, or *NULL*\n                            if none\n   :return:                 A reference to the newly created encoder, or\n                            *NULL* if failed\n\n`obs_encoder_t *obs_encoder_get_ref(obs_encoder_t *encoder)`\n\n   Returns an incremented reference if still valid, otherwise returns\n   *NULL*. Release with `obs_encoder_release()`.\n\n`void obs_encoder_release(obs_encoder_t *encoder)`\n\n   Releases a reference to an encoder.  When the last reference is released,\n   the encoder is destroyed.\n\n`obs_weak_encoder_t *obs_encoder_get_weak_encoder(obs_encoder_t *encoder)`\n              obs_encoder_t *obs_weak_encoder_get_encoder(obs_weak_encoder_t *weak)\n\n   These functions are used to get a weak reference from a strong encoder\n   reference, or a strong encoder reference from a weak reference.  If\n   the encoder is destroyed, *obs_weak_encoder_get_encoder* will return\n   *NULL*.\n\n`void obs_weak_encoder_addref(obs_weak_encoder_t *weak)`\n              void obs_weak_encoder_release(obs_weak_encoder_t *weak)\n\n   Adds/releases a weak reference to an encoder.\n\n`void obs_encoder_set_name(obs_encoder_t *encoder, const char *name)`\n\n   Sets the name of an encoder.  If the encoder is not private and the\n   name is not unique, it will automatically be given a unique name.\n\n`const char *obs_encoder_get_name(const obs_encoder_t *encoder)`\n\n   :return: The name of the encoder","chars":1944,"tokens_est":486,"sha256":"c1f4f1402d3324017af11a80aad9656a24e360f46a784925f5366c3e09753ee5"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-general-encoder-functions~3","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","General Encoder Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#general-encoder-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a General Encoder Functions]\n`const char *obs_encoder_get_codec(const obs_encoder_t *encoder)`\n              const char *obs_get_encoder_codec(const char *id)\n\n   :return: The codec identifier of the encoder\n\n`enum obs_encoder_type obs_encoder_get_type(const obs_encoder_t *encoder)`\n              enum obs_encoder_type obs_get_encoder_type(const char *id)\n\n   :return: The encoder type: OBS_ENCODER_VIDEO or OBS_ENCODER_AUDIO\n\n`void obs_encoder_set_scaled_size(obs_encoder_t *encoder, uint32_t width, uint32_t height)`\n\n   Sets the scaled resolution for a video encoder.  Set width and height to 0\n   to disable scaling.  If the encoder is active, this function will trigger\n   a warning, and do nothing.\n\n`bool obs_encoder_scaling_enabled(const obs_encoder_t *encoder)`\n\n   :return: *true* if pre-encode (CPU) scaling enabled, *false*\n            otherwise.\n\n`uint32_t obs_encoder_get_width(const obs_encoder_t *encoder)`\n              uint32_t obs_encoder_get_height(const obs_encoder_t *encoder)\n\n   :return: The width/height of a video encoder's encoded image\n\n`uint32_t obs_encoder_get_sample_rate(const obs_encoder_t *encoder)`\n\n   :return: The sample rate of an audio encoder's audio data\n\n`size_t obs_encoder_get_frame_size(const obs_encoder_t *encoder)`\n\n   :return: The frame size of the audio packet\n\n`size_t obs_encoder_get_mixer_index(const obs_encoder_t *encoder)`\n\n   :return: The mixer index for the audio track which is encoded by the encoder\n\n`void obs_encoder_set_preferred_video_format(obs_encoder_t *encoder, enum video_format format)`\n              enum video_format obs_encoder_get_preferred_video_format(const obs_encoder_t *encoder)\n\n   Sets the preferred video format for a video encoder.  If the encoder can use\n   the format specified, it will force a conversion to that format if the\n   obs output format does not match the preferred format.\n\n   If the format is set to VIDEO_FORMAT_NONE, will revert to the default\n   functionality of converting only when absolutely necessary.","chars":2047,"tokens_est":512,"sha256":"cff57501c84e6f044ffa07503c20c19c4da6352a5f0628f4b05180d5bae9341f"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-general-encoder-functions~4","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","General Encoder Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#general-encoder-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a General Encoder Functions]\n`obs_data_t *obs_encoder_defaults(const char *id)`\n              obs_data_t *obs_encoder_get_defaults(const obs_encoder_t *encoder)\n\n   :return: An incremented reference to the encoder's default settings.\n            Release with `obs_data_release()`.\n\n`obs_properties_t *obs_encoder_properties(const obs_encoder_t *encoder)`\n              obs_properties_t *obs_get_encoder_properties(const char *id)\n\n   Use these functions to get the properties of an encoder or encoder\n   type.  Properties are optionally used (if desired) to automatically\n   generate user interface widgets to allow users to update settings.\n\n   :return: The properties list for a specific existing encoder.  Free\n            with `obs_properties_destroy()`\n\n`void obs_encoder_update(obs_encoder_t *encoder, obs_data_t *settings)`\n\n   Updates the settings for this encoder context.\n\n`obs_data_t *obs_encoder_get_settings(const obs_encoder_t *encoder)`\n\n   :return: An incremented reference to the encoder's settings. Release with\n            `obs_data_release()`.\n\n`signal_handler_t *obs_encoder_get_signal_handler(const obs_encoder_t *encoder)`\n\n   :return: The signal handler of the encoder. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n`proc_handler_t *obs_encoder_get_proc_handler(const obs_encoder_t *encoder)`\n\n   :return: The procedure handler of the encoder. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n`bool obs_encoder_get_extra_data(const obs_encoder_t *encoder, uint8_t **extra_data, size_t *size)`\n\n   Gets extra data (headers) associated with this encoder.\n\n   :return: *true* if successful, *false* if no extra data associated\n            with this encoder\n\n`void obs_encoder_set_video(obs_encoder_t *encoder, video_t *video)`\n              void obs_encoder_set_audio(obs_encoder_t *encoder, audio_t *audio)\n\n   Sets the video/audio handler to use with this video/audio encoder.\n   This is used to capture the raw video/audio data.","chars":2060,"tokens_est":515,"sha256":"f63a75a5365681df908ed8d5cd89662b928a20364e51e4b832909e6effc6e4b3"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-general-encoder-functions~5","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","General Encoder Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#general-encoder-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a General Encoder Functions]\n`video_t *obs_encoder_video(const obs_encoder_t *encoder)`\n              video_t *obs_encoder_parent_video(const obs_encoder_t *encoder)\n              audio_t *obs_encoder_audio(const obs_encoder_t *encoder)\n\n   :return: The video/audio handler associated with this encoder, or\n            *NULL* if none or not a matching encoder type.\n            *parent_video* returns the \"original\" video handler\n            associated with this encoder, regardless of whether an FPS\n            divisor is set.\n\n`bool obs_encoder_active(const obs_encoder_t *encoder)`\n\n   :return: *true* if the encoder is active, *false* otherwise\n\n`bool obs_encoder_add_roi(obs_encoder_t *encoder, const struct obs_encoder_roi *roi)`\n\n    Adds a new region of interest to the encoder if ROI feature is supported.\n\n   :return: *true* if adding succeeded, *false* otherwise.\n\n   .. versionadded:: 30.1\n\n`bool obs_encoder_has_roi(obs_encoder_t *encoder)`\n\n   :return: *true* if encoder has ROI regions set, *false* otherwise.\n\n   .. versionadded:: 30.1\n\n`void obs_encoder_clear_roi(obs_encoder_t *encoder)`\n\n    Clear region of interest list, if any.\n\n   .. versionadded:: 30.1\n\n`void obs_encoder_enum_roi(obs_encoder_t *encoder, void (*enum_proc)(void *, struct obs_encoder_roi *), void *param)`\n\n    Enumerate currently configured ROIs by invoking callback for each entry, in reverse order of addition (i.e. most recent to oldest).\n\n    **Note:** If the encoder has scaling enabled the struct passed to the callback will be scaled accordingly.\n\n   .. versionadded:: 30.1\n\n`uint32_t obs_encoder_get_roi_increment(const obs_encoder_t *encoder)`\n\n   Encoders shall refresh their ROI configuration if the increment value changes.\n\n   :return: Increment/revision of ROI list\n\n   .. versionadded:: 30.1\n\n`uint32_t obs_encoder_get_priming_samples(const obs_encoder_t *encoder)`\n\n   Gets the number of samples that shall be skipped when playing back the encoded audio.\n   Commonly referred to as \"encoder delay\" or \"priming samples\" in AAC/Opus.\n\n   :return: Number of priming samples\n\n   .. versionadded:: 32.1","chars":2144,"tokens_est":536,"sha256":"398def5e95bf9974c11c145e8adf49f2457844d00f6567c76f7115f391cf7bb9"},{"id":"docs-sphinx-reference-encoders#encoder-api-reference-obs-encoder-t-functions-used-by-encoders","doc":"docs-sphinx-reference-encoders","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Encoder API Reference (obs_encoder_t)","Functions used by encoders"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst#functions-used-by-encoders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-encoders.rst","text":"[Encoder API Reference (obs_encoder_t) \u203a Functions used by encoders]\n`void obs_encoder_packet_ref(struct encoder_packet *dst, struct encoder_packet *src)`\n              void obs_encoder_packet_release(struct encoder_packet *packet)\n\n   Adds or releases a reference to an encoder packet.\n\n.. ---------------------------------------------------------------------------\n\n.. _libobs/obs-encoder.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-encoder.h","chars":467,"tokens_est":117,"sha256":"ad8a290bd82b1550e05b022710b090cac6e1891c712dc10b30dde21e47f76d67"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#obs-studio-frontend-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API]\nThe OBS Studio frontend API is the API specific to OBS Studio itself.\n\n.. code:: cpp\n\n   #include <obs-frontend-api.h>\n\n## Structures/Enumerations\n`obs_frontend_event`\n\n   Specifies a front-end event.  Can be one of the following values:\n\n   - **OBS_FRONTEND_EVENT_STREAMING_STARTING**\n\n     Triggered when streaming is starting.\n\n   - **OBS_FRONTEND_EVENT_STREAMING_STARTED**\n\n     Triggered when streaming has successfully started.\n\n   - **OBS_FRONTEND_EVENT_STREAMING_STOPPING**\n\n     Triggered when streaming is stopping.\n\n   - **OBS_FRONTEND_EVENT_STREAMING_STOPPED**\n\n     Triggered when streaming has fully stopped.\n\n   - **OBS_FRONTEND_EVENT_RECORDING_STARTING**\n\n     Triggered when recording is starting.\n\n   - **OBS_FRONTEND_EVENT_RECORDING_STARTED**\n\n     Triggered when recording has successfully started.\n\n   - **OBS_FRONTEND_EVENT_RECORDING_STOPPING**\n\n     Triggered when recording is stopping.\n\n   - **OBS_FRONTEND_EVENT_RECORDING_STOPPED**\n\n     Triggered when recording has fully stopped.\n\n   - **OBS_FRONTEND_EVENT_RECORDING_PAUSED**\n\n     Triggered when the recording has been paused.\n\n   - **OBS_FRONTEND_EVENT_RECORDING_UNPAUSED**\n\n     Triggered when the recording has been unpaused.\n\n   - **OBS_FRONTEND_EVENT_SCENE_CHANGED**\n\n     Triggered when the current scene has changed.\n\n   - **OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED**\n\n     Triggered when a scenes has been added/removed/reordered by the\n     user.\n\n   - **OBS_FRONTEND_EVENT_TRANSITION_CHANGED**\n\n     Triggered when the current transition has changed by the user.\n\n   - **OBS_FRONTEND_EVENT_TRANSITION_STOPPED**\n\n     Triggered when a transition has completed.\n\n   - **OBS_FRONTEND_EVENT_TRANSITION_LIST_CHANGED**\n\n     Triggered when the user adds/removes transitions.\n\n   - **OBS_FRONTEND_EVENT_TRANSITION_DURATION_CHANGED**\n\n     Triggered when the transition duration has been changed by the\n     user.\n\n   - **OBS_FRONTEND_EVENT_TBAR_VALUE_CHANGED**\n\n     Triggered when the transition bar is moved.","chars":2015,"tokens_est":504,"sha256":"0d321d99f3bba035230988d59d52d8ad9fa67f778efc5eba4374b04a8a6b0518"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api~2","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#obs-studio-frontend-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API]\n- **OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGING**\n\n     Triggered when the current scene collection is about to change.\n\n   - **OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGED**\n\n     Triggered when the current scene collection has changed.\n\n   - **OBS_FRONTEND_EVENT_SCENE_COLLECTION_LIST_CHANGED**\n\n     Triggered when a scene collection has been added or removed.\n\n   - **OBS_FRONTEND_EVENT_SCENE_COLLECTION_RENAMED**\n\n     Triggered when a scene collection has been renamed.\n\n   - **OBS_FRONTEND_EVENT_PROFILE_CHANGING**\n\n     Triggered when the current profile is about to change.\n\n   - **OBS_FRONTEND_EVENT_PROFILE_CHANGED**\n\n     Triggered when the current profile has changed.\n\n   - **OBS_FRONTEND_EVENT_PROFILE_LIST_CHANGED**\n\n     Triggered when a profile has been added or removed.\n\n   - **OBS_FRONTEND_EVENT_PROFILE_RENAMED**\n\n     Triggered when a profile has been renamed.\n\n   - **OBS_FRONTEND_EVENT_FINISHED_LOADING**\n\n     Triggered when the program has finished loading.\n\n   - **OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN**\n\n     Triggered when scripts need to know that OBS is exiting.  The\n     **OBS_FRONTEND_EVENT_EXIT** event is normally called after scripts\n     have been destroyed.\n\n   - **OBS_FRONTEND_EVENT_EXIT**\n\n     Triggered when the program is about to exit. This is the last chance\n     to call any frontend API functions for any saving / cleanup / etc.\n     After returning from this event callback, it is not permitted to make\n     any further frontend API calls.\n\n   - **OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTING**\n\n     Triggered when the replay buffer is starting.\n\n   - **OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTED**\n\n     Triggered when the replay buffer has successfully started.\n\n   - **OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPING**\n\n     Triggered when the replay buffer is stopping.\n\n   - **OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPED**\n\n     Triggered when the replay buffer has fully stopped.\n\n   - **OBS_FRONTEND_EVENT_REPLAY_BUFFER_SAVING**","chars":2000,"tokens_est":500,"sha256":"62936902385dc476f60b26fc05e0345f45d427eafc2686af845ee5b01e0f36b2"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api~3","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#obs-studio-frontend-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API]\nTriggered when the replay buffer is saving.\n\n   - **OBS_FRONTEND_EVENT_REPLAY_BUFFER_SAVED**\n\n     Triggered when the replay buffer has been saved.\n\n   - **OBS_FRONTEND_EVENT_STUDIO_MODE_ENABLED**\n\n     Triggered when the user has turned on studio mode.\n\n   - **OBS_FRONTEND_EVENT_STUDIO_MODE_DISABLED**\n\n     Triggered when the user has turned off studio mode.\n\n   - **OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED**\n\n     Triggered when the current preview scene has changed in studio\n     mode.\n\n   - **OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP**\n\n     Triggered when a scene collection has been completely unloaded, and\n     the program is either about to load a new scene collection, or the\n     program is about to exit.\n\n   - **OBS_FRONTEND_EVENT_VIRTUALCAM_STARTED**\n\n     Triggered when the virtual camera is started.\n\n   - **OBS_FRONTEND_EVENT_VIRTUALCAM_STOPPED**\n\n     Triggered when the virtual camera is stopped.\n\n   - **OBS_FRONTEND_EVENT_THEME_CHANGED**\n\n     Triggered when the theme is changed.\n\n     .. versionadded:: 29.0.0\n\n   - **OBS_FRONTEND_EVENT_SCREENSHOT_TAKEN**\n\n     Triggered when a screenshot is taken.\n\n     .. versionadded:: 29.0.0\n\n`obs_frontend_source_list`\n\n   - DARRAY(obs_source_t*) **sources**\n\n   Example usage:\n\n   .. code:: cpp\n\n      struct obs_frontend_source_list scenes = {0};\n\n      obs_frontend_get_scenes(&scenes);\n\n      for (size_t i = 0; i < scenes.sources.num; i++) {\n            /* Do NOT call `obs_source_release` or `obs_scene_release`\n             * on these sources\n             */\n            obs_source_t *source = scenes.sources.array[i];\n\n            /* Convert to obs_scene_t if needed */\n            obs_scene_t *scene = obs_scene_from_source(source);\n\n            [...]\n      }\n\n      obs_frontend_source_list_free(&scenes);\n\n`void (*obs_frontend_cb)(void *private_data)`\n\n   Frontend tool menu callback\n\n`void (*obs_frontend_event_cb)(enum obs_frontend_event event, void *private_data)`\n\n   Frontend event callback","chars":2003,"tokens_est":501,"sha256":"5f7e6f2e40e99356fe9708bcb119cc029a274d00691f75ce468df5f29c0a8520"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api~4","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#obs-studio-frontend-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API]\n`void (*obs_frontend_save_cb)(obs_data_t *save_data, bool saving, void *private_data)`\n\n   Frontend save/load callback\n\n`bool (*obs_frontend_translate_ui_cb)(const char *text, const char **out)`\n\n   Translation callback\n\n`void (*undo_redo_cb)(const char *data)`\n\n   Undo redo callback\n\n`void (*obs_frontend_fallback_cb)(void *param, bool accepted)`\n\n   Fallback warning callback: *accepted* is *true* when the caller continues\n   in the fallback mode. See `obs_frontend_warn_fallback()`.","chars":513,"tokens_est":128,"sha256":"f9d81839c843f40e80f5ad9f7ff3b455670fcb62e8a52947730069f9bf388f61"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\n`void obs_frontend_source_list_free(struct obs_frontend_source_list *source_list)`\n\n   Releases sources within a source list and frees the list.\n\n   :param source_list: Source list to free\n\n`void *obs_frontend_get_main_window(void)`\n\n   :return: The QMainWindow pointer to the OBS Studio window\n\n`void *obs_frontend_get_main_window_handle(void)`\n\n   :return: The native window handle of the OBS Studio window\n\n`char **obs_frontend_get_scene_names(void)`\n\n   :return: The scene name list, ending with NULL.  The list is stored\n            within one contiguous segment of memory, so freeing the\n            returned pointer with `bfree()` will free the entire\n            list. The order is same as the way the frontend displays it in\n            the Scenes dock.\n\n`void obs_frontend_get_scenes(struct obs_frontend_source_list *sources)`\n\n   Populates `sources` with reference-incremented scenes in the same order as\n   the frontend displays it in the Scenes dock. Release with\n   `obs_frontend_source_list_free`, which will automatically release all\n   scenes with `obs_source_release`. Do not release a scene manually to\n   prevent double releasing, which may cause scenes to be deleted.\n\n   Use `obs_scene_from_source` to access a source from the list as an\n   `obs_scene_t` object.\n\n   If you wish to keep a reference to a certain scene, use\n   `obs_source_get_ref` or `obs_scene_get_ref` on that scene and\n   release it with either `obs_source_release` or\n   `obs_scene_release`. Use only one release function, as both releases\n   the same object.\n\n   :param sources: Pointer to a `obs_frontend_source_list`\n                   structure to receive the list of reference-incremented\n                   scenes.\n\n`obs_source_t *obs_frontend_get_current_scene(void)`\n\n   :return: A new reference to the currently active scene. Release with\n            `obs_source_release()`.\n\n`void obs_frontend_set_current_scene(obs_source_t *scene)`\n\n   :param scene: The scene to set as the current scene","chars":2029,"tokens_est":507,"sha256":"7ada1706098f9365fbb26b7f34f066406341183e494a32d00c68ea87bfd34476"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~2","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\n`void obs_frontend_get_transitions(struct obs_frontend_source_list *sources)`\n\n   :param sources: Pointer to a `obs_frontend_source_list`\n                   structure to receive the list of\n                   reference-incremented transitions.  Release with\n                   `obs_frontend_source_list_free`\n\n`obs_source_t *obs_frontend_get_current_transition(void)`\n\n   :return: A new reference to the currently active transition.\n            Release with `obs_source_release()`.\n\n`void obs_frontend_set_current_transition(obs_source_t *transition)`\n\n   :param transition: The transition to set as the current transition\n\n`int obs_frontend_get_transition_duration(void)`\n\n   :return: The transition duration (in milliseconds) currently set in the UI\n\n`void obs_frontend_set_transition_duration(int duration)`\n\n   :param duration: Desired transition duration, in milliseconds\n\n`void obs_frontend_release_tbar(void)`\n\n   Emulate a mouse button release on the transition bar and determine transition status.\n\n`void obs_frontend_set_tbar_position(int position)`\n\n   Set the value of the transition bar.\n\n   :param position: The position to set the T-bar to, with a range of 0-1023\n\n`int obs_frontend_get_tbar_position(void)`\n\n   Get the value of the transition bar.\n\n   :return: The value of the position of the T-bar to, with a range of 0-1023\n\n`char **obs_frontend_get_scene_collections(void)`\n\n   :return: The list of scene collection names, ending with NULL.  The list is\n            stored within one contiguous segment of memory, so freeing\n            the returned pointer with `bfree()` will free the\n            entire list.\n\n`char *obs_frontend_get_current_scene_collection(void)`\n\n   :return: A new pointer to the current scene collection name.  Free\n            with `bfree()`\n\n`void obs_frontend_set_current_scene_collection(const char *collection)`\n\n   :param collection: Name of the scene collection to activate\n\n`bool obs_frontend_add_scene_collection(const char *name)`","chars":2022,"tokens_est":506,"sha256":"f8465628c2140cd3da659f550fe6dd57b358f3b9b63540bdc60b270d47a1a280"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~3","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\nAdd a new scene collection, then switch to it.\n\n   :param name: Name of the scene collection to add/create\n\n`char **obs_frontend_get_profiles(void)`\n\n   :return: The list of profile names, ending with NULL.  The list is\n            stored within one contiguous segment of memory, so freeing\n            the returned pointer with `bfree()` will free the\n            entire list.\n\n`char *obs_frontend_get_current_profile(void)`\n\n   :return: A new pointer to the current profile name.  Free with\n            `bfree()`\n\n`char *obs_frontend_get_current_profile_path(void)`\n\n   :return: A new pointer to the current profile's path on the\n            filesystem.  Free with `bfree()`\n\n`void obs_frontend_set_current_profile(const char *profile)`\n\n   :param profile: Name of the profile to activate\n\n`bool obs_frontend_create_profile(const char *name)`\n\n   :param name: Name of the new profile to create (must be unique)\n\n`bool obs_frontend_duplicate_profile(const char *name)`\n\n   :param name: Name of the duplicate profile to create (must be unique)\n\n`void obs_frontend_delete_profile(const char *profile)`\n\n   Deleting the current profile switches to another profile first, without\n   asking the user for confirmation.\n\n   :param profile: Name of the profile to delete\n\n`void *obs_frontend_add_tools_menu_qaction(const char *name)`\n\n   Adds a QAction to the tools menu then returns it.\n\n   :param name: Name for the new menu item\n   :return: A pointer to the added QAction\n\n`void obs_frontend_add_tools_menu_item(const char *name, obs_frontend_cb callback, void *private_data)`\n\n   Adds a tools menu item and links the ::clicked signal to the\n   callback.\n\n   :param name: The name for the new menu item\n   :param callback: Callback to use when the menu item is clicked\n   :param private_data: Private data associated with the callback\n\n`bool obs_frontend_add_dock_by_id(const char *id, const char *title, void *widget)`\n\n   Adds a dock with the widget to the UI with a toggle in the Docks\n   menu.","chars":2031,"tokens_est":508,"sha256":"2900507a1a38d459defa8fe846b87bc154b67290fee8b60888eeb4799491db3f"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~4","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\nWhen the dock is closed, a custom QEvent of type `QEvent::User + QEvent::Close`\n   is sent to the widget to enable it to react to the event (e.g., unload elements\n   to save resources).\n   A generic QShowEvent is already sent by default when the widget is being\n   shown (e.g., dock opened).\n\n   Note: Use `obs_frontend_remove_dock` to remove the dock\n         and the id from the UI.\n\n   :param id: Unique identifier of the dock\n   :param title: Window title of the dock\n   :param widget: QWidget to insert in the dock\n   :return: *true* if the dock was added, *false* if the id was already\n            used\n\n   .. versionadded:: 30.0\n\n`void obs_frontend_remove_dock(const char *id)`\n\n   Removes the dock with this id from the UI.\n\n   :param id: Unique identifier of the dock to remove.\n\n   .. versionadded:: 30.0\n\n`bool obs_frontend_add_custom_qdock(const char *id, void *dock)`\n\n   Adds a custom dock to the UI with no toggle.\n\n   Note: Use `obs_frontend_remove_dock` to remove the dock\n         reference and id from the UI.\n\n   :param id: Unique identifier of the dock\n   :param dock: QDockWidget to add\n   :return: *true* if the dock was added, *false* if the id was already\n            used\n\n   .. versionadded:: 30.0\n\n`void obs_frontend_add_event_callback(obs_frontend_event_cb callback, void *private_data)`\n\n   Adds a callback that will be called when a frontend event occurs.\n   See `obs_frontend_event` on what sort of events can be\n   triggered.\n\n   :param callback:     Callback to use when a frontend event occurs\n   :param private_data: Private data associated with the callback\n\n`void obs_frontend_remove_event_callback(obs_frontend_event_cb callback, void *private_data)`\n\n   Removes an event callback.\n\n   :param callback:     Callback to remove\n   :param private_data: Private data associated with the callback\n\n`void obs_frontend_add_save_callback(obs_frontend_save_cb callback, void *private_data)`","chars":1958,"tokens_est":490,"sha256":"5a933e5d7c9eeeaf4515d69bb5a04c58a15b118caa0efdc39ff97e7c23069edc"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~5","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\nAdds a callback that will be called when the current scene collection\n   is being saved/loaded.\n\n   :param callback:     Callback to use when saving/loading a scene\n                        collection\n   :param private_data: Private data associated with the callback\n\n`void obs_frontend_remove_save_callback(obs_frontend_save_cb callback, void *private_data)`\n\n   Removes a save/load callback.\n\n   :param callback:     Callback to remove\n   :param private_data: Private data associated with the callback\n\n`void obs_frontend_add_preload_callback(obs_frontend_save_cb callback, void *private_data)`\n\n   Adds a callback that will be called right before a scene collection\n   is loaded.\n\n   :param callback:     Callback to use when pre-loading\n   :param private_data: Private data associated with the callback\n\n`void obs_frontend_remove_preload_callback(obs_frontend_save_cb callback, void *private_data)`\n\n   Removes a pre-load callback.\n\n   :param callback:     Callback to remove\n   :param private_data: Private data associated with the callback\n\n`void obs_frontend_push_ui_translation(obs_frontend_translate_ui_cb translate)`\n\n   Pushes a UI translation callback.  This allows a front-end plugin to\n   intercept when Qt is automatically generating translating data.\n   Typically this is just called with obs_module_get_string.\n\n   :param translate: The translation callback to use\n\n`void obs_frontend_pop_ui_translation(void)`\n\n   Pops the current UI translation callback.\n\n`void obs_frontend_streaming_start(void)`\n\n   Starts streaming.\n\n`void obs_frontend_streaming_stop(void)`\n\n   Stops streaming.\n\n`bool obs_frontend_streaming_active(void)`\n\n   :return: *true* if streaming active, *false* otherwise\n\n`void obs_frontend_recording_start(void)`\n\n   Starts recording.\n\n`void obs_frontend_recording_stop(void)`\n\n   Stops recording.\n\n`bool obs_frontend_recording_active(void)`\n\n   :return: *true* if recording active, *false* otherwise\n\n`void obs_frontend_recording_pause(bool pause)`","chars":2021,"tokens_est":505,"sha256":"2143d2dd2cc919dfb639241586c4844938c1abadfcd8056d6073716a818fc5e2"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~6","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\n:pause: *true* to pause recording, *false* to unpause\n\n`bool obs_frontend_recording_paused(void)`\n\n   :return: *true* if recording paused, *false* otherwise\n\n`bool obs_frontend_recording_split_file(void)`\n\n   Asks OBS to split the current recording file.\n\n   :return: *true* if splitting was successfully requested (this\n            does not mean that splitting has finished or guarantee that it\n            split successfully), *false* if recording is inactive or paused\n            or if file splitting is disabled.\n\n`bool obs_frontend_recording_add_chapter(const char *name)`\n\n   Asks OBS to insert a chapter marker at the current output time into the recording.\n\n   :param name: The name for the chapter, may be *NULL* to use an automatically generated name (\"Unnamed <Chapter number>\" or localized equivalent).\n   :return: *true* if insertion was successful, *false* if recording is inactive, paused, or if chapter insertion is not supported by the current output.\n\n   .. versionadded:: 30.2\n\n`void obs_frontend_replay_buffer_start(void)`\n\n   Starts the replay buffer.\n\n`void obs_frontend_replay_buffer_stop(void)`\n\n   Stops the replay buffer.\n\n`void obs_frontend_replay_buffer_save(void)`\n\n   Saves a replay if the replay buffer is active.\n\n`bool obs_frontend_replay_buffer_active(void)`\n\n   :return: *true* if replay buffer active, *false* otherwise\n\n`void obs_frontend_open_projector(const char *type, int monitor, const char *geometry, const char *name)`\n\n   :param type:     \"Preview\", \"Source\", \"Scene\", \"StudioProgram\", or \"Multiview\" (case insensitive)\n   :param monitor:  Monitor to open the projector on.  If -1, this opens a window.\n   :param geometry: If *monitor* is -1, size and position of the projector window.  Encoded in Base64 using Qt's geometry encoding.\n   :param name:     If *type* is \"Source\" or \"Scene\", name of the source or scene to be displayed\n\n`void obs_frontend_save(void)`\n\n   Saves the current scene collection.","chars":1988,"tokens_est":497,"sha256":"baf09a3bba8f0ab1c920a5d08eebeef70c3636e82592ca8f5228fe38770f35c2"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~7","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\n`obs_output_t *obs_frontend_get_streaming_output(void)`\n\n   :return: A new reference to the current streaming output.\n            Release with `obs_output_release()`.\n\n`obs_output_t *obs_frontend_get_recording_output(void)`\n\n   :return: A new reference to the current recording output.\n            Release with `obs_output_release()`.\n\n`obs_output_t *obs_frontend_get_replay_buffer_output(void)`\n\n   :return: A new reference to the current replay buffer output.\n            Release with `obs_output_release()`.\n\n`config_t *obs_frontend_get_profile_config(void)`\n\n   :return: The config_t* associated with the current profile\n\n.. deprecated:: 31.0\n\n`config_t *obs_frontend_get_global_config(void)`\n\n   :return: The config_t* associated with the global config (global.ini)\n\n`config_t *obs_frontend_get_app_config(void)`\n\n   :return: The config_t* associated with system-wide settings (global.ini)\n\n   .. versionadded:: 31.0\n\n`config_t *obs_frontend_get_user_config(void)`\n\n   :return: The config_t* associated with user settings (user.ini)\n\n   .. versionadded:: 31.0\n\n`void obs_frontend_set_streaming_service(obs_service_t *service)`\n\n   Sets the current streaming service to stream with.\n\n   :param service: The streaming service to set\n\n`obs_service_t *obs_frontend_get_streaming_service(void)`\n\n   :return: The current streaming service object. Does not increment the\n            reference.\n\n`void obs_frontend_save_streaming_service(void)`\n\n   Saves the current streaming service data.\n\n`bool obs_frontend_preview_program_mode_active(void)`\n\n   :return: *true* if studio mode is active, *false* otherwise\n\n`void obs_frontend_set_preview_program_mode(bool enable)`\n\n   Activates/deactivates studio mode.\n\n   :param enable: *true* to activate studio mode, *false* to deactivate\n                  studio mode\n\n`void obs_frontend_preview_program_trigger_transition(void)`\n\n   Triggers a preview-to-program transition if studio mode is active.\n\n`obs_source_t *obs_frontend_get_current_preview_scene(void)`","chars":2040,"tokens_est":510,"sha256":"56d4a6e3d8015e57eaa10820c695a14ecaf5369358d85151c1f464caa9b0ddc9"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~8","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\n:return: A new reference to the current preview scene if studio mode\n            is active, or *NULL* if studio mode is not active. Release\n            with `obs_source_release()`.\n\n`void obs_frontend_set_current_preview_scene(obs_source_t *scene)`\n\n   Sets the current preview scene in studio mode. Does nothing if studio\n   mode is disabled.\n\n   :param scene: The scene to set as the current preview\n\n`void obs_frontend_set_preview_enabled(bool enable)`\n\n   Sets the enable state of the preview display.  Only relevant with\n   studio mode disabled.\n\n   :param enable: *true* to enable preview, *false* to disable preview\n\n`bool obs_frontend_preview_enabled(void)`\n\n   :return: *true* if the preview display is enabled, *false* otherwise\n\n`void *obs_frontend_take_screenshot(void)`\n\n   Takes a screenshot of the main OBS output.\n\n`void *obs_frontend_take_source_screenshot(obs_source_t *source)`\n\n   Takes a screenshot of the specified source.\n\n   :param source: The source to take screenshot of\n\n`obs_output_t *obs_frontend_get_virtualcam_output(void)`\n\n   :return: A new reference to the current virtual camera output.\n            Release with `obs_output_release()`.\n\n`void obs_frontend_start_virtualcam(void)`\n\n   Starts the virtual camera.\n\n`void obs_frontend_stop_virtualcam(void)`\n\n   Stops the virtual camera.\n\n`bool obs_frontend_virtualcam_active(void)`\n\n   :return: *true* if virtual camera is active, *false* otherwise\n\n`void obs_frontend_reset_video(void)`\n\n   Reloads the UI canvas and resets libobs video with latest data from\n   the current profile.\n\n`void *obs_frontend_open_source_properties(obs_source_t *source)`\n\n   Opens the properties window of the specified source.\n\n   :param source: The source to open the properties window of\n\n`void *obs_frontend_open_source_filters(obs_source_t *source)`\n\n   Opens the filters window of the specified source.\n\n   :param source: The source to open the filters window of\n\n`void *obs_frontend_open_source_interaction(obs_source_t *source)`","chars":2036,"tokens_est":509,"sha256":"6ef7cbd94a0ad3fb757f5b216700dc6e5470a552ddfc318c86d2f9e88768e01f"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~9","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\nOpens the interact window of the specified source. Only call if\n   source has the *OBS_SOURCE_INTERACTION* output flag.\n\n   :param source: The source to open the interact window of\n\n`void *obs_frontend_open_sceneitem_edit_transform(obs_sceneitem_t *item)`\n\n   Opens the edit transform window of the specified sceneitem.\n\n   :param item: The sceneitem to open the edit transform window of\n\n   .. versionadded:: 29.1\n\n`char *obs_frontend_get_current_record_output_path(void)`\n\n   :return: A new pointer to the current record output path.  Free\n            with `bfree()`\n\n`const char *obs_frontend_get_locale_string(const char *string)`\n\n   :return: Gets the frontend translation of a given string.\n\n`bool obs_frontend_is_theme_dark(void)`\n\n   :return: Checks if the current theme is dark or light.\n\n   .. versionadded:: 29.0.0\n\n`char *obs_frontend_get_last_recording(void)`\n\n   :return: The file path of the last recording. Free with `bfree()`\n\n   .. versionadded:: 29.0.0\n\n`char *obs_frontend_get_last_screenshot(void)`\n\n   :return: The file path of the last screenshot taken. Free with\n            `bfree()`\n\n   .. versionadded:: 29.0.0\n\n`char *obs_frontend_get_last_replay(void)`\n\n   :return: The file path of the last replay buffer saved. Free with\n            `bfree()`\n\n   .. versionadded:: 29.0.0\n\n`void obs_frontend_add_undo_redo_action(const char *name, const undo_redo_cb undo, const undo_redo_cb redo, const char *undo_data, const char *redo_data, bool repeatable)`\n\n   :param name: The name of the undo redo action\n   :param undo: Callback to use for undo\n   :param redo: Callback to use for redo\n   :param undo_data: String with data for the undo callback\n   :param redo_data: String with data for the redo callback\n   :param repeatable: Allow multiple actions with the same name to be merged to 1 undo redo action.\n                      This uses the undo action from the first and the redo action from the last action.\n\n   .. versionadded:: 29.1","chars":1997,"tokens_est":499,"sha256":"1bab5310e526933c33a30ef1636101d3463b09c11a7e3309d9a022a4744ff934"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~10","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\n`void obs_frontend_copy_sceneitem(obs_sceneitem_t *item)`\n\n   :param item: The scene item to copy\n\n   .. versionadded:: 32.2\n\n`bool obs_frontend_can_paste_sceneitem(bool duplicate)`\n\n   :param duplicate: Check if the copied source allows duplication.\n   :return: Whether there is a scene item copied and can be pasted\n\n   .. versionadded:: 32.2\n\n`void obs_frontend_paste_sceneitem(obs_scene_t *scene, bool duplicate)`\n\n   :param scene: The scene to paste on\n   :param duplicate: *true* for paste duplicate, *false* for paste reference\n\n   .. versionadded:: 32.2\n\n`bool obs_frontend_is_safe_mode_enabled(void)`\n\n   :return: *true* if OBS was launched in Safe Mode, *false* otherwise\n\n   .. versionadded:: 33.0\n\n`void obs_frontend_warn_fallback(const char *id, const char *title, const char *message, bool can_cancel, obs_frontend_fallback_cb cb, void *param)`\n\n   Tells the user that a feature fell back to a less safe mode, so that it\n   keeps working (for example a browser source without the Chromium sandbox).\n   OBS logs *message* at error level at once, from any thread. Then, on the\n   UI thread, it shows a warning with a countdown that accepts the fallback\n   after 3 seconds, and calls *cb* once with the result.\n\n   A warning shows once per *id* in each OBS session, and only one shows at\n   a time. Warnings wait until the main window has loaded, and while another\n   modal dialog is open. With a hidden\n   main window, or when the same *id* already showed, the warning accepts at\n   once (after the log line). At exit, an open warning closes and queued\n   warnings accept.\n\n   *cb* is never called inside this call while OBS runs. In a host without\n   the OBS frontend, and after OBS has begun to shut down, this call logs,\n   then calls *cb* with *true* inside the call.\n\n   See `docs/fallback-warning.md` in OBS-Studio-Rust\n   (obs-rust/obs-studio#2218).","chars":1906,"tokens_est":476,"sha256":"ec889cdc1452fdcd026fbd5044d3fa049cc9e1c4af816bc2e5940d67d7eb887c"},{"id":"docs-sphinx-reference-frontend-api#obs-studio-frontend-api-functions~11","doc":"docs-sphinx-reference-frontend-api","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["OBS Studio Frontend API","Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst#functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-frontend-api.rst","text":"[OBS Studio Frontend API \u203a Functions]\n:param id:         A stable name for the fallback, for example\n                      `\"browser.sandbox\"`. It is in the log line.\n   :param title:      The window title, translated by the caller\n   :param message:    What fell back and why, translated by the caller\n   :param can_cancel: *true* if the caller can stop instead. The warning\n                      then has a Cancel button.\n   :param cb:         Called once with *accepted*: *true* for the countdown\n                      and \"Accept anyway\"; *false* for Cancel or a closed\n                      warning if *can_cancel*, else *true*. Can be NULL.\n   :param param:      Passed to *cb*. Keep it valid until *cb* is called.","chars":720,"tokens_est":180,"sha256":"076dcb85987a0966364a78d40dcefa5388ff2d12d0a73a98c6650187eea387d0"},{"id":"docs-sphinx-reference-libobs-callback#callback-api-reference-libobs-callback-calldata","doc":"docs-sphinx-reference-libobs-callback","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Callback API Reference (libobs/callback)","Calldata"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst#calldata","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst","text":"[Callback API Reference (libobs/callback) \u203a Calldata]\nThe `calldata_t` object is used to pass parameters from signal\nhandlers or to procedure handlers.\n\n`calldata_t`\n\n`void calldata_init(calldata_t *data)`\n\n   Initializes a calldata structure (zeroes it).\n\n   :param data: Calldata structure\n\n`void calldata_free(calldata_t *data)`\n\n   Frees a calldata structure. Should only be used if `calldata_init()`\n   was used. If the object is received as a callback parameter, this function\n   should not be used.\n\n   :param data: Calldata structure\n\n`void calldata_set_int(calldata_t *data, const char *name, long long val)`\n\n   Sets an integer parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :param val:  Integer value\n\n`void calldata_set_float(calldata_t *data, const char *name, double val)`\n\n   Sets a floating point parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :param val:  Floating point value\n\n`void calldata_set_bool(calldata_t *data, const char *name, bool val)`\n\n   Sets a boolean parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :param val:  Boolean value\n\n`void calldata_set_ptr(calldata_t *data, const char *name, void *ptr)`\n\n   Sets a pointer parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :param val:  Pointer value\n\n`void calldata_set_string(calldata_t *data, const char *name, const char *str)`\n\n   Sets a string parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :param val:  String\n\n`long long calldata_int(const calldata_t *data, const char *name)`\n\n   Gets an integer parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :return:     Integer value\n\n`double calldata_float(const calldata_t *data, const char *name)`\n\n   Gets a floating point parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :return:     Floating point value\n\n`bool calldata_bool(const calldata_t *data, const char *name)`","chars":2027,"tokens_est":507,"sha256":"79d13bbdb10d782c60a6fef06342beb5286c2072a0e5346e63c5eef660905e29"},{"id":"docs-sphinx-reference-libobs-callback#callback-api-reference-libobs-callback-calldata~2","doc":"docs-sphinx-reference-libobs-callback","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Callback API Reference (libobs/callback)","Calldata"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst#calldata","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst","text":"[Callback API Reference (libobs/callback) \u203a Calldata]\nGets a boolean parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :return:     Boolean value\n\n`void *calldata_ptr(const calldata_t *data, const char *name)`\n\n   Gets a pointer parameter. For example, `core_signal_handler_reference`\n   that have `ptr source` as a parameter requires this function to get the\n   pointer, which can be casted to `obs_source_t`. Does not have to be freed.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :return:     Pointer value\n\n`const char *calldata_string(const calldata_t *data, const char *name)`\n\n   Gets a string parameter.\n\n   :param data: Calldata structure\n   :param name: Parameter name\n   :return:     String value","chars":763,"tokens_est":191,"sha256":"252b5c3619b9bdf2114beb860f2c89666ccbc3dc3139664064c25ac2606de71c"},{"id":"docs-sphinx-reference-libobs-callback#callback-api-reference-libobs-callback-signals","doc":"docs-sphinx-reference-libobs-callback","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Callback API Reference (libobs/callback)","Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst#signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst","text":"[Callback API Reference (libobs/callback) \u203a Signals]\nSignals are used for all event-based callbacks.\n\n.. code:: cpp\n\n   #include <callback/signal.h>\n\n`signal_handler_t`\n\n`void (*signal_callback_t)(void *data, calldata_t *cd)`\n\n   Signal callback.\n\n   :param data: Private data passed to this callback\n   :param cd:   Calldata object\n\n`signal_handler_t *signal_handler_create(void)`\n\n   Creates a new signal handler object.\n\n   :return: A new signal handler object\n\n`void signal_handler_destroy(signal_handler_t *handler)`\n\n   Destroys a signal handler.\n\n   :param handler: Signal handler object\n\n`bool signal_handler_add(signal_handler_t *handler, const char *signal_decl)`\n\n   Adds a signal to a signal handler.\n\n   :param handler:     Signal handler object\n   :param signal_decl: Signal declaration string\n\n`bool signal_handler_add_array(signal_handler_t *handler, const char **signal_decls)`\n\n   Adds multiple signals to a signal handler.\n\n   :param handler:      Signal handler object\n   :param signal_decls: An array of signal declaration strings,\n                        terminated by *NULL*\n\n`void signal_handler_connect(signal_handler_t *handler, const char *signal, signal_callback_t callback, void *data)`\n\n   Connects a callback to a signal on a signal handler. Does nothing\n   if the combination of `signal`, `callback`, and `data`\n   is already connected to the handler.\n\n   :param handler:  Signal handler object\n   :param signal:   Name of signal to handle\n   :param callback: Signal callback\n   :param data:     Private data passed to the callback\n\n   For scripting, use :py`signal_handler_connect`.\n\n`void signal_handler_connect_ref(signal_handler_t *handler, const char *signal, signal_callback_t callback, void *data)`","chars":1737,"tokens_est":434,"sha256":"d4669fdd8c8d8f55b1e3170d77f6324bdbc81cb52c68957f95094753c87ee28c"},{"id":"docs-sphinx-reference-libobs-callback#callback-api-reference-libobs-callback-signals~2","doc":"docs-sphinx-reference-libobs-callback","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Callback API Reference (libobs/callback)","Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst#signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst","text":"[Callback API Reference (libobs/callback) \u203a Signals]\nConnects a callback to a signal on a signal handler, and increments\n   the handler's internal reference counter, preventing it from being\n   destroyed until the signal has been disconnected. Even if the combination of\n   `signal`, `callback`, and `data` is already connected to the handler,\n   the reference counter is still incremented.\n\n   :param handler:  Signal handler object\n   :param signal:   Name of signal to handle\n   :param callback: Signal callback\n   :param data:     Private data passed to the callback\n\n`void signal_handler_disconnect(signal_handler_t *handler, const char *signal, signal_callback_t callback, void *data)`\n\n   Disconnects a callback from a signal on a signal handler. Does nothing\n   if the combination of `signal`, `callback`, and `data`\n   is not yet connected to the handler.\n\n   :param handler:  Signal handler object\n   :param signal:   Name of signal that was handled\n   :param callback: Signal callback\n   :param data:     Private data passed to the callback\n\n   For scripting, use :py`signal_handler_disconnect`.\n\n`void signal_handler_signal(signal_handler_t *handler, const char *signal, calldata_t *params)`\n\n   Triggers a signal, calling all connected callbacks.\n\n   :param handler: Signal handler object\n   :param signal:  Name of signal to trigger\n   :param params:  Parameters to pass to the signal","chars":1398,"tokens_est":350,"sha256":"d0d92811a2ab254aa7233033722c0c19d46bf191034ce65a1e6f4c2130f41142"},{"id":"docs-sphinx-reference-libobs-callback#callback-api-reference-libobs-callback-procedure-handlers","doc":"docs-sphinx-reference-libobs-callback","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Callback API Reference (libobs/callback)","Procedure Handlers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst#procedure-handlers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-callback.rst","text":"[Callback API Reference (libobs/callback) \u203a Procedure Handlers]\nProcedure handlers are used to call functions without having to have\ndirect access to declarations or callback pointers.\n\n.. code:: cpp\n\n   #include <callback/proc.h>\n\n`proc_handler_t`\n\n`void (*proc_handler_proc_t)(void *data, calldata_t *cd)`\n\n   Procedure handler callback.\n\n   :param data: Private data passed to this callback\n   :param cd:   Calldata object\n\n`proc_handler_t *proc_handler_create(void)`\n\n   Creates a new procedure handler.\n\n   :return: A new procedure handler object\n\n`void proc_handler_destroy(proc_handler_t *handler)`\n\n   Destroys a procedure handler object.\n\n   :param handler: Procedure handler object\n\n`void proc_handler_add(proc_handler_t *handler, const char *decl_string, proc_handler_proc_t proc, void *data)`\n\n   Adds a procedure to a procedure handler.\n\n   :param handler:     Procedure handler object\n   :param decl_string: Procedure declaration string\n   :param proc:        Procedure callback\n   :param data:        Private data to pass to the callback\n\n`bool proc_handler_call(proc_handler_t *handler, const char *name, calldata_t *params)`\n\n   Calls a procedure within the procedure handler.\n\n   :param handler: Procedure handler object\n   :param name:    Name of procedure to call\n   :param params:  Calldata structure to pass to the procedure","chars":1346,"tokens_est":336,"sha256":"45c05617f6cfe66365d1e54fd8440367ac9ac9c453f09ed79c7d485af2ff71e3"},{"id":"docs-sphinx-reference-libobs-graphics-axisang#axis-angle","doc":"docs-sphinx-reference-libobs-graphics-axisang","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Axis Angle"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-axisang.rst#axis-angle","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-axisang.rst","text":"[Axis Angle]\nProvides a helper structure for conversion to quaternions.\n\n.. code:: cpp\n\n   #include <graphics/axisang.h>\n\n`axisang`\n\n`float axisang.x`\n\n   X axis\n\n`float axisang.y`\n\n   Y axis\n\n`float axisang.z`\n\n   Z axis\n\n`float axisang.w`\n\n   Angle\n\n`float axisang.ptr[4]`\n\n`void axisang_zero(struct axisang *dst)`\n\n   Zeroes the axis angle.\n\n   :param dst: Axis angle\n\n`void axisang_copy(struct axisang *dst, struct axisang *aa)`\n\n   Copies an axis angle.\n\n   :param dst: Axis angle to copy to\n   :param aa:  Axis angle to copy from\n\n`void axisang_set(struct axisang *dst, float x, float y, float z, float w)`\n\n   Sets an axis angle.\n\n   :param dst: Axis angle to set\n   :param x:   X axis\n   :param y:   Y axis\n   :param z:   Z axis\n   :param w:   Angle\n\n`void axisang_from_quat(struct axisang *dst, const struct quat *q)`\n\n   Creates an axis angle from a quaternion.\n\n   :param dst: Axis angle destination\n   :param q:   Quaternion to convert","chars":947,"tokens_est":237,"sha256":"c3a1bb38804a6af53411604eec10b7b80b37f4d3644a3500cc91497b2baf521a"},{"id":"docs-sphinx-reference-libobs-graphics-effects#effects-shaders","doc":"docs-sphinx-reference-libobs-graphics-effects","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Effects (Shaders)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst#effects-shaders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst","text":"[Effects (Shaders)]\nEffects are a single collection of related shaders.  They're used for\neasily writing vertex and pixel shaders together all in the same file in\nHLSL format.\n\n.. code:: cpp\n\n   #include <graphics/graphics.h>\n\n`struct gs_effect           gs_effect_t`\n\n   Effect object.\n\n`struct gs_effect_technique gs_technique_t`\n\n   Technique object.\n\n`struct gs_effect_param     gs_eparam_t`\n\n   Effect parameter object.\n\n`gs_effect_t *gs_effect_create_from_file(const char *file, char **error_string)`\n\n   Creates an effect from file.\n\n   :param file:         Path to the effect file\n   :param error_string: Receives a pointer to the error string, which\n                        must be freed with `bfree()`.  If\n                        *NULL*, this parameter is ignored.\n   :return:             The effect object, or *NULL* on error\n\n`gs_effect_t *gs_effect_create(const char *effect_string, const char *filename, char **error_string)`\n\n   Creates an effect from a string.\n\n   :param effect_String: Effect string\n   :param error_string:  Receives a pointer to the error string, which\n                         must be freed with `bfree()`.  If\n                         *NULL*, this parameter is ignored.\n   :return:              The effect object, or *NULL* on error\n\n`void gs_effect_destroy(gs_effect_t *effect)`\n\n   Destroys the effect\n\n   :param effect: Effect object\n\n`gs_technique_t *gs_effect_get_technique(const gs_effect_t *effect, const char *name)`\n\n   Gets a technique of the effect.\n\n   :param effect: Effect object\n   :param name:   Name of the technique\n   :return:       Technique object, or *NULL* if not found\n\n`gs_technique_t *gs_effect_get_current_technique(const gs_effect_t *effect)`\n\n   Gets the current active technique of the effect.\n\n   :param effect: Effect object\n   :return:       Technique object, or *NULL* if none currently active\n\n`size_t gs_technique_begin(gs_technique_t *technique)`\n\n   Begins a technique.","chars":1945,"tokens_est":486,"sha256":"967c3650c51aec2231e1129af5f4f41ad211818beace6b25932c00c9c3858f25"},{"id":"docs-sphinx-reference-libobs-graphics-effects#effects-shaders~2","doc":"docs-sphinx-reference-libobs-graphics-effects","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Effects (Shaders)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst#effects-shaders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst","text":"[Effects (Shaders)]\n:param technique: Technique object\n   :return:          Number of passes this technique uses\n\n`void gs_technique_end(gs_technique_t *technique)`\n\n   Ends a technique.  Make sure all active passes have been ended before\n   calling.\n\n   :param technique: Technique object\n\n`bool gs_technique_begin_pass(gs_technique_t *technique, size_t pass)`\n\n   Begins a pass.  Automatically loads the vertex/pixel shaders\n   associated with this pass.  Draw after calling this function.\n\n   :param technique: Technique object\n   :param pass:      Pass index\n   :return:          *true* if the pass is valid, *false* otherwise\n\n`bool gs_technique_begin_pass_by_name(gs_technique_t *technique, const char *name)`\n\n   Begins a pass by its name if the pass has a name.  Automatically\n   loads the vertex/pixel shaders associated with this pass.  Draw after\n   calling this function.\n\n   :param technique: Technique object\n   :param name:      Name of the pass\n   :return:          *true* if the pass is valid, *false* otherwise\n\n`void gs_technique_end_pass(gs_technique_t *technique)`\n\n   Ends a pass.\n\n   :param technique: Technique object\n\n`size_t gs_effect_get_num_params(const gs_effect_t *effect)`\n\n   Gets the number of parameters associated with the effect.\n\n   :param effect: Effect object\n   :return:       Number of parameters the effect has\n\n`gs_eparam_t *gs_effect_get_param_by_idx(const gs_effect_t *effect, size_t param)`\n\n   Gets a parameter of an effect by its index.\n\n   :param effect: Effect object\n   :param param:  Parameter index\n   :return:       The effect parameter object, or *NULL* if index\n                  invalid\n\n`gs_eparam_t *gs_effect_get_param_by_name(const gs_effect_t *effect, const char *name)`\n\n   Gets parameter of an effect by its name.\n\n   :param effect: Effect object\n   :param name:   Name of the parameter\n   :return:       The effect parameter object, or *NULL* if not found\n\n`size_t gs_param_get_num_annotations(const gs_eparam_t *param)`","chars":1985,"tokens_est":496,"sha256":"fa596bc494169c164cd5c2f9cd0d9e4098b47f503610cc99ba5b3206b1ed0656"},{"id":"docs-sphinx-reference-libobs-graphics-effects#effects-shaders~3","doc":"docs-sphinx-reference-libobs-graphics-effects","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Effects (Shaders)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst#effects-shaders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst","text":"[Effects (Shaders)]\nGets the number of annotations associated with the parameter.\n\n   :param param:  Param object\n   :return:       Number of annotations the param has\n\n`gs_eparam_t *gs_param_get_annotation_by_idx(const gs_eparam_t *param, size_t annotation)`\n\n   Gets an annotation of a param by its index.\n\n   :param param:  Param object\n   :param param:  Annotation index\n   :return:       The effect parameter object (annotation), or *NULL* if index\n                  invalid\n\n`gs_eparam_t *gs_param_get_annotation_by_name(const gs_eparam_t *param, const char *annotation)`\n\n   Gets parameter of an effect by its name.\n\n   :param param:  Param object\n   :param name:   Name of the annotation\n   :return:       The effect parameter object (annotation), or *NULL* if not found\n\n`bool gs_effect_loop(gs_effect_t *effect, const char *name)`\n\n   Helper function that automatically begins techniques/passes.\n\n   :param effect: Effect object\n   :param name:   Name of the technique to execute\n   :return:       *true* to draw, *false* when complete\n\n   Here is an example of how this function is typically used:\n\n.. code:: cpp\n\n   for (gs_effect_loop(effect, \"my_technique\")) {\n           /* perform drawing here */\n           [...]\n   }\n\n`gs_eparam_t *gs_effect_get_viewproj_matrix(const gs_effect_t *effect)`\n\n   Gets the view/projection matrix parameter (\"viewproj\") of the effect.\n\n   :param effect: Effect object\n   :return:       The view/projection matrix parameter of the effect\n\n`gs_eparam_t *gs_effect_get_world_matrix(const gs_effect_t *effect)`\n\n   Gets the world matrix parameter (\"world\") of the effect.\n\n   :param effect: Effect object\n   :return:       The world matrix parameter of the effect\n\n`void gs_effect_get_param_info(const gs_eparam_t *param, struct gs_effect_param_info *info)`\n\n   Gets information about an effect parameter.\n\n   :param param: Effect parameter\n   :param info:  Pointer to receive the data\n\n   Relevant data types used with this function:\n\n.. code:: cpp","chars":1992,"tokens_est":498,"sha256":"9c477e196068b43a016865adab8f143fe72ab43a7ed20e82753f37b1da3d2e3e"},{"id":"docs-sphinx-reference-libobs-graphics-effects#effects-shaders~4","doc":"docs-sphinx-reference-libobs-graphics-effects","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Effects (Shaders)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst#effects-shaders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst","text":"[Effects (Shaders)]\nenum gs_shader_param_type {\n           GS_SHADER_PARAM_UNKNOWN,\n           GS_SHADER_PARAM_BOOL,\n           GS_SHADER_PARAM_FLOAT,\n           GS_SHADER_PARAM_INT,\n           GS_SHADER_PARAM_STRING,\n           GS_SHADER_PARAM_VEC2,\n           GS_SHADER_PARAM_VEC3,\n           GS_SHADER_PARAM_VEC4,\n           GS_SHADER_PARAM_INT2,\n           GS_SHADER_PARAM_INT3,\n           GS_SHADER_PARAM_INT4,\n           GS_SHADER_PARAM_MATRIX4X4,\n           GS_SHADER_PARAM_TEXTURE,\n   };\n\n   struct gs_effect_param_info {\n           const char *name;\n           enum gs_shader_param_type type;\n   }\n\n`void gs_effect_set_bool(gs_eparam_t *param, bool val)`\n\n   Sets a boolean parameter.\n\n   :param param: Effect parameter\n   :param val:   Boolean value\n\n`void gs_effect_set_float(gs_eparam_t *param, float val)`\n\n   Sets a floating point parameter.\n\n   :param param: Effect parameter\n   :param val:   Floating point value\n\n`void gs_effect_set_int(gs_eparam_t *param, int val)`\n\n   Sets a integer parameter.\n\n   :param param: Effect parameter\n   :param val:   Integer value\n\n`void gs_effect_set_matrix4(gs_eparam_t *param, const struct matrix4 *val)`\n\n   Sets a matrix parameter.\n\n   :param param: Effect parameter\n   :param val:   Matrix\n\n`void gs_effect_set_vec2(gs_eparam_t *param, const struct vec2 *val)`\n\n   Sets a 2-component vector parameter.\n\n   :param param: Effect parameter\n   :param val:   Vector\n\n`void gs_effect_set_vec3(gs_eparam_t *param, const struct vec3 *val)`\n\n   Sets a 3-component vector parameter.\n\n   :param param: Effect parameter\n   :param val:   Vector\n\n`void gs_effect_set_vec4(gs_eparam_t *param, const struct vec4 *val)`\n\n   Sets a 4-component vector parameter.\n\n   :param param: Effect parameter\n   :param val:   Vector\n\n`void gs_effect_set_color(gs_eparam_t *param, uint32_t argb)`\n\n   Convenience function for setting a color value via an integer value.\n\n   :param param: Effect parameter\n   :param argb:  Integer color value (i.e. hex value would be\n                 0xAARRGGBB)","chars":2019,"tokens_est":505,"sha256":"aaac59c59ab78221f10486f8172fcf6196a9f2dd0eb88b1eed808fb3711671fb"},{"id":"docs-sphinx-reference-libobs-graphics-effects#effects-shaders~5","doc":"docs-sphinx-reference-libobs-graphics-effects","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Effects (Shaders)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst#effects-shaders","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-effects.rst","text":"[Effects (Shaders)]\n`void gs_effect_set_texture(gs_eparam_t *param, gs_texture_t *val)`\n\n   Sets a texture parameter.\n\n   :param param: Effect parameter\n   :param val:   Texture\n\n`void gs_effect_set_texture_srgb(gs_eparam_t *param, gs_texture_t *val)`\n\n   Sets a texture parameter using SRGB view if available.\n\n   :param param: Effect parameter\n   :param val:   Texture\n\n`void gs_effect_set_val(gs_eparam_t *param, const void *val, size_t size)`\n\n   Sets a parameter with data manually.\n\n   :param param: Effect parameter\n   :param val:   Pointer to data\n   :param size:  Size of data\n\n`void gs_effect_set_default(gs_eparam_t *param)`\n\n   Sets the parameter to its default value\n\n   :param: Effect parameter\n\n`void gs_effect_set_next_sampler(gs_eparam_t *param, gs_samplerstate_t *sampler)`\n\n   Manually changes the sampler for an effect parameter the next time\n   it's used.\n\n   :param param:   Effect parameter\n   :param sampler: Sampler state object\n\n`void *gs_effect_get_val(gs_eparam_t *param)`\n\n   Returns a copy of the param's current value.\n\n   :param param:   Effect parameter\n   :return:        A pointer to the copied byte value of the param's current value. Freed with `bfree()`.\n\n`void gs_effect_get_default_val(gs_eparam_t *param)`\n\n   Returns a copy of the param's default value.\n\n   :param param:   Effect parameter\n   :return:        A pointer to the copied byte value of the param's default value. Freed with `bfree()`.\n\n`size_t gs_effect_get_val_size(gs_eparam_t *param)`\n\n   Returns the size in bytes of the param's current value.\n\n   :param param:   Effect parameter\n   :return:        The size in bytes of the param's current value.\n\n`size_t gs_effect_get_default_val_size(gs_eparam_t *param)`\n\n   Returns the size in bytes of the param's default value.\n\n   :param param:   Effect parameter\n   :return:        The size in bytes of the param's default value.","chars":1880,"tokens_est":470,"sha256":"0fe98877e88b0b7d820224659363161d9c044978c9e35f12e9c746f8c5081582"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#core-graphics-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API]\n.. code:: cpp\n\n   #include <graphics/graphics.h>\n\n## Graphics Enumerations\n`gs_draw_mode`\n\n   Draw mode.  Can be one of the following values:\n\n   - GS_POINTS    - Draws points\n   - GS_LINES     - Draws individual lines\n   - GS_LINESTRIP - Draws a line strip\n   - GS_TRIS      - Draws individual triangles\n   - GS_TRISTRIP  - Draws a triangle strip\n\n`gs_color_format`\n\n   Color format.  Can be one of the following values:\n\n   - GS_UNKNOWN     - Unknown format\n   - GS_A8          - 8 bit alpha channel only\n   - GS_R8          - 8 bit red channel only\n   - GS_RGBA        - RGBA, 8 bits per channel\n   - GS_BGRX        - BGRX, 8 bits per channel\n   - GS_BGRA        - BGRA, 8 bits per channel\n   - GS_R10G10B10A2 - RGBA, 10 bits per channel except alpha, which is 2\n     bits\n   - GS_RGBA16      - RGBA, 16 bits per channel\n   - GS_R16         - 16 bit red channel only\n   - GS_RGBA16F     - RGBA, 16 bit floating point per channel\n   - GS_RGBA32F     - RGBA, 32 bit floating point per channel\n   - GS_RG16F       - 16 bit floating point red and green channels only\n   - GS_RG32F       - 32 bit floating point red and green channels only\n   - GS_R16F        - 16 bit floating point red channel only\n   - GS_R32F        - 32 bit floating point red channel only\n   - GS_DXT1        - Compressed DXT1\n   - GS_DXT3        - Compressed DXT3\n   - GS_DXT5        - Compressed DXT5\n   - GS_RGBA_UNORM  - RGBA, 8 bits per channel, no SRGB aliasing\n   - GS_BGRX_UNORM  - BGRX, 8 bits per channel, no SRGB aliasing\n   - GS_BGRA_UNORM  - BGRA, 8 bits per channel, no SRGB aliasing\n   - GS_RG16        - RG, 16 bits per channel\n\n`gs_color_space`\n\n   Color space.  Can be one of the following values:\n\n   - GS_CS_SRGB         - sRGB\n   - GS_CS_SRGB_16F     - High-precision SDR\n   - GS_CS_709_EXTENDED - Canvas, Mac EDR (HDR)\n   - GS_CS_709_SCRGB    - 1.0 = 80 nits, Windows/Linux HDR\n\n`gs_zstencil_format`\n\n   Z-Stencil buffer format.  Can be one of the following values:","chars":1978,"tokens_est":494,"sha256":"f9d5e1f2447f2d2c2d7e4cce7070c6eb22a61f7c3475655e4abbff7086e1dee5"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api~2","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#core-graphics-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API]\n- GS_ZS_NONE    - No Z-stencil buffer\n   - GS_Z16        - 16 bit Z buffer\n   - GS_Z24_S8     - 24 bit Z buffer, 8 bit stencil\n   - GS_Z32F       - 32 bit floating point Z buffer\n   - GS_Z32F_S8X24 - 32 bit floating point Z buffer, 8 bit stencil\n\n`gs_index_type`\n\n   Index buffer type.  Can be one of the following values:\n\n   - GS_UNSIGNED_SHORT - 16 bit index\n   - GS_UNSIGNED_LONG  - 32 bit index\n\n`gs_cull_mode`\n\n   Cull mode.  Can be one of the following values:\n\n   - GS_BACK    - Cull back faces\n   - GS_FRONT   - Cull front faces\n   - GS_NEITHER - Cull neither\n\n`gs_blend_type`\n\n   Blend type.  Can be one of the following values:\n\n   - GS_BLEND_ZERO\n   - GS_BLEND_ONE\n   - GS_BLEND_SRCCOLOR\n   - GS_BLEND_INVSRCCOLOR\n   - GS_BLEND_SRCALPHA\n   - GS_BLEND_INVSRCALPHA\n   - GS_BLEND_DSTCOLOR\n   - GS_BLEND_INVDSTCOLOR\n   - GS_BLEND_DSTALPHA\n   - GS_BLEND_INVDSTALPHA\n   - GS_BLEND_SRCALPHASAT\n\n`gs_depth_test`\n\n   Depth test type.  Can be one of the following values:\n\n   - GS_NEVER\n   - GS_LESS\n   - GS_LEQUAL\n   - GS_EQUAL\n   - GS_GEQUAL\n   - GS_GREATER\n   - GS_NOTEQUAL\n   - GS_ALWAYS\n\n`gs_stencil_side`\n\n   Stencil side.  Can be one of the following values:\n\n   - GS_STENCIL_FRONT=1\n   - GS_STENCIL_BACK\n   - GS_STENCIL_BOTH\n\n`gs_stencil_op_type`\n\n   Stencil operation type.  Can be one of the following values:\n\n   - GS_KEEP\n   - GS_ZERO\n   - GS_REPLACE\n   - GS_INCR\n   - GS_DECR\n   - GS_INVERT\n\n`gs_cube_sides`\n\n   Cubemap side.  Can be one of the following values:\n\n   - GS_POSITIVE_X\n   - GS_NEGATIVE_X\n   - GS_POSITIVE_Y\n   - GS_NEGATIVE_Y\n   - GS_POSITIVE_Z\n   - GS_NEGATIVE_Z\n\n`gs_sample_filter`\n\n   Sample filter type.  Can be one of the following values:\n\n   - GS_FILTER_POINT\n   - GS_FILTER_LINEAR\n   - GS_FILTER_ANISOTROPIC\n   - GS_FILTER_MIN_MAG_POINT_MIP_LINEAR\n   - GS_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT\n   - GS_FILTER_MIN_POINT_MAG_MIP_LINEAR\n   - GS_FILTER_MIN_LINEAR_MAG_MIP_POINT\n   - GS_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR\n   - GS_FILTER_MIN_MAG_LINEAR_MIP_POINT","chars":2017,"tokens_est":504,"sha256":"7967f9b0536a7b14c64faca9608052136e42cd3696dd4fa34621b77ac2d1cf98"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api~3","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#core-graphics-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API]\n`gs_address_mode`\n\n   Address mode.  Can be one of the following values:\n\n   - GS_ADDRESS_CLAMP\n   - GS_ADDRESS_WRAP\n   - GS_ADDRESS_MIRROR\n   - GS_ADDRESS_BORDER\n   - GS_ADDRESS_MIRRORONCE\n\n`gs_texture_type`\n\n   Texture type.  Can be one of the following values:\n\n   - GS_TEXTURE_2D\n   - GS_TEXTURE_3D\n   - GS_TEXTURE_CUBE","chars":343,"tokens_est":86,"sha256":"27437fb9896e33c67cc57baa2db33fd6706063e9c7dc5ce584fd0b1f2e973308"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-graphics-structures","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Graphics Structures"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#graphics-structures","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Graphics Structures]\n`gs_monitor_info`\n\n`int gs_monitor_info.rotation_degrees`\n\n`long gs_monitor_info.x`\n\n`long gs_monitor_info.y`\n\n`long gs_monitor_info.cx`\n\n`long gs_monitor_info.cy`\n\n`gs_tvertarray`\n\n`size_t gs_tvertarray.width`\n\n`void *gs_tvertarray.array`\n\n`gs_vb_data`\n\n`size_t gs_vb_data.num`\n\n`struct vec3 *gs_vb_data.points`\n\n`struct vec3 *gs_vb_data.normals`\n\n`struct vec3 *gs_vb_data.tangents`\n\n`uint32_t *gs_vb_data.colors`\n\n`size_t gs_vb_data.num_tex`\n\n`struct gs_tvertarray *gs_vb_data.tvarray`\n\n`gs_sampler_info`\n\n`enum gs_sample_filter gs_sampler_info.filter`\n\n`enum gs_address_mode gs_sampler_info.address_u`\n\n`enum gs_address_mode gs_sampler_info.address_v`\n\n`enum gs_address_mode gs_sampler_info.address_w`\n\n`int gs_sampler_info.max_anisotropy`\n\n`uint32_t gs_sampler_info.border_color`\n\n`gs_display_mode`\n\n`uint32_t gs_display_mode.width`\n\n`uint32_t gs_display_mode.height`\n\n`uint32_t gs_display_mode.bits`\n\n`uint32_t gs_display_mode.freq`\n\n`gs_rect`\n\n`int gs_rect.x`\n\n`int gs_rect.y`\n\n`int gs_rect.cx`\n\n`int gs_rect.cy`\n\n`gs_window`\n\n   A window structure.  This structure is used with a native widget.\n\n`void                    *gs_window.hwnd`\n\n   (Windows only) an HWND widget.\n\n`id  gs_window.view`\n\n   (macOS only) A view ID.\n\n`uint32_t gs_window.id`\n            void* gs_window.display\n\n   (Linux only) Window ID and display\n\n`gs_init_data`\n\n   Swap chain initialization data.\n\n`struct gs_window        gs_init_data.window`\n\n`uint32_t                gs_init_data.cx`\n\n`uint32_t                gs_init_data.cy`\n\n`uint32_t                gs_init_data.num_backbuffers`\n\n`enum gs_color_format    gs_init_data.format`\n\n`enum gs_zstencil_format gs_init_data.zsformat`\n\n`uint32_t                gs_init_data.adapter`","chars":1756,"tokens_est":439,"sha256":"55022fb91ddb6994e80f54fa308e3bf8a6c0b10a13c52308a69dfa9288a9691e"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-initialization-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Initialization Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#initialization-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Initialization Functions]\n`void gs_enum_adapters(bool (*callback)(void *param, const char *name, uint32_t id), void *param)`\n\n   Enumerates adapters (this really only applies on Windows).\n\n   :param callback: Enumeration callback\n   :param param:    Private data passed to the callback\n\n`int gs_create(graphics_t **graphics, const char *module, uint32_t adapter)`\n\n   Creates a graphics context\n\n   :param graphics: Pointer to receive the graphics context\n   :param module:   Module name\n   :param adapter:  Adapter index\n   :return:         Can return one of the following values:\n\n                    - GS_SUCCESS\n                    - GS_ERROR_FAIL\n                    - GS_ERROR_MODULE_NOT_FOUND\n                    - GS_ERROR_NOT_SUPPORTED\n\n`void gs_destroy(graphics_t *graphics)`\n\n   Destroys a graphics context\n\n   :param graphics: Graphics context\n\n`void gs_enter_context(graphics_t *graphics)`\n\n   Enters and locks the graphics context\n\n   :param graphics: Graphics context\n\n`void gs_leave_context(void)`\n\n   Leaves and unlocks the graphics context\n\n   :param graphics: Graphics context\n\n`graphics_t *gs_get_context(void)`\n\n   :return: The currently locked graphics context for this thread","chars":1219,"tokens_est":305,"sha256":"0e10a1b33811aa3d5cdc3a715328ca2ecd2efadcdd8bcf125db9608fa0b27de5"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-matrix-stack-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Matrix Stack Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#matrix-stack-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Matrix Stack Functions]\n`void gs_matrix_push(void)`\n\n   Pushes the matrix stack and duplicates the current matrix.\n\n`void gs_matrix_pop(void)`\n\n   Pops the current matrix from the matrix stack.\n\n`void gs_matrix_identity(void)`\n\n   Sets the current matrix to an identity matrix.\n\n`void gs_matrix_transpose(void)`\n\n   Transposes the current matrix.\n\n`void gs_matrix_set(const struct matrix4 *matrix)`\n\n   Sets the current matrix.\n\n   :param matrix: The matrix to set\n\n`void gs_matrix_get(struct matrix4 *dst)`\n\n   Gets the current matrix\n\n   :param dst: Destination matrix\n\n`void gs_matrix_mul(const struct matrix4 *matrix)`\n\n   Multiplies the current matrix\n\n   :param matrix: Matrix to multiply the current stack matrix with\n\n`void gs_matrix_rotquat(const struct quat *rot)`\n\n   Multiplies the current matrix with a quaternion\n\n   :param rot: Quaternion to multiple the current matrix stack with\n\n`void gs_matrix_rotaa(const struct axisang *rot)`\n              void gs_matrix_rotaa4f(float x, float y, float z, float angle)\n\n   Multiplies the current matrix with an axis angle\n\n   :param rot: Axis angle to multiple the current matrix stack with\n\n`void gs_matrix_translate(const struct vec3 *pos)`\n              void gs_matrix_translate3f(float x, float y, float z)\n\n   Translates the current matrix\n\n   :param pos: Vector to translate the current matrix stack with\n\n`void gs_matrix_scale(const struct vec3 *scale)`\n              void gs_matrix_scale3f(float x, float y, float z)\n\n   Scales the current matrix\n\n   :param scale: Scale value to scale the current matrix stack with","chars":1599,"tokens_est":400,"sha256":"29fb448d270c867368328f73a24cc3a70c690be6781041022a33573e750660c1"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-draw-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Draw Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#draw-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Draw Functions]\n`gs_effect_t *gs_get_effect(void)`\n\n   :return: The currently active effect, or *NULL* if none active\n\n`void gs_draw_sprite(gs_texture_t *tex, uint32_t flip, uint32_t width, uint32_t height)`\n\n   Draws a 2D sprite.  Sets the \"image\" parameter of the current effect\n   to the texture and renders a quad. Can be omitted if drawing without\n   a texture.\n\n   If width or height is 0, the width or height of the texture will be\n   used.  The flip value specifies whether the texture should be flipped\n   on the U or V axis with GS_FLIP_U and GS_FLIP_V.\n\n   :param tex:    Texture to draw (can be NULL if drawing without a\n                  texture)\n   :param flip:   Can be 0 or a bitwise-OR combination of one of the\n                  following values:\n\n                  - GS_FLIP_U - Flips the texture horizontally\n                  - GS_FLIP_V - Flips the texture vertically\n\n   :param width:  Width\n   :param height: Height\n\n`void gs_draw_quadf(gs_texture_t *tex, uint32_t flip, float width, float height)`\n\n   Same as `gs_draw_sprite()`, but with floating point width/height\n   values instead of integer width/height values.\n\n   :param tex:    Texture to draw (can be NULL if drawing without a\n                  texture)\n   :param flip:   Can be 0 or a bitwise-OR combination of one of the\n                  following values:\n\n                  - GS_FLIP_U - Flips the texture horizontally\n                  - GS_FLIP_V - Flips the texture vertically\n\n   :param width:  Width\n   :param height: Height\n\n`void gs_draw_sprite_subregion(gs_texture_t *tex, uint32_t flip, uint32_t x, uint32_t y, uint32_t cx, uint32_t cy)`\n\n   Draws a subregion of a 2D sprite.  Sets the \"image\" parameter of the\n   current effect to the texture and renders a quad.\n\n   :param tex:    Texture to draw\n   :param flip:   Can be 0 or a bitwise-OR combination of one of the\n                  following values:","chars":1921,"tokens_est":480,"sha256":"5cad596de21fb56154f8e944aa567c3cf315730abf79917343679dd44d5517b9"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-draw-functions~2","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Draw Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#draw-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Draw Functions]\n- GS_FLIP_U - Flips the texture horizontally\n                  - GS_FLIP_V - Flips the texture vertically\n\n   :param x:      X value within subregion\n   :param y:      Y value within subregion\n   :param cx:     CX value of subregion\n   :param cy:     CY value of subregion\n\n`void gs_reset_viewport(void)`\n\n    Sets the viewport to current swap chain size\n\n`void gs_set_2d_mode(void)`\n\n    Sets the projection matrix to a default screen-sized orthographic\n    mode\n\n`void gs_set_3d_mode(double fovy, double znear, double zfar)`\n\n    Sets the projection matrix to a default screen-sized perspective\n    mode\n\n    :param fovy:  Field of view (in degrees)\n    :param znear: Near plane\n    :param zfar:  Far plane\n\n`void gs_viewport_push(void)`\n\n   Pushes/stores the current viewport\n\n`void gs_viewport_pop(void)`\n\n   Pops/recalls the last pushed viewport\n\n`void gs_perspective(float fovy, float aspect, float znear, float zfar)`\n\n   Sets the projection matrix to a perspective mode\n\n   :param fovy:   Field of view (in degrees)\n   :param aspect: Aspect ratio\n   :param znear:  Near plane\n   :param zfar:   Far plane\n\n`void gs_blend_state_push(void)`\n\n   Pushes/stores the current blend state\n\n`void gs_blend_state_pop(void)`\n\n   Pops/restores the last blend state\n\n`void gs_reset_blend_state(void)`\n\n   Sets the blend state to the default value: source alpha and invert\n   source alpha.","chars":1419,"tokens_est":355,"sha256":"761fccdbeae6733cbf4da7e3d07d62a1944a14161bf39ab81d446f73c3afdaa9"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-swap-chains","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Swap Chains"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#swap-chains","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Swap Chains]\n`gs_swapchain_t *gs_swapchain_create(const struct gs_init_data *data)`\n\n   Creates a swap chain (display view on a native widget)\n\n   :param data: Swap chain initialization data\n   :return:     New swap chain object, or *NULL* if failed\n\n`void     gs_swapchain_destroy(gs_swapchain_t *swapchain)`\n\n   Destroys a swap chain\n\n`void gs_resize(uint32_t cx, uint32_t cy)`\n\n   Resizes the currently active swap chain\n\n   :param cx: New width\n   :param cy: New height\n\n`void gs_update_color_space(void)`\n\n   Updates the color space of the swap chain based on the HDR status of\n   the nearest monitor\n\n`void gs_get_size(uint32_t *cx, uint32_t *cy)`\n\n   Gets the size of the currently active swap chain\n\n   :param cx: Pointer to receive width\n   :param cy: Pointer to receive height\n\n`uint32_t gs_get_width(void)`\n\n   Gets the width of the currently active swap chain\n\n`uint32_t gs_get_height(void)`\n\n   Gets the height of the currently active swap chain","chars":979,"tokens_est":245,"sha256":"2abf9f23d720e5eb1ae3eb4ac75e995b52587f96f3750bb1c815e2137364322e"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-resource-loading","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Resource Loading"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#resource-loading","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Resource Loading]\n`void gs_load_vertexbuffer(gs_vertbuffer_t *vertbuffer)`\n\n   Loads a vertex buffer\n\n   :param vertbuffer: Vertex buffer to load, or NULL to unload\n\n`void gs_load_indexbuffer(gs_indexbuffer_t *indexbuffer)`\n\n   Loads a index buffer\n\n   :param indexbuffer: Index buffer to load, or NULL to unload\n\n`void gs_load_texture(gs_texture_t *tex, int unit)`\n\n   Loads a texture (this is usually not called manually)\n\n   :param tex:  Texture to load, or NULL to unload\n   :param unit: Texture unit to load texture for\n\n`void gs_load_samplerstate(gs_samplerstate_t *samplerstate, int unit)`\n\n   Loads a sampler state (this is usually not called manually)\n\n   :param samplerstate: Sampler state to load, or NULL to unload\n   :param unit:         Texture unit to load sampler state for\n\n`void gs_load_swapchain(gs_swapchain_t *swapchain)`\n\n   Loads a swapchain\n\n   :param swapchain: Swap chain to load, or NULL to unload","chars":945,"tokens_est":236,"sha256":"d9f275b25371675eb4a29672a35c8156eead3fe35b030a4dcfc2d399d96d0676"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-draw-functions-2","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Draw Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#draw-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Draw Functions]\n`enum gs_color_space gs_get_color_space(void)`\n\n   :return: The currently active color space\n\n`gs_texture_t  *gs_get_render_target(void)`\n\n   :return: The currently active render target\n\n`gs_zstencil_t *gs_get_zstencil_target(void)`\n\n   :return: The currently active Z-stencil target\n\n`void gs_set_render_target(gs_texture_t *tex, gs_zstencil_t *zstencil)`\n\n   Sets the active render target with implicit GS_CS_SRGB color space\n\n   :param tex:      Texture to set as the active render target\n   :param zstencil: Z-stencil to use as the active render target\n\n`void gs_set_render_target_with_color_space(gs_texture_t *tex, gs_zstencil_t *zstencil, enum gs_color_space space)`\n\n   Sets the active render target along with color space\n\n   :param tex:      Texture to set as the active render target\n   :param zstencil: Z-stencil to use as the active render target\n   :param space:    Color space of the render target\n\n`void gs_set_cube_render_target(gs_texture_t *cubetex, int side, gs_zstencil_t *zstencil)`\n\n   Sets a cubemap side as the active render target\n\n   :param cubetex:  Cubemap\n   :param side:     Cubemap side\n   :param zstencil: Z-stencil buffer, or *NULL* if none\n\n`void gs_copy_texture(gs_texture_t *dst, gs_texture_t *src)`\n\n   Copies a texture\n\n   :param dst: Destination texture\n   :param src: Source texture\n\n`void gs_stage_texture(gs_stagesurf_t *dst, gs_texture_t *src)`\n\n   Copies a texture to a staging surface and copies it to RAM.  Ideally\n   best to give this a frame to process to prevent stalling.\n\n   :param dst: Staging surface\n   :param src: Texture to stage\n\n`void gs_begin_scene(void)`\n              void gs_end_scene(void)\n\n   Begins/ends a scene (this is automatically called by libobs, there's\n   no need to call this manually).\n\n`void gs_draw(enum gs_draw_mode draw_mode, uint32_t start_vert, uint32_t num_verts)`\n\n   Draws a primitive or set of primitives.","chars":1928,"tokens_est":482,"sha256":"521c289c0984392c817936bdb43e4f4211dd8f40d093d2cd4cd60e98298f6c3f"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-draw-functions~2-2","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Draw Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#draw-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Draw Functions]\n:param draw_mode:  The primitive draw mode to use\n   :param start_vert: Starting vertex index\n   :param num_verts:  Number of vertices\n\n`void gs_clear(uint32_t clear_flags, const struct vec4 *color, float depth, uint8_t stencil)`\n\n   Clears color/depth/stencil buffers.\n\n   :param clear_flags: Flags to clear with.  Can be one of the following\n                       values:\n\n                       - GS_CLEAR_COLOR   - Clears color buffer\n                       - GS_CLEAR_DEPTH   - Clears depth buffer\n                       - GS_CLEAR_STENCIL - Clears stencil buffer\n\n   :param color:       Color value to clear the color buffer with\n   :param depth:       Depth value to clear the depth buffer with\n   :param stencil:     Stencil value to clear the stencil buffer with\n\n`void gs_present(void)`\n\n   Displays what was rendered on to the current render target\n\n`void gs_flush(void)`\n\n   Flushes GPU calls\n\n`void gs_set_cull_mode(enum gs_cull_mode mode)`\n\n   Sets the current cull mode.\n\n   :param mode: Cull mode\n\n`enum gs_cull_mode gs_get_cull_mode(void)`\n\n   :return: The current cull mode\n\n`void gs_enable_blending(bool enable)`\n\n   Enables/disables blending\n\n   :param enable: *true* to enable, *false* to disable\n\n`void gs_enable_depth_test(bool enable)`\n\n   Enables/disables depth testing\n\n   :param enable: *true* to enable, *false* to disable\n\n`void gs_enable_stencil_test(bool enable)`\n\n   Enables/disables stencil testing\n\n   :param enable: *true* to enable, *false* to disable\n\n`void gs_enable_stencil_write(bool enable)`\n\n   Enables/disables stencil writing\n\n   :param enable: *true* to enable, *false* to disable\n\n`void gs_enable_color(bool red, bool green, bool blue, bool alpha)`\n\n   Enables/disables specific color channels","chars":1777,"tokens_est":444,"sha256":"03715ca4ba5dd89bca054e80d3dedbac05e79f044d2dbce12c4d87224d3bac6b"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-draw-functions~3","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Draw Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#draw-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Draw Functions]\n:param red:   *true* to enable red channel, *false* to disable\n   :param green: *true* to enable green channel, *false* to disable\n   :param blue:  *true* to enable blue channel, *false* to disable\n   :param alpha: *true* to enable alpha channel, *false* to disable\n\n`void gs_blend_function(enum gs_blend_type src, enum gs_blend_type dest)`\n\n   Sets the blend function's source and destination factors\n\n   :param src:  Blend type for the blending equation's source factors\n   :param dest: Blend type for the blending equation's destination factors\n\n`void gs_blend_function_separate(enum gs_blend_type src_c, enum gs_blend_type dest_c, enum gs_blend_type src_a, enum gs_blend_type dest_a)`\n\n   Sets the blend function's source and destination factors for RGB and alpha separately\n\n   :param src_c:  Blend type for the blending equation's source RGB factor\n   :param dest_c: Blend type for the blending equation's destination RGB factor\n   :param src_a:  Blend type for the blending equation's source alpha factor\n   :param dest_a: Blend type for the blending equation's destination alpha factor\n\n`void gs_blend_op(enum gs_blend_op_type op)`\n\n   Sets the blend function's operation type\n\n   :param op: Operation type for the blending equation\n\n`void gs_depth_function(enum gs_depth_test test)`\n\n   Sets the depth function\n\n   :param test: Sets the depth test type\n\n`void gs_stencil_function(enum gs_stencil_side side, enum gs_depth_test test)`\n\n   Sets the stencil function\n\n   :param side: Stencil side\n   :param test: Depth test\n\n`void gs_stencil_op(enum gs_stencil_side side, enum gs_stencil_op_type fail, enum gs_stencil_op_type zfail, enum gs_stencil_op_type zpass)`\n\n   Sets the stencil operation\n\n   :param side:  Stencil side\n   :param fail:  Operation to perform on stencil test failure\n   :param zfail: Operation to perform on depth test failure\n   :param zpass: Operation to perform on depth test success\n\n`void gs_set_viewport(int x, int y, int width, int height)`","chars":2011,"tokens_est":503,"sha256":"748a384b00dde7f1c70fb045acd692edf0d7ef2d4a102de4971cac43d841a635"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-draw-functions~4","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Draw Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#draw-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Draw Functions]\nSets the current viewport\n\n   :param x:      X position relative to upper left\n   :param y:      Y position relative to upper left\n   :param width:  Width of the viewport\n   :param height: Height of the viewport\n\n`void gs_get_viewport(struct gs_rect *rect)`\n\n   Gets the current viewport\n\n   :param rect: Pointer to receive viewport rectangle\n\n`void gs_set_scissor_rect(const struct gs_rect *rect)`\n\n   Sets or clears the current scissor rectangle\n\n   :rect: Scissor rectangle, or *NULL* to clear\n\n`void gs_ortho(float left, float right, float top, float bottom, float znear, float zfar)`\n\n   Sets the projection matrix to an orthographic matrix\n\n`void gs_frustum(float left, float right, float top, float bottom, float znear, float zfar)`\n\n   Sets the projection matrix to a frustum matrix\n\n`void gs_projection_push(void)`\n\n   Pushes/stores the current projection matrix\n\n`void gs_projection_pop(void)`\n\n   Pops/restores the last projection matrix pushed","chars":992,"tokens_est":248,"sha256":"595d32d3bfa9a88327f8c04a8f207e12664386d3f62616e1734161cdafa7e679"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-texture-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Texture Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#texture-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Texture Functions]\n`gs_texture_t *gs_texture_create(uint32_t width, uint32_t height, enum gs_color_format color_format, uint32_t levels, const uint8_t **data, uint32_t flags)`\n\n   Creates a texture.\n\n   :param width:        Width\n   :param height:       Height\n   :param color_format: Color format\n   :param levels:       Number of total texture levels.  Set to 1 if no\n                        mip-mapping\n   :param data:         Pointer to array of texture data pointers\n   :param flags:        Can be 0 or a bitwise-OR combination of one or\n                        more of the following value:\n\n                        - GS_BUILD_MIPMAPS - Automatically builds\n                          mipmaps (Note: not fully tested)\n                        - GS_DYNAMIC - Dynamic\n                        - GS_RENDER_TARGET - Render target\n\n   :return:             A new texture object\n\n`gs_texture_t *gs_texture_create_from_file(const char *file)`\n\n   Creates a texture from a file.  Note that this isn't recommended for\n   animated gifs -- instead use the `image_file_helper`.\n\n   :param file: Image file to open\n\n`void     gs_texture_destroy(gs_texture_t *tex)`\n\n   Destroys a texture\n\n   :param tex: Texture object\n\n`uint32_t gs_texture_get_width(const gs_texture_t *tex)`\n\n   Gets the texture's width\n\n   :param tex: Texture object\n   :return:    The texture's width\n\n`uint32_t gs_texture_get_height(const gs_texture_t *tex)`\n\n   Gets the texture's height\n\n   :param tex: Texture object\n   :return:    The texture's height\n\n`enum gs_color_format gs_texture_get_color_format(const gs_texture_t *tex)`\n\n   Gets the texture's color format\n\n   :param tex: Texture object\n   :return:    The texture's color format\n\n`bool     gs_texture_map(gs_texture_t *tex, uint8_t **ptr, uint32_t *linesize)`\n\n   Maps a texture.","chars":1823,"tokens_est":456,"sha256":"d7c13f82ed0d31bc166915e18cc54d8ab5c14549fcc35364dada7a6d4f36162c"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-texture-functions~2","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Texture Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#texture-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Texture Functions]\n:param tex:      Texture object\n   :param ptr:      Pointer to receive the pointer to the texture data\n                    to write to\n   :param linesize: Pointer to receive the line size (pitch) of the\n                    texture\n\n`void     gs_texture_unmap(gs_texture_t *tex)`\n\n   Unmaps a texture.\n\n   :param tex: Texture object\n\n`void gs_texture_set_image(gs_texture_t *tex, const uint8_t *data, uint32_t linesize, bool invert)`\n\n   Sets the image of a dynamic texture\n\n   :param tex:      Texture object\n   :param data:     Data to set as the image\n   :param linesize: Line size (pitch) of the data\n   :param invert:   *true* to invert vertically, *false* otherwise\n\n`gs_texture_t *gs_texture_create_from_dmabuf(unsigned int width, unsigned int height, uint32_t drm_format, enum gs_color_format color_format, uint32_t n_planes, const int *fds, const uint32_t *strides, const uint32_t *offsets, const uint64_t *modifiers)`\n\n   **only Linux, FreeBSD, DragonFly:** Creates a texture from DMA-BUF metadata.\n\n   Exchanging DMA-BUFs is a verbose process because of its multiplanar nature.\n   For example, YUV can have each plane as a color channel, or a monitor buffer\n   can have the cursor stored in a separate plane.\n\n   This function treats the OBS Studio format and the DRM format separately.\n   This allows creating textures from DMA-BUFs with unsupported formats (e.g.\n   YUV) and perform the color format conversion using shaders. However, be\n   careful to always try and match the formats correctly, otherwise textures\n   can fail to be created or rendered.\n\n   All modifiers passed in the modifiers array must be equal. Passing different\n   modifiers for each plane is unsupported.","chars":1730,"tokens_est":432,"sha256":"f61920b74d7ab93da1c9f202433d2a99857c16218509b58c6a8a8eb981973bed"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-texture-functions~3","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Texture Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#texture-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Texture Functions]\n:param width:        Width of the texture\n   :param height:       Height of the texture\n   :param drm_format:   DRM format of the DMA-BUF buffer\n   :param color_format: Color format compatible with OBS Studio\n   :param n_planes:     Number of planes of the DMA-BUF\n   :param fds:          Array of size *n_planes* with the file descriptor of each plane\n   :param strides:      Array of size *n_planes* with the stride of each plane\n   :param offsets:      Array of size *n_planes* with the offset of each plane\n   :param modifiers:    Array of size *n_planes* with the modifier of each plane\n   :return:             A texture object on success, or *NULL* on failure\n   :rtype:              gs_texture_t*\n\n`gs_dmabuf_flags`\n\n   DMA-BUF capabilities:\n\n   - GS_DMABUF_FLAG_NONE\n   - GS_DMABUF_FLAG_SUPPORTS_IMPLICIT_MODIFIERS  - Renderer supports implicit modifiers\n\n`bool *gs_query_dmabuf_capabilities(enum gs_dmabuf_flags *dmabuf_flags, uint32_t **drm_formats, size_t *n_formats)`\n\n   **only Linux, FreeBSD, DragonFly:** Queries the capabilities for DMA-BUFs.\n\n   Graphics cards can optimize frame buffers by storing them in custom layouts,\n   depending on their hardware features. These layouts can make these frame\n   buffers unsuitable for linear processing. This function allows querying whether\n   the graphics card in use supports implicit modifiers, and the supported texture\n   formats.\n\n   The caller must free the `drm_formats` array with `bfree()` after use.\n\n   :param dmabuf_flags: Pointer to receive a capability bitmap\n   :param drm_formats:  Pointer to receive an array of DRM formats\n   :param n_formats:    Pointer to receive the number of formats\n   :rtype:              bool\n\n`bool *gs_query_dmabuf_modifiers_for_format(uint32_t drm_format, uint64_t **modifiers, size_t *n_modifiers)`\n\n   **only Linux, FreeBSD, DragonFly:** Queries the supported DMA-BUF modifiers for a given format.","chars":1943,"tokens_est":486,"sha256":"91a01818a54682d8f4ec26eaf47460ede39b202401df303ae306767800bddc04"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-texture-functions~4","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Texture Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#texture-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Texture Functions]\nThis function queries all supported explicit modifiers for a format,\n   stores them as an array and returns the number of supported modifiers.\n\n   The caller must free the `modifiers` array with `bfree()` after use.\n\n   :param drm_format:   DRM format of the DMA-BUF buffer\n   :param modifiers:    Pointer to receive an array of modifiers\n   :param n_modifiers:  Pointer to receive the number of modifiers\n   :rtype:              bool\n\n`bool gs_query_sync_capabilities(void)`\n\n   **only Linux, FreeBSD, DragonFly:** Checks if the use of synchronization objects is supported\n\n   :rtype:  bool\n   :return: *true* if supported, *false* otherwise\n\n`gs_sync_t *gs_sync_create(void)`\n\n   **only Linux, FreeBSD, DragonFly:** Creates a synchronization object\n\n   Inserts a fence command into the command stream of the bound context and\n   creates a synchronization object that is signalled when all the commands\n   preceding the inserted fence are executed.\n\n   :rtype: gs_sync_t*\n\n`gs_sync_t *gs_sync_create_from_syncobj_timeline_point(int syncobj_fd, uint64_t timeline_point)`\n\n   **only Linux, FreeBSD, DragonFly:** Creates a synchronization object\n\n   Creates a synchronization object that is signalled when the specified\n   timeline point of the given DRM syncobj is signalled.\n\n   :param syncobj_fd:     A file descriptor that is referencing a DRM syncobj\n   :param timeline_point: Timeline point of the DRM syncobj\n   :rtype:                gs_sync_t*\n\n`void gs_sync_destroy(gs_sync_t *sync)`\n\n   **only Linux, FreeBSD, DragonFly:** Destroys a synchronization object\n\n   If the given synchronization object is in use, it will be marked for\n   destruction and will be destroyed later when it is no longer referenced.\n\n   :param sync: Synchronization object\n\n`bool gs_sync_export_syncobj_timeline_point(gs_sync_t *sync, int syncobj_fd, uint64_t timeline_point)`\n\n   **only Linux, FreeBSD, DragonFly:** Exports a synchronization object to a DRM syncobj timeline point","chars":2003,"tokens_est":501,"sha256":"6830f81ec7f0ce3bcb6b9881fc37e558425f4f47bf626f00d78e82d085ad3d54"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-texture-functions~5","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Texture Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#texture-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Texture Functions]\nCreates a DRM syncobj timeline point that is signalled when the given\n   synchronization object is signalled.\n\n   :param sync:           Synchronization object\n   :param syncobj_fd:     A file descriptor that is referencing a DRM syncobj\n   :param timeline_point: Timeline point of the DRM syncobj\n   :rtype:                bool\n   :return:               *true* if the synchronization object is exported successfully, *false* otherwise\n\n`bool gs_sync_signal_syncobj_timeline_point(int syncobj_fd, uint64_t timeline_point)`\n\n   **only Linux, FreeBSD, DragonFly:** Signals a DRM syncobj timeline point\n\n   :param syncobj_fd:     A file descriptor that is referencing a DRM syncobj\n   :param timeline_point: Timeline point of the DRM syncobj\n   :rtype:                bool\n   :return:               *true* if the timeline point is signalled successfully, *false* otherwise\n\n`bool gs_sync_wait(gs_sync_t *sync)`\n\n   **only Linux, FreeBSD, DragonFly:** Wait for a synchronization object to be signalled\n\n   Blocks the execution of the commands that would be inserted into the command\n   stream of the bound context until the given synchronization object is\n   signalled.\n\n   :param sync: Synchronization object\n   :rtype:      bool\n   :return:     *true* if successful, *false* otherwise\n\n`gs_texture_t *gs_texture_create_from_iosurface(void *iosurf)`\n\n   **macOS only:** Creates a texture from an IOSurface.\n\n   :param iosurf: IOSurface object\n\n`bool     gs_texture_rebind_iosurface(gs_texture_t *texture, void *iosurf)`\n\n   **macOS only:** Rebinds a texture to another IOSurface\n\n   :param texture: Texture object\n   :param iosuf:   IOSurface object\n\n`gs_texture_t *gs_texture_create_gdi(uint32_t width, uint32_t height)`\n\n   **Windows only:** Creates a GDI-interop texture\n\n   :param width:  Width\n   :param height: Height\n\n`void *gs_texture_get_dc(gs_texture_t *gdi_tex)`\n\n   **Windows only:** Gets the HDC of a GDI-interop texture.  Call\n   `gs_texture_release_dc()` to release the HDC.","chars":2026,"tokens_est":506,"sha256":"37ea152884e9b8318f920c18c2ce50daa5fa357bce506ebb2841e6723b2a6640"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-texture-functions~6","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Texture Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#texture-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Texture Functions]\n:param gdi_tex: GDI-interop texture object\n   :return:        HDC object\n\n`void gs_texture_release_dc(gs_texture_t *gdi_tex)`\n\n   **Windows only:** Releases the HDC of the GDI-interop texture.\n\n   :param gdi_tex: GDI-interop texture object\n\n`gs_texture_t *gs_texture_open_shared(uint32_t handle)`\n\n   **Windows only:** Creates a texture from a shared texture handle.\n\n   :param handle: Shared texture handle\n   :return:       A texture object\n\n`bool gs_gdi_texture_available(void)`\n\n   **Windows only:** Returns whether GDI-interop textures are available.\n\n   :return: *true* if available, *false* otherwise\n\n`bool gs_shared_texture_available(void)`\n\n   **Windows only:** Returns whether shared textures are available.\n\n   :return: *true* if available, *false* otherwise","chars":810,"tokens_est":202,"sha256":"15ea2394aef2649d429bd93b84e140b381ea695a8befc03797e26f0aaa362279"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-cube-texture-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Cube Texture Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#cube-texture-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Cube Texture Functions]\n`gs_texture_t *gs_cubetexture_create(uint32_t size, enum gs_color_format color_format, uint32_t levels, const uint8_t **data, uint32_t flags)`\n\n   Creates a cubemap texture.\n\n   :param size:         Width/height/depth value\n   :param color_format: Color format\n   :param levels:       Number of texture levels\n   :param data:         Pointer to array of texture data pointers\n   :param flags:        Can be 0 or a bitwise-OR combination of one or\n                        more of the following value:\n\n                        - GS_BUILD_MIPMAPS - Automatically builds\n                          mipmaps (Note: not fully tested)\n                        - GS_DYNAMIC - Dynamic\n                        - GS_RENDER_TARGET - Render target\n\n   :return:             A new cube texture object\n\n`void     gs_cubetexture_destroy(gs_texture_t *cubetex)`\n\n   Destroys a cube texture.\n\n   :param cubetex: Cube texture object\n\n`uint32_t gs_cubetexture_get_size(const gs_texture_t *cubetex)`\n\n   Get the width/height/depth value of a cube texture.\n\n   :param cubetex: Cube texture object\n   :return:        The width/height/depth value of the cube texture\n\n`enum gs_color_format gs_cubetexture_get_color_format(const gs_texture_t *cubetex)`\n\n   Gets the color format of a cube texture.\n\n   :param cubetex: Cube texture object\n   :return:        The color format of the cube texture\n\n`void gs_cubetexture_set_image(gs_texture_t *cubetex, uint32_t side, const void *data, uint32_t linesize, bool invert)`\n\n   Sets an image of a cube texture side.\n\n   :param cubetex:  Cube texture object\n   :param side:     Side\n   :param data:     Texture data to set\n   :param linesize: Line size (pitch) of the texture data\n   :param invert:   *true* to invert texture data, *false* otherwise","chars":1805,"tokens_est":451,"sha256":"13768bf48fa9480d6e066e7dd566b17997d7e13142d8069f7f558619c1f4a97a"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-staging-surface-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Staging Surface Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#staging-surface-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Staging Surface Functions]\nStaging surfaces are used to efficiently copy textures from VRAM to RAM.\n\n`gs_stagesurf_t *gs_stagesurface_create(uint32_t width, uint32_t height, enum gs_color_format color_format)`\n\n   Creates a staging surface.\n\n   :param width:        Width\n   :param height:       Height\n   :param color_format: Color format\n   :return:             The staging surface object\n\n`void     gs_stagesurface_destroy(gs_stagesurf_t *stagesurf)`\n\n   Destroys a staging surface.\n\n   :param stagesurf: Staging surface object\n\n`uint32_t gs_stagesurface_get_width(const gs_stagesurf_t *stagesurf)`\n              uint32_t gs_stagesurface_get_height(const gs_stagesurf_t *stagesurf)\n\n   Gets the width/height of a staging surface object.\n\n   :param stagesurf: Staging surface object\n   :return:          Width/height of the staging surface\n\n`enum gs_color_format gs_stagesurface_get_color_format(const gs_stagesurf_t *stagesurf)`\n\n   Gets the color format of a staging surface object.\n\n   :param stagesurf: Staging surface object\n   :return:          Color format of the staging surface\n\n`bool     gs_stagesurface_map(gs_stagesurf_t *stagesurf, uint8_t **data, uint32_t *linesize)`\n\n   Maps the staging surface texture (for reading).  Call\n   `gs_stagesurface_unmap()` to unmap when complete.\n\n   :param stagesurf: Staging surface object\n   :param data:      Pointer to receive texture data pointer\n   :param linesize:  Pointer to receive line size (pitch) of the texture\n                     data\n   :return:          *true* if map successful, *false* otherwise\n\n`void     gs_stagesurface_unmap(gs_stagesurf_t *stagesurf)`\n\n   Unmaps a staging surface.\n\n   :param stagesurf: Staging surface object","chars":1721,"tokens_est":430,"sha256":"9e9296daff3f8070c38025994b8fcd105d7ff3e5db5f1b1635dc874965b7fccf"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-z-stencil-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Z-Stencil Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#z-stencil-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Z-Stencil Functions]\n`gs_zstencil_t *gs_zstencil_create(uint32_t width, uint32_t height, enum gs_zstencil_format format)`\n\n   Creates a Z-stencil surface object.\n\n   :param width:  Width\n   :param height: Height\n   :param format: Format\n   :return:       New Z-stencil surface object, or *NULL* if failed\n\n`void     gs_zstencil_destroy(gs_zstencil_t *zstencil)`\n\n   Destroys a Z-stencil buffer.\n\n   :param zstencil: Z-stencil surface object","chars":461,"tokens_est":115,"sha256":"4936887b6f3ae5f081364d1a765b26539b302d87da957373d85ba6eddd77e448"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-sampler-state-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Sampler State Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#sampler-state-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Sampler State Functions]\n`gs_samplerstate_t *gs_samplerstate_create(const struct gs_sampler_info *info)`\n\n   Creates a sampler state object.\n\n   :param info: Sampler state information\n   :return:     New sampler state object\n\n`void     gs_samplerstate_destroy(gs_samplerstate_t *samplerstate)`\n\n   Destroys a sampler state object.\n\n   :param samplerstate: Sampler state object","chars":397,"tokens_est":99,"sha256":"b187b1245bd6185563cdc549261707fc213e01c1953cc1423d53c3aa9f7b3c76"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-vertex-buffer-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Vertex Buffer Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#vertex-buffer-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Vertex Buffer Functions]\n`gs_vertbuffer_t *gs_vertexbuffer_create(struct gs_vb_data *data, uint32_t flags)`\n\n   Creates a vertex buffer.\n\n   :param data:  Vertex buffer data to create vertex buffer with.  The\n                 structure should be created with gs_vbdata_create(),\n                 and then buffers in this structure should be allocated\n                 with `bmalloc()`, `bzalloc()`, or\n                 `brealloc()`.  The ownership of the gs_vb_data\n                 pointer is then passed to the function, and they should\n                 not be destroyed by the caller once passed\n\n   :param flags: Creation flags.  Can be 0 or a bitwise-OR combination\n                 of any of the following values:\n\n                 - GS_DYNAMIC - Can be dynamically updated in real time.\n                 - GS_DUP_BUFFER - Do not pass buffer ownership of the\n                   structure or the buffer pointers within the\n                   structure.\n\n   :return:      A new vertex buffer object, or *NULL* if failed\n\n`void     gs_vertexbuffer_destroy(gs_vertbuffer_t *vertbuffer)`\n\n   Destroys a vertex buffer object.\n\n   :param vertbuffer: Vertex buffer object\n\n`void     gs_vertexbuffer_flush(gs_vertbuffer_t *vertbuffer)`\n\n   Flushes a vertex buffer to its interval vertex data object.  To\n   modify its internal vertex data, call\n   `gs_vertexbuffer_get_data()`.\n\n   Can only be used with dynamic vertex buffer objects.\n\n   :param vertbuffer: Vertex buffer object\n\n`void     gs_vertexbuffer_flush_direct(gs_vertbuffer_t *vertbuffer, const struct gs_vb_data *data)`\n\n   Directly flushes a vertex buffer to the specified vertex buffer data.\n   .\n\n   Can only be used with dynamic vertex buffer objects.\n\n   :param vertbuffer: Vertex buffer object\n   :param data:       Vertex buffer data to flush.  Components that\n                      don't need to be flushed can be left *NULL*\n\n`struct gs_vb_data *gs_vertexbuffer_get_data(const gs_vertbuffer_t *vertbuffer)`","chars":1993,"tokens_est":498,"sha256":"a644a407f8d61f0daf2f94d9762878875825ee5a21cf7bdcbe554ac8addc5ccc"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-vertex-buffer-functions~2","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Vertex Buffer Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#vertex-buffer-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Vertex Buffer Functions]\nGets the vertex buffer data associated with a vertex buffer object.\n   This data can be changed and vertex buffer can be updated with\n   `gs_vertexbuffer_flush()`.\n\n   Can only be used with dynamic vertex buffer objects.\n\n   :param vertbuffer: Vertex buffer object\n   :return:           Vertex buffer data structure","chars":361,"tokens_est":90,"sha256":"8e38ed62b9db601aea4d753647915fa52a8507781cb973202266049a2865f7b1"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-index-buffer-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Index Buffer Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#index-buffer-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Index Buffer Functions]\n`gs_indexbuffer_t *gs_indexbuffer_create(enum gs_index_type type, void *indices, size_t num, uint32_t flags)`\n\n   Creates an index buffer.\n\n   :param type:    Index buffer type\n   :param indices: Index buffer data.  This buffer must be allocated\n                   with `bmalloc()`, `bzalloc()`, or\n                   `bralloc()`, and ownership of this buffer is\n                   passed to the index buffer object.\n   :param num:     Number of indices in the buffer\n\n   :param flags:   Creation flags.  Can be 0 or a bitwise-OR combination\n                   of any of the following values:\n\n                   - GS_DYNAMIC - Can be dynamically updated in real time.\n                   - GS_DUP_BUFFER - Do not pass buffer ownership\n\n   :return:        A new index buffer object, or *NULL* if failed\n\n`void     gs_indexbuffer_destroy(gs_indexbuffer_t *indexbuffer)`\n\n   Destroys an index buffer object.\n\n   :param indexbuffer: Index buffer object\n\n`void     gs_indexbuffer_flush(gs_indexbuffer_t *indexbuffer)`\n\n   Flushes a index buffer to its interval index data object.  To modify\n   its internal index data, call `gs_indexbuffer_get_data()`.\n\n   Can only be used with dynamic index buffer objects.\n\n   :param indexbuffer: Index buffer object\n\n`void     gs_indexbuffer_flush_direct(gs_indexbuffer_t *indexbuffer, const void *data)`\n\n   Flushes a index buffer to the specified index buffer data.\n\n   Can only be used with dynamic index buffer objects.\n\n   :param indexbuffer: Index buffer object\n   :param data:        Index buffer data to flush\n\n`void     *gs_indexbuffer_get_data(const gs_indexbuffer_t *indexbuffer)`\n\n   Gets the index buffer data associated with a index buffer object.\n   This data can be changed and index buffer can be updated with\n   `gs_indexbuffer_flush()`.\n\n   Can only be used with dynamic index buffer objects.\n\n   :param vertbuffer: Index buffer object\n   :return:           Index buffer data pointer","chars":1979,"tokens_est":495,"sha256":"06206b8e71f0c7d3c466ba5d05f3439dbcf22f83d4941d31d84de30ab2925108"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-index-buffer-functions~2","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Index Buffer Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#index-buffer-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Index Buffer Functions]\n`size_t   gs_indexbuffer_get_num_indices(const gs_indexbuffer_t *indexbuffer)`\n\n   Gets the number of indices associated with this index buffer.\n\n   :param indexbuffer: Index buffer object\n   :return:            Number of indices the vertex buffer object has\n\n`enum gs_index_type gs_indexbuffer_get_type(const gs_indexbuffer_t *indexbuffer)`\n\n   Gets the type of index buffer.\n\n   :param indexbuffer: Index buffer object\n   :return:            Index buffer type","chars":506,"tokens_est":126,"sha256":"439c64d9296da3092a50a9a9dcfac5682a095740c7fe75ae35d9cfe0c12c1e25"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-display-duplicator-windows-only","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Display Duplicator (Windows Only)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#display-duplicator-windows-only","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Display Duplicator (Windows Only)]\n`gs_duplicator_t *gs_duplicator_create(int monitor_idx)`\n\n`void gs_duplicator_destroy(gs_duplicator_t *duplicator)`\n\n`bool gs_duplicator_update_frame(gs_duplicator_t *duplicator)`\n\n`gs_texture_t *gs_duplicator_get_texture(gs_duplicator_t *duplicator)`\n\n`bool gs_get_duplicator_monitor_info(int monitor_idx, struct gs_monitor_info *monitor_info)`\n\n## Monitor Functions\n`bool gs_is_monitor_hdr(void *monitor)`","chars":463,"tokens_est":116,"sha256":"8c9f4c8c40f073b951fba3f4533f9c90ac90b261e29e51da22577937d34d9ff3"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-render-helper-functions","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Render Helper Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#render-helper-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Render Helper Functions]\n`void gs_render_start(bool b_new)`\n\n`void gs_render_stop(enum gs_draw_mode mode)`\n\n`gs_vertbuffer_t *gs_render_save(void)`\n\n`void gs_vertex2f(float x, float y)`\n\n`void gs_vertex3f(float x, float y, float z)`\n\n`void gs_normal3f(float x, float y, float z)`\n\n`void gs_color(uint32_t color)`\n\n`void gs_texcoord(float x, float y, int unit)`\n\n`void gs_vertex2v(const struct vec2 *v)`\n\n`void gs_vertex3v(const struct vec3 *v)`\n\n`void gs_normal3v(const struct vec3 *v)`\n\n`void gs_color4v(const struct vec4 *v)`\n\n`void gs_texcoord2v(const struct vec2 *v, int unit)`","chars":602,"tokens_est":150,"sha256":"fe42fe5a5d3f309a2a0b8ff5a6ceec5322090a0af31bd041d8258a36cf6075a6"},{"id":"docs-sphinx-reference-libobs-graphics-graphics#core-graphics-api-graphics-types","doc":"docs-sphinx-reference-libobs-graphics-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Core Graphics API","Graphics Types"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst#graphics-types","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-graphics.rst","text":"[Core Graphics API \u203a Graphics Types]\n`struct gs_duplicator       gs_duplicator_t`\n\n`struct gs_texture          gs_texture_t`\n\n`struct gs_stage_surface    gs_stagesurf_t`\n\n`struct gs_zstencil_buffer  gs_zstencil_t`\n\n`struct gs_vertex_buffer    gs_vertbuffer_t`\n\n`struct gs_index_buffer     gs_indexbuffer_t`\n\n`struct gs_sampler_state    gs_samplerstate_t`\n\n`struct gs_swap_chain       gs_swapchain_t`\n\n`struct gs_texture_render   gs_texrender_t`\n\n`struct gs_shader           gs_shader_t`\n\n`struct gs_shader_param     gs_sparam_t`\n\n`struct gs_device           gs_device_t`\n\n`void                       gs_sync_t`\n\n`struct graphics_subsystem  graphics_t`","chars":651,"tokens_est":163,"sha256":"a48e9af2dfd48d6fc81a9bda3a62132af5a4dddbea76acc6e2b508b86aa94e30"},{"id":"docs-sphinx-reference-libobs-graphics-image-file#top","doc":"docs-sphinx-reference-libobs-graphics-image-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Image File Helper"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-image-file.rst#top","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-image-file.rst","text":"[Image File Helper]\n.. _image_file_helper:\n\n# Image File Helper\nHelper functions/type for easily loading/managing image files, including\nanimated gif files.\n\n.. code:: cpp\n\n   #include <graphics/image-file.h>\n\n`gs_image_file_ex`\n\n   Image file structure\n\n`gs_texture_t *gs_image_file_ex.texture`\n\n   Texture\n\n`struct gs_image_file_ex gs_image_file_ex_t`\n\n   Image file type\n\n`void gs_image_file_ex_init(gs_image_file_ex_t *image, const char *file, enum gs_image_alpha_mode alpha_mode)`\n\n   Loads an initializes an image file helper.  Does not initialize the\n   texture; call `gs_image_file_ex_init_texture()` to initialize\n   the texture.\n\n   :param image: Image file helper to initialize\n   :param file:  Path to the image file to load\n\n`void gs_image_file_ex_free(gs_image_file_ex_t *image)`\n\n   Frees an image file helper\n\n   :param image: Image file helper\n\n`void gs_image_file_ex_init_texture(gs_image_file_ex_t *image)`\n\n   Initializes the texture of an image file helper.  This is separate\n   from `gs_image_file_ex_init()` because it allows deferring the\n   graphics initialization if needed.\n\n   :param image: Image file helper\n\n`bool gs_image_file_ex_tick(gs_image_file_ex_t *image, uint64_t elapsed_time_ns)`\n\n   Performs a tick operation on the image file helper (used primarily\n   for animated file).  Does not update the texture until\n   `gs_image_file_ex_update_texture()` is called.\n\n   :param image:           Image file helper\n   :param elapsed_time_ns: Elapsed time in nanoseconds\n\n`void gs_image_file_ex_update_texture(gs_image_file_ex_t *image)`\n\n   Updates the texture (used primarily for animated files)\n\n   :param image: Image file helper","chars":1662,"tokens_est":416,"sha256":"ebdda76e5835a72706bdaa2287bffd3456375e4b1cfed2ec1cf97190e25874c7"},{"id":"docs-sphinx-reference-libobs-graphics-math#extra-math-functions-macros","doc":"docs-sphinx-reference-libobs-graphics-math","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Extra Math Functions/Macros"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-math.rst#extra-math-functionsmacros","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-math.rst","text":"[Extra Math Functions/Macros]\n.. code:: cpp\n\n   #include <graphics/math-extra.h>\n\nHelper functions/macros for graphics math.\n\n`RAD(val)`\n\n   Macro that converts a floating point degrees value to radians.\n\n`DEG(val)`\n\n   Macro that converts a floating point radians value to degrees.\n\n**LARGE_EPSILON**   1e-2f\n\n   Large epsilon value.\n\n**EPSILON**         1e-4f\n\n   Epsilon value.\n\n**TINY_EPSILON**    1e-5f\n\n   Tiny Epsilon value.\n\n**M_INFINITE**      3.4e38f\n\n   Infinite value\n\n`float rand_float(int positive_only)`\n\n   Generates a random floating point value (from -1.0f..1.0f, or\n   0.0f..1.0f if *positive_only* is set).","chars":626,"tokens_est":156,"sha256":"71a7847cedb05776c345d73ad04292ac70144243b5875aa2c4dcefff2171f930"},{"id":"docs-sphinx-reference-libobs-graphics-matrix4#matrix","doc":"docs-sphinx-reference-libobs-graphics-matrix4","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Matrix"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-matrix4.rst#matrix","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-matrix4.rst","text":"[Matrix]\n.. code:: cpp\n\n   #include <graphics/matrix4.h>\n\n`matrix4`\n\n   Matrix structure\n\n`struct vec4 matrix4.x`\n\n   X component vector\n\n`struct vec4 matrix4.y`\n\n   Y component vector\n\n`struct vec4 matrix4.z`\n\n   Z component vector\n\n`struct vec4 matrix4.w`\n\n   W component vector\n\n`void matrix4_copy(struct matrix4 *dst, const struct matrix4 *m)`\n\n   Copies a matrix\n\n   :param dst: Destination matrix\n   :param m:   Matrix to copy\n\n`void matrix4_identity(struct matrix4 *dst)`\n\n   Sets an identity matrix\n\n   :param dst: Destination matrix\n\n`void matrix4_from_quat(struct matrix4 *dst, const struct quat *q)`\n\n   Converts a quaternion to a matrix\n\n   :param dst: Destination matrix\n   :param q:   Quaternion to convert\n\n`void matrix4_from_axisang(struct matrix4 *dst, const struct axisang *aa)`\n\n   Converts an axis angle to a matrix\n\n   :param dst: Destination matrix\n   :param aa:  Axis angle to convert\n\n`void matrix4_mul(struct matrix4 *dst, const struct matrix4 *m1, const struct matrix4 *m2)`\n\n   Multiples two matrices\n\n   :param dst: Destination matrix\n   :param m1:  Matrix 1\n   :param m2:  Matrix 2\n\n`float matrix4_determinant(const struct matrix4 *m)`\n\n   Gets the determinant value of a matrix\n\n   :param m: Matrix\n   :return:  Determinant\n\n`void matrix4_translate3v(struct matrix4 *dst, const struct matrix4 *m, const struct vec3 *v)`\n              void matrix4_translate3f(struct matrix4 *dst, const struct matrix4 *m, float x, float y, float z)\n\n   Translates the matrix by a 3-component vector\n\n   :param dst: Destination matrix\n   :param m:   Matrix to translate\n   :param v:   Translation vector\n\n`void matrix4_translate4v(struct matrix4 *dst, const struct matrix4 *m, const struct vec4 *v)`\n\n   Translates the matrix by a 4-component vector\n\n   :param dst: Destination matrix\n   :param m:   Matrix to translate\n   :param v:   Translation vector\n\n`void matrix4_rotate(struct matrix4 *dst, const struct matrix4 *m, const struct quat *q)`\n\n   Rotates a matrix by a quaternion","chars":1993,"tokens_est":498,"sha256":"6c2b15179275b575c5f00ac173df7102d0dc2f3aec1cf9abdf9592efbd56d144"},{"id":"docs-sphinx-reference-libobs-graphics-matrix4#matrix~2","doc":"docs-sphinx-reference-libobs-graphics-matrix4","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Matrix"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-matrix4.rst#matrix","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-matrix4.rst","text":"[Matrix]\n:param dst: Destination matrix\n   :param m:   Matrix to rotate\n   :param q:   Rotation quaternion\n\n`void matrix4_rotate_aa(struct matrix4 *dst, const struct matrix4 *m, const struct axisang *aa)`\n              void matrix4_rotate_aa4f(struct matrix4 *dst, const struct matrix4 *m, float x, float y, float z, float rot)\n\n   Rotates a matrix by an axis angle\n\n   :param dst: Destination matrix\n   :param m:   Matrix to rotate\n   :param aa:  Rotation anxis angle\n\n`void matrix4_scale(struct matrix4 *dst, const struct matrix4 *m, const struct vec3 *v)`\n              void matrix4_scale3f(struct matrix4 *dst, const struct matrix4 *m, float x, float y, float z)\n\n   Scales each matrix component by the components of a 3-component vector\n\n   :param dst: Destination matrix\n   :param m:   Matrix to scale\n   :param v:   Scale vector\n\n`bool matrix4_inv(struct matrix4 *dst, const struct matrix4 *m)`\n\n   Inverts a matrix\n\n   :param dst: Destination matrix\n   :param m:   Matrix to invert\n\n`void matrix4_transpose(struct matrix4 *dst, const struct matrix4 *m)`\n\n   Transposes a matrix\n\n   :param dst: Destination matrix\n   :param m:   Matrix to transpose","chars":1155,"tokens_est":289,"sha256":"ec54a87041e34e72066bc0977f73e01e40ca7ca033c7c36b967a52c1bf2a3647"},{"id":"docs-sphinx-reference-libobs-graphics-quat#quaternion","doc":"docs-sphinx-reference-libobs-graphics-quat","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Quaternion"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-quat.rst#quaternion","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-quat.rst","text":"[Quaternion]\n.. code:: cpp\n\n   #include <graphics/quat.h>\n\n`quat`\n\n   Two component quaternion structure.\n\n`float quat.x`\n\n   X component\n\n`float quat.y`\n\n   Y component\n\n`float quat.z`\n\n   Z component\n\n`float quat.w`\n\n   W component\n\n`float quat.ptr[4]`\n\n   Unioned array of all components\n\n`void quat_identity(struct quat *dst)`\n\n   Sets a quaternion to {0.0f, 0.0f, 0.0f, 1.0f}.\n\n   :param dst: Destination\n\n`void quat_set(struct quat *dst, float x, float y, float z, float w)`\n\n   Sets the individual components of a quaternion.\n\n   :param dst: Destination\n   :param x:   X component\n   :param y:   Y component\n   :param z:   Z component\n   :param w:   W component\n\n`void quat_copy(struct quat *dst, const struct quat *v)`\n\n   Copies a quaternion\n\n   :param dst: Destination\n   :param v:   Quaternion to copy\n\n`void quat_add(struct quat *dst, const struct quat *v1, const struct quat *v2)`\n\n   Adds two quaternions\n\n   :param dst: Destination\n   :param v1:  Quaternion 1\n   :param v2:  Quaternion 2\n\n`void quat_sub(struct quat *dst, const struct quat *v1, const struct quat *v2)`\n\n   Subtracts two quaternions\n\n   :param dst: Destination\n   :param v1:  Quaternion being subtracted from\n   :param v2:  Quaternion being subtracted\n\n`void quat_mul(struct quat *dst, const struct quat *v1, const struct quat *v2)`\n\n   Multiplies two quaternions\n\n   :param dst: Destination\n   :param v1:  Quaternion 1\n   :param v2:  Quaternion 2\n\n`void quat_addf(struct quat *dst, const struct quat *v, float f)`\n\n   Adds a floating point to all components\n\n   :param dst: Destination\n   :param dst: Quaternion\n   :param f:   Floating point\n\n`void quat_subf(struct quat *dst, const struct quat *v, float f)`\n\n   Subtracts a floating point from all components\n\n   :param dst: Destination\n   :param v:   Quaternion being subtracted from\n   :param f:   Floating point being subtracted\n\n`void quat_mulf(struct quat *dst, const struct quat *v, float f)`\n\n   Multiplies a floating point with all components","chars":1983,"tokens_est":496,"sha256":"1634ddda36c398925eb1fa7a79f6ac51fe50d6e7ecda9f3943ed04ea496026aa"},{"id":"docs-sphinx-reference-libobs-graphics-quat#quaternion~2","doc":"docs-sphinx-reference-libobs-graphics-quat","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Quaternion"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-quat.rst#quaternion","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-quat.rst","text":"[Quaternion]\n:param dst: Destination\n   :param dst: Quaternion\n   :param f:   Floating point\n\n`void quat_inv(struct quat *dst, const struct quat *v)`\n\n   Inverts a quaternion\n\n   :param dst: Destination\n   :param v:   Quaternion to invert\n\n`float quat_dot(const struct quat *v1, const struct quat *v2)`\n\n   Performs a dot product between two quaternions\n\n   :param v1: Quaternion 1\n   :param v2: Quaternion 2\n   :return:   Result of the dot product\n\n`float quat_len(const struct quat *v)`\n\n   Gets the length of a quaternion\n\n   :param v: Quaternion\n   :return:  The quaternion's length\n\n`float quat_dist(const struct quat *v1, const struct quat *v2)`\n\n   Gets the distance between two quaternions\n\n   :param v1: Quaternion 1\n   :param v2: Quaternion 2\n   :return:   Distance between the two quaternions\n\n`void quat_from_axisang(struct quat *dst, const struct axisang *aa)`\n\n   Converts an axis angle to a quaternion\n\n   :param dst: Destination quaternion\n   :param aa:  Axis angle\n\n`void quat_from_matrix4(struct quat *dst, const struct matrix4 *m)`\n\n   Converts the rotational properties of a matrix to a quaternion\n\n   :param dst: Destination quaternion\n   :param m:   Matrix to convert\n\n`void quat_get_dir(struct vec3 *dst, const struct quat *q)`\n\n   Converts a quaternion to a directional vector\n\n   :param dst: Destination 3-component vector\n   :param q:   Quaternion\n\n`void quat_set_look_dir(struct quat *dst, const struct vec3 *dir)`\n\n   Creates a quaternion from a specific \"look\" direction\n\n   :param dst: Destination quaternion\n   :param dir: 3-component vector representing the look direction\n\n`void quat_interpolate(struct quat *dst, const struct quat *q1, const struct quat *q2, float t)`\n\n   Linearly interpolates two quaternions\n\n   :param dst: Destination quaternion\n   :param q1:  Quaternion 1\n   :param q2:  Quaternion 2\n   :param t:   Time value (0.0f..1.0f)\n\n`void quat_get_tangent(struct quat *dst, const struct quat *prev, const struct quat *q, const struct quat *next)`","chars":1993,"tokens_est":498,"sha256":"7c178baa2574b2b1bf5584a07f6a14f37ac05aa605b81b7191d46abfaf9cab53"},{"id":"docs-sphinx-reference-libobs-graphics-quat#quaternion~3","doc":"docs-sphinx-reference-libobs-graphics-quat","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Quaternion"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-quat.rst#quaternion","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-quat.rst","text":"[Quaternion]\nGets a tangent value for the center of three rotational values\n\n   :param dst:  Destination quaternion\n   :param prev: Previous rotation\n   :param q:    Rotation to get tangent for\n   :param next: Next rotation\n\n`void quat_interpolate_cubic(struct quat *dst, const struct quat *q1, const struct quat *q2, const struct quat *m1, const struct quat *m2, float t)`\n\n   Performs cubic interpolation between two quaternions\n\n   :param dst: Destination quaternion\n   :param q1:  Quaternion 1\n   :param q2:  Quaternion 2\n   :param m1:  Tangent 1\n   :param m2:  Tangent 2\n   :param t:   Time value (0.0f..1.0f)","chars":614,"tokens_est":154,"sha256":"12f13016f32a9643826488661eb812047cb12f64bcfd79f36f653f29b6ecf213"},{"id":"docs-sphinx-reference-libobs-graphics-vec2#2-component-vector","doc":"docs-sphinx-reference-libobs-graphics-vec2","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["2-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec2.rst#2-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec2.rst","text":"[2-Component Vector]\n.. code:: cpp\n\n   #include <graphics/vec2.h>\n\n`vec2`\n\n   Two component vector structure.\n\n`float vec2.x`\n\n   X component\n\n`float vec2.y`\n\n   Y component\n\n`float vec2.ptr[2]`\n\n   Unioned array of both components\n\n`void vec2_zero(struct vec2 *dst)`\n\n   Zeroes a vector\n\n   :param dst: Destination\n\n`void vec2_set(struct vec2 *dst, float x, float y)`\n\n   Sets the individual components of a 2-component vector.\n\n   :param dst: Destination\n   :param x:   X component\n   :param y:   Y component\n\n`void vec2_copy(struct vec2 *dst, const struct vec2 *v)`\n\n   Copies a vector\n\n   :param dst: Destination\n   :param v:   Vector to copy\n\n`void vec2_add(struct vec2 *dst, const struct vec2 *v1, const struct vec2 *v2)`\n\n   Adds two vectors\n\n   :param dst: Destination\n   :param v1:  Vector 1\n   :param v2:  Vector 2\n\n`void vec2_sub(struct vec2 *dst, const struct vec2 *v1, const struct vec2 *v2)`\n\n   Subtracts two vectors\n\n   :param dst: Destination\n   :param v1:  Vector being subtracted from\n   :param v2:  Vector being subtracted\n\n`void vec2_mul(struct vec2 *dst, const struct vec2 *v1, const struct vec2 *v2)`\n\n   Multiplies two vectors\n\n   :param dst: Destination\n   :param v1:  Vector 1\n   :param v2:  Vector 2\n\n`void vec2_div(struct vec2 *dst, const struct vec2 *v1, const struct vec2 *v2)`\n\n   Divides two vectors\n\n   :param dst: Destination\n   :param v1:  Dividend\n   :param v2:  Divisor\n\n`void vec2_addf(struct vec2 *dst, const struct vec2 *v, float f)`\n\n   Adds a floating point to all components\n\n   :param dst: Destination\n   :param dst: Vector\n   :param f:   Floating point\n\n`void vec2_subf(struct vec2 *dst, const struct vec2 *v, float f)`\n\n   Subtracts a floating point from all components\n\n   :param dst: Destination\n   :param v:   Vector being subtracted from\n   :param f:   Floating point being subtracted\n\n`void vec2_mulf(struct vec2 *dst, const struct vec2 *v, float f)`\n\n   Multiplies a floating point with all components","chars":1953,"tokens_est":488,"sha256":"dc2a11ed2165b548753f4ed57004a9496402ce1ba425a07f473d1ff2d36ae9d6"},{"id":"docs-sphinx-reference-libobs-graphics-vec2#2-component-vector~2","doc":"docs-sphinx-reference-libobs-graphics-vec2","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["2-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec2.rst#2-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec2.rst","text":"[2-Component Vector]\n:param dst: Destination\n   :param dst: Vector\n   :param f:   Floating point\n\n`void vec2_divf(struct vec2 *dst, const struct vec2 *v, float f)`\n\n   Divides a floating point from all components\n\n   :param dst: Destination\n   :param v:   Vector (dividend)\n   :param f:   Floating point (divisor)\n\n`void vec2_neg(struct vec2 *dst, const struct vec2 *v)`\n\n   Negates a vector\n\n   :param dst: Destination\n   :param v:   Vector to negate\n\n`float vec2_dot(const struct vec2 *v1, const struct vec2 *v2)`\n\n   Performs a dot product between two vectors\n\n   :param v1: Vector 1\n   :param v2: Vector 2\n   :return:   Result of the dot product\n\n`float vec2_len(const struct vec2 *v)`\n\n   Gets the length of a vector\n\n   :param v: Vector\n   :return:  The vector's length\n\n`float vec2_dist(const struct vec2 *v1, const struct vec2 *v2)`\n\n   Gets the distance between two vectors\n\n   :param v1: Vector 1\n   :param v2: Vector 2\n   :return:   Distance between the two vectors\n\n`void vec2_minf(struct vec2 *dst, const struct vec2 *v, float val)`\n\n   Gets the minimum values between a vector's components and a floating point\n\n   :param dst: Destination\n   :param v:   Vector\n   :param val: Floating point\n\n`void vec2_min(struct vec2 *dst, const struct vec2 *v, const struct vec2 *min_v)`\n\n   Gets the minimum values between two vectors\n\n   :param dst:   Destination\n   :param v:     Vector 1\n   :param min_v: Vector 2\n\n`void vec2_maxf(struct vec2 *dst, const struct vec2 *v, float val)`\n\n   Gets the maximum values between a vector's components and a floating point\n\n   :param dst: Destination\n   :param v:   Vector\n   :param val: Floating point\n\n`void vec2_max(struct vec2 *dst, const struct vec2 *v, const struct vec2 *max_v)`\n\n   Gets the maximum values between two vectors\n\n   :param dst:   Destination\n   :param v:     Vector 1\n   :param max_v: Vector 2\n\n`void vec2_abs(struct vec2 *dst, const struct vec2 *v)`\n\n   Gets the absolute values of each component\n\n   :param dst: Destination\n   :param v:   Vector","chars":2012,"tokens_est":503,"sha256":"5b037fea7379db9956d8aa838bff46ebb0e26dbc40d6e179abf6d7e72df23157"},{"id":"docs-sphinx-reference-libobs-graphics-vec2#2-component-vector~3","doc":"docs-sphinx-reference-libobs-graphics-vec2","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["2-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec2.rst#2-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec2.rst","text":"[2-Component Vector]\n`void vec2_floor(struct vec2 *dst, const struct vec2 *v)`\n\n   Gets the floor values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`void vec2_ceil(struct vec2 *dst, const struct vec2 *v)`\n\n   Gets the ceiling values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`int vec2_close(const struct vec2 *v1, const struct vec2 *v2, float epsilon)`\n\n   Compares two vectors\n\n   :param v1:      Vector 1\n   :param v2:      Vector 2\n   :param epsilon: Maximum precision for comparison\n\n`void vec2_norm(struct vec2 *dst, const struct vec2 *v)`\n\n   Normalizes a vector\n\n   :param dst: Destination\n   :param v:   Vector to normalize","chars":684,"tokens_est":171,"sha256":"439c8f76706707a0f430ef4279bcf5ba1d6fa4d6570db3654f68f4be8beaf81e"},{"id":"docs-sphinx-reference-libobs-graphics-vec3#3-component-vector","doc":"docs-sphinx-reference-libobs-graphics-vec3","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["3-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec3.rst#3-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec3.rst","text":"[3-Component Vector]\n.. code:: cpp\n\n   #include <graphics/vec3.h>\n\n`vec3`\n\n   Two component vector structure.\n\n`float vec3.x`\n\n   X component\n\n`float vec3.y`\n\n   Y component\n\n`float vec3.z`\n\n   Z component\n\n`float vec3.ptr[3]`\n\n   Unioned array of all components\n\n`void vec3_zero(struct vec3 *dst)`\n\n   Zeroes a vector\n\n   :param dst: Destination\n\n`void vec3_set(struct vec3 *dst, float x, float y)`\n\n   Sets the individual components of a 3-component vector.\n\n   :param dst: Destination\n   :param x:   X component\n   :param y:   Y component\n   :param y:   Z component\n\n`void vec3_copy(struct vec3 *dst, const struct vec3 *v)`\n\n   Copies a vector\n\n   :param dst: Destination\n   :param v:   Vector to copy\n\n`void vec3_from_vec4(struct vec3 *dst, const struct vec4 *v)`\n\n   Creates a 3-component vector from a 4-component vector\n\n   :param dst: 3-component vector destination\n   :param v:   4-component vector\n\n`void vec3_add(struct vec3 *dst, const struct vec3 *v1, const struct vec3 *v2)`\n\n   Adds two vectors\n\n   :param dst: Destination\n   :param v1:  Vector 1\n   :param v2:  Vector 2\n\n`void vec3_sub(struct vec3 *dst, const struct vec3 *v1, const struct vec3 *v2)`\n\n   Subtracts two vectors\n\n   :param dst: Destination\n   :param v1:  Vector being subtracted from\n   :param v2:  Vector being subtracted\n\n`void vec3_mul(struct vec3 *dst, const struct vec3 *v1, const struct vec3 *v2)`\n\n   Multiplies two vectors\n\n   :param dst: Destination\n   :param v1:  Vector 1\n   :param v2:  Vector 2\n\n`void vec3_div(struct vec3 *dst, const struct vec3 *v1, const struct vec3 *v2)`\n\n   Divides two vectors\n\n   :param dst: Destination\n   :param v1:  Dividend\n   :param v2:  Divisor\n\n`void vec3_addf(struct vec3 *dst, const struct vec3 *v, float f)`\n\n   Adds a floating point to all components\n\n   :param dst: Destination\n   :param dst: Vector\n   :param f:   Floating point\n\n`void vec3_subf(struct vec3 *dst, const struct vec3 *v, float f)`\n\n   Subtracts a floating point from all components","chars":1976,"tokens_est":494,"sha256":"d0cdf67113c9d0a420479374a41bd28d21079c7974e2127d4951db373074184d"},{"id":"docs-sphinx-reference-libobs-graphics-vec3#3-component-vector~2","doc":"docs-sphinx-reference-libobs-graphics-vec3","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["3-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec3.rst#3-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec3.rst","text":"[3-Component Vector]\n:param dst: Destination\n   :param v:   Vector being subtracted from\n   :param f:   Floating point being subtracted\n\n`void vec3_mulf(struct vec3 *dst, const struct vec3 *v, float f)`\n\n   Multiplies a floating point with all components\n\n   :param dst: Destination\n   :param dst: Vector\n   :param f:   Floating point\n\n`void vec3_divf(struct vec3 *dst, const struct vec3 *v, float f)`\n\n   Divides a floating point from all components\n\n   :param dst: Destination\n   :param v:   Vector (dividend)\n   :param f:   Floating point (divisor)\n\n`void vec3_neg(struct vec3 *dst, const struct vec3 *v)`\n\n   Negates a vector\n\n   :param dst: Destination\n   :param v:   Vector to negate\n\n`float vec3_dot(const struct vec3 *v1, const struct vec3 *v2)`\n\n   Performs a dot product between two vectors\n\n   :param v1: Vector 1\n   :param v2: Vector 2\n   :return:   Result of the dot product\n\n`void vec3_cross(struct vec3 *dst, const struct vec3 *v1, const struct vec3 *v2)`\n\n   Performs a cross product between two vectors\n\n   :param dst: Destination\n   :param v1:  Vector 1\n   :param v2:  Vector 2\n\n`float vec3_len(const struct vec3 *v)`\n\n   Gets the length of a vector\n\n   :param v: Vector\n   :return:  The vector's length\n\n`float vec3_dist(const struct vec3 *v1, const struct vec3 *v2)`\n\n   Gets the distance between two vectors\n\n   :param v1: Vector 1\n   :param v2: Vector 2\n   :return:   Distance between the two vectors\n\n`void vec3_minf(struct vec3 *dst, const struct vec3 *v, float val)`\n\n   Gets the minimum values between a vector's components and a floating point\n\n   :param dst: Destination\n   :param v:   Vector\n   :param val: Floating point\n\n`void vec3_min(struct vec3 *dst, const struct vec3 *v, const struct vec3 *min_v)`\n\n   Gets the minimum values between two vectors\n\n   :param dst:   Destination\n   :param v:     Vector 1\n   :param min_v: Vector 2\n\n`void vec3_maxf(struct vec3 *dst, const struct vec3 *v, float val)`\n\n   Gets the maximum values between a vector's components and a floating point","chars":2011,"tokens_est":503,"sha256":"83c0c78a27f57f78ebe88c37269e93ad64f0af1b2a98572f0716f55de04293c2"},{"id":"docs-sphinx-reference-libobs-graphics-vec3#3-component-vector~3","doc":"docs-sphinx-reference-libobs-graphics-vec3","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["3-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec3.rst#3-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec3.rst","text":"[3-Component Vector]\n:param dst: Destination\n   :param v:   Vector\n   :param val: Floating point\n\n`void vec3_max(struct vec3 *dst, const struct vec3 *v, const struct vec3 *max_v)`\n\n   Gets the maximum values between two vectors\n\n   :param dst:   Destination\n   :param v:     Vector 1\n   :param max_v: Vector 2\n\n`void vec3_abs(struct vec3 *dst, const struct vec3 *v)`\n\n   Gets the absolute values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`void vec3_floor(struct vec3 *dst, const struct vec3 *v)`\n\n   Gets the floor values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`void vec3_ceil(struct vec3 *dst, const struct vec3 *v)`\n\n   Gets the ceiling values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`int vec3_close(const struct vec3 *v1, const struct vec3 *v2, float epsilon)`\n\n   Compares two vectors\n\n   :param v1:      Vector 1\n   :param v2:      Vector 2\n   :param epsilon: Maximum precision for comparison\n\n`void vec3_norm(struct vec3 *dst, const struct vec3 *v)`\n\n   Normalizes a vector\n\n   :param dst: Destination\n   :param v:   Vector to normalize\n\n`void vec3_transform(struct vec3 *dst, const struct vec3 *v, const struct matrix4 *m)`\n\n   Transforms a vector\n\n   :param dst: Destination\n   :param v:   Vector\n   :param m:   Matrix\n\n`void vec3_rotate(struct vec3 *dst, const struct vec3 *v, const struct matrix3 *m)`\n\n   Rotates a vector\n\n   :param dst: Destination\n   :param v:   Vector\n   :param m:   Matrix\n\n`void vec3_rand(struct vec3 *dst, int positive_only)`\n\n   Generates a random vector\n\n   :param dst:           Destination\n   :param positive_only: *true* if positive only, *false* otherwise","chars":1681,"tokens_est":420,"sha256":"3bfd0830653685344c6bc852912a9c21ebc9bfb5fa4c020eb663f416fc2285da"},{"id":"docs-sphinx-reference-libobs-graphics-vec4#4-component-vector","doc":"docs-sphinx-reference-libobs-graphics-vec4","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["4-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec4.rst#4-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec4.rst","text":"[4-Component Vector]\n.. code:: cpp\n\n   #include <graphics/vec4.h>\n\n`vec4`\n\n   Two component vector structure.\n\n`float vec4.x`\n\n   X component\n\n`float vec4.y`\n\n   Y component\n\n`float vec4.z`\n\n   Z component\n\n`float vec4.w`\n\n   W component\n\n`float vec4.ptr[4]`\n\n   Unioned array of all components\n\n`void vec4_zero(struct vec4 *dst)`\n\n   Zeroes a vector\n\n   :param dst: Destination\n\n`void vec4_set(struct vec4 *dst, float x, float y, float z, float w)`\n\n   Sets the individual components of a 4-component vector.\n\n   :param dst: Destination\n   :param x:   X component\n   :param y:   Y component\n   :param z:   Z component\n   :param w:   W component\n\n`void vec4_copy(struct vec4 *dst, const struct vec4 *v)`\n\n   Copies a vector\n\n   :param dst: Destination\n   :param v:   Vector to copy\n\n`void vec4_from_vec3(struct vec4 *dst, const struct vec3 *v)`\n\n   Creates a 4-component vector from a 3-component vector\n\n   :param dst: 4-component vector destination\n   :param v:   3-component vector\n\n`void vec4_add(struct vec4 *dst, const struct vec4 *v1, const struct vec4 *v2)`\n\n   Adds two vectors\n\n   :param dst: Destination\n   :param v1:  Vector 1\n   :param v2:  Vector 2\n\n`void vec4_sub(struct vec4 *dst, const struct vec4 *v1, const struct vec4 *v2)`\n\n   Subtracts two vectors\n\n   :param dst: Destination\n   :param v1:  Vector being subtracted from\n   :param v2:  Vector being subtracted\n\n`void vec4_mul(struct vec4 *dst, const struct vec4 *v1, const struct vec4 *v2)`\n\n   Multiplies two vectors\n\n   :param dst: Destination\n   :param v1:  Vector 1\n   :param v2:  Vector 2\n\n`void vec4_div(struct vec4 *dst, const struct vec4 *v1, const struct vec4 *v2)`\n\n   Divides two vectors\n\n   :param dst: Destination\n   :param v1:  Dividend\n   :param v2:  Divisor\n\n`void vec4_addf(struct vec4 *dst, const struct vec4 *v, float f)`\n\n   Adds a floating point to all components\n\n   :param dst: Destination\n   :param dst: Vector\n   :param f:   Floating point\n\n`void vec4_subf(struct vec4 *dst, const struct vec4 *v, float f)`","chars":2002,"tokens_est":500,"sha256":"c5e4b1d6e526c01e1635c289a06e4eb2f56852da114ee423b2e9c6bc3413054f"},{"id":"docs-sphinx-reference-libobs-graphics-vec4#4-component-vector~2","doc":"docs-sphinx-reference-libobs-graphics-vec4","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["4-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec4.rst#4-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec4.rst","text":"[4-Component Vector]\nSubtracts a floating point from all components\n\n   :param dst: Destination\n   :param v:   Vector being subtracted from\n   :param f:   Floating point being subtracted\n\n`void vec4_mulf(struct vec4 *dst, const struct vec4 *v, float f)`\n\n   Multiplies a floating point with all components\n\n   :param dst: Destination\n   :param dst: Vector\n   :param f:   Floating point\n\n`void vec4_divf(struct vec4 *dst, const struct vec4 *v, float f)`\n\n   Divides a floating point from all components\n\n   :param dst: Destination\n   :param v:   Vector (dividend)\n   :param f:   Floating point (divisor)\n\n`void vec4_neg(struct vec4 *dst, const struct vec4 *v)`\n\n   Negates a vector\n\n   :param dst: Destination\n   :param v:   Vector to negate\n\n`float vec4_dot(const struct vec4 *v1, const struct vec4 *v2)`\n\n   Performs a dot product between two vectors\n\n   :param v1: Vector 1\n   :param v2: Vector 2\n   :return:   Result of the dot product\n\n`float vec4_len(const struct vec4 *v)`\n\n   Gets the length of a vector\n\n   :param v: Vector\n   :return:  The vector's length\n\n`float vec4_dist(const struct vec4 *v1, const struct vec4 *v2)`\n\n   Gets the distance between two vectors\n\n   :param v1: Vector 1\n   :param v2: Vector 2\n   :return:   Distance between the two vectors\n\n`void vec4_minf(struct vec4 *dst, const struct vec4 *v, float val)`\n\n   Gets the minimum values between a vector's components and a floating point\n\n   :param dst: Destination\n   :param v:   Vector\n   :param val: Floating point\n\n`void vec4_min(struct vec4 *dst, const struct vec4 *v, const struct vec4 *min_v)`\n\n   Gets the minimum values between two vectors\n\n   :param dst:   Destination\n   :param v:     Vector 1\n   :param min_v: Vector 2\n\n`void vec4_maxf(struct vec4 *dst, const struct vec4 *v, float val)`\n\n   Gets the maximum values between a vector's components and a floating point\n\n   :param dst: Destination\n   :param v:   Vector\n   :param val: Floating point\n\n`void vec4_max(struct vec4 *dst, const struct vec4 *v, const struct vec4 *max_v)`","chars":2017,"tokens_est":504,"sha256":"f54a7b85bed548fe9064b03402c5f7562a7818c92836377873e50430acaa9765"},{"id":"docs-sphinx-reference-libobs-graphics-vec4#4-component-vector~3","doc":"docs-sphinx-reference-libobs-graphics-vec4","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["4-Component Vector"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec4.rst#4-component-vector","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics-vec4.rst","text":"[4-Component Vector]\nGets the maximum values between two vectors\n\n   :param dst:   Destination\n   :param v:     Vector 1\n   :param max_v: Vector 2\n\n`void vec4_abs(struct vec4 *dst, const struct vec4 *v)`\n\n   Gets the absolute values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`void vec4_floor(struct vec4 *dst, const struct vec4 *v)`\n\n   Gets the floor values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`void vec4_ceil(struct vec4 *dst, const struct vec4 *v)`\n\n   Gets the ceiling values of each component\n\n   :param dst: Destination\n   :param v:   Vector\n\n`int vec4_close(const struct vec4 *v1, const struct vec4 *v2, float epsilon)`\n\n   Compares two vectors\n\n   :param v1:      Vector 1\n   :param v2:      Vector 2\n   :param epsilon: Maximum precision for comparison\n\n`void vec4_norm(struct vec4 *dst, const struct vec4 *v)`\n\n   Normalizes a vector\n\n   :param dst: Destination\n   :param v:   Vector to normalize\n\n`void vec4_transform(struct vec4 *dst, const struct vec4 *v, const struct matrix4 *m)`\n\n   Transforms a vector\n\n   :param dst: Destination\n   :param v:   Vector\n   :param m:   Matrix","chars":1149,"tokens_est":287,"sha256":"44c74cf4e8b2319163886efd7cab76349b896045a9428d6d7057b34edbc5b09f"},{"id":"docs-sphinx-reference-libobs-graphics#graphics-api-reference-libobs-graphics","doc":"docs-sphinx-reference-libobs-graphics","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Graphics API Reference (libobs/graphics)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics.rst#graphics-api-reference-libobsgraphics","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-graphics.rst","text":"[Graphics API Reference (libobs/graphics)]\n.. toctree::\n   :maxdepth: 2\n\n   reference-libobs-graphics-effects\n   reference-libobs-graphics-vec2\n   reference-libobs-graphics-vec3\n   reference-libobs-graphics-vec4\n   reference-libobs-graphics-quat\n   reference-libobs-graphics-matrix4\n   reference-libobs-graphics-math\n   reference-libobs-graphics-image-file\n   reference-libobs-graphics-axisang\n   reference-libobs-graphics-graphics","chars":431,"tokens_est":108,"sha256":"69aeb340155b40684a67dae445ec60a1c8c69ca6118602c1d05d9c96dfe90d2e"},{"id":"docs-sphinx-reference-libobs-media-io#media-i-o-api-reference-libobs-media-io","doc":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Media I/O API Reference (libobs/media-io)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst#media-io-api-reference-libobsmedia-io","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst","text":"[Media I/O API Reference (libobs/media-io)]\n.. code:: cpp\n\n   #include <obs.h>\n\n## Video Handler\n`video_t`\n\n   Video output handler object\n\n`video_format`\n\n   Video format.  Can be one of the following values:\n\n   - VIDEO_FORMAT_I420\n   - VIDEO_FORMAT_NV12\n\n   - VIDEO_FORMAT_YVYU\n   - VIDEO_FORMAT_YUY2\n   - VIDEO_FORMAT_UYVY\n\n   - VIDEO_FORMAT_RGBA\n   - VIDEO_FORMAT_BGRA\n   - VIDEO_FORMAT_BGRX\n   - VIDEO_FORMAT_Y800\n\n   - VIDEO_FORMAT_I444\n\n   - VIDEO_FORMAT_BGR3\n\n   - VIDEO_FORMAT_I422\n\n   - VIDEO_FORMAT_I40A\n\n   - VIDEO_FORMAT_I42A\n\n   - VIDEO_FORMAT_YUVA\n\n   - VIDEO_FORMAT_AYUV\n\n   - VIDEO_FORMAT_I010\n   - VIDEO_FORMAT_P010\n\n   - VIDEO_FORMAT_I210\n\n   - VIDEO_FORMAT_I412\n\n   - VIDEO_FORMAT_YA2L\n\n   - VIDEO_FORMAT_P216\n\n   - VIDEO_FORMAT_P416\n\n   - VIDEO_FORMAT_V210\n\n   - VIDEO_FORMAT_R10L\n\n`video_trc`\n\n   Transfer characteristics.  Can be one of the following values:\n\n   - VIDEO_TRC_DEFAULT - sRGB TRC for SDR, PQ TRC for HDR\n   - VIDEO_TRC_SRGB    - sRGB TRC\n   - VIDEO_TRC_PQ      - PQ\n   - VIDEO_TRC_HLG     - HLG\n\n`video_colorspace`\n\n   YUV color space.  Can be one of the following values:\n\n   - VIDEO_CS_DEFAULT  - Equivalent to VIDEO_CS_709\n   - VIDEO_CS_601      - Rec. 601 color space\n   - VIDEO_CS_709      - Rec. 709 color space\n   - VIDEO_CS_SRGB     - sRGB color space\n   - VIDEO_CS_2100_PQ  - Rec. 2100 color space, PQ transfer\n   - VIDEO_CS_2100_HLG - Rec. 2100 color space, HLG transfer\n\n`video_range_type`\n\n   YUV color range.\n\n   - VIDEO_RANGE_DEFAULT - Equivalent to VIDEO_RANGE_PARTIAL\n   - VIDEO_RANGE_PARTIAL - Partial range\n   - VIDEO_RANGE_FULL    - Full range\n\n`video_data`\n\n   Video frame structure.\n\n`uint8_t           *video_data.data[MAX_AV_PLANES]`\n\n`uint32_t          video_data.linesize[MAX_AV_PLANES]`\n\n`uint64_t          video_data.timestamp`\n\n`video_output_info`\n\n   Video output handler information\n\n`const char        *video_output_info.name`\n\n`enum video_format video_output_info.format`\n\n`uint32_t          video_output_info.fps_num`\n\n`uint32_t          video_output_info.fps_den`","chars":2035,"tokens_est":509,"sha256":"817fc01cd7e8a2322db11f4ae73317e32bc107e47444bf42df324651d9c75626"},{"id":"docs-sphinx-reference-libobs-media-io#media-i-o-api-reference-libobs-media-io~2","doc":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Media I/O API Reference (libobs/media-io)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst#media-io-api-reference-libobsmedia-io","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst","text":"[Media I/O API Reference (libobs/media-io)]\n`uint32_t          video_output_info.width`\n\n`uint32_t          video_output_info.height`\n\n`size_t            video_output_info.cache_size`\n\n`enum video_colorspace video_output_info.colorspace`\n\n`enum video_range_type video_output_info.range`\n\n`enum video_format video_format_from_fourcc(uint32_t fourcc)`\n\n   Converts a fourcc value to a video format.\n\n   :param forcecc: Fourcc value\n   :return:        Video format\n\n`bool video_format_get_parameters(enum video_colorspace color_space, enum video_range_type range, float matrix[16], float min_range[3], float max_range[3])`\n\n   Converts a color space/range to matrix/min/max values.\n\n   :param color_space: Color space to convert\n   :param range:       Color range to convert\n   :param matrix:      Pointer to the matrix\n   :param min_range:   Pointer to get the minimum range value\n   :param max_range:   Pointer to get the maximum range value\n\n`bool video_format_get_parameters_for_format(enum video_colorspace color_space, enum video_range_type range, enum video_format format, float matrix[16], float min_range[3], float max_range[3])`\n\n   Converts a color space/range to matrix/min/max values for a given video format.\n\n   :param color_space: Color space to convert\n   :param range:       Color range to convert\n   :param format:      Video format\n   :param matrix:      Pointer to the matrix\n   :param min_range:   Pointer to get the minimum range value\n   :param max_range:   Pointer to get the maximum range value\n\n`bool video_output_connect(video_t *video, const struct video_scale_info *conversion, void (*callback)(void *param, struct video_data *frame), void *param)`\n\n   Connects a raw video callback to the video output handler.\n\n   :param video:    Video output handler object\n   :param callback: Callback to receive video data\n   :param param:    Private data to pass to the callback\n\n`void video_output_disconnect(video_t *video, void (*callback)(void *param, struct video_data *frame), void *param)`","chars":2013,"tokens_est":503,"sha256":"9c470ca64acf428486ead8d8076fcbe849f7b695fbde79771a65430ff17d2287"},{"id":"docs-sphinx-reference-libobs-media-io#media-i-o-api-reference-libobs-media-io~3","doc":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Media I/O API Reference (libobs/media-io)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst#media-io-api-reference-libobsmedia-io","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst","text":"[Media I/O API Reference (libobs/media-io)]\nDisconnects a raw video callback from the video output handler.\n\n   :param video:    Video output handler object\n   :param callback: Callback\n   :param param:    Private data\n\n`bool video_output_disconnect2(video_t *video, void (*callback)(void *param, struct video_data *frame), void *param)`\n\n   Disconnects a raw video callback from the video output handler.\n\n   :param video:    Video output handler object\n   :param callback: Callback\n   :param param:    Private data\n   :return:         *true* if callback was removed, *false* otherwise (e.g., already removed)\n\n`const struct video_output_info *video_output_get_info(const video_t *video)`\n\n   Gets the full video information of the video output handler.\n\n   :param video: Video output handler object\n   :return:      Video output info structure pointer\n\n`uint64_t video_output_get_frame_time(const video_t *video)`\n\n   Gets the frame interval of the video output handler.\n\n   :param video: Video output handler object\n   :return:      Video frame interval in nanoseconds\n\n`enum video_format video_output_get_format(const video_t *video)`\n\n   Gets the video format of the video output handler.\n\n   :param video: Video output handler object\n   :return:      Video format\n\n`uint32_t video_output_get_width(const video_t *video)`\n\n`uint32_t video_output_get_height(const video_t *video)`\n\n   Gets the width/height of the video output handler.\n\n   :param video: Video output handler object\n   :return:      Width/height\n\n`double video_output_get_frame_rate(const video_t *video)`\n\n   Gets the frame rate (as a floating point) of the video output\n   handler.\n\n   :param video: Video output handler object\n   :return:      Frame rate\n\n`uint32_t video_output_get_skipped_frames(const video_t *video)`\n\n   Gets the skipped frame count of the video output handler.\n\n   :param video: Video output handler object\n   :return:      Skipped frame count\n\n`uint32_t video_output_get_total_frames(const video_t *video)`\n\n   Gets the total frames processed of the video output handler.\n\n   :param video: Video output handler object\n   :return:      Total frames processed","chars":2153,"tokens_est":538,"sha256":"f2cb763ca8f141d1735f48d11226c182faa41289c09182dde9fd0cff0a876f10"},{"id":"docs-sphinx-reference-libobs-media-io#media-i-o-api-reference-libobs-media-io-audio-handler","doc":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Media I/O API Reference (libobs/media-io)","Audio Handler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst#audio-handler","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst","text":"[Media I/O API Reference (libobs/media-io) \u203a Audio Handler]\n`audio_t`\n\n`audio_format`\n\n   Audio format.  Can be one of the following values:\n\n   - AUDIO_FORMAT_UNKNOWN\n   - AUDIO_FORMAT_U8BIT\n   - AUDIO_FORMAT_16BIT\n   - AUDIO_FORMAT_32BIT\n   - AUDIO_FORMAT_FLOAT\n   - AUDIO_FORMAT_U8BIT_PLANAR\n   - AUDIO_FORMAT_16BIT_PLANAR\n   - AUDIO_FORMAT_32BIT_PLANAR\n   - AUDIO_FORMAT_FLOAT_PLANAR\n\n`speaker_layout`\n\n   Speaker layout.  Can be one of the following values:\n\n   - SPEAKERS_UNKNOWN\n   - SPEAKERS_MONO\n   - SPEAKERS_STEREO\n   - SPEAKERS_2POINT1\n   - SPEAKERS_4POINT0\n   - SPEAKERS_4POINT1\n   - SPEAKERS_5POINT1\n   - SPEAKERS_7POINT1\n\n`audio_data`\n\n   Audio data structure.\n\n`uint8_t             *audio_data.data[MAX_AV_PLANES]`\n\n`uint32_t            audio_data.frames`\n\n`uint64_t            audio_data.timestamp`\n\n`audio_output_data`\n\n`float               *audio_output_data.data[MAX_AUDIO_CHANNELS]`\n\n`audio_output_info`\n\n`const char             *audio_output_info.name`\n\n`uint32_t               audio_output_info.samples_per_sec`\n\n`enum audio_format      audio_output_info.format`\n\n`enum speaker_layout    audio_output_info.speakers`\n\n`audio_input_callback_t audio_output_info.input_callback`\n\n`void                   *audio_output_info.input_param`\n\n`audio_convert_info`\n\n`uint32_t            audio_convert_info.samples_per_sec`\n\n`enum audio_format   audio_convert_info.format`\n\n`enum speaker_layout audio_convert_info.speakers`\n\n`bool (*audio_input_callback_t)(void *param, uint64_t start_ts, uint64_t end_ts, uint64_t *new_ts, uint32_t active_mixers, struct audio_output_data *mixes)`\n\n   Audio input callback (typically used internally).\n\n`uint32_t get_audio_channels(enum speaker_layout speakers)`\n\n   Converts a speaker layout to its audio channel count.\n\n   :param speakers: Speaker layout enumeration\n   :return:         Channel count\n\n`size_t get_audio_bytes_per_channel(enum audio_format format)`\n\n   Gets the audio bytes per channel for a specific audio format.\n\n   :param format: Audio format\n   :return:       Bytes per channel","chars":2045,"tokens_est":511,"sha256":"8ad657f714a3e528d3d2050917d47da90477b76e71e91dbc3b5e48605822d072"},{"id":"docs-sphinx-reference-libobs-media-io#media-i-o-api-reference-libobs-media-io-audio-handler~2","doc":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Media I/O API Reference (libobs/media-io)","Audio Handler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst#audio-handler","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst","text":"[Media I/O API Reference (libobs/media-io) \u203a Audio Handler]\n`bool is_audio_planar(enum audio_format format)`\n\n   Returns whether the audio format is a planar format.\n\n   :param format: Audio format\n   :return:       *true* if audio is planar, *false* otherwise\n\n`size_t get_audio_planes(enum audio_format format, enum speaker_layout speakers)`\n\n   Gets the number of audio planes for a specific audio format and\n   speaker layout.\n\n   :param format:   Audio format\n   :param speakers: Speaker layout\n   :return:         Number of audio planes\n\n`size_t get_audio_size(enum audio_format format, enum speaker_layout speakers, uint32_t frames)`\n\n   Gets the audio block size for a specific frame out with the given\n   format and speaker layout.\n\n   :param format:   Audio format\n   :param speakers: Speaker layout\n   :param frames:   Audio frame count\n   :return:         Audio block size\n\n`uint64_t audio_frames_to_ns(size_t sample_rate, uint64_t frames)`\n\n   Helper function to convert a specific number of audio frames to\n   nanoseconds based upon its sample rate.\n\n   :param sample_rate: Sample rate\n   :param frames:      Frame count\n   :return:            Nanoseconds\n\n`uint64_t ns_to_audio_frames(size_t sample_rate, uint64_t ns)`\n\n   Helper function to convert a specific number of nanoseconds to audio\n   frame count based upon its sample rate.\n\n   :param sample_rate: Sample rate\n   :param ns:          Nanoseconds\n   :return:            Frame count\n\n`void (*audio_output_callback_t)(void *param, size_t mix_idx, struct audio_data *data)`\n\n   Audio output callback.  Typically used internally.\n\n`bool audio_output_connect(audio_t *audio, size_t mix_idx, const struct audio_convert_info *conversion, audio_output_callback_t callback, void *param)`\n\n   Connects a raw audio callback to the audio output handler.\n   Optionally allows audio conversion if necessary.","chars":1867,"tokens_est":467,"sha256":"84269bff98776d227ccd9bc482b204f902251d136bfb75e61f1911655fcb87f5"},{"id":"docs-sphinx-reference-libobs-media-io#media-i-o-api-reference-libobs-media-io-audio-handler~3","doc":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Media I/O API Reference (libobs/media-io)","Audio Handler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst#audio-handler","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst","text":"[Media I/O API Reference (libobs/media-io) \u203a Audio Handler]\n:param audio:      Audio output handler object\n   :param mix_idx:    Mix index to get raw audio from\n   :param conversion: Audio conversion information, or *NULL* for no\n                      conversion\n   :param callback:   Raw audio callback\n   :param param:      Private data to pass to the callback\n\n`void audio_output_disconnect(audio_t *audio, size_t mix_idx, audio_output_callback_t callback, void *param)`\n\n   Disconnects a raw audio callback from the audio output handler.\n\n   :param audio:      Audio output handler object\n   :param mix_idx:    Mix index to get raw audio from\n   :param callback:   Raw audio callback\n   :param param:      Private data to pass to the callback\n\n`size_t audio_output_get_block_size(const audio_t *audio)`\n\n   Gets the audio block size of an audio output handler.\n\n   :param audio: Audio output handler object\n   :return:      Audio block size\n\n`size_t audio_output_get_planes(const audio_t *audio)`\n\n   Gets the plane count of an audio output handler.\n\n   :param audio: Audio output handler object\n   :return:      Audio plane count\n\n`size_t audio_output_get_channels(const audio_t *audio)`\n\n   Gets the channel count of an audio output handler.\n\n   :param audio: Audio output handler object\n   :return:      Audio channel count\n\n`uint32_t audio_output_get_sample_rate(const audio_t *audio)`\n\n   Gets the sample rate of an audio output handler.\n\n   :param audio: Audio output handler object\n   :return:      Audio sample rate\n\n`const struct audio_output_info *audio_output_get_info(const audio_t *audio)`\n\n   Gets all audio information for an audio output handler.\n\n   :param audio: Audio output handler object\n   :return:      Pointer to audio output information structure","chars":1775,"tokens_est":444,"sha256":"f16b19cd94a03540834b9d72b6e5d5a329476f1cfdbc35cd8e37afa891350c0e"},{"id":"docs-sphinx-reference-libobs-media-io#media-i-o-api-reference-libobs-media-io-resampler","doc":"docs-sphinx-reference-libobs-media-io","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Media I/O API Reference (libobs/media-io)","Resampler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst#resampler","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-media-io.rst","text":"[Media I/O API Reference (libobs/media-io) \u203a Resampler]\nFFmpeg wrapper to resample audio.\n\n`struct audio_resampler audio_resampler_t`\n\n`resample_info`\n\n`uint32_t            resample_info.samples_per_sec`\n\n`enum audio_format   resample_info.format`\n\n`enum speaker_layout resample_info.speakers`\n\n`audio_resampler_t *audio_resampler_create(const struct resample_info *dst, const struct resample_info *src)`\n\n   Creates an audio resampler.\n\n   :param dst: Destination audio information\n   :param src: Source audio information\n   :return:    Audio resampler object\n\n`void audio_resampler_destroy(audio_resampler_t *resampler)`\n\n   Destroys an audio resampler.\n\n   :param resampler: Audio resampler object\n\n`void audio_resampler_set_compensation_error(audio_resampler_t *resampler, int64_t error_ns)`\n\n   Resamples slightly to compensate for an input whose clock drifts\n   against the system clock, by up to 1000 ppm. Call it for every packet\n   with how far the samples delivered so far run ahead of (positive) or\n   behind (negative) their timestamps; errors within 10 ms are ignored.\n\n   :param resampler: Audio resampler object\n   :param error_ns:  Current error in nanoseconds\n\n`bool audio_resampler_resample(audio_resampler_t *resampler, uint8_t *output[], uint32_t *out_frames, uint64_t *ts_offset, const uint8_t *const input[], uint32_t in_frames)`\n\n   Resamples audio frames.\n\n   :param resampler:   Audio resampler object\n   :param output:      Pointer to receive converted audio frames\n   :param out_frames:  Pointer to receive converted audio frame count\n   :param ts_offset:   Pointer to receive timestamp offset (in\n                       nanoseconds)\n   :param input: Input frames to convert\n   :param in_frames:   Input frame count","chars":1742,"tokens_est":436,"sha256":"2572a9a9d9554f9f91054e39830475096a7504ed2c82e35c82bb387d6122819a"},{"id":"docs-sphinx-reference-libobs-util-base#logging","doc":"docs-sphinx-reference-libobs-util-base","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Logging"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-base.rst#logging","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-base.rst","text":"[Logging]\nFunctions for logging and getting log data.\n\n.. code:: cpp\n\n   #include <util/base.h>\n\n## Logging Levels\n**LOG_ERROR** = 100\n\n   Use if there's a problem that can potentially affect the program,\n   but isn't enough to require termination of the program.\n\n   Use in creation functions and core subsystem functions.  Places that\n   should definitely not fail.\n\n**LOG_WARNING** = 200\n\n   Use if a problem occurs that doesn't affect the program and is\n   recoverable.\n\n   Use in places where failure isn't entirely unexpected, and can\n   be handled safely.\n\n**LOG_INFO** = 300\n\n   Informative message to be displayed in the log.\n\n**LOG_DEBUG** = 400\n\n   Debug message to be used mostly by and for developers.","chars":714,"tokens_est":178,"sha256":"9280df08d6f69dde8b0854ade93101b168579442b6a7bc3b63d44183de44984d"},{"id":"docs-sphinx-reference-libobs-util-base#logging-logging-functions","doc":"docs-sphinx-reference-libobs-util-base","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Logging","Logging Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-base.rst#logging-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-base.rst","text":"[Logging \u203a Logging Functions]\n`void (*log_handler_t)(int lvl, const char *msg, va_list args, void *p)`\n\n   Logging callback.\n\n`void base_set_log_handler(log_handler_t handler, void *param)`\n              void base_get_log_handler(log_handler_t *handler, void **param)\n\n   Sets/gets the current log handler.\n\n`void base_set_crash_handler(void (*handler)(const char *, va_list, void *), void *param)`\n\n   Sets the current crash handler.\n   This may only be set once.\n\n`void blogva(int log_level, const char *format, va_list args)`\n\n   Logging function (using a va_list).\n\n`void blog(int log_level, const char *format, ...)`\n\n   Logging function.\n\n`void bcrash(const char *format, ...)`\n\n   Crash function.","chars":703,"tokens_est":176,"sha256":"5db5d97ea392b82f5926749fcd9ccaf99f24a8bab62942c88322212f083b766a"},{"id":"docs-sphinx-reference-libobs-util-bmem#memory-management","doc":"docs-sphinx-reference-libobs-util-bmem","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Memory Management"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-bmem.rst#memory-management","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-bmem.rst","text":"[Memory Management]\nVarious functions and helpers used for memory management.\n\n.. code:: cpp\n\n   #include <util/bmem.h>\n\n## Memory Functions\n`void *bmalloc(size_t size)`\n\n   Allocates memory and increases the memory leak counter.\n\n`void *brealloc(void *ptr, size_t size)`\n\n   Reallocates memory.  Use only with memory that's been allocated by\n   `bmalloc()`.\n\n`void bfree(void *ptr)`\n\n   Frees memory allocated with `bmalloc()`.\n\n`long bnum_allocs(void)`\n\n   Returns current number of active allocations.\n\n`void *bmemdup(const void *ptr, size_t size)`\n\n   Duplicates memory.\n\n`void *bzalloc(size_t size)`\n\n   Inline function that allocates zeroed memory.\n\n`char *bstrdup_n(const char *str, size_t n)`\n              wchar_t *bwstrdup_n(const wchar_t *str, size_t n)\n\n   Duplicates a string of *n* bytes and automatically zero-terminates\n   it.\n\n`char *bstrdup(const char *str)`\n              wchar_t *bwstrdup(const wchar_t *str)\n\n   Duplicates a string.","chars":953,"tokens_est":238,"sha256":"a1777c7e25705cf5071209760aa9ff39ad79524147defa312b15bc8151fe3cad"},{"id":"docs-sphinx-reference-libobs-util-config-file#config-files","doc":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Config Files"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst#config-files","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst","text":"[Config Files]\nThe configuration file functions are a simple implementation of the INI\nfile format, with the addition of default values.\n\n.. code:: cpp\n\n   #include <util/config-file.h>\n\n`config_t`\n\n## Config File Functions\n`config_t *config_create(const char *file)`\n\n   Creates a new configuration object and associates it with the\n   specified file name.\n\n   :param file: Path to the new configuration file\n   :return:     A new configuration file object\n\n`int config_open(config_t **config, const char *file, enum config_open_type open_type)`\n\n   Opens a configuration file.\n\n   :param config:    Pointer that receives a pointer to a new configuration\n                     file object (if successful)\n   :param file:      Path to the configuration file\n   :param open_type: Can be one of the following values:\n\n                     - CONFIG_OPEN_EXISTING - Fail if the file doesn't\n                       exist.\n                     - CONFIG_OPEN_ALWAYS - Try to open the file.  If\n                       the file doesn't exist, create it.\n\n   :return:          Can return the following values:\n\n                     - CONFIG_SUCCESS - Successful\n                     - CONFIG_FILENOTFOUND - File not found\n                     - CONFIG_ERROR - Generic error\n\n`int config_open_string(config_t **config, const char *str)`\n\n   Opens configuration data via a string rather than a file.\n\n   :param config:    Pointer that receives a pointer to a new configuration\n                     file object (if successful)\n   :param str:       Configuration string\n\n   :return:          Can return the following values:\n\n                     - CONFIG_SUCCESS - Successful\n                     - CONFIG_FILENOTFOUND - File not found\n                     - CONFIG_ERROR - Generic error\n\n`int config_save(config_t *config)`\n\n   Saves configuration data to a file (if associated with a file).\n\n   :param config:    Configuration object\n\n   :return:          Can return the following values:","chars":1976,"tokens_est":494,"sha256":"44ef2bd78a6a44f34d9b521e0f44e4c5a36de501fbaf468d9584fd546ae9d2c6"},{"id":"docs-sphinx-reference-libobs-util-config-file#config-files~2","doc":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Config Files"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst#config-files","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst","text":"[Config Files]\n- CONFIG_SUCCESS - Successful\n                     - CONFIG_FILENOTFOUND - File not found\n                     - CONFIG_ERROR - Generic error\n\n`int config_save_safe(config_t *config, const char *temp_ext, const char *backup_ext)`\n\n   Saves configuration data and minimizes overwrite corruption risk.\n   Saves the file with the file name\n\n   :param config:     Configuration object\n   :param temp_ext:   Temporary extension for the new file\n   :param backup_ext: Backup extension for the old file.  Can be *NULL*\n                      if no backup is desired.\n\n   :return:           Can return the following values:\n\n                      - CONFIG_SUCCESS - Successful\n                      - CONFIG_FILENOTFOUND - File not found\n                      - CONFIG_ERROR - Generic error\n\n`void config_close(config_t *config)`\n\n   Closes the configuration object.\n\n   :param config:     Configuration object\n\n`size_t config_num_sections(config_t *config)`\n\n   Returns the number of sections.\n\n   :param config:     Configuration object\n   :return:           Number of configuration sections\n\n`const char *config_get_section(config_t *config, size_t idx)`\n\n   Returns a section name based upon its index.\n\n   :param config:     Configuration object\n   :param idx:        Index of the section\n   :return:           The section's name","chars":1340,"tokens_est":335,"sha256":"00e032922210fff35bbf05fd1ccb927e9971fc9d8e549f510709927a8edcd58e"},{"id":"docs-sphinx-reference-libobs-util-config-file#config-files-set-get-functions","doc":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Config Files","Set/Get Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst#setget-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst","text":"[Config Files \u203a Set/Get Functions]\n`void config_set_string(config_t *config, const char *section, const char *name, const char *value)`\n\n   Sets a string value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The string value\n\n`void config_set_int(config_t *config, const char *section, const char *name, int64_t value)`\n\n   Sets an integer value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The integer value\n\n`void config_set_uint(config_t *config, const char *section, const char *name, uint64_t value)`\n\n   Sets an unsigned integer value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The unsigned integer value\n\n`void config_set_bool(config_t *config, const char *section, const char *name, bool value)`\n\n   Sets a boolean value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The boolean value\n\n`void config_set_double(config_t *config, const char *section, const char *name, double value)`\n\n   Sets a floating point value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The floating point value\n\n`const char *config_get_string(config_t *config, const char *section, const char *name)`\n\n   Gets a string value.  If the value is not set, it will use the\n   default value.  If there is no default value, it will return *NULL*.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The string value\n\n`int64_t config_get_int(config_t *config, const char *section, const char *name)`","chars":1998,"tokens_est":500,"sha256":"cffdc830bcbb1fe432e0217e20f487028b41ac3839b8031ebc1498fa4f0f5967"},{"id":"docs-sphinx-reference-libobs-util-config-file#config-files-set-get-functions~2","doc":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Config Files","Set/Get Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst#setget-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst","text":"[Config Files \u203a Set/Get Functions]\nGets an integer value.  If the value is not set, it will use the\n   default value.  If there is no default value, it will return 0.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The integer value\n\n`uint64_t config_get_uint(config_t *config, const char *section, const char *name)`\n\n   Gets an unsigned integer value.  If the value is not set, it will use\n   the default value.  If there is no default value, it will return 0.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The unsigned integer value\n\n`bool config_get_bool(config_t *config, const char *section, const char *name)`\n\n   Gets a boolean value.  If the value is not set, it will use the\n   default value.  If there is no default value, it will return false.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The boolean value\n\n`double config_get_double(config_t *config, const char *section, const char *name)`\n\n   Gets a floating point value.  If the value is not set, it will use\n   the default value.  If there is no default value, it will return 0.0.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The floating point value\n\n`bool config_remove_value(config_t *config, const char *section, const char *name)`\n\n   Removes a value.  Does not remove the default value if any.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name","chars":1810,"tokens_est":452,"sha256":"0580d6948707862bf6ed81519844cb3dcf1eb24cf2c3277244c1fd699c712ce9"},{"id":"docs-sphinx-reference-libobs-util-config-file#config-files-default-value-functions","doc":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Config Files","Default Value Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst#default-value-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst","text":"[Config Files \u203a Default Value Functions]\n`int config_open_defaults(config_t *config, const char *file)`\n\n   Opens a file and uses it for default values.\n\n   :param config:     Configuration object\n   :param file:       The file to open for default values\n\n`void config_set_default_string(config_t *config, const char *section, const char *name, const char *value)`\n\n   Sets a default string value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The string value\n\n`void config_set_default_int(config_t *config, const char *section, const char *name, int64_t value)`\n\n   Sets a default integer value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The integer value\n\n`void config_set_default_uint(config_t *config, const char *section, const char *name, uint64_t value)`\n\n   Sets a default unsigned integer value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The unsigned integer value\n\n`void config_set_default_bool(config_t *config, const char *section, const char *name, bool value)`\n\n   Sets a default boolean value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The boolean value\n\n`void config_set_default_double(config_t *config, const char *section, const char *name, double value)`\n\n   Sets a default floating point value.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :param value:      The floating point value\n\n`const char *config_get_default_string(config_t *config, const char *section, const char *name)`\n\n   Gets a default string value.  If there is no default value, it will return *NULL*.","chars":2003,"tokens_est":501,"sha256":"890de98627e0b93b534c03f0e759b8addcf756102726ca526c2d68870669fb02"},{"id":"docs-sphinx-reference-libobs-util-config-file#config-files-default-value-functions~2","doc":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Config Files","Default Value Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst#default-value-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst","text":"[Config Files \u203a Default Value Functions]\n:param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The default string value\n\n`int64_t config_get_default_int(config_t *config, const char *section, const char *name)`\n\n   Gets a default integer value.  If there is no default value, it will return 0.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The integer value\n\n`uint64_t config_get_default_uint(config_t *config, const char *section, const char *name)`\n\n   Gets a default unsigned integer value.  If there is no default value, it will return 0.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The unsigned integer value\n\n`bool config_get_default_bool(config_t *config, const char *section, const char *name)`\n\n   Gets a default boolean value.  If there is no default value, it will return false.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The boolean value\n\n`double config_get_default_double(config_t *config, const char *section, const char *name)`\n\n   Gets a default floating point value.  If there is no default value, it will return 0.0.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           The floating point value\n\n`bool config_has_user_value(config_t *config, const char *section, const char *name)`\n\n  Returns whether a value is user-set (true) or default/none (false).\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           Whether a user value exists","chars":1955,"tokens_est":489,"sha256":"71d34a8cc7f63aa336cc543c6a6221e96c17e23ee82d366b3433f1ade4691e6e"},{"id":"docs-sphinx-reference-libobs-util-config-file#config-files-default-value-functions~3","doc":"docs-sphinx-reference-libobs-util-config-file","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Config Files","Default Value Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst#default-value-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-config-file.rst","text":"[Config Files \u203a Default Value Functions]\n`bool config_has_default_value(config_t *config, const char *section, const char *name)`\n\n  Returns whether a value has a default set.\n\n   :param config:     Configuration object\n   :param section:    The section of the value\n   :param name:       The value name\n   :return:           Whether a user value exists","chars":353,"tokens_est":88,"sha256":"d1ff4340271d51bebe5861121d2746d81fa817d4752a465026452a2e29ecc1a3"},{"id":"docs-sphinx-reference-libobs-util-darray#dynamic-arrays","doc":"docs-sphinx-reference-libobs-util-darray","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Arrays"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst#dynamic-arrays","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst","text":"[Dynamic Arrays]\nDynamically resizing arrays (a C equivalent to std::vector).\n\n.. code:: cpp\n\n   #include <util/darray.h>\n\n`darray`\n\n   The base dynamic array structure.\n\n`DARRAY(type)`\n\n   Macro for a dynamic array based upon an actual type.  Use this with\n   da_* macros.\n\n`void *darray.array`\n\n   The array pointer.\n\n`size_t darray.num`\n\n   The number of items within the array.\n\n`size_t darray.capacity`\n\n   The capacity of the array.","chars":438,"tokens_est":110,"sha256":"a650fc1f0ab49b9ca78b7fc3ec2d872a5dee0de8b26e508515435d59b100366a"},{"id":"docs-sphinx-reference-libobs-util-darray#dynamic-arrays-dynamic-array-macros","doc":"docs-sphinx-reference-libobs-util-darray","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Arrays","Dynamic Array Macros"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst#dynamic-array-macros","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst","text":"[Dynamic Arrays \u203a Dynamic Array Macros]\nThese macro functions are used with variables created with the\n**DARRAY** type macro.  When using these functions, do not use the\ndynamic array value with a reference (&) operator.  For example:\n\n.. code:: cpp\n\n   /* creates an array of integers: 0..9 */\n   DARRAY(int) array_of_integers;\n   da_init(array_of_integers);\n\n   for (size_t i = 0; i < 10; i++)\n           da_push_back(array_of_integers, &i);\n\n   [...]\n\n   /* free when complete */\n   da_free(array_of_integers);\n\nTo pass dynamic arrays to functions as parameters, create a typedef with the\n`DARRAY` macro and type so you can pass the dynamic array with a\nreference (&) operator. An alternative is to define a struct that will contain\nthe dynamic array, and that struct will be passed to the functions, instead of\nthe dynamic array directly. An example with the typedef method:\n\n.. code:: cpp\n\n   typedef DARRAY(int) int_array_t;\n\n   void generate_integers(int_array_t *integers, int start, int end)\n   {\n           for (int i = start; i < end; i++)\n                   da_push_back(*integers, &i);\n   }\n\n   [...]\n\n   int_array_t array_of_integers;\n   da_init(array_of_integers);\n\n   generate_integers(&array_of_integers, 0, 10);\n\n   /* free when complete */\n   da_free(array_of_integers);\n\n**IMPORTANT NOTE:** While it is also possible to accept the internal\n`darray` struct as a function parameter (via the `da` member\nvariable of dynamic arrays) and redefine a variable with `DARRAY`\ninside the function, doing so is not safe and not recommended. One potential\nissue with it is having a type declaration in the function that is different\nthan the type of the actual dynamic array that will be passed to the function,\nwhich will cause memory access issues that will not be caught by the compiler.\nAs mentioned above, the recommended way is to create a typedef or a container\nstruct, which will be safer in usage.\n\n`void da_init(da)`\n\n   Initializes a dynamic array.\n\n   :param da: The dynamic array\n\n`void da_free(da)`","chars":2020,"tokens_est":505,"sha256":"82a227ed87dda0ee61f28ff3bf3b5828e9ef47c67601969439ab10c988bf9bbf"},{"id":"docs-sphinx-reference-libobs-util-darray#dynamic-arrays-dynamic-array-macros~2","doc":"docs-sphinx-reference-libobs-util-darray","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Arrays","Dynamic Array Macros"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst#dynamic-array-macros","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst","text":"[Dynamic Arrays \u203a Dynamic Array Macros]\nFrees a dynamic array.\n\n   :param da: The dynamic array\n\n`size_t da_alloc_size(v)`\n\n   Gets a size of allocated array in bytes.\n\n   :param da: The dynamic array\n   :return:   The allocated size of the dynamic array.\n\n`void *da_end(da)`\n\n   Gets a pointer to the last value.\n\n   :param da: The dynamic array\n   :return:   The last value of a dynamic array, or *NULL* if empty.\n\n`void da_reserve(da, size_t capacity)`\n\n   Reserves a specific amount of buffer space for the dynamic array.\n\n   :param da:       The dynamic array\n   :param capacity: New capacity of the dynamic array\n\n`void da_resize(da, size_t new_size)`\n\n   Resizes the dynamic array with zeroed values.\n\n   :param da:   The dynamic array\n   :param size: New size of the dynamic array\n\n`void da_copy(da_dst, da_src)`\n\n   Makes a copy of a dynamic array.\n\n   :param da_dst: The dynamic array to copy to\n   :param da_src: The dynamic array to copy from\n\n`void da_copy_array(da, const void *src_array, size_t size)`\n\n   Makes a copy of an array pointer.\n\n   :param da:        The dynamic array\n   :param src_array: The array pointer to make a copy from\n   :param size:      New size of the dynamic array\n\n`void da_move(da_dst, da_src)`\n\n   Moves one dynamic array variable to another without allocating new\n   data.  *da_dst* is freed before moving, *da_dst* is set to *da_src*,\n   then *da_src* is then zeroed.\n\n   :param da_dst: Destination variable\n   :param da_src: Source variable\n\n`size_t da_find(da, const void *item_data, size_t starting_idx)`\n\n   Finds a value based upon its data.  If the value cannot be found, the\n   return value will be DARRAY_INVALID (-1).\n\n   :param da:           The dynamic array\n   :param item_data:    The item data to find\n   :param starting_idx: The index to start from or 0 to search the\n                        entire array\n\n`size_t da_push_back(da, const void *data)`\n\n   Pushes data to the back of the array.","chars":1951,"tokens_est":488,"sha256":"a39b5a632c793fcfb5c98d1485ef639555bc39a55b1a8afc08f6e1f434d2692d"},{"id":"docs-sphinx-reference-libobs-util-darray#dynamic-arrays-dynamic-array-macros~3","doc":"docs-sphinx-reference-libobs-util-darray","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Arrays","Dynamic Array Macros"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst#dynamic-array-macros","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst","text":"[Dynamic Arrays \u203a Dynamic Array Macros]\n:param da:   The dynamic array\n   :param data: Pointer to the new data to push\n   :return:     Index of the new value\n\n`void *da_push_back_new(da)`\n\n   Pushes a zeroed value to the back of the array, and returns a pointer\n   to it.\n\n   :param da: The dynamic array\n   :return:   Pointer to the new value\n\n`size_t da_push_back_array(da, const void *src_array, size_t item_count)`\n\n   Pushes an array of values to the back of the array.\n\n   :param da:         The dynamic array\n   :param src_array:  Pointer of the array of values\n   :param item_count: Number of items to push back\n   :return:           Index of the first new value\n\n`void da_insert(da, size_t idx, const void *data)`\n\n   Inserts a value at a given index.\n\n   :param da:   The dynamic array:\n   :param idx:  Index where the new item will be inserted\n   :param data: Pointer to the item data to insert\n\n`void *da_insert_new(da, size_t idx)`\n\n   Inserts a new zeroed value at a specific index, and returns a pointer\n   to it.\n\n   :param da:  The dynamic array\n   :param idx: Index to insert at\n   :return:    Pointer to the new value\n\n`void da_insert_array(dst, size_t idx, src, size_t n)`\n\n   Inserts one or more items at a given index.\n\n   :param dst: The dynamic array:\n   :param idx: Index where the new item will be inserted\n   :param src: Pointer to the first item to insert\n   :param n:   Number of items to insert\n\n`void da_insert_da(da_dst, size_t idx, da_src)`\n\n   Inserts a dynamic array in to another dynamic array at a specific\n   index.\n\n   :param da_dst: Destination dynamic array being inserted in to\n   :param idx:    Index to insert the data at\n   :param da_src: The dynamic array to insert\n\n`void da_erase(da, size_t idx)`\n\n   Erases an item at a specific index.\n\n   :param da:  The dynamic array\n   :param idx: The index of the value to remove\n\n`void da_erase_item(da, const void *item_data)`\n\n   Erases an item that matches the value specified","chars":1967,"tokens_est":492,"sha256":"8b8ac6a721a1aa60387a9d63503fce2da679a3b2c78cb53f5f73ed0779728536"},{"id":"docs-sphinx-reference-libobs-util-darray#dynamic-arrays-dynamic-array-macros~4","doc":"docs-sphinx-reference-libobs-util-darray","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Arrays","Dynamic Array Macros"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst#dynamic-array-macros","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-darray.rst","text":"[Dynamic Arrays \u203a Dynamic Array Macros]\n:param da:        The dynamic array\n   :param item_data: Pointer to the data to remove\n\n`void da_erase_range(da, size_t start_idx, size_t end_idx)`\n\n   Erases a range of values, including the element at `start_idx`, but\n   not the one at `end_idx`.\n\n   :param da:        The dynamic array\n   :param start_idx: The starting index\n   :param end_idx:   The ending index\n\n`void da_pop_back(da)`\n\n   Removes one item from the end of a dynamic array.\n\n   :param da: The dynamic array\n\n`void da_join(da_dst, da_src)`\n\n   Pushes *da_src* to the end of *da_dst* and frees *da_src*.\n\n   :param da_dst: The destination dynamic array\n   :param da_src: The source dynamic array\n\n`void da_split(da_dst1, da_dst2, da_src, size_t split_idx)`\n\n   Creates two dynamic arrays by splitting another dynamic array at a\n   specific index.  If the destination arrays are not freed, they will\n   be freed before getting their new values.  The array being split will\n   not be freed.\n\n   :param da_dst1:   Dynamic array that will get the lower half\n   :param da_dst2:   Dynamic array that will get the upper half\n   :param da_src:    Dynamic array to split\n   :param split_idx: Index to split *da_src* at\n\n`void da_move_item(da, size_t src_idx, size_t dst_idx)`\n\n   Moves an item from one index to another, moving data between if\n   necessary.\n\n   :param da:      The dynamic array\n   :param src_idx: The index of the item to move\n   :param dst_idx: The new index of where the item will be moved to\n\n`void da_swap(da, size_t idx1, size_t idx2)`\n\n   Swaps two values at the given indices.\n\n   :param da: The dynamic array\n   :param idx1: Index of the first item to swap\n   :param idx2: Index of the second item to swap","chars":1731,"tokens_est":433,"sha256":"0ea1935474e09109d4395dd284beeae98ef66f9284f16761dc4dcdbb79d9cadb"},{"id":"docs-sphinx-reference-libobs-util-deque#double-ended-queue","doc":"docs-sphinx-reference-libobs-util-deque","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Double-Ended Queue"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-deque.rst#double-ended-queue","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-deque.rst","text":"[Double-Ended Queue]\nA double-ended queue (deque) that will automatically increase in size as necessary\nas data is pushed to the front or back.\n\n.. code:: cpp\n\n   #include <util/deque.h>\n\n.. versionadded:: 30.1\n\n## Deque Structure (struct deque)\n`deque`\n\n`void   *deque.data`\n\n`size_t deque.size`\n\n`size_t deque.start_pos`\n\n`size_t deque.end_pos`\n\n`size_t deque.capacity`","chars":371,"tokens_est":93,"sha256":"e630a7faab27f37c9f3ae6c6c84112658b31d016085df82adc86756089682402"},{"id":"docs-sphinx-reference-libobs-util-deque#double-ended-queue-deque-inline-functions","doc":"docs-sphinx-reference-libobs-util-deque","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Double-Ended Queue","Deque Inline Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-deque.rst#deque-inline-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-deque.rst","text":"[Double-Ended Queue \u203a Deque Inline Functions]\n`void deque_init(struct deque *dq)`\n\n   Initializes a deque (just zeroes out the entire structure).\n\n   :param dq: The deque\n\n`void deque_free(struct deque *dq)`\n\n   Frees a deque.\n\n   :param dq: The deque\n\n`void deque_reserve(struct deque *dq, size_t capacity)`\n\n   Reserves a specific amount of buffer space to ensure minimum\n   upsizing.\n\n   :param dq:       The deque\n   :param capacity: The new capacity, in bytes\n\n`void deque_upsize(struct deque *dq, size_t size)`\n\n   Sets the current active (not just reserved) size.  Any new data is\n   zeroed.\n\n   :param dq:       The deque\n   :param size:     The new size, in bytes\n\n`void deque_place(struct deque *dq, size_t position, const void *data, size_t size)`\n\n   Places data at a specific positional index (relative to the starting\n   point) within the deque.\n\n   :param dq:       The deque\n   :param position: Positional index relative to starting point\n   :param data:     Data to insert\n   :param size:     Size of data to insert\n\n`void deque_push_back(struct deque *dq, const void *data, size_t size)`\n\n   Pushes data to the end of the deque.\n\n   :param dq:       The deque\n   :param data:     Data\n   :param size:     Size of data\n\n`void deque_push_front(struct deque *dq, const void *data, size_t size)`\n\n   Pushes data to the front of the deque.\n\n   :param dq:       The deque\n   :param data:     Data\n   :param size:     Size of data\n\n`void deque_push_back_zero(struct deque *dq, size_t size)`\n\n   Pushes zeroed data to the end of the deque.\n\n   :param dq:       The deque\n   :param size:     Size\n\n`void deque_push_front_zero(struct deque *dq, size_t size)`\n\n   Pushes zeroed data to the front of the deque.\n\n   :param dq:       The deque\n   :param size:     Size\n\n`void deque_peek_front(struct deque *dq, void *data, size_t size)`\n\n   Peeks data at the front of the deque.\n\n   :param dq:       The deque\n   :param data:     Buffer to store data in\n   :param size:     Size of data to retrieve","chars":2002,"tokens_est":500,"sha256":"a5eff7c0c55173800bb0f2989fb914152eecd622d0f276d23f7b3ceb33f619a5"},{"id":"docs-sphinx-reference-libobs-util-deque#double-ended-queue-deque-inline-functions~2","doc":"docs-sphinx-reference-libobs-util-deque","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Double-Ended Queue","Deque Inline Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-deque.rst#deque-inline-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-deque.rst","text":"[Double-Ended Queue \u203a Deque Inline Functions]\n`void deque_peek_back(struct deque *dq, void *data, size_t size)`\n\n   Peeks data at the back of the deque.\n\n   :param dq:       The deque\n   :param data:     Buffer to store data in\n   :param size:     Size of data to retrieve\n\n`void deque_pop_front(struct deque *dq, void *data, size_t size)`\n\n   Pops data from the front of the deque.\n\n   :param dq:       The deque\n   :param data:     Buffer to store data in, or *NULL*\n   :param size:     Size of data to retrieve\n\n`void deque_pop_back(struct deque *dq, void *data, size_t size)`\n\n   Pops data from the back of the deque.\n\n   :param dq:       The deque\n   :param data:     Buffer to store data in, or *NULL*\n   :param size:     Size of data to retrieve\n\n`void *deque_data(struct deque *dq, size_t idx)`\n\n   Gets a direct pointer to data at a specific positional index within\n   the deque, relative to the starting point.\n\n   :param dq:       The deque\n   :param idx:      Byte index relative to the starting point","chars":1013,"tokens_est":253,"sha256":"56c992726117d083a11ee6bcaf3c9c24658b424795e2725c48fd31bb223fc11c"},{"id":"docs-sphinx-reference-libobs-util-dstr#dynamic-strings-and-string-helpers","doc":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Strings And String Helpers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst#dynamic-strings-and-string-helpers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst","text":"[Dynamic Strings And String Helpers]\nProvides string helper structures/functions (roughly equivalent to\nstd::string).\n\n.. code:: cpp\n\n   #include <util/dstr.h>\n\n## Dynamic String Structure (struct dstr)\n`dstr`\n\n`char *dstr.array`\n\n`size_t dstr.len`\n\n`size_t dstr.capacity`\n\n## General String Helper Functions\n`int astrcmpi(const char *str1, const char *str2)`\n\n   Case insensitive string comparison function.\n\n`int wstrcmpi(const wchar_t *str1, const wchar_t *str2)`\n\n   Case insensitive wide string comparison function.\n\n`int astrcmp_n(const char *str1, const char *str2, size_t n)`\n\n   String comparison function for a specific number of characters.\n\n`int wstrcmp_n(const wchar_t *str1, const wchar_t *str2, size_t n)`\n\n   Wide string comparison function for a specific number of characters.\n\n`int astrcmpi_n(const char *str1, const char *str2, size_t n)`\n\n   Case insensitive string comparison function for a specific number of\n   characters.\n\n`int wstrcmpi_n(const wchar_t *str1, const wchar_t *str2, size_t n)`\n\n   Case insensitive wide string comparison function for a specific\n   number of characters.\n\n`char *astrstri(const char *str, const char *find)`\n\n   Case insensitive version of strstr.\n\n`wchar_t *wstrstri(const wchar_t *str, const wchar_t *find)`\n\n   Case insensitive version of wcsstr.\n\n`char *strdepad(char *str)`\n\n   Removes padding characters (tab, space, CR, LF) from the front and\n   end of a string.\n\n`wchar_t *wcsdepad(wchar_t *str)`\n\n   Removes padding characters (tab, space, CR, LF) from the front and\n   end of a wide string.\n\n`char **strlist_split(const char *str, char split_ch, bool include_empty)`\n\n   Splits a string in to a list of multiple sub-strings, terminated by\n   `NULL`. If `split_ch` does not exist in the string, the first\n   sub-string will be the same as `str`. Free with `strlist_free()`.","chars":1836,"tokens_est":459,"sha256":"4b2cbd46faa89714a30ae40f335bcc840bd7e41910158e8037173dd69c5f7a39"},{"id":"docs-sphinx-reference-libobs-util-dstr#dynamic-strings-and-string-helpers~2","doc":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Strings And String Helpers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst#dynamic-strings-and-string-helpers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst","text":"[Dynamic Strings And String Helpers]\n:param str: The string to be split\n   :param split_ch: The delimiter\n   :param include_empty: If *true*, empty strings caused by having the\n                         `split_ch` right next to another will be\n                         included in the list. If *false*, they won't\n                         be included.\n\n   Sample usage:\n\n   .. code:: cpp\n\n      char **words = strlist_split(\"OBS    Studio\", ' ', false);\n      int count = 0;\n\n      for (char **word = words; *word; ++word) {\n              count++;\n              blog(LOG_DEBUG, \"%s\", *word);\n      }\n\n      strlist_free(words);\n      // count == 2\n\n`void strlist_free(char **strlist)`\n\n   Frees a string list created with `strlist_split()`.","chars":739,"tokens_est":185,"sha256":"0aade7beafcabeee8e038f760042bde59e382fd47f322f12c9b20db3e20bb6f2"},{"id":"docs-sphinx-reference-libobs-util-dstr#dynamic-strings-and-string-helpers-dynamic-string-functions","doc":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Strings And String Helpers","Dynamic String Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst#dynamic-string-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst","text":"[Dynamic Strings And String Helpers \u203a Dynamic String Functions]\n`void dstr_init(struct dstr *dst)`\n\n   Initializes a dynamic string variable (just zeroes the variable).\n\n   :param dst: Dynamic string to initialize\n\n`void dstr_init_move(struct dstr *dst, struct dstr *src)`\n\n   Moves a *src* to *dst* without copying data and zeroes *src*.\n\n   :param dst: Destination\n   :param src: Source\n\n`void dstr_init_move_array(struct dstr *dst, char *str)`\n\n   Sets a bmalloc-allocated string as the dynamic string without\n   copying/reallocating.\n\n   :param dst: Dynamic string to initialize\n   :param str: bmalloc-allocated string\n\n`void dstr_init_copy(struct dstr *dst, const char *src)`\n\n   Initializes a dynamic string with a copy of a string\n\n   :param dst: Dynamic string to initialize\n   :param src: String to copy\n\n`void dstr_init_copy_dstr(struct dstr *dst, const struct dstr *src)`\n\n   Initializes a dynamic string with a copy of another dynamic string\n\n   :param dst: Dynamic string to initialize\n   :param src: Dynamic string to copy\n\n`void dstr_free(struct dstr *dst)`\n\n   Frees a dynamic string.\n\n   :param dst: Dynamic string\n\n`void dstr_copy(struct dstr *dst, const char *array)`\n\n   Copies a string.\n\n   :param dst:   Dynamic string\n   :param array: String to copy\n\n`void dstr_copy_dstr(struct dstr *dst, const struct dstr *src)`\n\n   Copies another dynamic string.\n\n   :param dst: Dynamic string\n   :param src: Dynamic string to copy\n\n`void dstr_ncopy(struct dstr *dst, const char *array, const size_t len)`\n\n   Copies a specific number of characters from a string.\n\n   :param dst:   Dynamic string\n   :param array: String to copy\n   :param len:   Number of characters to copy\n\n`void dstr_ncopy_dstr(struct dstr *dst, const struct dstr *src, const size_t len)`\n\n   Copies a specific number of characters from another dynamic string.\n\n   :param dst:   Dynamic string\n   :param src:   Dynamic string to copy\n   :param len:   Number of characters to copy\n\n`void dstr_resize(struct dstr *dst, const size_t num)`","chars":2015,"tokens_est":504,"sha256":"ea38683167e6c6ae7ea48ace47f35e822d5d9f2985036267cc2ed8b202e3ad2e"},{"id":"docs-sphinx-reference-libobs-util-dstr#dynamic-strings-and-string-helpers-dynamic-string-functions~2","doc":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Strings And String Helpers","Dynamic String Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst#dynamic-string-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst","text":"[Dynamic Strings And String Helpers \u203a Dynamic String Functions]\nSets the size of the dynamic string.  If the new size is bigger than\n   current size, zeroes the new characters.\n\n   :param dst: Dynamic string\n   :param num: New size\n\n`void dstr_reserve(struct dstr *dst, const size_t num)`\n\n   Reserves a specific number of characters in the buffer (but does not\n   change the size).  Does not work if the value is smaller than the\n   current reserve size.\n\n   :param dst: Dynamic string\n   :param num: New reserve size\n\n`bool dstr_is_empty(const struct dstr *str)`\n\n   Returns whether the dynamic string is empty.\n\n   :param str: Dynamic string\n   :return:    *true* if empty, *false* otherwise\n\n`void dstr_cat(struct dstr *dst, const char *array)`\n\n   Concatenates a dynamic string.\n\n   :param dst:   Dynamic string\n   :param array: String to concatenate with\n\n`void dstr_cat_dstr(struct dstr *dst, const struct dstr *str)`\n\n   Concatenates a dynamic string with another dynamic string.\n\n   :param dst: Dynamic string to concatenate to\n   :param str: Dynamic string to concatenate with\n\n`void dstr_cat_ch(struct dstr *dst, char ch)`\n\n   Concatenates a dynamic string with a single character.\n\n   :param dst: Dynamic string to concatenate to\n   :param ch:  Character to concatenate\n\n`void dstr_ncat(struct dstr *dst, const char *array, const size_t len)`\n\n   Concatenates a dynamic string with a specific number of characters\n   from a string.\n\n   :param dst:   Dynamic string to concatenate to\n   :param array: String to concatenate with\n   :param len:   Number of characters to concatenate with\n\n`void dstr_ncat_dstr(struct dstr *dst, const struct dstr *str, const size_t len)`\n\n   Concatenates a dynamic string with a specific number of characters\n   from another dynamic string.\n\n   :param dst: Dynamic string to concatenate to\n   :param str: Dynamic string to concatenate with\n   :param len: Number of characters to concatenate with\n\n`void dstr_insert(struct dstr *dst, const size_t idx, const char *array)`","chars":2012,"tokens_est":503,"sha256":"98a78808c36f146f3baa448eeae71ae207be82430809c71dceb5e2b400d43d9d"},{"id":"docs-sphinx-reference-libobs-util-dstr#dynamic-strings-and-string-helpers-dynamic-string-functions~3","doc":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Strings And String Helpers","Dynamic String Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst#dynamic-string-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst","text":"[Dynamic Strings And String Helpers \u203a Dynamic String Functions]\nInserts a string in to a dynamic string at a specific index.\n\n   :param dst:   Dynamic string to insert in to\n   :param idx:   Character index to insert at\n   :param array: String to insert\n\n`void dstr_insert_dstr(struct dstr *dst, const size_t idx, const struct dstr *str)`\n\n   Inserts another dynamic string in to a dynamic string at a specific\n   index.\n\n   :param dst:   Dynamic string to insert in to\n   :param idx:   Character index to insert at\n   :param str:   Dynamic string to insert\n\n`void dstr_insert_ch(struct dstr *dst, const size_t idx, const char ch)`\n\n   Inserts a character in to a dynamic string at a specific index.\n\n   :param dst:   Dynamic string to insert in to\n   :param idx:   Character index to insert at\n   :param ch:    Character to insert\n\n`void dstr_remove(struct dstr *dst, const size_t idx, const size_t count)`\n\n   Removes a specific number of characters starting from a specific\n   index.\n\n   :param dst:   Dynamic string\n   :param idx:   Index to start removing characters at\n   :param count: Number of characters to remove\n\n`void dstr_printf(struct dstr *dst, const char *format, ...)`\n              void dstr_vprintf(struct dstr *dst, const char *format, va_list args)\n\n   Sets a dynamic string to a formatted string.\n\n   :param dst:    Dynamic string\n   :param format: Format string\n\n`void dstr_catf(struct dstr *dst, const char *format, ...)`\n              void dstr_vcatf(struct dstr *dst, const char *format, va_list args)\n\n   Concatenates a dynamic string with a formatted string.\n\n   :param dst:    Dynamic string\n   :param format: Format string\n\n`const char *dstr_find_i(const struct dstr *str, const char *find)`\n\n   Finds a string within a dynamic string, case insensitive.\n\n   :param str:  Dynamic string\n   :param find: String to find\n   :return:     Pointer to the first occurrence, or *NULL* if not found\n\n`const char *dstr_find(const struct dstr *str, const char *find)`\n\n   Finds a string within a dynamic string.","chars":2029,"tokens_est":507,"sha256":"77efc8962a4d14a32ab0a8774db73664fb8de845378f995c6e9675ddc8efa0a6"},{"id":"docs-sphinx-reference-libobs-util-dstr#dynamic-strings-and-string-helpers-dynamic-string-functions~4","doc":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Strings And String Helpers","Dynamic String Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst#dynamic-string-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst","text":"[Dynamic Strings And String Helpers \u203a Dynamic String Functions]\n:param str:  Dynamic string\n   :param find: String to find\n   :return:     Pointer to the first occurrence, or *NULL* if not found\n\n`void dstr_replace(struct dstr *str, const char *find, const char *replace)`\n\n   Replaces all occurrences of *find* with *replace*.\n\n   :param str:     Dynamic string\n   :param find:    String to find\n   :param replace: Replacement string\n\n`int dstr_cmp(const struct dstr *str1, const char *str2)`\n\n   Compares with a string.\n\n   :param str1: Dynamic string\n   :param str2: String to compare\n   :return:     0 if equal, nonzero otherwise\n\n`int dstr_cmpi(const struct dstr *str1, const char *str2)`\n\n   Compares with a string, case-insensitive.\n\n   :param str1: Dynamic string\n   :param str2: String to compare\n   :return:     0 if equal, nonzero otherwise\n\n`int dstr_ncmp(const struct dstr *str1, const char *str2, const size_t n)`\n\n   Compares a specific number of characters.\n\n   :param str1: Dynamic string\n   :param str2: String to compare\n   :param n:    Number of characters to compare\n   :return:     0 if equal, nonzero otherwise\n\n`int dstr_ncmpi(const struct dstr *str1, const char *str2, const size_t n)`\n\n   Compares a specific number of characters, case-insensitive.\n\n   :param str1: Dynamic string\n   :param str2: String to compare\n   :param n:    Number of characters to compare\n   :return:     0 if equal, nonzero otherwise\n\n`void dstr_depad(struct dstr *dst)`\n\n   Removes all padding characters (tabs, spaces, CR, LF) from the front\n   and ends of a dynamic string.\n\n   :param dst: Dynamic string\n\n`void dstr_left(struct dstr *dst, const struct dstr *str, const size_t pos)`\n\n   Copies a certain number of characters from the left side of one\n   dynamic string in to another.\n\n   :param dst:   Destination\n   :param str:   Source\n   :param pos:   Number of characters\n\n`void dstr_mid(struct dstr *dst, const struct dstr *str, const size_t start, const size_t count)`","chars":1978,"tokens_est":494,"sha256":"3f84543dcd15ae3404ffca2ba66d2b4a5d2350d2a5c11e5eac772c2334e8e28b"},{"id":"docs-sphinx-reference-libobs-util-dstr#dynamic-strings-and-string-helpers-dynamic-string-functions~5","doc":"docs-sphinx-reference-libobs-util-dstr","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Dynamic Strings And String Helpers","Dynamic String Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst#dynamic-string-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-dstr.rst","text":"[Dynamic Strings And String Helpers \u203a Dynamic String Functions]\nCopies a certain number of characters from the middle of one dynamic\n   string in to another.\n\n   :param dst:   Destination\n   :param str:   Source\n   :param start: Starting index within *str*\n   :param count: Number of characters to copy\n\n`void dstr_right(struct dstr *dst, const struct dstr *str, const size_t pos)`\n\n   Copies a certain number of characters from the right of one dynamic\n   string in to another.\n\n   :param dst:   Destination\n   :param str:   Source\n   :param pos:   Index of *str* to copy from\n\n`char dstr_end(const struct dstr *str)`\n\n   :param str: Dynamic string\n   :return:    The last character of a dynamic string\n\n`void dstr_from_wcs(struct dstr *dst, const wchar_t *wstr)`\n\n   Copies a wide string in to a dynamic string and converts it to UTF-8.\n\n   :param dst:  Dynamic string\n   :param wstr: Wide string\n\n`wchar_t *dstr_to_wcs(const struct dstr *str)`\n\n   Converts a dynamic array to a wide string.  Free with\n   `bfree()`.\n\n   :param str: Dynamic string\n   :return:    Wide string allocation.  Free with `bfree()`\n\n`void dstr_to_upper(struct dstr *str)`\n\n   Converts all characters within a dynamic array to uppercase.\n\n   :param str: Dynamic string\n\n`void dstr_to_lower(struct dstr *str)`\n\n   Converts all characters within a dynamic array to lowercase.\n\n   :param str: Dynamic string","chars":1381,"tokens_est":345,"sha256":"0051f8d8037860902e1aef916e71f4e02e8cee569bd6fb09f968cdd6e1053f86"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#platform-helpers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers]\nThese functions/structures/types are used to perform actions that\ntypically don't have shared functions across different operating systems\nand platforms.\n\n.. code:: cpp\n\n   #include <util/platform.h>\n\n## File Functions\n`FILE *os_wfopen(const wchar_t *path, const char *mode)`\n\n   Opens a file with a wide string path.\n\n`FILE *os_fopen(const char *path, const char *mode)`\n\n   Opens a file with a UTF8 string path.\n\n`int64_t os_fgetsize(FILE *file)`\n\n   Returns a file's size.\n\n`int os_stat(const char *file, struct stat *st)`\n\n   Equivalent to the posix *stat* function.\n\n`int os_fseeki64(FILE *file, int64_t offset, int origin)`\n\n   Equivalent to fseek.\n\n`int64_t os_ftelli64(FILE *file)`\n\n   Gets the current file position.\n\n`size_t os_fread_utf8(FILE *file, char **pstr)`\n\n   Reads a UTF8 encoded file and allocates a pointer to the UTF8 string.\n\n`char *os_quick_read_utf8_file(const char *path)`\n\n   Reads a UTF8 encoded file and returns an allocated pointer to the\n   string.\n\n`bool os_quick_write_utf8_file(const char *path, const char *str, size_t len, bool marker)`\n\n   Writes a UTF8 encoded file.\n\n`bool os_quick_write_utf8_file_safe(const char *path, const char *str, size_t len, bool marker, const char *temp_ext, const char *backup_ext)`\n\n   Writes a UTF8 encoded file with overwrite corruption prevention.\n\n`int64_t os_get_file_size(const char *path)`\n\n   Gets a file's size.\n\n`int64_t os_get_free_space(const char *path)`\n\n   Gets free space of a specific file path.","chars":1499,"tokens_est":375,"sha256":"05cc172d66ef3cd1cb94e17ebefc4108063c6184d0456dd42eaefe598c689ebd"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-string-conversion-functions","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","String Conversion Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#string-conversion-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a String Conversion Functions]\n`size_t os_utf8_to_wcs(const char *str, size_t len, wchar_t *dst, size_t dst_size)`\n\n   Converts a UTF8 string to a wide string.\n\n`size_t os_wcs_to_utf8(const wchar_t *str, size_t len, char *dst, size_t dst_size)`\n\n   Converts a wide string to a UTF8 string.\n\n`size_t os_utf8_to_wcs_ptr(const char *str, size_t len, wchar_t **pstr)`\n\n   Gets an bmalloc-allocated wide string converted from a UTF8 string.\n\n`size_t os_wcs_to_utf8_ptr(const wchar_t *str, size_t len, char **pstr)`\n\n   Gets an bmalloc-allocated UTF8 string converted from a wide string.\n\n## Number/String Conversion Functions\n`double os_strtod(const char *str)`\n\n   Converts a string to a double.\n\n`int os_dtostr(double value, char *dst, size_t size)`\n\n   Converts a double to a string.","chars":799,"tokens_est":200,"sha256":"a9ecbb990b8069da7a2d20021ed4df4fcbd955c6d57c4d6031f0e44849a36468"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-dynamic-link-library-functions","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","Dynamic Link Library Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#dynamic-link-library-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a Dynamic Link Library Functions]\nThese functions are roughly equivalent to dlopen/dlsym/dlclose.\n\n`void *os_dlopen(const char *path)`\n\n   Opens a dynamic library.\n\n`void *os_dlsym(void *module, const char *func)`\n\n   Returns a symbol from a dynamic library.\n\n`void os_dlclose(void *module)`\n\n   Closes a dynamic library.\n\n`bool os_is_obs_plugin(const char *path)`\n\n   Returns true if the path is a dynamic library that looks like an OBS plugin.\n\n   Currently only needed on Windows for performance reasons.","chars":525,"tokens_est":131,"sha256":"313e25406758461f803aaa1c8d7f353f5c398f54cb29cf7213324c90d85912d0"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-cpu-usage-functions","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","CPU Usage Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#cpu-usage-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a CPU Usage Functions]\n`os_cpu_usage_info_t *os_cpu_usage_info_start(void)`\n\n   Creates a CPU usage information object.\n\n`double              os_cpu_usage_info_query(os_cpu_usage_info_t *info)`\n\n   Queries the current CPU usage.\n\n`void                os_cpu_usage_info_destroy(os_cpu_usage_info_t *info)`\n\n   Destroys a CPU usage information object.","chars":367,"tokens_est":92,"sha256":"1ab4b1278d9ab33d93000f5fbb12bb0786c084bc73fde77b01d55884e2b4f791"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-sleep-time-functions","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","Sleep/Time Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#sleeptime-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a Sleep/Time Functions]\n`bool os_sleepto_ns(uint64_t time_target)`\n\n   Sleeps to a specific time with high precision, in nanoseconds.\n\n`bool os_sleepto_ns_fast(uint64_t time_target)`\n\n   Sleeps to a specific time without high precision, in nanoseconds.\n   The function won't return until reaching the specific time.\n\n`void os_sleep_ms(uint32_t duration)`\n\n   Sleeps for a specific number of milliseconds.\n\n`uint64_t os_gettime_ns(void)`\n\n   Gets the current high-precision system time, in nanoseconds.","chars":519,"tokens_est":130,"sha256":"7558fe815eb5423917b953c9dd0e32e6bd3554693788993f8d958df41706fdb5"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-other-path-file-functions","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","Other Path/File Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#other-pathfile-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a Other Path/File Functions]\n`int os_get_config_path(char *dst, size_t size, const char *name)`\n              char *os_get_config_path_ptr(const char *name)\n\n   Gets the user-specific application configuration data path.\n\n`int os_get_program_data_path(char *dst, size_t size, const char *name)`\n              char *os_get_program_data_path_ptr(const char *name)\n\n   Gets the application configuration data path.\n\n`bool os_file_exists(const char *path)`\n\n   Returns true if a file/directory exists, false otherwise.\n\n`size_t os_get_abs_path(const char *path, char *abspath, size_t size)`\n              char *os_get_abs_path_ptr(const char *path)\n\n   Converts a relative path to an absolute path.\n\n`const char *os_get_path_extension(const char *path)`\n\n   Returns the extension portion of a path string, including the dot (.).\n\n`struct os_dir os_dir_t`\n\n   A directory object.\n\n`os_dirent`\n\n   A directory entry record.\n\n`char os_dirent.d_name[256]`\n\n   The directory entry name.\n\n`bool os_dirent.directory`\n\n   *true* if the entry is a directory.\n\n`os_dir_t *os_opendir(const char *path)`\n\n   Opens a directory object to enumerate files within the directory.\n\n`struct os_dirent *os_readdir(os_dir_t *dir)`\n\n   Returns the linked list of directory entries.\n\n`void os_closedir(os_dir_t *dir)`\n\n   Closes a directory object.\n\n`os_globent`\n\n   A glob entry.\n\n`char *os_globent.path`\n\n   The full path to the glob entry.\n\n`bool os_globent.directory`\n\n   *true* if the glob entry is a directory, *false* otherwise.\n\n`os_glob_info`\n\n   A glob object.\n\n`size_t             os_glob_info.gl_pathc`\n\n   Number of glob entries.\n\n`struct os_globent *os_glob_info.gl_pathv`\n\n   Array of glob entries.\n\n`struct os_glob_info os_glob_t`\n\n`int os_glob(const char *pattern, int flags, os_glob_t **pglob)`\n\n   Enumerates files based upon a glob string.\n\n`void os_globfree(os_glob_t *pglob)`\n\n   Frees a glob object.\n\n`int os_unlink(const char *path)`\n\n   Deletes a file.\n\n`int os_rmdir(const char *path)`\n\n   Deletes a directory.","chars":2026,"tokens_est":506,"sha256":"655e5b00609b3195c407e9ca7b4d3e7fd799d705cad15f5889e0c6bc52b0cc98"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-other-path-file-functions~2","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","Other Path/File Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#other-pathfile-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a Other Path/File Functions]\n`char *os_getcwd(char *path, size_t size)`\n\n   Returns a new bmalloc-allocated path to the current working\n   directory.\n\n`int os_chdir(const char *path)`\n\n   Changes the current working directory.\n\n`int os_mkdir(const char *path)`\n\n   Creates a directory.\n\n`int os_mkdirs(const char *path)`\n\n   Creates a full directory path if it doesn't exist.\n\n`int os_rename(const char *old_path, const char *new_path)`\n\n   Renames a file.\n\n`int os_copyfile(const char *file_in, const char *file_out)`\n\n   Copies a file.\n\n`int os_safe_replace(const char *target_path, const char *from_path, const char *backup_path)`\n\n   Safely replaces a file.\n\n`char *os_generate_formatted_filename(const char *extension, bool space, const char *format)`\n\n   Returns a new bmalloc-allocated filename generated from specific\n   formatting.","chars":858,"tokens_est":214,"sha256":"de3202a3b010b7a7c1da52fc1223b39e953de711b5c7e9a9efa30aa2ef52a315"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-sleep-inhibition-functions","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","Sleep-Inhibition Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#sleep-inhibition-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a Sleep-Inhibition Functions]\nThese functions/types are used to inhibit the computer from going to\nsleep.\n\n`os_inhibit_info`\n\n`struct os_inhibit_info os_inhibit_t`\n\n`os_inhibit_t *os_inhibit_sleep_create(const char *reason)`\n\n   Creates a sleep inhibition object.\n\n`bool os_inhibit_sleep_set_active(os_inhibit_t *info, bool active)`\n\n   Activates/deactivates a sleep inhibition object.\n\n`void os_inhibit_sleep_destroy(os_inhibit_t *info)`\n\n   Destroys a sleep inhibition object.  If the sleep inhibition object\n   was active, it will be deactivated.","chars":567,"tokens_est":142,"sha256":"0841bfa95f58088955f071d2655310a2eab7705df06b079edd7a767235d1004f"},{"id":"docs-sphinx-reference-libobs-util-platform#platform-helpers-other-functions","doc":"docs-sphinx-reference-libobs-util-platform","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform Helpers","Other Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst#other-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-platform.rst","text":"[Platform Helpers \u203a Other Functions]\n`void os_breakpoint(void)`\n\n   Triggers a debugger breakpoint (or crashes the program if no debugger\n   present).\n\n`int os_get_physical_cores(void)`\n\n   Returns the number of physical cores available.\n\n`int os_get_logical_cores(void)`\n\n   Returns the number of logical cores available.\n\n`uint64_t os_get_sys_free_size(void)`\n\n   Returns the amount of memory available.\n\n`uint64_t os_get_sys_total_size(void)`\n\n   Returns the amount of memory installed.\n\n   .. versionadded:: 29.0.0\n\n`os_proc_memory_usage`\n\n   Memory usage structure.\n\n`uint64_t os_proc_memory_usage.resident_size`\n\n   Resident size.\n\n`uint64_t os_proc_memory_usage.virtual_size`\n\n   Virtual size.\n\n`struct os_proc_memory_usage os_proc_memory_usage_t`\n\n`bool os_get_proc_memory_usage(os_proc_memory_usage_t *usage)`\n\n   Gets memory usage of the current process.\n\n`uint64_t os_get_proc_resident_size(void)`\n\n   Returns the resident memory size of the current process.\n\n`uint64_t os_get_proc_virtual_size(void)`\n\n   Returns the virtual memory size of the current process.\n\n`bool os_get_emulation_status(void)`\n\n   Returns true if the current process is an x64 binary and is being emulated or translated\n   by the host operating system. On macOS, it returns true when an x64 binary is \n   being translated by Rosetta and running on Apple Silicon Macs. On Windows, it \n   returns true when an x64 binary is being emulated on Windows ARM64 PCs. On all other \n   platforms, it will always returns false.\n\n`char *os_generate_uuid(void)`\n\n   Creates a version 4 UUID and returns a NULL-terminated 36-character string.\n   Must be freed with `bfree()`.\n\n   .. versionadded:: 29.1","chars":1672,"tokens_est":418,"sha256":"01391a88c2dcfe651962d5df93e832da272bc663b8c5ceae8ba5b54fc43c77b8"},{"id":"docs-sphinx-reference-libobs-util-profiler#profiler","doc":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Profiler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst#profiler","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst","text":"[Profiler]\nThe profiler is used to get information about program performance and\nefficiency.\n\n`struct profiler_snapshot profiler_snapshot_t`\n\n`struct profiler_snapshot_entry profiler_snapshot_entry_t`\n\n`struct profiler_name_store profiler_name_store_t`\n\n`struct profiler_time_entry profiler_time_entry_t`\n\n.. code:: cpp\n\n   #include <util/profiler.h>\n\n## Profiler Structures\n`profiler_time_entry`\n\n`uint64_t profiler_time_entry.time_delta`\n\n`uint64_t profiler_time_entry.count`","chars":477,"tokens_est":119,"sha256":"23cd43ce268d8d59e9a075a9dead974cb37eddde9344eca5ddba6742d21db461"},{"id":"docs-sphinx-reference-libobs-util-profiler#profiler-profiler-control-functions","doc":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Profiler","Profiler Control Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst#profiler-control-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst","text":"[Profiler \u203a Profiler Control Functions]\n`void profiler_start(void)`\n\n   Starts the profiler.\n\n`void profiler_stop(void)`\n\n   Stops the profiler.\n\n`void profiler_print(profiler_snapshot_t *snap)`\n\n   Creates a profiler snapshot and saves it within *snap*.\n\n   :param snap: A profiler snapshot object\n\n`void profiler_print_time_between_calls(profiler_snapshot_t *snap)`\n\n   Creates a profiler snapshot of time between calls and saves it within\n   *snap*.\n\n   :param snap: A profiler snapshot object\n\n`void profiler_free(void)`\n\n   Frees the profiler.","chars":548,"tokens_est":137,"sha256":"10a540c0118fd665d5a1e4f00f94f027db47d74c9003693f0f746b162f94fcce"},{"id":"docs-sphinx-reference-libobs-util-profiler#profiler-profiling-functions","doc":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Profiler","Profiling Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst#profiling-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst","text":"[Profiler \u203a Profiling Functions]\n`void profile_register_root(const char *name, uint64_t expected_time_between_calls)`\n\n   Registers a root profile node.\n\n   :param name:                        Name of the root profile node\n   :param expected_time_between_calls: The expected time between calls\n                                       of the profile root node, or 0 if\n                                       none.\n\n`void profile_start(const char *name)`\n\n   Starts a profile node.  This profile node will be a child of the last\n   node that was started.\n\n   :param name: Name of the profile node\n\n`void profile_end(const char *name)`\n\n   :param name: Name of the profile node\n\n`void profile_reenable_thread(void)`\n\n   Because `profiler_start()` can be called in a different\n   thread than the current thread, this is used to specify a point where\n   it's safe to re-enable profiling in the calling thread.  Call this\n   when you have looped root profile nodes and need to specify a safe\n   point where the root profile node isn't active and the profiler can\n   start up in the current thread again.","chars":1096,"tokens_est":274,"sha256":"214cf1b3388e1ec0eb502d0c73d03800ddfce42ae37951fceec87345b50731c5"},{"id":"docs-sphinx-reference-libobs-util-profiler#profiler-profiler-name-storage-functions","doc":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Profiler","Profiler Name Storage Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst#profiler-name-storage-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst","text":"[Profiler \u203a Profiler Name Storage Functions]\n`profiler_name_store_t *profiler_name_store_create(void)`\n\n   Creates a profiler name storage object.\n\n   :return: Profiler name store object\n\n`void profiler_name_store_free(profiler_name_store_t *store)`\n\n   Frees a profiler name storage object.\n\n   :param store: Profiler name storage object\n\n`const char *profile_store_name(profiler_name_store_t *store, const char *format, ...)`\n\n   Creates a formatted string and stores it within a profiler name\n   storage object.\n\n   :param store:  Profiler name storage object\n   :param format: Formatted string\n   :return:       The string created from format specifications","chars":661,"tokens_est":165,"sha256":"ef21091921c42656815a1c4b7f7f463e877ff375210066885723da5feb045439"},{"id":"docs-sphinx-reference-libobs-util-profiler#profiler-profiler-data-access-functions","doc":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Profiler","Profiler Data Access Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst#profiler-data-access-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst","text":"[Profiler \u203a Profiler Data Access Functions]\n`profiler_snapshot_t *profile_snapshot_create(void)`\n\n   Creates a profile snapshot.  Profiler snapshots are used to obtain\n   data about how the active profiles performed.\n\n   :return: A profiler snapshot object\n\n`void profile_snapshot_free(profiler_snapshot_t *snap)`\n\n   Frees a profiler snapshot object.\n\n   :param snap: A profiler snapshot\n\n`bool profiler_snapshot_dump_csv(const profiler_snapshot_t *snap, const char *filename)`\n\n   Creates a CSV file of the profiler snapshot.\n\n   :param snap:     A profiler snapshot\n   :param filename: The path to the CSV file to save\n   :return:         *true* if successfully written, *false* otherwise\n\n`bool profiler_snapshot_dump_csv_gz(const profiler_snapshot_t *snap, const char *filename)`\n\n   Creates a gzipped CSV file of the profiler snapshot.\n\n   :param snap:     A profiler snapshot\n   :param filename: The path to the gzipped CSV file to save\n   :return:         *true* if successfully written, *false* otherwise\n\n`size_t profiler_snapshot_num_roots(profiler_snapshot_t *snap)`\n\n   :param snap: A profiler snapshot\n   :return:     Number of root profiler nodes in the snapshot\n\n`bool (*profiler_entry_enum_func)(void *context, profiler_snapshot_entry_t *entry)`\n\n   Profiler snapshot entry numeration callback\n\n   :param context: Private data passed to this callback\n   :param entry:   Profiler snapshot entry\n   :return:        *true* to continue enumeration, *false* otherwise\n\n`void profiler_snapshot_enumerate_roots(profiler_snapshot_t *snap, profiler_entry_enum_func func, void *context)`\n\n   Enumerates root profile nodes.\n\n   :param snap:    A profiler snapshot\n   :param func:    Enumeration callback\n   :param context: Private data to pass to the callback\n\n`bool (*profiler_name_filter_func)(void *data, const char *name, bool *remove)`\n\n   Callback used to determine what profile nodes are removed/filtered.","chars":1918,"tokens_est":480,"sha256":"62d7112706cbc400913ea0f0637b66620d2ad7df2971b75a1abe0a7d24a84b73"},{"id":"docs-sphinx-reference-libobs-util-profiler#profiler-profiler-data-access-functions~2","doc":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Profiler","Profiler Data Access Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst#profiler-data-access-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst","text":"[Profiler \u203a Profiler Data Access Functions]\n:param data:    Private data passed to this callback\n   :param name:    Profile node name to be filtered\n   :param remove:  Used to determined whether the node should be removed\n                   or not\n   :return:        *true* to continue enumeration, *false* otherwise\n\n`void profiler_snapshot_filter_roots(profiler_snapshot_t *snap, profiler_name_filter_func func, void *data)`\n\n   Removes/filters profile roots based upon their names.\n\n   :param snap: A profiler snapshot\n   :param func: Enumeration callback to filter with\n   :param data: Private data to pass to the callback\n\n`size_t profiler_snapshot_num_children(profiler_snapshot_entry_t *entry)`\n\n   :param entry: A profiler snapshot entry\n   :return:      Number of children for the entry\n\n`void profiler_snapshot_enumerate_children(profiler_snapshot_entry_t *entry, profiler_entry_enum_func func, void *context)`\n\n   Enumerates child entries of a profiler snapshot entry.\n\n   :param entry:   A profiler snapshot entry\n   :param func:    Enumeration callback\n   :param context: Private data passed to the callback\n\n`const char *profiler_snapshot_entry_name(profiler_snapshot_entry_t *entry)`\n\n   :param entry: A profiler snapshot entry\n   :return:      The name of the profiler snapshot entry\n\n`profiler_time_entries_t *profiler_snapshot_entry_times(profiler_snapshot_entry_t *entry)`\n\n   Gets the time entries for a snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      An array of profiler time entries\n\n`uint64_t profiler_snapshot_entry_min_time(profiler_snapshot_entry_t *entry)`\n\n   Gets the minimum time for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      The minimum time value for the snapshot entry\n\n`uint64_t profiler_snapshot_entry_max_time(profiler_snapshot_entry_t *entry)`\n\n   Gets the maximum time for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      The maximum time value for the snapshot entry","chars":2020,"tokens_est":505,"sha256":"ab329b17e3996d79c5b9bde80735c8f431ac3bf0e1f4bba73aceb6851415356e"},{"id":"docs-sphinx-reference-libobs-util-profiler#profiler-profiler-data-access-functions~3","doc":"docs-sphinx-reference-libobs-util-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Profiler","Profiler Data Access Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst#profiler-data-access-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-profiler.rst","text":"[Profiler \u203a Profiler Data Access Functions]\n`uint64_t profiler_snapshot_entry_overall_count(profiler_snapshot_entry_t *entry)`\n\n   Gets the overall count for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      The overall count value for the snapshot entry\n\n`profiler_time_entries_t *profiler_snapshot_entry_times_between_calls(profiler_snapshot_entry_t *entry)`\n\n   Gets an array of time between calls for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      An array of profiler time entries\n\n`uint64_t profiler_snapshot_entry_expected_time_between_calls(profiler_snapshot_entry_t *entry)`\n\n   Gets the expected time between calls for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      The expected time between calls for the snapshot entry,\n                 or 0 if not set\n\n`uint64_t profiler_snapshot_entry_min_time_between_calls(profiler_snapshot_entry_t *entry)`\n\n   Gets the minimum time seen between calls for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      The minimum time seen between calls for the snapshot entry\n\n`uint64_t profiler_snapshot_entry_max_time_between_calls(profiler_snapshot_entry_t *entry)`\n\n   Gets the maximum time seen between calls for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      The maximum time seen between calls for the snapshot entry\n\n`uint64_t profiler_snapshot_entry_overall_between_calls_count(profiler_snapshot_entry_t *entry)`\n\n   Gets the overall time between calls for a profiler snapshot entry.\n\n   :param entry: A profiler snapshot entry\n   :return:      The overall time between calls for the snapshot entry","chars":1746,"tokens_est":436,"sha256":"4ed5ed3f33561a98cc9eb85c74f2910f92506dcfc50f179218df933cf6862120"},{"id":"docs-sphinx-reference-libobs-util-serializers#serializer","doc":"docs-sphinx-reference-libobs-util-serializers","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Serializer"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst#serializer","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst","text":"[Serializer]\nGeneral programmable serialization functions.  (A shared interface to\nvarious reading/writing to/from different inputs/outputs)\n\n.. code:: cpp\n\n   #include <serializer.h>\n\n## Serializer Structure (struct serializer)\n`serializer`\n\n`void     *serializer.data`\n\n`size_t   (*serializer.read)(void *, void *, size_t)`\n\n`size_t   (*serializer.write)(void *, const void *, size_t)`\n\n`int64_t  (*serializer.seek)(void *, int64_t, enum serialize_seek_type)`\n\n`int64_t  (*serializer.get_pos)(void *)`","chars":503,"tokens_est":126,"sha256":"938d1acf06dc960f71048515c92805dd34ed127f7f0f68fecf032850c4f79f2d"},{"id":"docs-sphinx-reference-libobs-util-serializers#serializer-serializer-inline-functions","doc":"docs-sphinx-reference-libobs-util-serializers","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Serializer","Serializer Inline Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst#serializer-inline-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst","text":"[Serializer \u203a Serializer Inline Functions]\n`size_t s_read(struct serializer *s, void *data, size_t size)`\n\n`size_t s_write(struct serializer *s, const void *data, size_t size)`\n\n`size_t serialize(struct serializer *s, void *data, size_t len)`\n\n`int64_t serializer_seek(struct serializer *s, int64_t offset, enum serialize_seek_type seek_type)`\n\n`int64_t serializer_get_pos(struct serializer *s)`\n\n`void s_w8(struct serializer *s, uint8_t u8)`\n\n`void s_wl16(struct serializer *s, uint16_t u16)`\n\n`void s_wl32(struct serializer *s, uint32_t u32)`\n\n`void s_wl64(struct serializer *s, uint64_t u64)`\n\n`void s_wlf(struct serializer *s, float f)`\n\n`void s_wld(struct serializer *s, double d)`\n\n`void s_wb16(struct serializer *s, uint16_t u16)`\n\n`void s_wb24(struct serializer *s, uint32_t u24)`\n\n`void s_wb32(struct serializer *s, uint32_t u32)`\n\n`void s_wb64(struct serializer *s, uint64_t u64)`\n\n`void s_wbf(struct serializer *s, float f)`\n\n`void s_wbd(struct serializer *s, double d)`\n\n# Array Output Serializer\nProvides an output serializer used with dynamic arrays.\n\n.. versionchanged:: 30.2\n   Array output serializer now supports seeking.\n\n.. code:: cpp\n\n   #include <util/array-serializer.h>\n\n## Array Output Serializer Structure (struct array_output_data)\n`array_output_data`\n\n.. code:: cpp\n\n   DARRAY(uint8_t) array_output_data.bytes\n\n## Array Output Serializer Functions\n`void array_output_serializer_init(struct serializer *s, struct array_output_data *data)`\n\n`void array_output_serializer_free(struct array_output_data *data)`\n\n`void array_output_serializer_reset(struct array_output_data *data)`\n\n   Resets serializer without freeing data.\n\n   .. versionadded:: 30.2\n\n# File Input/Output Serializers\nProvides file reading/writing serializers.\n\n.. code:: cpp\n\n   #include <util/file-serializer.h>\n\n## File Input Serializer Functions\n`bool file_input_serializer_init(struct serializer *s, const char *path)`\n\n   Initializes a file input serializer.\n\n   :return:     *true* if file opened successfully, *false* otherwise\n\n`void file_input_serializer_free(struct serializer *s)`\n\n   Frees a file input serializer.","chars":2118,"tokens_est":530,"sha256":"8c942a8ed96a54cb6ce06ab6fb3b64b8c088b3d154fd94b2bfb31ad2d6671787"},{"id":"docs-sphinx-reference-libobs-util-serializers#file-input-output-serializers-file-output-serializer-functions","doc":"docs-sphinx-reference-libobs-util-serializers","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Serializer","File Input/Output Serializers","File Output Serializer Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst#file-output-serializer-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst","text":"[Serializer \u203a File Input/Output Serializers \u203a File Output Serializer Functions]\n`bool file_output_serializer_init(struct serializer *s, const char *path)`\n\n   Initializes a file output serializer.\n\n   :return:     *true* if file created successfully, *false* otherwise\n\n`bool file_output_serializer_init_safe(struct serializer *s, const char *path, const char *temp_ext)`\n\n   Initializes and safely writes to a temporary file (determined by the\n   temporary extension) until freed.\n\n   :return:     *true* if file created successfully, *false* otherwise\n\n`void file_output_serializer_free(struct serializer *s)`\n\n   Frees the file output serializer and saves the file.","chars":668,"tokens_est":167,"sha256":"839ecc328eb28be07ce7c7d36844ca9bf809cd8c0c730158dc1df23ef8e5dadd"},{"id":"docs-sphinx-reference-libobs-util-serializers#buffered-file-output-serializer","doc":"docs-sphinx-reference-libobs-util-serializers","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Serializer","Buffered File Output Serializer"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst#buffered-file-output-serializer","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst","text":"[Serializer \u203a Buffered File Output Serializer]\nProvides a buffered file serializer that writes data asynchronously to prevent stalls due to slow disk I/O.\n\nWrites will only block when the buffer is full.\n\nThe buffer and chunk size are configurable with the defaults being 256 MiB and 1 MiB respectively.\n\n.. versionadded:: 30.2\n\n.. code:: cpp\n\n   #include <util/buffered-file-serializer.h>","chars":389,"tokens_est":97,"sha256":"224dc726cbebb07a0026d4902c0c8f0355cba2fdbc8e9804225ba9f1faf3fa06"},{"id":"docs-sphinx-reference-libobs-util-serializers#buffered-file-output-serializer-buffered-file-output-serializer-functions","doc":"docs-sphinx-reference-libobs-util-serializers","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Serializer","Buffered File Output Serializer","Buffered File Output Serializer Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst#buffered-file-output-serializer-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-serializers.rst","text":"[Serializer \u203a Buffered File Output Serializer \u203a Buffered File Output Serializer Functions]\n`bool buffered_file_serializer_init_defaults(struct serializer *s, const char *path)`\n\n   Initializes a buffered file output serializer with default buffer and chunk sizes.\n\n   :return:     *true* if file created successfully, *false* otherwise\n\n`bool buffered_file_serializer_init(struct serializer *s, const char *path, size_t max_bufsize, size_t chunk_size)`\n\n   Initialize buffered writer with specified buffer and chunk sizes. Setting either to `0` will use the default value.\n\n   :return:     *true* if file created successfully, *false* otherwise\n\n`void buffered_file_serializer_free(struct serializer *s)`\n\n   Frees the file output serializer and saves the file. Will block until I/O thread completes outstanding writes.","chars":819,"tokens_est":205,"sha256":"6cad27617b7197629a194bc9f8fc0401e78fdf0f5cb2cca0eb4056e6ecb99c06"},{"id":"docs-sphinx-reference-libobs-util-source-profiler#source-profiler","doc":"docs-sphinx-reference-libobs-util-source-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source Profiler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-source-profiler.rst#source-profiler","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-source-profiler.rst","text":"[Source Profiler]\nThe source profiler is used to get information about individual source's performance.\n\n`profiler_result`\n\n`uint64_t profiler_result.tick_avg`\n            uint64_t profiler_result.render_avg\n\n   Average execution time of this source's tick and render functions within the sampled timeframe (5 seconds).\n\n   Note that a source will be ticked only once per frame, but may be rendered multiple times.\n\n`uint64_t profiler_result.tick_max`\n            uint64_t profiler_result.render_max\n\n   Maximum execution time of this source's tick and render functions within the sampled timeframe (5 seconds).\n\n`uint64_t profiler_result.render_gpu_avg`\n            uint64_t profiler_result.render_gpu_max\n\n   Average and maximum execution time for GPU rendering to execute within the sampled timeframe (5 seconds).\n\n   Note that GPU timing is not supported on macOS and is of limited accuracy due to variations in GPU load/clock speed.\n\n`uint64_t profiler_result.render_sum`\n            uint64_t profiler_result.render_gpu_sum\n\n   Sum of all CPU/GPU render time in a frame, averaged over the sampled timeframe (5 seconds).\n\n   For example, assuming a source with perfect consistency in its render time that gets rendered twice in a frame and a value for `profiler_result.render_avg` of `1000000` (1 ms), will have a value for `profiler_result.render_sum` of `2000000` (2 ms).\n\n`double profiler_result.async_fps`\n\n   Framerate calculated from average time delta between async frames submitted via `obs_source_output_video2()`.\n\n   Only valid for async sources (e.g. Media Source).\n\n`struct profiler_result profiler_result_t`\n\n.. code:: cpp\n\n   #include <util/source-profiler.h>\n\nSource Profiler Functions\n\n`void source_profiler_enable(bool enable)`\n\n   Enables or disables the source profiler.\n   The profiler will then start or stop collecting data with the next rendered frame.\n\n   Note that enabling the profiler may have a small performance penalty.\n\n   :param enable: Whether or not to enable the source profiler.","chars":2019,"tokens_est":505,"sha256":"66342da9cc7bb373b4b8f2cb8b96a332669eee0e21d440e8ff3d0036cea3b887"},{"id":"docs-sphinx-reference-libobs-util-source-profiler#source-profiler~2","doc":"docs-sphinx-reference-libobs-util-source-profiler","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source Profiler"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-source-profiler.rst#source-profiler","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-source-profiler.rst","text":"[Source Profiler]\n`void source_profiler_gpu_enable(bool enable)`\n\n   Enables or disables GPU profiling (not available on macOS).\n   GPU profiling will start or stop with the next frame OBS is rendering.\n\n   Note that GPU profiling may have a larger performance impact.\n\n   :param enable: Whether or not to enable GPU profiling.\n\n`profiler_result_t *source_profiler_get_result(obs_source_t *source)`\n\n   Returns profiling information for the provided `source`.\n\n   Note that result must be freed with `bfree()`.\n\n   :param source: Source to get profiling information for\n   :return:       Pointer to `profiler_result_t` with data, `NULL` otherwise.\n\n`bool source_profiler_fill_result(obs_source_t *source, profiler_result_t *result)`\n\n   Fill a preexisting `profiler_result_t` object with data for `source`.\n\n   This function exists to avoid having to allocate new memory each time a profiling result is queried.\n\n   :param source: Source to get profiling information for\n   :param result: Result object to fill\n   :return:       *true* if data for the source exists, *false* otherwise","chars":1084,"tokens_est":271,"sha256":"9c13b69949c8cf1c9a746a13761f6f12e11fb339c14303ca71e8a6d38ca7f997"},{"id":"docs-sphinx-reference-libobs-util-text-lookup#text-lookup-interface","doc":"docs-sphinx-reference-libobs-util-text-lookup","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Text Lookup Interface"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-text-lookup.rst#text-lookup-interface","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-text-lookup.rst","text":"[Text Lookup Interface]\nUsed for storing and looking up localized strings.  Uses an ini-file\nlike file format for localization lookup.\n\n`text_lookup`\n\n`struct text_lookup lookup_t`\n\n.. code:: cpp\n\n   #include <util/text-lookup.h>\n\n## Text Lookup Functions\n`lookup_t *text_lookup_create(const char *path)`\n\n   Creates a text lookup object from a text lookup file.\n\n   :param path: Path to the localization file\n   :return:     New lookup object, or *NULL* if an error occurred\n\n`bool text_lookup_add(lookup_t *lookup, const char *path)`\n\n   Adds text lookup from a text lookup file and replaces any values.\n   For example, you would load a default fallback language such as\n   english with `text_lookup_create()`, and then call this\n   function to load the actual desired language in case the desired\n   language isn't fully translated.\n\n   :param lookup: Lookup object\n   :param path:   Path to the localization file\n   :return:       *true* if successful, *false* otherwise\n\n`void text_lookup_destroy(lookup_t *lookup)`\n\n   Destroys a text lookup object.\n\n   :param lookup: Lookup object\n\n`bool text_lookup_getstr(lookup_t *lookup, const char *lookup_val, const char **out)`\n\n   Gets a localized text string.\n\n   :param lookup:     Lookup object\n   :param lookup_val: Value to look up\n   :param out:        Pointer that receives the translated string\n                      pointer\n   :return:           *true* if the value exists, *false* otherwise","chars":1449,"tokens_est":362,"sha256":"194ba25e29d66851e2f6732027974384285c1b25e2cc0085ef1b22a666ced0b9"},{"id":"docs-sphinx-reference-libobs-util-threading#threading","doc":"docs-sphinx-reference-libobs-util-threading","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Threading"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst#threading","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst","text":"[Threading]\nLibobs provides a number of helper functions/types specifically for\nthreading.  The threading header will additionally provide access to\npthread functions even on Windows.\n\n.. code:: cpp\n\n   #include <util/threading.h>\n\n## Threading Types\n`os_event_t`\n\n`os_sem_t`\n\n## General Thread Functions\n`void os_set_thread_name(const char *name)`\n\n   Sets the name of the current thread.","chars":389,"tokens_est":97,"sha256":"66ff05791c1ec7b03fc7581fadae1d610ef91b84a963862abcbe752e3b120736"},{"id":"docs-sphinx-reference-libobs-util-threading#threading-event-functions","doc":"docs-sphinx-reference-libobs-util-threading","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Threading","Event Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst#event-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst","text":"[Threading \u203a Event Functions]\n`int  os_event_init(os_event_t **event, enum os_event_type type)`\n\n   Creates an event object.\n\n   :param event: Pointer that receives a pointer to a new event object\n   :param type:  Can be one of the following values:\n\n                 - OS_EVENT_TYPE_AUTO - Automatically resets when\n                   signaled\n                 - OS_EVENT_TYPE_MANUAL - Stays signaled until the\n                   `os_event_reset()` function is called\n\n   :return:      0 if successful, negative otherwise\n\n`void os_event_destroy(os_event_t *event)`\n\n   Destroys an event.\n\n   :param event: An event object\n\n`int  os_event_wait(os_event_t *event)`\n\n   Waits for an event to signal.\n\n   :param event: An event object\n   :return:      0 if successful, negative otherwise\n\n`int  os_event_timedwait(os_event_t *event, unsigned long milliseconds)`\n\n   Waits a specific duration for an event to signal.\n\n   :param event:        An event object\n   :param milliseconds: Milliseconds to wait\n   :return:             Can be one of the following values:\n\n                        - 0 - successful\n                        - ETIMEDOUT - Timed out\n                        - EINVAL - An unexpected error occurred\n\n`int  os_event_try(os_event_t *event)`\n\n   Checks for a signaled state without waiting.\n\n   :param event: An event object\n   :return:             Can be one of the following values:\n\n                        - 0 - successful\n                        - EAGAIN - The event is not signaled\n                        - EINVAL - An unexpected error occurred\n\n`int  os_event_signal(os_event_t *event)`\n\n   Signals the event.\n\n   :param event: An event object\n   :return:      0 if successful, negative otherwise\n\n`void os_event_reset(os_event_t *event)`\n\n   Resets the signaled state of the event.\n\n   :param event: An event object","chars":1836,"tokens_est":459,"sha256":"caf73a9d1f6df464e9d207050f69d2751ad4e5489911ab8ff6424a3c88534c60"},{"id":"docs-sphinx-reference-libobs-util-threading#threading-semaphore-functions","doc":"docs-sphinx-reference-libobs-util-threading","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Threading","Semaphore Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst#semaphore-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst","text":"[Threading \u203a Semaphore Functions]\n`int  os_sem_init(os_sem_t **sem, int value)`\n\n   Creates a semaphore object.\n\n   :param sem:   Pointer that receives a pointer to the semaphore object\n   :param value: Initial value of the semaphore\n   :return:      0 if successful, negative otherwise\n\n`void os_sem_destroy(os_sem_t *sem)`\n\n   Destroys a semaphore object.\n\n   :param sem:   Semaphore object\n\n`int  os_sem_post(os_sem_t *sem)`\n\n   Increments the semaphore.\n\n   :param sem:   Semaphore object\n   :return:      0 if successful, negative otherwise\n\n`int  os_sem_wait(os_sem_t *sem)`\n\n   Decrements the semaphore or waits until the semaphore has been\n   incremented.\n\n   :param sem:   Semaphore object\n   :return:      0 if successful, negative otherwise","chars":751,"tokens_est":188,"sha256":"48ca69b24521a916410a7fcd7d3bdb94be6d5902a1d9ec5a8e162de9e48846b6"},{"id":"docs-sphinx-reference-libobs-util-threading#threading-atomic-inline-functions","doc":"docs-sphinx-reference-libobs-util-threading","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Threading","Atomic Inline Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst#atomic-inline-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util-threading.rst","text":"[Threading \u203a Atomic Inline Functions]\n`long os_atomic_inc_long(volatile long *val)`\n\n   Increments a long variable atomically.\n\n`long os_atomic_dec_long(volatile long *val)`\n\n   Decrements a long variable atomically.\n\n`void os_atomic_store_long(volatile long *ptr, long val)`\n\n   Stores the value of a long variable atomically.\n\n`long os_atomic_set_long(volatile long *ptr, long val)`\n\n   Exchanges the value of a long variable atomically. Badly named.\n\n`long os_atomic_exchange_long(volatile long *ptr, long val)`\n\n   Exchanges the value of a long variable atomically. Properly named.\n\n`long os_atomic_load_long(const volatile long *ptr)`\n\n   Gets the value of a long variable atomically.\n\n`bool os_atomic_compare_swap_long(volatile long *val, long old_val, long new_val)`\n\n   Swaps the value of a long variable atomically if its value matches.\n\n`void os_atomic_store_bool(volatile bool *ptr, bool val)`\n\n   Stores the value of a boolean variable atomically.\n\n`bool os_atomic_set_bool(volatile bool *ptr, bool val)`\n\n   Exchanges the value of a boolean variable atomically. Badly named.\n\n`bool os_atomic_exchange_bool(volatile bool *ptr, bool val)`\n\n   Exchanges the value of a boolean variable atomically. Properly named.\n\n`bool os_atomic_load_bool(const volatile bool *ptr)`\n\n   Gets the value of a boolean variable atomically.","chars":1330,"tokens_est":332,"sha256":"cea450168f3a2f9eda3d87362d84c32834e5ac81d6269179ec2609152aef588e"},{"id":"docs-sphinx-reference-libobs-util#platform-utility-api-reference-libobs-util","doc":"docs-sphinx-reference-libobs-util","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Platform/Utility API Reference (libobs/util)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util.rst#platformutility-api-reference-libobsutil","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-libobs-util.rst","text":"[Platform/Utility API Reference (libobs/util)]\n.. toctree::\n   :maxdepth: 2\n\n   reference-libobs-util-base\n   reference-libobs-util-bmem\n   reference-libobs-util-config-file\n   reference-libobs-util-darray\n   reference-libobs-util-deque\n   reference-libobs-util-dstr\n   reference-libobs-util-platform\n   reference-libobs-util-profiler\n   reference-libobs-util-serializers\n   reference-libobs-util-source-profiler\n   reference-libobs-util-text-lookup\n   reference-libobs-util-threading","chars":484,"tokens_est":121,"sha256":"67b7410adc219ddddd69b4bd6206ba5c582e86d3862d5d3d3eda325d4ad40360"},{"id":"docs-sphinx-reference-modules#module-api-reference","doc":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Module API Reference"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst#module-api-reference","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst","text":"[Module API Reference]\nModules add custom functionality to libobs: typically\n`plugins_sources`, `plugins_outputs`, `plugins_encoders`,\nand `plugins_services`.\n\n`obs_module_t`\n\n   A module object (not reference counted).\n\n.. code:: cpp\n\n   #include <obs-module.h>\n\n## Module Macros\nThese macros are used within custom plugin modules.\n\n`OBS_DECLARE_MODULE()`\n\n   Declares a libobs module.  Exports important core module functions\n   related to the module itself, OBS version, etc.\n\n`OBS_MODULE_USE_DEFAULT_LOCALE(module_name, default_locale)`\n\n   Helper macro that uses the standard ini file format for localization.\n   Automatically initializes and destroys localization data, and\n   automatically provides module externs such as\n   `obs_module_text()` to be able to get a localized string with\n   little effort.","chars":811,"tokens_est":203,"sha256":"f4e1a90cae17df59ebfd82f3bda476e4f7f900656df76b3dbf4c9bc36713fd9c"},{"id":"docs-sphinx-reference-modules#module-api-reference-module-exports","doc":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Module API Reference","Module Exports"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst#module-exports","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst","text":"[Module API Reference \u203a Module Exports]\nThese are functions that plugin modules can optionally export in order\nto communicate with libobs and front-ends.\n\n`bool obs_module_load(void)`\n\n   Required: Called when the module is loaded.  Implement this function\n   to load all the sources/encoders/outputs/services for your module, or\n   anything else that may need loading.\n\n   :return:          Return true to continue loading the module, otherwise\n                     false to indicate failure and unload the module\n\n`void obs_module_unload(void)`\n\n   Optional: Called when libobs is shutting down and the module is about\n   to be unloaded. All libobs objects are still active and valid at this\n   point. Use this function to save user settings and release any strong\n   references that the module itself is holding to libobs objects (sources,\n   canvases, outputs, encoders, and services).\n\n   Do not attempt to release or destroy any still-active objects provided\n   by the module - ensure that they can continue functioning even after\n   returning from this function, as libobs may still need to call into the\n   module's callbacks (e.g., destroy) to clean up any remaining instances.\n\n   After this function returns, do not make any further libobs API calls\n   outside of libobs callbacks.\n\n`void obs_module_post_load(void)`\n\n   Optional: Called when all modules have finished loading.\n\n`void obs_module_set_locale(const char *locale)`\n\n   Called to set the locale language and load the locale data for the\n   module.\n\n`void obs_module_free_locale(void)`\n\n   Called on module destruction to free locale data.\n\n`const char *obs_module_name(void)`\n\n   (Optional)\n\n   :return: The full name of the module\n\n`const char *obs_module_description(void)`\n\n   (Optional)\n\n   :return: A description of the module","chars":1804,"tokens_est":451,"sha256":"085168704f8155d110b7370912912600d618e4dac2ddd04650dc3c2aa8c8f4bf"},{"id":"docs-sphinx-reference-modules#module-api-reference-module-externs","doc":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Module API Reference","Module Externs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst#module-externs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst","text":"[Module API Reference \u203a Module Externs]\nThese functions are externs that are usable throughout the module.\n\n`const char *obs_module_text(const char *lookup_string)`\n\n   :return: A localized string\n\n`bool obs_module_get_string(const char *lookup_string, const char **translated_string)`\n\n   Helper function for looking up locale.\n\n   :return: *true* if text found, otherwise *false*\n\n`obs_module_t *obs_current_module(void)`\n\n   :return: The current module\n\n`char *obs_module_file(const char *file)`\n\n   Returns the location to a module data file associated with the\n   current module.  Free with `bfree()` when complete.\n\n   Equivalent to:\n\n.. code:: cpp\n\n      obs_find_module_file(obs_current_module(), file);\n\n`char *obs_module_config_path(const char *file)`\n\n   Returns the location to a module config file associated with the\n   current module.  Free with `bfree()` when complete.  Will\n   return NULL if configuration directory is not set.\n\n   Equivalent to:\n\n.. code:: cpp\n\n      obs_module_get_config_path(obs_current_module(), file);","chars":1042,"tokens_est":260,"sha256":"4741e13d6ed2ba7a3fdd385918ead581594ba7b655732de4a5126fb1db04dddf"},{"id":"docs-sphinx-reference-modules#module-api-reference-frontend-module-functions","doc":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Module API Reference","Frontend Module Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst#frontend-module-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst","text":"[Module API Reference \u203a Frontend Module Functions]\nThese are functions used by frontends to load and get information about\nplugin modules.\n\n`int obs_open_module(obs_module_t **module, const char *path, const char *data_path)`\n\n   Opens a plugin module directly from a specific path.\n\n   If the module already exists then the function will return successful, and\n   the module parameter will be given the pointer to the existing\n   module.\n\n   This does not initialize the module, it only loads the module image.  To\n   initialize the module, call `obs_init_module()`.\n\n   :param  module:    The pointer to the created module\n   :param  path:      Specifies the path to the module library file.  If the\n                      extension is not specified, it will use the extension\n                      appropriate to the operating system\n   :param  data_path: Specifies the path to the directory where the module's\n                      data files are stored (or *NULL* if none)\n   :returns:          | MODULE_SUCCESS          - Successful\n                      | MODULE_ERROR            - A generic error occurred\n                      | MODULE_FILE_NOT_FOUND   - The module was not found\n                      | MODULE_MISSING_EXPORTS  - Required exports are missing\n                      | MODULE_INCOMPATIBLE_VER - Incompatible version\n                      | MODULE_HARDCODED_SKIP   - Skipped by hardcoded rules\n                                                  (e.g. obsolete obs-browser macOS plugin)\n\n`bool obs_init_module(obs_module_t *module)`\n\n   Initializes the module, which calls its obs_module_load export.\n\n   :return: *true* if the module was loaded successfully\n\n`void obs_log_loaded_modules(void)`\n\n   Logs loaded modules.\n\n`const char *obs_get_module_file_name(obs_module_t *module)`\n\n   :return: The module file name\n\n`const char *obs_get_module_name(obs_module_t *module)`\n\n   :return: The module full name (or *NULL* if none)\n\n`void obs_get_module_author(obs_module_t *module)`\n\n   :return: The module author(s)","chars":2032,"tokens_est":508,"sha256":"573a7faae04f58370500df6816233c545fc837b0ebe2ade1ac266f167db37016"},{"id":"docs-sphinx-reference-modules#module-api-reference-frontend-module-functions~2","doc":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Module API Reference","Frontend Module Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst#frontend-module-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst","text":"[Module API Reference \u203a Frontend Module Functions]\n`const char *obs_get_module_description(obs_module_t *module)`\n\n   :return: The module description\n\n`const char *obs_get_module_binary_path(obs_module_t *module)`\n\n   :return: The module binary path\n\n`const char *obs_get_module_data_path(obs_module_t *module)`\n\n   :return: The module data path\n\n`void obs_add_module_path(const char *bin, const char *data)`\n\n   Adds a module search path to be used with obs_find_modules.  If the search\n   path strings contain %module%, that text will be replaced with the module\n   name when used.\n\n   :param  bin:  Specifies the module's binary directory search path\n   :param  data: Specifies the module's data directory search path\n\n`void obs_load_all_modules(void)`\n\n   Automatically loads all modules from module paths (convenience function).\n\n`void obs_load_all_modules2(struct obs_module_failure_info *mfi)`\n\n   Automatically loads all modules from module paths (convenience function).\n   Additionally gives you information about modules that fail to load.\n\n   :param mfi: Provides module failure information. The *failed_modules*\n               member is a string list via a pointer to pointers of\n               strings of modules that failed to load. Can be freed\n               either with `obs_module_failure_info_free()` or\n               by simply calling `bfree()` on the\n               *failed_modules* member variable.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   struct obs_module_failure_info {\n           char **failed_modules;\n           size_t count;\n   };\n\n`void obs_add_safe_module(const char *name)`\n\n   Adds a *name* to the list of modules allowed to load in Safe Mode.\n   If the list is empty, all modules are allowed.\n\n   :param  name: The name of the module (filename sans extension).\n\n   .. versionadded:: 30.0\n\n`void obs_module_failure_info_free(struct obs_module_failure_info *mfi)`\n\n   Frees data allocated data used in the *mfi* parameter (calls\n   `bfree()` on the *failed_modules* member variable).","chars":2043,"tokens_est":511,"sha256":"f4e1d1f659045bbc3f15e92dc407f560aa8e9e2bcde2fb0505177d1fc8358302"},{"id":"docs-sphinx-reference-modules#module-api-reference-frontend-module-functions~3","doc":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Module API Reference","Frontend Module Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst#frontend-module-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst","text":"[Module API Reference \u203a Frontend Module Functions]\n`void obs_post_load_modules(void)`\n\n   Notifies modules that all modules have been loaded.\n\n`void obs_find_modules(obs_find_module_callback_t callback, void *param)`\n\n   Finds all modules within the search paths added by\n   `obs_add_module_path()`.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   struct obs_module_info {\n           const char *bin_path;\n           const char *data_path;\n   };\n\n   typedef void (*obs_find_module_callback_t)(void *param,\n                   const struct obs_module_info *info);\n\n`void obs_find_modules2(obs_find_module_callback_t callback, void *param)`\n\n   Finds all modules within the search paths added by\n   `obs_add_module_path()`.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   struct obs_module_info2 {\n           const char *bin_path;\n           const char *data_path;\n           const char *name;\n   };\n\n   typedef void (*obs_find_module_callback2_t)(void *param,\n                   const struct obs_module_info2 *info);\n\n`void obs_enum_modules(obs_enum_module_callback_t callback, void *param)`\n\n   Enumerates all loaded modules.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef void (*obs_enum_module_callback_t)(void *param, obs_module_t *module);\n\n`char *obs_find_module_file(obs_module_t *module, const char *file)`\n\n   Returns the location of a plugin module data file.\n\n   Note:   Modules should use obs_module_file function defined in obs-module.h\n           as a more elegant means of getting their files without having to\n           specify the module parameter.\n\n   :param  module: The module associated with the file to locate\n   :param  file:   The file to locate\n   :return:        Path string, or NULL if not found.  Use bfree to free string\n\n`char *obs_module_get_config_path(obs_module_t *module, const char *file)`\n\n   Returns the path of a plugin module config file (whether it exists or not).","chars":1973,"tokens_est":493,"sha256":"85874e46c753ee83024ee85f572dec5a88424013289079984dc5ca930287b361"},{"id":"docs-sphinx-reference-modules#module-api-reference-frontend-module-functions~4","doc":"docs-sphinx-reference-modules","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Module API Reference","Frontend Module Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst#frontend-module-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-modules.rst","text":"[Module API Reference \u203a Frontend Module Functions]\nNote:   Modules should use obs_module_config_path function defined in\n           obs-module.h as a more elegant means of getting their files without\n           having to specify the module parameter.\n\n   :param  module: The module associated with the path\n   :param  file:   The file to get a path to\n   :return:        Path string, or NULL if not found.  Use bfree to free string\n\n`void *obs_get_module_lib(obs_module_t *module)`\n\n   Returns library file of specified module.\n\n   :param  module: The module where to find library file.\n   :return:        Pointer to module library.","chars":632,"tokens_est":158,"sha256":"a83af47c39d4b383657a4a5cdc311f086e707384718b368e9d62e2854c4a12cd"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#output-api-reference-obs_output_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t)]\nOutputs allow the ability to output the currently rendering audio/video.\nStreaming and recording are two common examples of outputs, but not the\nonly types of outputs.  Outputs can receive the raw data or receive\nencoded data.  The `libobs/obs-output.h`_ file is the dedicated header\nfor implementing outputs\n\n`obs_output_t`\n\n   A reference-counted output object.\n\n`obs_weak_output_t`\n\n   A weak reference to an output object.\n\n.. code:: cpp\n\n   #include <obs.h>","chars":500,"tokens_est":125,"sha256":"9fd12282777a268dd90f399b11c622a04911d27bc4a7b58608d50b8b0b1755ec"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-output-definition-structure-obs-output-info","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Output Definition Structure (obs_output_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#output-definition-structure-obs_output_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Output Definition Structure (obs_output_info)]\n`obs_output_info`\n\n   Output definition structure.\n\n`const char *obs_output_info.id`\n\n   Unique string identifier for the source (required).\n\n`uint32_t obs_output_info.flags`\n\n   Output capability flags (required).\n\n   (Author's note: This should be renamed to \"capability_flags\")\n\n   A bitwise OR combination of one or more of the following values:\n\n   - **OBS_OUTPUT_VIDEO** - Can output video.\n\n   - **OBS_OUTPUT_AUDIO** - Can output audio.\n\n   - **OBS_OUTPUT_AV** - Combines OBS_OUTPUT_VIDEO and OBS_OUTPUT_AUDIO.\n\n   - **OBS_OUTPUT_ENCODED** - Output is encoded.\n\n     When this capability flag is used, the output must have encoders\n     assigned to it via the `obs_output_set_video_encoder()`\n     and/or `obs_output_set_audio_encoder()` functions in order\n     to be started.\n\n   - **OBS_OUTPUT_SERVICE** - Output requires a service object.\n\n     When this capability flag is used, the output must have a service\n     assigned to it via the `obs_output_set_service()` function\n     in order to be started.\n\n     This is usually used with live streaming outputs that stream to\n     specific services.\n\n   - **OBS_OUTPUT_MULTI_TRACK** - Output supports multiple audio tracks.\n\n     When this capability flag is used, specifies that this output\n     supports multiple encoded audio tracks simultaneously.\n\n   - **OBS_OUTPUT_CAN_PAUSE** - Output supports pausing.\n\n     When this capability flag is used, the output supports pausing.\n     When an output is paused, raw or encoded audio/video data will be\n     halted when paused down to the exact point to the closest video\n     frame.  Audio data will be correctly truncated down to the exact\n     audio sample according to that video frame timing.\n\n`const char *(*obs_output_info.get_name)(void *type_data)`\n\n   Get the translated name of the output type.\n\n   :param  type_data:  The type_data variable of this structure\n   :return:            The translated name of the output type","chars":2024,"tokens_est":506,"sha256":"174fcceefd480a7ca209133d4d094d532d1f2d4d95fbff9ffb0af158ef1b3d3d"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-output-definition-structure-obs-output-info~2","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Output Definition Structure (obs_output_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#output-definition-structure-obs_output_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Output Definition Structure (obs_output_info)]\n`void *(*obs_output_info.create)(obs_data_t *settings, obs_output_t *output)`\n\n   Creates the implementation data for the output.\n\n   :param  settings: Settings to initialize the output with\n   :param  output:   Output that this data is associated with\n   :return:          The implementation data associated with this output\n\n`void (*obs_output_info.destroy)(void *data)`\n\n   Destroys the implementation data for the output.\n\n`bool (*obs_output_info.start)(void *data)`\n\n   Starts the output.  If needed, this function can spawn a thread,\n   return *true* immediately, and then signal for failure later.\n\n   :return: *true* if successful or deferring to a signal to indicate\n            failure, *false* on failure to start\n\n`void (*obs_output_info.stop)(void *data, uint64_t ts)`\n\n   Requests an output to stop at a specified time.  The *ts* parameter\n   indicates when the stop should occur.  Output will actually stop when\n   either the `obs_output_end_data_capture()` or\n   `obs_output_signal_stop()` functions are called.  If *ts* is\n   0, an immediate stop was requested.\n\n   :param ts: The timestamp to stop.  If 0, the output should attempt to\n              stop immediately rather than wait for any more data to\n              process\n\n`void (*obs_output_info.raw_video)(void *data, struct video_data *frame)`\n\n   This is called when the output receives raw video data.  Only applies\n   to outputs that are not encoded.\n\n   :param frame: The raw video frame\n\n`void (*obs_output_info.raw_audio)(void *data, struct audio_data *frames)`\n\n   This is called when the output receives raw audio data.  Only applies\n   to outputs that are not encoded.\n\n   **This callback must be used with single-track raw outputs.**\n\n   :param frames: The raw audio frames\n\n`void (*obs_output_info.raw_audio2)(void *data, size_t idx, struct audio_data *frames)`\n\n   This is called when the output receives raw audio data.  Only applies\n   to outputs that are not encoded.","chars":2043,"tokens_est":511,"sha256":"3b274b53a3c7b9d1ea70dbb1787ef2b9afc5311c2ad8b43739a0f510ab5e9974"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-output-definition-structure-obs-output-info~3","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Output Definition Structure (obs_output_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#output-definition-structure-obs_output_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Output Definition Structure (obs_output_info)]\n**This callback must be used with multi-track raw outputs.**\n\n   :param idx:    The audio track index\n   :param frames: The raw audio frames\n\n`void (*obs_output_info.encoded_packet)(void *data, struct encoder_packet *packet)`\n\n   This is called when the output receives encoded video/audio data.\n   Only applies to outputs that are encoded.  Packets will always be\n   given in monotonic timestamp order.\n\n   :param packet: The video or audio packet.  If NULL, an encoder error\n                  occurred, and the output should call\n                  `obs_output_signal_stop()` with the error code\n                  **OBS_OUTPUT_ENCODE_ERROR**.\n\n`void (*obs_output_info.update)(void *data, obs_data_t *settings)`\n\n   Updates the settings for this output.\n\n   (Optional)\n\n   :param settings: New settings for this output\n\n`void (*obs_output_info.get_defaults)(obs_data_t *settings)`\n            void (*obs_output_info.get_defaults2)(void *type_data, obs_data_t *settings)\n\n   Sets the default settings for this output.\n\n   (Optional)\n\n   :param  settings:  Default settings.  Call obs_data_set_default*\n                      functions on this object to set default setting\n                      values\n\n`obs_properties_t *(*obs_output_info.get_properties)(void *data)`\n            obs_properties_t *(*obs_output_info.get_properties2)(void *data, void *type_data)\n\n   Gets the property information of this output.\n\n   (Optional)\n\n   :return: The properties of the output\n\n`void (*obs_output_info.unused1)(void *data)`\n\n   This callback is no longer used.\n\n`uint64_t (*obs_output_info.get_total_bytes)(void *data)`\n\n   Returns the number of total bytes processed by this output.\n\n   (Optional)\n\n   :return: Total bytes processed by this output since it started\n\n`int (*obs_output_info.get_dropped_frames)(void *data)`\n\n   Returns the number of dropped frames.\n\n   (Optional)\n\n   :return: Number of dropped frames due to network congestion by this\n            output since it started","chars":2064,"tokens_est":516,"sha256":"eb4a67f94a2b33a957b49df1c32dc9a466d914911343a698fa180cf6592d2437"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-output-definition-structure-obs-output-info~4","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Output Definition Structure (obs_output_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#output-definition-structure-obs_output_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Output Definition Structure (obs_output_info)]\n`void *obs_output_info.type_data`\n            void (*obs_output_info.free_type_data)(void *type_data)\n\n   Private data associated with this entry.  Note that this is not the\n   same as the implementation data; this is used to differentiate\n   between two different types if the same callbacks are used for more\n   than one different type.\n\n   (Optional)\n\n`float (*obs_output_info.get_congestion)(void *data)`\n\n   This function is used to indicate how currently congested the output\n   is.  Useful for visualizing how much data is backed up on streaming\n   outputs.\n\n   (Optional)\n\n   :return: Current congestion value (0.0f..1.0f)\n\n`int (*obs_output_info.get_connect_time_ms)(void *data)`\n\n   This function is used to determine how many milliseconds it took to\n   connect to its current server.\n\n   (Optional)\n\n   :return: Milliseconds it took to connect to its current server\n\n`const char *obs_output_info.encoded_video_codecs`\n            const char *obs_output_info.encoded_audio_codecs\n\n   This variable specifies which codecs are supported by an encoded\n   output, separated by semicolon.\n\n   Required if **OBS_OUTPUT_SERVICE** flag is set, otherwise\n   recommended.\n\n`const char *obs_output_info.protocols`\n\n   This variable specifies which protocols are supported by an output,\n   separated by semicolon.\n\n   Required only if **OBS_OUTPUT_SERVICE** flag is set.\n\n   .. versionadded:: 29.1\n\n.. _output_signal_handler_reference:","chars":1519,"tokens_est":380,"sha256":"1090f261e9480187fb019792a5defcc0685b6db78d76b52776853fe64263bc9c"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-output-signals","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Output Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#output-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Output Signals]\n**start** (ptr output)\n\n   Called when the output starts.\n\n**stop** (ptr output, int code)\n\n   Called when the output stops.\n\n   :Parameters: - **code** - Can be one of the following values:\n\n                  | OBS_OUTPUT_SUCCESS        - Successfully stopped\n                  | OBS_OUTPUT_BAD_PATH       - The specified path was invalid\n                  | OBS_OUTPUT_CONNECT_FAILED - Failed to connect to a server\n                  | OBS_OUTPUT_INVALID_STREAM - Invalid stream path\n                  | OBS_OUTPUT_ERROR          - Generic error\n                  | OBS_OUTPUT_DISCONNECTED   - Unexpectedly disconnected\n                  | OBS_OUTPUT_UNSUPPORTED    - The settings, video/audio format, or codecs are unsupported by this output\n                  | OBS_OUTPUT_NO_SPACE       - Ran out of disk space\n                  | OBS_OUTPUT_ENCODE_ERROR   - Encoder error\n\n**pause** (ptr output)\n\n   Called when the output has been paused.\n\n**unpause** (ptr output)\n\n   Called when the output has been unpaused.\n\n**starting** (ptr output)\n\n   Called when the output is starting.\n\n**stopping** (ptr output)\n\n   Called when the output is stopping.\n\n**activate** (ptr output)\n\n   Called when the output activates (starts capturing data).\n\n**deactivate** (ptr output)\n\n   Called when the output deactivates (stops capturing data).\n\n**reconnect** (ptr output)\n\n   Called when the output is reconnecting.\n\n**reconnect_success** (ptr output)\n\n   Called when the output has successfully reconnected.","chars":1551,"tokens_est":388,"sha256":"659fbbdd177df6b7cab60aecc975231b388e045126a1435a331f114ab44f072a"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\n`void obs_register_output(struct obs_output_info *info)`\n\n   Registers an output type.  Typically used in\n   `obs_module_load()` or in the program's initialization phase.\n\n`const char *obs_output_get_display_name(const char *id)`\n\n   Calls the `obs_output_info.get_name` callback to get the\n   translated display name of an output type.\n\n   :param    id:            The output type string identifier\n   :return:                 The translated display name of an output type\n\n`obs_output_t *obs_output_create(const char *id, const char *name, obs_data_t *settings, obs_data_t *hotkey_data)`\n\n   Creates an output with the specified settings.\n\n   The \"output\" context is used for anything related to outputting the\n   final video/audio mix (E.g. streaming or recording).  Use\n   obs_output_release to release it.\n\n   :param   id:             The output type string identifier\n   :param   name:           The desired name of the output.  If this is\n                            not unique, it will be made to be unique\n   :param   settings:       The settings for the output, or *NULL* if\n                            none\n   :param   hotkey_data:    Saved hotkey data for the output, or *NULL*\n                            if none\n   :return:                 A reference to the newly created output, or\n                            *NULL* if failed\n\n`obs_output_t *obs_output_get_ref(obs_output_t *output)`\n\n   Returns an incremented reference if still valid, otherwise returns\n   *NULL*. Release with `obs_output_release()`.\n\n`void obs_output_release(obs_output_t *output)`\n\n   Releases a reference to an output.  When the last reference is\n   released, the output is destroyed.\n\n`obs_weak_output_t *obs_output_get_weak_output(obs_output_t *output)`\n              obs_output_t *obs_weak_output_get_output(obs_weak_output_t *weak)","chars":1889,"tokens_est":472,"sha256":"bb49ac51fd7021cab11a908ba37af7257772549db16ae049f1fee5726dc1cf05"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~2","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\nThese functions are used to get a weak reference from a strong output\n   reference, or a strong output reference from a weak reference.  If\n   the output is destroyed, *obs_weak_output_get_output* will return\n   *NULL*.\n\n`void obs_weak_output_addref(obs_weak_output_t *weak)`\n              void obs_weak_output_release(obs_weak_output_t *weak)\n\n   Adds/releases a weak reference to an output.\n\n`bool obs_weak_output_references_output(obs_weak_output_t *weak, obs_output_t *output)`\n\n   Compares a weak output reference with an output.\n\n   :return: Whether the weak output reference ties back to the specified output\n\n`const char *obs_output_get_name(const obs_output_t *output)`\n\n   :return: The name of the output\n\n`const char *obs_output_get_id(const obs_output_t *output)`\n\n   :return: The output's type identifier string\n\n`bool obs_output_start(obs_output_t *output)`\n\n   Starts the output.\n\n   :return: *true* if output successfully started, *false* otherwise.  If\n            the output failed to start,\n            `obs_output_get_last_error()` may contain a specific\n            error string related to the reason\n\n`void obs_output_stop(obs_output_t *output)`\n\n   Requests the output to stop.  The output will wait until all data is\n   sent up until the time the call was made, then when the output has\n   successfully stopped, it will send the \"stop\" signal.  See\n   `output_signal_handler_reference` for more information on output\n   signals.\n\n`void obs_output_set_delay(obs_output_t *output, uint32_t delay_sec, uint32_t flags)`\n\n   Sets the current output delay, in seconds (if the output supports delay)\n\n   If delay is currently active, it will set the delay value, but will not\n   affect the current delay, it will only affect the next time the output is\n   activated.","chars":1848,"tokens_est":462,"sha256":"51339af22c7c9a7654b7e718ed56e4f83204f192a75e824f82f92b3134833165"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~3","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\n:param delay_sec: Amount to delay the output, in seconds\n   :param flags:      | Can be 0 or a combination of one of the following values:\n                      | OBS_OUTPUT_DELAY_PRESERVE - On reconnection, start where it left of on reconnection.  Note however that this option will consume extra memory to continually increase delay while waiting to reconnect\n\n`uint32_t obs_output_get_delay(const obs_output_t *output)`\n\n   Gets the currently set delay value, in seconds.\n\n`uint32_t obs_output_get_active_delay(const obs_output_t *output)`\n\n   If delay is active, gets the currently active delay value, in\n   seconds.  The active delay can increase if the\n   OBS_OUTPUT_DELAY_PRESERVE flag was set when setting a delay.\n\n`void obs_output_force_stop(obs_output_t *output)`\n\n   Attempts to get the output to stop immediately without waiting for\n   data to send.\n\n`bool obs_output_active(const obs_output_t *output)`\n\n   :return: *true* if the output is currently active, *false* otherwise\n\n`obs_data_t *obs_output_defaults(const char *id)`\n\n   :return: An incremented reference to the output's default settings.\n            Release with `obs_data_release()`.\n\n`obs_properties_t *obs_output_properties(const obs_output_t *output)`\n              obs_properties_t *obs_get_output_properties(const char *id)\n\n   Use these functions to get the properties of an output or output\n   type.  Properties are optionally used (if desired) to automatically\n   generate user interface widgets to allow users to update settings.\n\n   :return: The properties list for a specific existing output.  Free\n            with `obs_properties_destroy()`\n\n`void obs_output_update(obs_output_t *output, obs_data_t *settings)`\n\n   Updates the settings for this output context.\n\n`bool obs_output_can_pause(const obs_output_t *output)`\n\n   :return: *true* if the output can be paused, *false* otherwise\n\n`bool obs_output_pause(obs_output_t *output, bool pause)`\n\n   Pause an output (if supported by the output).","chars":2047,"tokens_est":512,"sha256":"854d3e87c7fca86e346abd5ff1ab799e3a69e9bb349a8642f2604d204db2dbbe"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~4","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\n:return: *true* if the output was paused successfully, *false*\n            otherwise\n\n`bool obs_output_paused(const obs_output_t *output)`\n\n   :return: *true* if the output is paused, *false* otherwise\n\n`obs_data_t *obs_output_get_settings(const obs_output_t *output)`\n\n   :return: An incremented reference to the output's settings. Release with\n            `obs_data_release()`.\n\n`signal_handler_t *obs_output_get_signal_handler(const obs_output_t *output)`\n\n   :return: The signal handler of the output. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n`proc_handler_t *obs_output_get_proc_handler(const obs_output_t *output)`\n\n   :return: The procedure handler of the output. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n`void obs_output_set_media(obs_output_t *output, video_t *video, audio_t *audio)`\n\n   Sets the current video/audio handlers for the output (typically\n   `obs_get_video()` and `obs_get_audio()`).  Only used\n   with raw outputs so they can catch the raw video/audio frames.\n\n`video_t *obs_output_video(const obs_output_t *output)`\n              audio_t *obs_output_audio(const obs_output_t *output)\n\n   Gets the current video/audio handlers for the output.\n\n`void obs_output_set_mixer(obs_output_t *output, size_t mixer_idx)`\n              size_t obs_output_get_mixer(const obs_output_t *output)\n\n   Sets/gets the current audio mixer for non-encoded outputs.  For\n   multi-track outputs, this would be the equivalent of setting the mask\n   only for the specified mixer index.  An index of MAX_AUDIO_MIXES (6) or\n   more is ignored with a warning, and the mask stays as it was.\n\n`void obs_output_set_mixers(obs_output_t *output, size_t mixers)`\n              size_t obs_output_get_mixers(const obs_output_t *output)","chars":1871,"tokens_est":468,"sha256":"0da008477d68ff4af4d00e8a5ac37eced53f15aa45648626e84ac574b7b15d0e"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~5","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\nSets/gets the current audio mixers (via mask) for non-encoded\n   multi-track outputs.  If used with single-track outputs, the\n   single-track output will use either the first set mixer track in the\n   bitmask, or the first track if none is set in the bitmask.\n\n`void obs_output_set_video_encoder(obs_output_t *output, obs_encoder_t *encoder)`\n              void obs_output_set_audio_encoder(obs_output_t *output, obs_encoder_t *encoder, size_t idx)\n\n   Sets the video/audio encoders for an encoded output.\n\n   :param encoder: The video/audio encoder\n   :param idx:     The audio encoder index if the output supports\n                   multiple audio streams at once\n\n`obs_encoder_t *obs_output_get_video_encoder(const obs_output_t *output)`\n              obs_encoder_t *obs_output_get_audio_encoder(const obs_output_t *output, size_t idx)\n\n   Gets the video/audio encoders for an encoded output.\n\n   :param idx:     The audio encoder index if the output supports\n                   multiple audio streams at once\n   :return:        The video/audio encoder.  The reference is not\n                   incremented\n\n`void obs_output_set_service(obs_output_t *output, obs_service_t *service)`\n              obs_service_t *obs_output_get_service(const obs_output_t *output)\n\n   Sets/gets the service for outputs that require services (such as RTMP\n   outputs).  *obs_output_get_service* does not return an incremented\n   reference.\n\n`void obs_output_set_reconnect_settings(obs_output_t *output, int retry_count, int retry_sec);`\n\n   Sets the auto-reconnect settings for outputs that support it.  The\n   retry time will double on each retry to prevent overloading services.\n\n   :param retry_count: Maximum retry count.  Set to 0 to disable\n                       reconnecting\n   :param retry_sec:   Starting retry wait duration, in seconds\n\n`uint64_t obs_output_get_total_bytes(const obs_output_t *output)`\n\n   :return: Total bytes sent/processed","chars":2003,"tokens_est":501,"sha256":"bc0157461a2b71d5f22ad10e0715d916a0108d43042b2418585eb0c3fadcb759"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~6","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\n`int obs_output_get_frames_dropped(const obs_output_t *output)`\n\n   :return: Number of frames that were dropped due to network congestion\n\n`int obs_output_get_total_frames(const obs_output_t *output)`\n\n   :return: Total frames sent/processed\n\n`void obs_output_set_preferred_size(obs_output_t *output, uint32_t width, uint32_t height)`\n\n   Sets the preferred scaled resolution for this output.  Set width and height\n   to 0 to disable scaling.\n\n   If this output uses an encoder, it will call obs_encoder_set_scaled_size on\n   the encoder before the stream is started.  If the encoder is already active,\n   then this function will trigger a warning and do nothing.\n\n`uint32_t obs_output_get_width(const obs_output_t *output)`\n              uint32_t obs_output_get_height(const obs_output_t *output)\n\n   :return: The width/height of the output\n\n`void obs_output_output_caption_text1(obs_output_t *output, const char *text)`\n              void obs_output_output_caption_text2(obs_output_t *output, const char *text, double display_duration)\n\n   Outputs captions from the specified text input. *text1* is the same as\n   *text2*, except that the *display_duration* is hardcoded to 2.0 seconds.\n\n   *display_duration* represents the minimum quantity of time that a given\n   caption page can be displayed for before moving onto the next caption in\n   the queue. Text is word-wrapped to 32 columns and paginated at 15 rows.\n   Each page produced by one call receives the specified duration, so a call\n   producing N pages takes at least N \u00d7 *display_duration* to display fully.\n   The duration does not schedule an automatic clear when the queue is empty.\n\n`float obs_output_get_congestion(obs_output_t *output)`\n\n   :return: The congestion value.  This value is used to visualize the\n            current congestion of a network output.  For example, if\n            there is no congestion, the value will be 0.0f, if it's\n            fully congested, the value will be 1.0f","chars":2030,"tokens_est":508,"sha256":"82be71625da8ceaf07a5fff5ab0ea90de1249ab74e83c05602426ec9610adaf8"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~7","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\n`int obs_output_get_connect_time_ms(obs_output_t *output)`\n\n   :return: How long the output took to connect to a server, in\n            milliseconds\n\n`bool obs_output_reconnecting(const obs_output_t *output)`\n\n   :return: *true* if the output is currently reconnecting to a server,\n            *false* otherwise\n\n`const char *obs_output_get_supported_video_codecs(const obs_output_t *output)`\n              const char *obs_get_output_supported_video_codecs(const char *id)\n              const char *obs_output_get_supported_audio_codecs(const obs_output_t *output)\n              const char *obs_get_output_supported_audio_codecs(const char *id)\n\n   :return: Supported video/audio codecs of an encoded output, separated\n            by semicolon\n\n   .. versionadded:: 29.1\n      `obs_get_output_supported_video_codecs` and\n      `obs_get_output_supported_audio_codecs`\n\n`uint32_t obs_output_get_flags(const obs_output_t *output)`\n              uint32_t obs_get_output_flags(const char *id)\n\n   :return: The output capability flags\n\n`const char *obs_output_get_protocols(const obs_output_t *output)`\n\n   :return: Supported protocols, separated by semicolon. Always NULL if the\n            output is not **OBS_OUTPUT_SERVICE**.\n\n   .. versionadded:: 29.1\n\n`bool obs_is_output_protocol_registered(const char *protocol)`\n\n   Check if one of the registered output use the given protocol.\n\n   :return:                 A boolean showing if an output with the given\n                            protocol is registered\n\n   .. versionadded:: 29.1\n\n`bool obs_enum_output_protocols(size_t idx, char **protocol)`\n\n   Enumerates all registered protocol.\n\n   .. versionadded:: 29.1\n\n`void obs_enum_output_types_with_protocol(const char *protocol, void *data, bool (*enum_cb)(void *data, const char *id))`\n\n   Enumerates through a callback all available output types for the given protocol.","chars":1936,"tokens_est":484,"sha256":"45dd8ad15026b5e1371e82cbcdb60c28c17c4ff0d730cb52fd6fb454d20e49f2"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~8","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\n:param protocol: Protocol of the outputs to enumerate\n   :param data:     Data passed to the callback\n   :param enum_cb:  Callback used when a matching output is found, the id\n                    of the output is passed to the callback\n   :return:         When all outputs are enumerated or if the callback return *false*\n\n   .. versionadded:: 29.1\n\n`void obs_output_add_packet_callback(obs_output_t *output, void (*packet_cb)(obs_output_t *output,`\n              struct encoder_packet *pkt, struct encoder_packet_time *pkt_time, void *param), void *param)\n\n   Register a packet callback function for the output. The callback is invoked for each compressed\n   packet just before sending to the service. This packet callback mechanism is the preferred method\n   for all packet-level processing that is not required to be implemented in libobs. Any reallocation\n   of the packet buffer, if necessary, must be done with functions in `libobs\\util\\bmem.h`, otherwise\n   a memory leak may occur. Never use `memset()` to clear the packet buffer, as the buffer data is\n   needed for subsequent callback processing.\n\n   :param output:     The output to register the packet_cb() function against\n   :param packet_cb:  Function pointer to the callback function\n   :param param:      Data passed to the callback\n   :return:           When the callback is added\n\n   packet_cb() arguments:\n   :param output:     The output associated with the invoked callback function\n   :param pkt:        Compressed data packet (audio or video)\n   :param pkt_time:   encoder_packet_time structure associated with the data packet\n   :param param:      Data passed to the callback\n\n   .. versionadded:: 31.0\n\n`void obs_output_remove_packet_callback(obs_output_t *output, void (*packet_cb)(obs_output_t *output,`\n              struct encoder_packet *pkt, struct encoder_packet_time *pkt_time, void *param), void *param)","chars":1953,"tokens_est":488,"sha256":"b0bf3975a91aba2d68df0dba7c2a0f94679b72e3b5778b0a4bd74ab190a99430"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-general-output-functions~9","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","General Output Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#general-output-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a General Output Functions]\nRemove a packet callback function for the output, that had been previously registered with\n   `obs_output_add_packet_callback()`.\n\n   :param output:     The output to remove the packet_cb() function against\n   :param packet_cb:  Function pointer to the callback function\n   :param param:      Data passed to the callback\n   :return:           When the callback is removed\n\n   .. versionadded:: 31.0\n\n`void obs_output_set_reconnect_callback(obs_output_t *output, bool (*reconnect_cb)(void *data, obs_output_t *output, int code), void *param)`\n\n   Sets a callback that can be used to decide whether or not to attempt reconnecting.\n   Can also be used to reconfigure the output within the callback before continuing the reconnection attempts,\n   e.g., to update the stream key after the previous one has expired.\n\n   Passing in a `NULL` pointer removes the callback.\n\n   :param output:        The output to register the reconnect_cb() function against\n   :param reconnect_cb:  Function pointer to the callback function\n   :param param:         Data passed to the callback\n\n   reconnect_cb() arguments:\n   :param data:    Data passed to the callback\n   :param output:  The output associated with the invoked callback function\n   :param code:    Error code the output was stopped with\n   :return:        Whether or not to continue attempting to reconnect\n\n   .. versionadded:: 31.1","chars":1441,"tokens_est":360,"sha256":"e6f9ffeecb933affe1d1eee43a7fbbcbdd33b783782a8e3caa3f7d48031182f2"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-functions-used-by-outputs","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Functions used by outputs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#functions-used-by-outputs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Functions used by outputs]\n`void obs_output_set_last_error(obs_output_t *output, const char *message)`\n              const char *obs_output_get_last_error(obs_output_t *output)\n\n   Sets/gets the translated error message that is presented to a user in\n   case of disconnection, inability to connect, etc.\n\n`void obs_output_set_video_conversion(obs_output_t *output, const struct video_scale_info *conversion)`\n              const struct video_scale_info *obs_output_get_video_conversion(obs_output_t *output)\n\n   Optionally sets/gets the video conversion information.  Only used by\n   raw outputs.  The getter returns *NULL* when no conversion is set and\n   the output is not scaled, or when it is scaled but has no video.\n\n   .. versionadded:: 29.1\n     `obs_output_get_video_conversion`\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   enum video_format {\n           VIDEO_FORMAT_NONE,\n\n           /* planar 4:2:0 formats */\n           VIDEO_FORMAT_I420, /* three-plane */\n           VIDEO_FORMAT_NV12, /* two-plane, luma and packed chroma */\n\n           /* packed 4:2:2 formats */\n           VIDEO_FORMAT_YVYU,\n           VIDEO_FORMAT_YUY2, /* YUYV */\n           VIDEO_FORMAT_UYVY,\n\n           /* packed uncompressed formats */\n           VIDEO_FORMAT_RGBA,\n           VIDEO_FORMAT_BGRA,\n           VIDEO_FORMAT_BGRX,\n           VIDEO_FORMAT_Y800, /* grayscale */\n\n           /* planar 4:4:4 */\n           VIDEO_FORMAT_I444,\n\n           /* more packed uncompressed formats */\n           VIDEO_FORMAT_BGR3,\n\n           /* planar 4:2:2 */\n           VIDEO_FORMAT_I422,\n\n           /* planar 4:2:0 with alpha */\n           VIDEO_FORMAT_I40A,\n\n           /* planar 4:2:2 with alpha */\n           VIDEO_FORMAT_I42A,\n\n           /* planar 4:4:4 with alpha */\n           VIDEO_FORMAT_YUVA,\n\n           /* packed 4:4:4 with alpha */\n           VIDEO_FORMAT_AYUV,","chars":1914,"tokens_est":478,"sha256":"49e664a4613c1aa3b81aaff48880e50659b438f725489f8e6cc5af2153107ea1"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-functions-used-by-outputs~2","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Functions used by outputs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#functions-used-by-outputs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Functions used by outputs]\n/* planar 4:2:0 format, 10 bpp */\n           VIDEO_FORMAT_I010, /* three-plane */\n           VIDEO_FORMAT_P010, /* two-plane, luma and packed chroma */\n\n           /* planar 4:2:2 format, 10 bpp */\n           VIDEO_FORMAT_I210,\n\n           /* planar 4:4:4 format, 12 bpp */\n           VIDEO_FORMAT_I412,\n\n           /* planar 4:4:4:4 format, 12 bpp */\n           VIDEO_FORMAT_YA2L,\n\n           /* planar 4:2:2 format, 16 bpp */\n           VIDEO_FORMAT_P216, /* two-plane, luma and packed chroma */\n\n           /* planar 4:4:4 format, 16 bpp */\n           VIDEO_FORMAT_P416, /* two-plane, luma and packed chroma */\n\n           /* packed 4:2:2 format, 10 bpp */\n           VIDEO_FORMAT_V210,\n\n           /* packed uncompressed 10-bit format */\n           VIDEO_FORMAT_R10L,\n   };\n\n   enum video_colorspace {\n           VIDEO_CS_DEFAULT,\n           VIDEO_CS_601,\n           VIDEO_CS_709,\n           VIDEO_CS_SRGB,\n           VIDEO_CS_2100_PQ,\n           VIDEO_CS_2100_HLG,\n   };\n\n   enum video_range_type {\n           VIDEO_RANGE_DEFAULT,\n           VIDEO_RANGE_PARTIAL,\n           VIDEO_RANGE_FULL\n   };\n\n   struct video_scale_info {\n           enum video_format     format;\n           uint32_t              width;\n           uint32_t              height;\n           enum video_range_type range;\n           enum video_colorspace colorspace;\n   };\n\n`void obs_output_set_audio_conversion(obs_output_t *output, const struct audio_convert_info *conversion)`\n\n   Optionally sets the audio conversion information.  Only used by raw\n   outputs.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   enum audio_format {\n           AUDIO_FORMAT_UNKNOWN,\n\n           AUDIO_FORMAT_U8BIT,\n           AUDIO_FORMAT_16BIT,\n           AUDIO_FORMAT_32BIT,\n           AUDIO_FORMAT_FLOAT,\n\n           AUDIO_FORMAT_U8BIT_PLANAR,\n           AUDIO_FORMAT_16BIT_PLANAR,\n           AUDIO_FORMAT_32BIT_PLANAR,\n           AUDIO_FORMAT_FLOAT_PLANAR,\n   };","chars":2006,"tokens_est":502,"sha256":"b8c16a54167720246140a0f657649363e1026c0885aa0661bfd201c6ff46946a"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-functions-used-by-outputs~3","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Functions used by outputs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#functions-used-by-outputs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Functions used by outputs]\nenum speaker_layout {\n           SPEAKERS_UNKNOWN,\n           SPEAKERS_MONO,\n           SPEAKERS_STEREO,\n           SPEAKERS_2POINT1,\n           SPEAKERS_4POINT0,\n           SPEAKERS_4POINT1,\n           SPEAKERS_5POINT1,\n           SPEAKERS_5POINT1_SURROUND,\n           SPEAKERS_7POINT1,\n           SPEAKERS_7POINT1_SURROUND,\n           SPEAKERS_SURROUND,\n   };\n\n   struct audio_convert_info {\n           uint32_t            samples_per_sec;\n           enum audio_format   format;\n           enum speaker_layout speakers;\n   };\n\n`bool obs_output_can_begin_data_capture(const obs_output_t *output, int flags)`\n\n   Determines whether video/audio capture (encoded or raw) is able to\n   start.  Call this before initializing any output state to ensure that\n   the output can start.\n\n   :param output: The output\n   :param flags: Reserved. Set this to 0.\n   :return:      *true* if data capture can begin\n\n`bool obs_output_initialize_encoders(obs_output_t *output, int flags)`\n\n   Initializes any encoders/services associated with the output.  This\n   must be called for encoded outputs before calling\n   `obs_output_begin_data_capture()`.\n\n   :param output: The output\n   :param flags: Reserved. Set this to 0.\n   :return:      *true* if successful, *false* otherwise\n\n`bool obs_output_begin_data_capture(obs_output_t *output, int flags)`\n\n   Begins data capture from raw media or encoders.  This is typically\n   when the output actually activates (starts) internally.  Video/audio\n   data will start being sent to the callbacks of the output.\n\n   :param output: The output\n   :param flags: Reserved. Set this to 0.\n   :return:      *true* if successful, *false* otherwise.  Typically the\n                 return value does not need to be checked if\n                 `obs_output_can_begin_data_capture2()` was\n                 called\n\n`void obs_output_end_data_capture(obs_output_t *output)`","chars":1953,"tokens_est":488,"sha256":"eb897fc0bb8b42bd7892711adf730163c09c6e10129f0d6e1566099d8a7efa21"},{"id":"docs-sphinx-reference-outputs#output-api-reference-obs-output-t-functions-used-by-outputs~4","doc":"docs-sphinx-reference-outputs","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Output API Reference (obs_output_t)","Functions used by outputs"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst#functions-used-by-outputs","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-outputs.rst","text":"[Output API Reference (obs_output_t) \u203a Functions used by outputs]\nEnds data capture of an output.  This is typically when the output\n   actually intentionally deactivates (stops).  Video/audio data will\n   stop being sent to the callbacks of the output.  The output will\n   trigger the \"stop\" signal with the OBS_OUTPUT_SUCCESS code to\n   indicate that the output has stopped successfully.  See\n   `output_signal_handler_reference` for more information on output\n   signals.\n\n`void obs_output_signal_stop(obs_output_t *output, int code)`\n\n   Ends data capture of an output with an output code, indicating that\n   the output stopped unexpectedly.  This is typically used if for\n   example the server was disconnected for some reason, or if there was\n   an error saving to file.  The output will trigger the \"stop\" signal\n   with the the desired code to indicate that the output has stopped\n   successfully.  See `output_signal_handler_reference` for more\n   information on output signals.\n\n   `obs_output_set_last_error()` may be used in conjunction with\n   these error codes to optionally relay more detailed error information\n   to the user\n\n   :param code: | Can be one of the following values:\n                | OBS_OUTPUT_SUCCESS        - Successfully stopped\n                | OBS_OUTPUT_BAD_PATH       - The specified path was invalid\n                | OBS_OUTPUT_CONNECT_FAILED - Failed to connect to a server\n                | OBS_OUTPUT_INVALID_STREAM - Invalid stream path\n                | OBS_OUTPUT_ERROR          - Generic error\n                | OBS_OUTPUT_DISCONNECTED   - Unexpectedly disconnected\n                | OBS_OUTPUT_UNSUPPORTED    - The settings, video/audio format, or codecs are unsupported by this output\n                | OBS_OUTPUT_NO_SPACE       - Ran out of disk space\n\n`uint64_t obs_output_get_pause_offset(obs_output_t *output)`\n\n   Returns the current pause offset of the output.  Used with raw\n   outputs to calculate system timestamps when using calculated\n   timestamps (see FFmpeg output for an example).\n\n.. ---------------------------------------------------------------------------\n\n.. _libobs/obs-output.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-output.h","chars":2225,"tokens_est":556,"sha256":"0c7e2cc0283984b39e5c2d7e191e44a397a59d3dc5da8be19f5ed494db985e09"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#properties-api-reference-obs_properties_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t)]\nProperties are used to enumerate available settings for a libobs object.\nTypically this is used to automatically generate user interface widgets,\nthough can be used to enumerate available and/or valid values for\nspecific settings as well.\n\n`obs_properties_t`\n\n   Properties object (not reference counted).\n\n`obs_property_t`\n\n   A property object (not reference counted).\n\n.. code:: cpp\n\n   #include <obs.h>","chars":452,"tokens_est":113,"sha256":"6148c12cac49e4ff8b5d44f03b0a206dedeb43cea485eea50f7561485e7e3687"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-general-functions","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","General Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#general-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a General Functions]\n`obs_properties_t *obs_properties_create(void)`\n\n   :return: A new properties object.\n\n`obs_properties_t *obs_properties_create_param(void *param, void (*destroy)(void *param))`\n\n   Creates a new properties object with specific private data *param*\n   associated with the object, and is automatically freed with the\n   object when the properties are destroyed via the *destroy* function.\n\n   :return: A new properties object.\n\n`void obs_properties_destroy(obs_properties_t *props)`\n\n`void obs_properties_set_flags(obs_properties_t *props, uint32_t flags)`\n              uint32_t obs_properties_get_flags(obs_properties_t *props)\n\n   :param flags: 0 or a bitwise OR combination of one of the following\n                 values:\n\n                 - OBS_PROPERTIES_DEFER_UPDATE - A hint that tells the\n                   front-end to defers updating the settings until the\n                   user has finished editing all properties rather than\n                   immediately updating any settings\n\n`void obs_properties_set_param(obs_properties_t *props, void *param, void (*destroy)(void *param))`\n              void *obs_properties_get_param(obs_properties_t *props)\n\n   Sets custom data associated with this properties object.  If private\n   data is already associated with the object, that private data will be\n   destroyed before assigning new private data to it.\n\n`void obs_properties_apply_settings(obs_properties_t *props, obs_data_t *settings)`\n\n   Applies settings to the properties by calling all the necessary\n   modification callbacks\n\n`obs_properties_t *obs_properties_get_parent(obs_properties_t *props)`\n\n`void obs_properties_remove_by_name(obs_properties_t *props, const char *property)`","chars":1766,"tokens_est":442,"sha256":"98beb65264da7b019ec9daf5a16df0f04bbdc4ec896dca10b684a4d42666723f"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-general-functions~2","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","General Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#general-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a General Functions]\nRemoves a property from a properties list. Only valid in `get_properties`,\n   `script_properties` for scripts, `modified_callback`, and `modified_callback2`.\n   `modified_callback` and `modified_callback2` *must* return true so that\n   all UI properties are rebuilt. Returning false is undefined behavior.\n\n   :param props:    Properties to remove from.\n   :param property: Name of the property to remove.","chars":471,"tokens_est":118,"sha256":"84d715031828c3603af3e8a37c0f69e6fc68135b4247a0f3ab6779293b3e58eb"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-object-functions","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Object Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-object-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Object Functions]\n`obs_property_t *obs_properties_add_bool(obs_properties_t *props, const char *name, const char *description)`\n\n   Adds a boolean property.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :return:               The property\n\n`obs_property_t *obs_properties_add_int(obs_properties_t *props, const char *name, const char *description, int min, int max, int step)`\n\n   Adds an integer property.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :param    min:         Minimum value\n   :param    max:         Maximum value\n   :param    step:        Step value\n   :return:               The property\n\n`obs_property_t *obs_properties_add_float(obs_properties_t *props, const char *name, const char *description, double min, double max, double step)`\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :param    min:         Minimum value\n   :param    max:         Maximum value\n   :param    step:        Step value\n   :return:               The property\n\n`obs_property_t *obs_properties_add_int_slider(obs_properties_t *props, const char *name, const char *description, int min, int max, int step)`\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :param    min:         Minimum value\n   :param    max:         Maximum value\n   :param    step:        Step value\n   :return:               The property\n\n`obs_property_t *obs_properties_add_float_slider(obs_properties_t *props, const char *name, const char *description, double min, double max, double step)`\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :param    min:         Minimum value\n   :param    max:         Maximum value\n   :param    step:        Step value\n   :return:               The property","chars":2033,"tokens_est":508,"sha256":"4a851b760e64936ef7848c3c8cb648a62321e51f3321f2ffd91fcf981bbcc0a5"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-object-functions~2","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Object Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-object-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Object Functions]\n`obs_property_t *obs_properties_add_text(obs_properties_t *props, const char *name, const char *description, enum obs_text_type type)`\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :param    type:        Can be one of the following values:\n\n                          - **OBS_TEXT_DEFAULT** - Single line of text\n                          - **OBS_TEXT_PASSWORD** - Single line of text (passworded)\n                          - **OBS_TEXT_MULTILINE** - Multi-line text\n                          - **OBS_TEXT_INFO** - Read-only informative text, behaves differently\n                            depending on whether description, string value and long description\n                            are set\n\n   :return:               The property\n\n   Important Related Functions:\n\n   - `obs_property_text_set_info_type`\n   - `obs_property_text_set_info_word_wrap`\n\n`obs_property_t *obs_properties_add_path(obs_properties_t *props, const char *name, const char *description, enum obs_path_type type, const char *filter, const char *default_path)`\n\n   Adds a 'path' property.  Can be a directory or a file.\n\n   If target is a file path or file save, the filters should be this format,\n   separated by double semicolons, and extensions separated by space::\n\n     \"Example types 1 and 2 (*.ex1 *.ex2);;Example type 3 (*.ex3)\"\n\n   :param    name:         Setting identifier string\n   :param    description:  Localized name shown to user\n   :param    type:         Can be one of the following values:\n\n                           - **OBS_PATH_FILE** - File (for reading)\n                           - **OBS_PATH_FILE_SAVE** - File (for writing)\n                           - **OBS_PATH_DIRECTORY** - Directory","chars":1826,"tokens_est":456,"sha256":"3f03d8a007485e3220f9d544354b80818ed96a666d106ca6f12ba015fc0be458"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-object-functions~3","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Object Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-object-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Object Functions]\n:param    filter:       If type is a file path, then describes the file filter\n                           that the user can browse. If type is a save path,\n                           then describes the file types the file can be\n                           saved as. Items are separated via double semicolons.\n                           If multiple file types in a filter, separate with space.\n   :param    default_path: The default path to start in, or *NULL*\n   :return:                The property\n\n`obs_property_t *obs_properties_add_list(obs_properties_t *props, const char *name, const char *description, enum obs_combo_type type, enum obs_combo_format format)`\n\n   Adds an integer/string/floating point item list.  This would be\n   implemented as a combo box in user interface.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :param    type:        Can be one of the following values:\n\n                          - **OBS_COMBO_TYPE_EDITABLE** - Can be edited.\n                            Only used with string lists.\n                          - **OBS_COMBO_TYPE_LIST** - Not editable. Displayed as combo box.\n                          - **OBS_COMBO_TYPE_RADIO** - Not editable. Displayed as radio buttons.\n\n                              .. versionadded:: 30.0\n\n   :param    format:      Can be one of the following values:\n\n                          - **OBS_COMBO_FORMAT_INT** - Integer list\n                          - **OBS_COMBO_FORMAT_FLOAT** - Floating point\n                            list\n                          - **OBS_COMBO_FORMAT_STRING** - String list\n                          - **OBS_COMBO_FORMAT_BOOL** - Boolean list\n\n                              .. versionadded:: 30.0\n\n   :return:               The property\n\n   Important Related Functions:","chars":1904,"tokens_est":476,"sha256":"07afaa58358e3d467e7fc40fdac6553b5f00a335e0f9ae17ea88fef234d436ff"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-object-functions~4","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Object Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-object-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Object Functions]\n- `obs_property_list_add_string`\n   - `obs_property_list_add_int`\n   - `obs_property_list_add_float`\n   - `obs_property_list_insert_string`\n   - `obs_property_list_insert_int`\n   - `obs_property_list_insert_float`\n   - `obs_property_list_item_remove`\n   - `obs_property_list_clear`\n\n`obs_property_t *obs_properties_add_color(obs_properties_t *props, const char *name, const char *description)`\n\n   Adds a color property without alpha (stored internally with an alpha value of 255).\n   The color can be retrieved from an `obs_data_t` object by using `obs_data_get_int()`.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :return:               The property\n\n`obs_property_t *obs_properties_add_color_alpha(obs_properties_t *props, const char *name, const char *description)`\n\n   Adds a color property with alpha. The color can be retrieved from an\n   `obs_data_t` object by using `obs_data_get_int()`.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :return:               The property\n\n`obs_property_t *obs_properties_add_button(obs_properties_t *props, const char *name, const char *text, obs_property_clicked_t callback)`\n\n   Like `obs_properties_add_button2`, except the value of the `data` argument in the callback is\n   determined by the caller of `obs_property_button_clicked`, and as such unspecified by libobs.\n\n   .. deprecated:: 32.1\n   Use `obs_properties_add_button2` instead.\n\n`obs_property_t *obs_properties_add_button2(obs_properties_t *props, const char *name, const char *text, obs_property_clicked_t callback, void *priv)`\n\n   Adds a button property.  This property does not actually store any\n   settings; it's used to implement a button in user interface if the\n   properties are used to generate user interface.\n\n   If the properties need to be refreshed due to changes to the property layout,\n   the callback should return true, otherwise return false.","chars":2073,"tokens_est":518,"sha256":"1f0b50624475502670d179d84840e1d76940e8a9f08a462d76199cf1022c2cf6"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-object-functions~5","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Object Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-object-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Object Functions]\n:param    name:        Setting identifier string\n   :param    text:        Localized name shown to user\n   :param    callback:    Callback to be executed when the button is pressed\n   :param    priv:        Pointer passed back as the `data` argument of the callback\n   :return:               The property\n\n   Important Related Functions:\n\n      - `obs_property_button_set_type`\n      - `obs_property_button_set_url`\n\n   For scripting, use :py`obs_properties_add_button`.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef bool (*obs_property_clicked_t)(obs_properties_t *props,\n                   obs_property_t *property, void *data);\n\n`obs_property_t *obs_properties_add_font(obs_properties_t *props, const char *name, const char *description)`\n\n   Adds a font property. The font can be retrieved from an `obs_data_t`\n   object by using `obs_data_get_obj()`.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :return:               The property\n\n`obs_property_t *obs_properties_add_editable_list(obs_properties_t *props, const char *name, const char *description, enum obs_editable_list_type type, const char *filter, const char *default_path)`\n\n   Adds a list in which the user can add/insert/remove items. The items can be\n   retrieved from an `obs_data_t` object by using `obs_data_get_array()`.\n\n   :param    name:         Setting identifier string\n   :param    description:  Localized name shown to user\n   :param    type:         Can be one of the following values:\n\n                           - **OBS_EDITABLE_LIST_TYPE_STRINGS** - An\n                             editable list of strings.\n                           - **OBS_EDITABLE_LIST_TYPE_FILES** - An\n                             editable list of files.\n                           - **OBS_EDITABLE_LIST_TYPE_FILES_AND_URLS** -\n                             An editable list of files and URLs.","chars":2016,"tokens_est":504,"sha256":"fd6c68e47df4ad88023a073c6eb481e1363181cf59d607725d349693bd51e3d8"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-object-functions~6","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Object Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-object-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Object Functions]\n:param    filter:       File filter to use if a file list\n   :param    default_path: Default path if a file list\n   :return:                The property\n\n`obs_property_t *obs_properties_add_frame_rate(obs_properties_t *props, const char *name, const char *description)`\n\n   Adds a frame rate property.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :return:               The property\n\n   Important Related Functions:\n\n   - `obs_property_frame_rate_option_add`\n   - `obs_property_frame_rate_fps_range_add`\n   - `obs_property_frame_rate_option_insert`\n   - `obs_property_frame_rate_fps_range_insert`\n\n`obs_property_t *obs_properties_add_group(obs_properties_t *props, const char *name, const char *description, enum obs_group_type type, obs_properties_t *group)`\n\n   Adds a property group.\n\n   :param    name:        Setting identifier string\n   :param    description: Localized name shown to user\n   :param    type:        Can be one of the following values:\n\n                          - **OBS_GROUP_NORMAL** - A normal group with just a name and content.\n                          - **OBS_GROUP_CHECKABLE** - A checkable group with a checkbox, name and content.\n\n   :param    group:       Group to add\n\n   :return:               The property\n\n   Important Related Functions:\n\n   - `obs_property_group_type`\n   - `obs_property_group_content`\n   - `obs_properties_get_parent`","chars":1512,"tokens_est":378,"sha256":"52c6252b9d90a74764b8ed4592fd6a34953c34eff0a4c7329b567f62e64d036b"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-enumeration-functions","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Enumeration Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-enumeration-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Enumeration Functions]\n`obs_property_t *obs_properties_first(obs_properties_t *props)`\n\n   :return: The first property in the properties object.\n\n`obs_property_t *obs_properties_get(obs_properties_t *props, const char *property)`\n\n   :param property: The name of the property to get\n   :return:         A specific property or *NULL* if not found\n\n`bool                   obs_property_next(obs_property_t **p)`\n\n   :param p: Pointer to the pointer of the next property\n   :return: *true* if successful, *false* if no more properties\n\n`const char *           obs_property_name(obs_property_t *p)`\n\n   :return: The setting identifier string of the property\n\n   *(Author's Note: \"name\" was a bad name to use here.  Should have been\n   \"setting\")*\n\n`const char *           obs_property_description(obs_property_t *p)`\n\n   :return: The actual localized display name of the property\n\n   *(Author's note: This one should have been the \"name\")*\n\n`const char *           obs_property_long_description(obs_property_t *p)`\n\n   :return: A detailed description of what the setting is used for.\n            Usually used with things like tooltips.\n\n`enum obs_property_type obs_property_get_type(obs_property_t *p)`\n\n   :return: One of the following values:\n\n            - OBS_PROPERTY_INVALID\n            - OBS_PROPERTY_BOOL\n            - OBS_PROPERTY_INT\n            - OBS_PROPERTY_FLOAT\n            - OBS_PROPERTY_TEXT\n            - OBS_PROPERTY_PATH\n            - OBS_PROPERTY_LIST\n            - OBS_PROPERTY_COLOR\n            - OBS_PROPERTY_BUTTON\n            - OBS_PROPERTY_FONT\n            - OBS_PROPERTY_EDITABLE_LIST\n            - OBS_PROPERTY_FRAME_RATE\n            - OBS_PROPERTY_GROUP\n\n`bool                   obs_property_enabled(obs_property_t *p)`\n\n`bool                   obs_property_visible(obs_property_t *p)`\n\n`int                    obs_property_int_min(obs_property_t *p)`\n\n`int                    obs_property_int_max(obs_property_t *p)`\n\n`int                    obs_property_int_step(obs_property_t *p)`","chars":2066,"tokens_est":516,"sha256":"fc9ca7c1345b4e0f1fa0fa7679bee0d4a4ddbaf5e9d64b23f1ede465b7909810"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-enumeration-functions~2","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Enumeration Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-enumeration-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Enumeration Functions]\n`enum obs_number_type   obs_property_int_type(obs_property_t *p)`\n\n`const char *           obs_property_int_suffix(obs_property_t *p)`\n\n`double                 obs_property_float_min(obs_property_t *p)`\n\n`double                 obs_property_float_max(obs_property_t *p)`\n\n`double                 obs_property_float_step(obs_property_t *p)`\n\n`enum obs_number_type   obs_property_float_type(obs_property_t *p)`\n\n`const char *           obs_property_float_suffix(obs_property_t *p)`\n\n`enum obs_text_type     obs_property_text_type(obs_property_t *p)`\n\n`bool                   obs_property_text_monospace(obs_property_t *p)`\n\n   Returns whether the input of the text property should be rendered\n   with a monospace font or not. Only has an effect if the text type\n   of the property is `OBS_TEXT_MULTILINE`, even if this returns *true*.\n\n`enum obs_text_info_type     obs_property_text_info_type(obs_property_t *p)`\n\n   :return: One of the following values:\n\n             - OBS_TEXT_INFO_NORMAL\n             - OBS_TEXT_INFO_WARNING\n             - OBS_TEXT_INFO_ERROR\n\n`bool     obs_property_text_info_word_wrap(obs_property_t *p)`\n\n`enum obs_path_type     obs_property_path_type(obs_property_t *p)`\n\n`const char *           obs_property_path_filter(obs_property_t *p)`\n\n`const char *           obs_property_path_default_path(obs_property_t *p)`\n\n`enum obs_combo_type    obs_property_list_type(obs_property_t *p)`\n\n`enum obs_combo_format  obs_property_list_format(obs_property_t *p)`\n\n`bool obs_property_list_item_disabled(obs_property_t *p, size_t idx)`\n\n`size_t      obs_property_list_item_count(obs_property_t *p)`\n\n`const char *obs_property_list_item_name(obs_property_t *p, size_t idx)`\n\n`const char *obs_property_list_item_string(obs_property_t *p, size_t idx)`\n\n`long long   obs_property_list_item_int(obs_property_t *p, size_t idx)`\n\n`double      obs_property_list_item_float(obs_property_t *p, size_t idx)`\n\n`enum obs_editable_list_type obs_property_editable_list_type(obs_property_t *p)`","chars":2070,"tokens_est":518,"sha256":"51fab1f6c69d846be8e2c7f9952ffe8dbac21842edc6a5b0aefe315a6e306807"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-enumeration-functions~3","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Enumeration Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-enumeration-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Enumeration Functions]\n`const char *obs_property_editable_list_filter(obs_property_t *p)`\n\n`const char *obs_property_editable_list_default_path(obs_property_t *p)`\n\n`size_t      obs_property_frame_rate_options_count(obs_property_t *p)`\n\n`const char *obs_property_frame_rate_option_name(obs_property_t *p, size_t idx)`\n\n`const char *obs_property_frame_rate_option_description( obs_property_t *p, size_t idx)`\n\n`size_t      obs_property_frame_rate_fps_ranges_count(obs_property_t *p)`\n\n`struct media_frames_per_second obs_property_frame_rate_fps_range_min( obs_property_t *p, size_t idx)`\n\n`struct media_frames_per_second obs_property_frame_rate_fps_range_max( obs_property_t *p, size_t idx)`\n\n`enum obs_button_type obs_property_button_type(obs_property_t *p)`\n\n   :return: One of the following values:\n\n             - OBS_BUTTON_DEFAULT\n             - OBS_BUTTON_URL\n\n`const char *obs_property_button_url(obs_property_t *p)`\n\n`enum obs_group_type obs_property_group_type(obs_property_t *p)`\n\n  :return: One of the following values:\n\n            - OBS_COMBO_INVALID\n            - OBS_GROUP_NORMAL\n            - OBS_GROUP_CHECKABLE\n\n`obs_properties_t *obs_property_group_content(obs_property_t *p)`","chars":1251,"tokens_est":313,"sha256":"a35689bbef742c16e1e7836deeeebf5df1ea4cb29b593fc3dcc55ad0901cb03a"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-modification-functions","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Modification Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-modification-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Modification Functions]\n`void obs_property_set_modified_callback(obs_property_t *p, obs_property_modified_t modified)`\n              void obs_property_set_modified_callback2(obs_property_t *p, obs_property_modified2_t modified2, void *priv)\n\n   Allows the ability to change the properties depending on what\n   settings are used by the user. The callback should return `true`\n   if the property widgets need to be refreshed due to changes to the\n   property layout.\n\n   Relevant data types used with these functions:\n\n.. code:: cpp\n\n   typedef bool (*obs_property_modified_t)(obs_properties_t *props,\n                   obs_property_t *property, obs_data_t *settings);\n   typedef bool (*obs_property_modified2_t)(void *priv,\n                   obs_properties_t *props, obs_property_t *property,\n                   obs_data_t *settings);\n\n`bool obs_property_modified(obs_property_t *p, obs_data_t *settings)`\n\n`bool obs_property_button_clicked(obs_property_t *p, void *obj)`\n\n   Calls the `callback` of the button.\n\n   :param p:   The property\n   :param obj: Must be a pointer to an object of type `obs_canvas_t`, `obs_source_t`,\n               `obs_output_t`, `obs_encoder_t`, or `obs_service_t`.\n               If the property was created with `obs_properties_add_button`, that\n               object's context will be passed as the `obj` parameter.\n               If the property was created with `obs_properties_add_button2`, it\n               will be ignored.\n\n`void obs_property_set_visible(obs_property_t *p, bool visible)`\n\n`void obs_property_set_enabled(obs_property_t *p, bool enabled)`\n\n`void obs_property_set_description(obs_property_t *p, const char *description)`\n\n   Sets the displayed localized name of the property, shown to the user.\n\n`void obs_property_set_long_description(obs_property_t *p, const char *long_description)`\n\n   Sets the localized long description of the property, usually shown to\n   a user via tooltip.\n\n`void obs_property_int_set_limits(obs_property_t *p, int min, int max, int step)`","chars":2075,"tokens_est":519,"sha256":"e9829a9603c6e0c33e9efe709e1fb7bac24bb0b7989389ff9e37c0660fa0ba5a"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-modification-functions~2","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Modification Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-modification-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Modification Functions]\n`void obs_property_float_set_limits(obs_property_t *p, double min, double max, double step)`\n\n`void obs_property_int_set_suffix(obs_property_t *p, const char *suffix)`\n\n   Adds a suffix to the int property, such that 100 will show up\n   as \"100ms\" if the suffix is \"ms\". The user will only be able\n   to edit the number, not the suffix.\n\n`void obs_property_float_set_suffix(obs_property_t *p, const char *suffix)`\n\n   Adds a suffix to the float property, such that 1.5 will show up\n   as \"1.5s\" if the suffix is \"s\". The user will only be able\n   to edit the number, not the suffix.\n\n`void obs_property_text_set_monospace(obs_property_t *p, bool monospace)`\n\n   Sets whether the input of text property should be rendered with\n   a monospace font or not. Only has an effect if the text type of\n   the property is `OBS_TEXT_MULTILINE`.\n\n`void     obs_property_text_set_info_type(obs_property_t *p, enum obs_text_info_type type)`\n\n   :param   type: Can be one of the following values:\n\n                  - **OBS_TEXT_INFO_NORMAL** - To show a basic message\n                  - **OBS_TEXT_INFO_WARNING** - To show a warning\n                  - **OBS_TEXT_INFO_ERROR** - To show an error\n\n`void     obs_property_text_set_info_word_wrap(obs_property_t *p, bool word_wrap)`\n\n`void obs_property_list_clear(obs_property_t *p)`\n\n`size_t obs_property_list_add_string(obs_property_t *p, const char *name, const char *val)`\n\n   Adds a string to a string list.\n\n   :param    name: Localized name shown to user\n   :param    val:  The actual string value stored and will be returned by `obs_data_get_string`\n   :returns: The index of the list item.\n\n   Note: If `p` is of type OBS_COMBO_TYPE_EDITABLE, `obs_data_get_string` will return `name` instead of\n   `val`.\n\n`size_t obs_property_list_add_int(obs_property_t *p, const char *name, long long val)`\n\n   Adds an integer to a integer list.","chars":1954,"tokens_est":488,"sha256":"406d2a4c6c3b8148c09e8f87886d381bd5a98a233c967911c852788ef636d302"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-modification-functions~3","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Modification Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-modification-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Modification Functions]\n:param    name: Localized name shown to user\n   :param    val:  The actual int value stored and will be returned by `obs_data_get_int`\n   :returns: The index of the list item.\n\n`size_t obs_property_list_add_float(obs_property_t *p, const char *name, double val)`\n\n   Adds a floating point to a floating point list.\n\n   :param    name: Localized name shown to user\n   :param    val:  The actual float value stored and will be returned by `obs_data_get_double`\n   :returns: The index of the list item.\n\n`void obs_property_list_insert_string(obs_property_t *p, size_t idx, const char *name, const char *val)`\n\n   Inserts a string in to a string list.\n\n   :param    idx:  The index of the list item\n   :param    name: Localized name shown to user\n   :param    val:  The actual string value stored and will be returned by `obs_data_get_string`\n\n   Note: If `p` is of type OBS_COMBO_TYPE_EDITABLE, `obs_data_get_string` will return `name` instead of\n   `val`.\n\n`void obs_property_list_insert_int(obs_property_t *p, size_t idx, const char *name, long long val)`\n\n   Inserts an integer in to an integer list.\n\n   :param    idx:  The index of the list item\n   :param    name: Localized name shown to user\n   :param    val:  The actual int value stored and will be returned by `obs_data_get_int`\n\n`void obs_property_list_insert_float(obs_property_t *p, size_t idx, const char *name, double val)`\n\n   Inserts a floating point in to a floating point list.\n\n   :param    idx:  The index of the list item.\n   :param    name: Localized name shown to user\n   :param    val:  The actual float value stored and will be returned by `obs_data_get_double`\n\n`void obs_property_list_item_disable(obs_property_t *p, size_t idx, bool disabled)`\n\n`void obs_property_list_item_remove(obs_property_t *p, size_t idx)`\n\n`size_t obs_property_frame_rate_option_add(obs_property_t *p, const char *name, const char *description)`","chars":1975,"tokens_est":494,"sha256":"2ee5b3d72a68236f533d0c427667bb1bd5012aafaf010e31183b9363ddcdd161"},{"id":"docs-sphinx-reference-properties#properties-api-reference-obs-properties-t-property-modification-functions~4","doc":"docs-sphinx-reference-properties","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Properties API Reference (obs_properties_t)","Property Modification Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst#property-modification-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-properties.rst","text":"[Properties API Reference (obs_properties_t) \u203a Property Modification Functions]\n`size_t obs_property_frame_rate_fps_range_add(obs_property_t *p, struct media_frames_per_second min, struct media_frames_per_second max)`\n\n`void obs_property_frame_rate_clear(obs_property_t *p)`\n\n`void obs_property_frame_rate_options_clear(obs_property_t *p)`\n\n`void obs_property_frame_rate_fps_ranges_clear(obs_property_t *p)`\n\n`void obs_property_frame_rate_option_insert(obs_property_t *p, size_t idx, const char *name, const char *description)`\n\n`void obs_property_frame_rate_fps_range_insert(obs_property_t *p, size_t idx, struct media_frames_per_second min, struct media_frames_per_second max)`\n\n`void obs_property_button_set_type(obs_property_t *p, enum obs_button_type type)`\n\n   Sets the type of the button. The button's `callback` will be called regardless of type.\n\n   :param   type: Can be one of the following values:\n\n                  - **OBS_BUTTON_DEFAULT** - Standard button\n                  - **OBS_BUTTON_URL** - Button that opens a URL\n   :return:       The property\n\n`void obs_property_button_set_url(obs_property_t *p, char *url)`\n\n   :param p:   The property\n   :param url: The URL to be opened if the button is of type `OBS_BUTTON_URL`","chars":1240,"tokens_est":310,"sha256":"6f0a2890d2fbc02d903b5e189deade4b70ad05f6fbdd19c7c7a4f8f5404caaab"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-api-reference-obs_scene_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t)]\nA scene is a source which contains and renders other sources using\nspecific transforms and/or filtering\n\n`obs_scene_t`\n\n   A reference-counted scene object.\n\n`obs_sceneitem_t`\n\n   A reference-counted scene item object.\n\n.. code:: cpp\n\n   #include <obs.h>\n\n## Scene Item Transform Structure (obs_transform_info)\n`obs_transform_info`\n\n   Scene item transform structure.\n\n`struct vec2          obs_transform_info.pos`\n\n   Position.\n\n`float                obs_transform_info.rot`\n\n   Rotation (degrees).\n\n`struct vec2          obs_transform_info.scale`\n\n   Scale.\n\n`uint32_t             obs_transform_info.alignment`\n\n   The alignment of the scene item relative to its position.\n\n   Can be 0 or a bitwise OR combination of one of the following values:\n\n   - **OBS_ALIGN_CENTER**\n   - **OBS_ALIGN_LEFT**\n   - **OBS_ALIGN_RIGHT**\n   - **OBS_ALIGN_TOP**\n   - **OBS_ALIGN_BOTTOM**\n\n`enum obs_bounds_type obs_transform_info.bounds_type`\n\n   Can be one of the following values:\n\n   - **OBS_BOUNDS_NONE**            - No bounding box\n   - **OBS_BOUNDS_STRETCH**         - Stretch to the bounding box without preserving aspect ratio\n   - **OBS_BOUNDS_SCALE_INNER**     - Scales with aspect ratio to inner bounding box rectangle\n   - **OBS_BOUNDS_SCALE_OUTER**     - Scales with aspect ratio to outer bounding box rectangle\n   - **OBS_BOUNDS_SCALE_TO_WIDTH**  - Scales with aspect ratio to the bounding box width\n   - **OBS_BOUNDS_SCALE_TO_HEIGHT** - Scales with aspect ratio to the bounding box height\n   - **OBS_BOUNDS_MAX_ONLY**        - Scales with aspect ratio, but only to the size of the source maximum\n\n`uint32_t             obs_transform_info.bounds_alignment`\n\n   The alignment of the source within the bounding box.\n\n   Can be 0 or a bitwise OR combination of one of the following values:\n\n   - **OBS_ALIGN_CENTER**\n   - **OBS_ALIGN_LEFT**\n   - **OBS_ALIGN_RIGHT**\n   - **OBS_ALIGN_TOP**\n   - **OBS_ALIGN_BOTTOM**\n\n`struct vec2          obs_transform_info.bounds`","chars":1997,"tokens_est":499,"sha256":"0ad0c4ec393b21dfb836c8e59695a3aaedfee13a3134db74fdd61f7305cb1f55"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t~2","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-api-reference-obs_scene_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t)]\nThe bounding box (if a bounding box is enabled).\n\n## Scene Item Crop Structure (obs_sceneitem_crop)\n`obs_sceneitem_crop`\n\n   Scene item crop structure.\n\n`int obs_sceneitem_crop.left`\n\n   Left crop value.\n\n`int obs_sceneitem_crop.top`\n\n   Top crop value.\n\n`int obs_sceneitem_crop.right`\n\n   Right crop value.\n\n`int obs_sceneitem_crop.bottom`\n\n   Bottom crop value.\n\n## Scene Item Order Info Structure (\\*obs_sceneitem_order_info)\n`obs_sceneitem_order_info`\n\n   Scene item order info structure.\n\n`obs_sceneitem_t *obs_sceneitem_order_info.group`\n\n   Specifies the group this scene item belongs to, or *NULL* if none.\n\n`obs_sceneitem_t *obs_sceneitem_order_info.item`\n\n   Specifies the scene item.\n\n.. _scene_signal_reference:","chars":759,"tokens_est":190,"sha256":"53d420d54560f62bc4a5daa65246a16a15c7c4911798577e641c0e35d1c2ca10"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-signals","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Signals]\n**item_add** (ptr scene, ptr item)\n\n   Called when a scene item has been added to the scene.\n\n**item_remove** (ptr scene, ptr item)\n\n   Called when a scene item has been removed from the scene.\n\n**reorder** (ptr scene)\n\n   Called when scene items have been reordered in the scene.\n\n**refresh** (ptr scene)\n\n   Called when the entire scene item list needs to be refreshed.\n   Usually this is only used when groups have changed.\n\n**item_visible** (ptr scene, ptr item, bool visible)\n\n   Called when a scene item's visibility state changes.\n\n**item_locked** (ptr scene, ptr item, bool locked)\n\n   Called when a scene item has been locked or unlocked.\n\n**item_select** (ptr scene, ptr item)\n\n**item_deselect** (ptr scene, ptr item)\n\n   Called when a scene item has been selected/deselected.\n\n   (Author's note: These should be replaced)\n\n**item_transform** (ptr scene, ptr item)\n\n   Called when a scene item's transform has changed.","chars":980,"tokens_est":245,"sha256":"a5493b9646535b79e5ece767da8f66cce292984ca4899415520b602239276f28"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-general-scene-functions","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","General Scene Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#general-scene-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a General Scene Functions]\n`obs_scene_t *obs_scene_create(const char *name)`\n\n   :param name: Name of the scene source.  If it's not unique, it will\n                be made unique\n   :return:     A reference to a scene\n\n`obs_scene_t *obs_scene_create_private(const char *name)`\n\n   :param name: Name of the scene source.  Does not have to be unique,\n                or can be *NULL*\n   :return:     A reference to a private scene\n\n`obs_scene_t *obs_scene_duplicate(obs_scene_t *scene, const char *name, enum obs_scene_duplicate_type type)`\n\n   Duplicates a scene.  When a scene is duplicated, its sources can be\n   just referenced, or fully duplicated.\n\n   :param name: Name of the new scene source\n\n   :param type:  | Type of duplication:\n                 | OBS_SCENE_DUP_REFS         - Duplicates the scene, but scene items are only duplicated with references\n                 | OBS_SCENE_DUP_COPY         - Duplicates the scene, and scene items are also fully duplicated when possible\n                 | OBS_SCENE_DUP_PRIVATE_REFS - Duplicates with references, but the scene is a private source\n                 | OBS_SCENE_DUP_PRIVATE_COPY - Fully duplicates scene items when possible, but the scene and duplicates sources are private sources\n\n                 Sources inside groups are duplicated only with\n                 OBS_SCENE_DUP_PRIVATE_COPY; with the other types the copied\n                 groups keep referencing them.\n\n   :return:     A reference to a new scene\n\n`obs_scene_t *obs_scene_get_ref(obs_scene_t *scene)`\n\n   Returns an incremented reference if still valid, otherwise returns\n   *NULL*. Release with `obs_scene_release()`.\n\n`void obs_scene_release(obs_scene_t *scene)`\n\n   Releases a reference to a scene.\n\n`obs_sceneitem_t *obs_scene_add(obs_scene_t *scene, obs_source_t *source)`\n\n   :return: A new scene item for a source within a scene.  Does not\n            increment the reference\n\n`obs_source_t *obs_scene_get_source(const obs_scene_t *scene)`","chars":2014,"tokens_est":504,"sha256":"7a98db92780049af6a3192564d5d180f37cf461bbc3031b9c27dbc9af8f741b7"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-general-scene-functions~2","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","General Scene Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#general-scene-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a General Scene Functions]\n:return: The scene's source.  Does not increment the reference\n\n`obs_scene_t *obs_scene_from_source(const obs_source_t *source)`\n\n   :return: The scene context, or *NULL* if not a scene.  Does not\n            increase the reference\n\n`obs_sceneitem_t *obs_scene_find_source(obs_scene_t *scene, const char *name)`\n\n   :param name: The name of the source to find\n   :return:     The scene item if found, otherwise *NULL* if not found\n\n`obs_sceneitem_t *obs_scene_find_source_recursive(obs_scene_t *scene, const char *name)`\n\n   Same as obs_scene_find_source, but also searches groups within the\n   scene.\n\n   :param name: The name of the source to find\n   :return:     The scene item if found, otherwise *NULL* if not found\n\n`obs_sceneitem_t *obs_scene_find_sceneitem_by_id(obs_scene_t *scene, int64_t id)`\n\n   :param id: The unique numeric identifier of the scene item\n   :return:   The scene item if found, otherwise *NULL* if not found\n\n`void obs_scene_enum_items(obs_scene_t *scene, bool (*callback)(obs_scene_t*, obs_sceneitem_t*, void*), void *param)`\n\n   Enumerates scene items within a scene in order of the bottommost scene item\n   to the topmost scene item.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.\n\n   Use `obs_sceneitem_addref()` if you want to retain a\n   reference after obs_scene_enum_items finishes.\n\n   For scripting, use :py`obs_scene_enum_items`.\n\n`bool obs_scene_reorder_items(obs_scene_t *scene, obs_sceneitem_t * const *item_order, size_t item_order_size)`\n\n   Reorders items within a scene.\n\n`bool obs_scene_reorder_items2(obs_scene_t *scene, struct obs_sceneitem_order_info *item_order, size_t item_order_size)`\n\n   Reorders items within a scene with groups and group sub-items.\n\n`void obs_scene_prune_sources(obs_scene_t *scene)`\n\n   Releases all sources from a scene that have been marked as removed by obs_source_remove.\n\n.. _scene_item_reference:","chars":1984,"tokens_est":496,"sha256":"fe61846864621f3321ebc0d2284b1f25d4c3f7b36b4eb6ac064afdd554972a54"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-functions","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Functions]\n`void obs_sceneitem_addref(obs_sceneitem_t *item)`\n              void obs_sceneitem_release(obs_sceneitem_t *item)\n\n   Adds/releases a reference to a scene item.\n\n`void obs_sceneitem_remove(obs_sceneitem_t *item)`\n\n   Removes the scene item from the scene.\n\n`obs_scene_t *obs_sceneitem_get_scene(const obs_sceneitem_t *item)`\n\n   :return: The scene associated with the scene item.  Does not\n            increment the reference\n\n`obs_source_t *obs_sceneitem_get_source(const obs_sceneitem_t *item)`\n\n   :return: The source associated with the scene item.  Does not\n            increment the reference\n\n`void obs_sceneitem_set_id(obs_sceneitem_t *item);`\n\n   Sets the unique numeric identifier of the sceneitem. This is dangerous function and should not\n   normally be used. It can cause errors within obs.\n\n`int64_t obs_sceneitem_get_id(const obs_sceneitem_t *item)`\n\n   Gets the numeric identifier of the sceneitem.\n\n   :return: Gets the unique numeric identifier of the scene item.\n\n`obs_data_t *obs_scene_save_transform_states(obs_scene_t *scene, bool all_items)`\n\n`void obs_scene_load_transform_states(const char *states)`\n\n   Saves all the transformation states for the sceneitems in scene. When all_items is false, it\n   will only save selected items\n\n   :return: Data containing transformation states for all* sceneitems in scene\n\n`void obs_sceneitem_set_pos(obs_sceneitem_t *item, const struct vec2 *pos)`\n              void obs_sceneitem_get_pos(const obs_sceneitem_t *item, struct vec2 *pos)\n\n   Sets/gets the position of a scene item.\n\n`void obs_sceneitem_set_rot(obs_sceneitem_t *item, float rot_deg)`\n              float obs_sceneitem_get_rot(const obs_sceneitem_t *item)\n\n   Sets/gets the rotation of a scene item.\n\n`void obs_sceneitem_set_scale(obs_sceneitem_t *item, const struct vec2 *scale)`\n              void obs_sceneitem_get_scale(const obs_sceneitem_t *item, struct vec2 *scale)\n\n   Sets/gets the scaling of the scene item.","chars":2004,"tokens_est":501,"sha256":"9d956e16cb35aad1c021ddabd6f751c86f1e15327fe93f93b7ac79e8ae5d832c"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-functions~2","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Functions]\n`void obs_sceneitem_set_alignment(obs_sceneitem_t *item, uint32_t alignment)`\n              uint32_t obs_sceneitem_get_alignment(const obs_sceneitem_t *item)\n\n   Sets/gets the alignment of the scene item relative to its position.\n\n   :param alignment: | Can be any bitwise OR combination of:\n                     | OBS_ALIGN_CENTER\n                     | OBS_ALIGN_LEFT\n                     | OBS_ALIGN_RIGHT\n                     | OBS_ALIGN_TOP\n                     | OBS_ALIGN_BOTTOM\n\n`void obs_sceneitem_set_order(obs_sceneitem_t *item, enum obs_order_movement movement)`\n\n   Changes the scene item's order relative to the other scene items\n   within the scene.\n\n   :param movement: | Can be one of the following:\n                    | OBS_ORDER_MOVE_UP\n                    | OBS_ORDER_MOVE_DOWN\n                    | OBS_ORDER_MOVE_TOP\n                    | OBS_ORDER_MOVE_BOTTOM\n\n`void obs_sceneitem_set_order_position(obs_sceneitem_t *item, int position)`\n\n   Changes the sceneitem's order index.\n\n`int obs_sceneitem_get_order_position(obs_sceneitem_t *item)`\n\n   :return: Gets position of sceneitem in its scene.\n\n`void obs_sceneitem_set_bounds_type(obs_sceneitem_t *item, enum obs_bounds_type type)`\n              enum obs_bounds_type obs_sceneitem_get_bounds_type(const obs_sceneitem_t *item)\n\n   Sets/gets the bounding box type of a scene item.  Bounding boxes are\n   used to stretch/position the source relative to a specific bounding\n   box of a specific size.","chars":1531,"tokens_est":383,"sha256":"16ce7e3f65320ae2e0d2ebe03dde9c634764a13554904e619d04fc70856a4e52"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-functions~3","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Functions]\n:param type: | Can be one of the following values:\n                | OBS_BOUNDS_NONE            - No bounding box\n                | OBS_BOUNDS_STRETCH         - Stretch to the bounding box without preserving aspect ratio\n                | OBS_BOUNDS_SCALE_INNER     - Scales with aspect ratio to inner bounding box rectangle\n                | OBS_BOUNDS_SCALE_OUTER     - Scales with aspect ratio to outer bounding box rectangle\n                | OBS_BOUNDS_SCALE_TO_WIDTH  - Scales with aspect ratio to the bounding box width\n                | OBS_BOUNDS_SCALE_TO_HEIGHT - Scales with aspect ratio to the bounding box height\n                | OBS_BOUNDS_MAX_ONLY        - Scales with aspect ratio, but only to the size of the source maximum\n\n`void obs_sceneitem_set_bounds_alignment(obs_sceneitem_t *item, uint32_t alignment)`\n              uint32_t obs_sceneitem_get_bounds_alignment(const obs_sceneitem_t *item)\n\n   Sets/gets the alignment of the source within the bounding box.\n\n   :param alignment: | Can be any bitwise OR combination of:\n                     | OBS_ALIGN_CENTER\n                     | OBS_ALIGN_LEFT\n                     | OBS_ALIGN_RIGHT\n                     | OBS_ALIGN_TOP\n                     | OBS_ALIGN_BOTTOM\n\n`void obs_sceneitem_set_bounds(obs_sceneitem_t *item, const struct vec2 *bounds)`\n              void obs_sceneitem_get_bounds(const obs_sceneitem_t *item, struct vec2 *bounds)\n\n   Sets/gets the bounding box width/height of the scene item.\n\n`void obs_sceneitem_set_info2(obs_sceneitem_t *item, const struct obs_transform_info *info)`\n              void obs_sceneitem_get_info2(const obs_sceneitem_t *item, struct obs_transform_info *info)\n\n   Sets/gets the transform information of the scene item.\n   This version of the function also sets the `crop_to_bounds` member of `obs_transform_info`.\n\n   .. versionadded:: 30.1\n\n`void obs_sceneitem_get_draw_transform(const obs_sceneitem_t *item, struct matrix4 *transform)`","chars":2013,"tokens_est":503,"sha256":"1c34777982c6dc1d6c6012938842c3f8c9b161b1faa9b7d8d6b9733b89a52712"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-functions~4","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Functions]\nGets the transform matrix of the scene item used for drawing the\n   source.\n\n`void obs_sceneitem_get_box_transform(const obs_sceneitem_t *item, struct matrix4 *transform)`\n\n   Gets the transform matrix of the scene item used for the bounding box\n   or edges of the scene item.\n\n`void obs_sceneitem_select(obs_sceneitem_t *item, bool select)`\n              bool obs_sceneitem_selected(const obs_sceneitem_t *item)\n\n   Sets/gets the selection state of the scene item. Note that toggling\n   the selected state will not affect the selected state of other scene items,\n   as multiple scene items can be selected.\n\n`bool obs_sceneitem_set_visible(obs_sceneitem_t *item, bool visible)`\n              bool obs_sceneitem_visible(const obs_sceneitem_t *item)\n\n   Sets/gets the visibility state of the scene item.\n\n`bool obs_sceneitem_set_locked(obs_sceneitem_t *item, bool locked)`\n              bool obs_sceneitem_locked(const obs_sceneitem_t *item)\n\n   Sets/gets the locked/unlocked state of the scene item.\n\n`void obs_sceneitem_set_crop(obs_sceneitem_t *item, const struct obs_sceneitem_crop *crop)`\n              void obs_sceneitem_get_crop(const obs_sceneitem_t *item, struct obs_sceneitem_crop *crop)\n\n   Sets/gets the cropping of the scene item.\n\n`void obs_sceneitem_set_scale_filter(obs_sceneitem_t *item, enum obs_scale_type filter)`\n              enum obs_scale_type obs_sceneitem_get_scale_filter( obs_sceneitem_t *item)\n\n   Sets/gets the scale filter used for the scene item.\n\n   :param filter: | Can be one of the following values:\n                  | OBS_SCALE_DISABLE\n                  | OBS_SCALE_POINT\n                  | OBS_SCALE_BICUBIC\n                  | OBS_SCALE_BILINEAR\n                  | OBS_SCALE_LANCZOS\n\n`void obs_sceneitem_set_blending_method(obs_sceneitem_t *item, enum obs_blending_method method)`\n              enum obs_blending_method obs_sceneitem_get_blending_method(obs_sceneitem_t *item)\n\n   Sets/gets the blending method used for the scene item.","chars":2035,"tokens_est":509,"sha256":"2cb6ab6e2d76764eaced52930082457c967f6deba667fca2489d421e5ff83355"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-functions~5","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Functions]\n:param method: | Can be one of the following values:\n                  | OBS_BLEND_METHOD_DEFAULT\n                  | OBS_BLEND_METHOD_SRGB_OFF\n\n`void obs_sceneitem_set_blending_mode(obs_sceneitem_t *item, enum obs_blending_type type)`\n              enum obs_blending_type obs_sceneitem_get_blending_mode(obs_sceneitem_t *item)\n\n   Sets/gets the blending mode used for the scene item.\n\n   :param type: | Can be one of the following values:\n                | OBS_BLEND_NORMAL\n                | OBS_BLEND_ADDITIVE\n                | OBS_BLEND_SUBTRACT\n                | OBS_BLEND_SCREEN\n                | OBS_BLEND_MULTIPLY\n                | OBS_BLEND_LIGHTEN\n                | OBS_BLEND_DARKEN\n\n`void obs_sceneitem_defer_update_begin(obs_sceneitem_t *item)`\n              void obs_sceneitem_defer_update_end(obs_sceneitem_t *item)\n\n   Allows the ability to call any one of the transform functions without\n   updating the internal matrices until obs_sceneitem_defer_update_end\n   has been called.\n\n`obs_data_t *obs_sceneitem_get_private_settings(obs_sceneitem_t *item)`\n\n   :return: An incremented reference to the private settings of the\n            scene item.  Allows the front-end to set custom information\n            which is saved with the scene item. Release with\n            `obs_data_release()`.\n\n`void obs_sceneitem_set_transition(obs_sceneitem_t *item, bool show, obs_source_t *transition)`\n\n   Sets a transition for showing or hiding a scene item.\n\n   :param item:       The target scene item\n   :param show:       If *true*, this will set the show transition.\n                      If *false*, this will set the hide transition.\n   :param transition: The transition to set. Pass *NULL* to remove the transition.\n\n`obs_source_t *obs_sceneitem_get_transition(obs_sceneitem_t *item, bool show)`","chars":1861,"tokens_est":465,"sha256":"0853d974386351a650ee13da2b21e177e1a7589ecd7564549fb8d2de404d0fcc"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-functions~6","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Functions]\n:param item: The target scene item\n   :param show: If *true*, this will return the show transition.\n                If *false*, this will return the hide transition.\n   :return:     The transition for showing or hiding a scene item. *NULL* if no transition is set.\n\n`void obs_sceneitem_set_transition_duration(obs_sceneitem_t *item, bool show, uint32_t duration_ms)`\n\n   Sets the transition duration for showing or hiding a scene item.\n\n   :param item:        The target scene item\n   :param show:        If *true*, this will set the duration of the show transition.\n                       If *false*, this will set the duration of the hide transition.\n   :param duration_ms: The transition duration in milliseconds\n\n`uint32_t obs_sceneitem_get_transition_duration(obs_sceneitem_t *item, bool show)`\n\n   Gets the transition duration for showing or hiding a scene item.\n\n   :param item: The target scene item\n   :param show: If *true*, this will return the duration of the show transition.\n                If *false*, this will return the duration of the hide transition.\n   :return:     The transition duration in milliseconds\n\n`void obs_sceneitem_do_transition(obs_sceneitem_t *item, bool visible)`\n\n   Start the transition for showing or hiding a scene item.\n\n.. _scene_item_group_reference:","chars":1352,"tokens_est":338,"sha256":"218b26e8dae9df28da955c719c88a8201bc905a81f53a767518e6b06e76ec15c"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-group-functions","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Group Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-group-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Group Functions]\n`obs_sceneitem_t *obs_scene_add_group(obs_scene_t *scene, const char *name)`\n\n   Adds a group with the specified name.  Does not signal the scene with\n   the *refresh* signal.\n\n   :param scene: Scene to add the group to\n   :param name:  Name of the group\n   :return:      The new group's scene item\n\n`obs_sceneitem_t *obs_scene_add_group2(obs_scene_t *scene, const char *name, bool signal)`\n\n   Adds a group with the specified name.\n\n   :param scene:  Scene to add the group to\n   :param name:   Name of the group\n   :param signal: If *true*, signals the scene with the *refresh*\n                  signal\n   :return:       The new group's scene item\n\n`obs_sceneitem_t *obs_scene_insert_group(obs_scene_t *scene, const char *name, obs_sceneitem_t **items, size_t count)`\n\n   Creates a group out of the specified scene items.  The group will be\n   inserted at the top scene item.  Does not signal the scene with the\n   *refresh* signal.\n\n   :param scene: Scene to add the group to\n   :param name:  Name of the group\n   :param items: Array of scene items to put in a group\n   :param count: Number of scene items in the array\n   :return:      The new group's scene item\n\n`obs_sceneitem_t *obs_scene_insert_group2(obs_scene_t *scene, const char *name, obs_sceneitem_t **items, size_t count, bool signal)`\n\n   Creates a group out of the specified scene items.  The group will be\n   inserted at the top scene item.  Does not signal a refresh.\n\n   :param scene: Scene to add the group to\n   :param name:  Name of the group\n   :param items: Array of scene items to put in a group\n   :param count: Number of scene items in the array\n   :param signal: If *true*, signals the scene with the *refresh*\n                  signal\n   :return:      The new group's scene item\n\n`obs_sceneitem_t *obs_scene_get_group(obs_scene_t *scene, const char *name)`\n\n   Finds a group within a scene by its name.","chars":1946,"tokens_est":486,"sha256":"85fbcef1ba3e12b7800fdf338a5e2268ef12c565e9c745ec186d725f496d0c5c"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-group-functions~2","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Group Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-group-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Group Functions]\n:param scene: Scene to find the group within\n   :param name:  The name of the group to find\n   :return:      The group scene item, or *NULL* if not found\n\n`obs_scene_t *obs_group_from_source(const obs_source_t *source)`\n\n   :return: The group context, or *NULL* if not a group.  Does not\n            increase the reference\n\n`obs_scene_t *obs_group_or_scene_from_source(const obs_source_t *source)`\n\n   :return: The context for the source, regardless of if it is a\n            group or a scene.  *NULL* if neither.  Does not increase\n            the reference\n\n`bool obs_sceneitem_is_group(obs_sceneitem_t *item)`\n\n   :param item: Scene item\n   :return:     *true* if scene item is a group, *false* otherwise\n\n`obs_scene_t *obs_sceneitem_group_get_scene(const obs_sceneitem_t *group)`\n\n   :param group: Group scene item\n   :return:      Scene of the group, or *NULL* if not a group\n\n`void obs_sceneitem_group_ungroup(obs_sceneitem_t *group)`\n\n   Ungroups the specified group.  Scene items within the group will be\n   placed where the group was.  Does not signal the scene with the\n   *refresh* signal.\n\n`void obs_sceneitem_group_ungroup2(obs_sceneitem_t *group, bool signal)`\n\n   Ungroups the specified group.  Scene items within the group will be\n   placed where the group was.\n\n   :param group: Group scene item\n   :param signal: If *true*, signals the scene with the *refresh*\n                  signal\n\n`void obs_sceneitem_group_add_item(obs_sceneitem_t *group, obs_sceneitem_t *item)`\n\n   Adds a scene item to a group.\n\n`void obs_sceneitem_group_remove_item(obs_sceneitem_t *item)`\n\n   Removes a scene item from a group.  The item will be placed before\n   the group in the main scene.\n\n`obs_sceneitem_t *obs_sceneitem_get_group(obs_scene_t *scene, obs_sceneitem_t *item)`\n\n   Returns the parent group of a scene item.","chars":1885,"tokens_est":471,"sha256":"0c0b432a16c5ac9f7cd96ba548f1525993926731f765aafcc0cf86e573f079ab"},{"id":"docs-sphinx-reference-scenes#scene-api-reference-obs-scene-t-scene-item-group-functions~3","doc":"docs-sphinx-reference-scenes","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Scene API Reference (obs_scene_t)","Scene Item Group Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst#scene-item-group-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-scenes.rst","text":"[Scene API Reference (obs_scene_t) \u203a Scene Item Group Functions]\n:param scene: Scene to find the group within\n   :param item: Scene item to get the group of\n   :return:     The parent group of the scene item, or *NULL* if not in\n                a group\n\n`void obs_sceneitem_group_enum_items(obs_sceneitem_t *group, bool (*callback)(obs_scene_t*, obs_sceneitem_t*, void*), void *param)`\n\n   Enumerates scene items within a group.\n\n   Callback function returns true to continue enumeration, or false to end\n   enumeration.\n\n   Use `obs_sceneitem_addref()` if you want to retain a\n   reference after obs_sceneitem_group_enum_items finishes.\n\n`void obs_sceneitem_defer_group_resize_begin(obs_sceneitem_t *item)`\n\n`void obs_sceneitem_defer_group_resize_end(obs_sceneitem_t *item)`\n\n   Allows the ability to call any one of the transform functions on\n   scene items within a group without updating the internal matrices of\n   the group until obs_sceneitem_defer_group_resize_end has been called.\n\n   This is necessary if the user is resizing items while they are within\n   a group, as the group's transform will automatically update its\n   transform every frame otherwise.","chars":1166,"tokens_est":292,"sha256":"852a1582034156af2bd09dc1caa7a7ed530b3d987190502e80ce2c27f4780abc"},{"id":"docs-sphinx-reference-services#service-api-reference-obs-service-t","doc":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Service API Reference (obs_service_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst#service-api-reference-obs_service_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst","text":"[Service API Reference (obs_service_t)]\nServices are custom implementations of streaming services, which are\nused with outputs that stream.  For example, you could have a custom\nimplementation for streaming to Twitch, and another for YouTube to allow\nthe ability to log in and use their APIs to do things such as get the\nRTMP servers or control the channel.  The `libobs/obs-service.h`_ file\nis the dedicated header for implementing services.\n\n*(Author's note: the service API is incomplete as of this writing)*\n\n`obs_service_t`\n\n   A reference-counted service object.\n\n`obs_weak_service_t`\n\n   A weak reference to a service object.\n\n.. code:: cpp\n\n   #include <obs.h>","chars":668,"tokens_est":167,"sha256":"48e1c113115f14b5d67aed16fc8e5389156473ff43995294558c5ee8a456e968"},{"id":"docs-sphinx-reference-services#service-api-reference-obs-service-t-service-definition-structure","doc":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Service API Reference (obs_service_t)","Service Definition Structure"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst#service-definition-structure","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst","text":"[Service API Reference (obs_service_t) \u203a Service Definition Structure]\n`obs_service_info`\n\n   Service definition structure.\n\n`const char *obs_service_info.id`\n\n   Unique string identifier for the service (required).\n\n`const char *(*obs_service_info.get_name)(void *type_data)`\n\n   Get the translated name of the service type.\n\n   :param  type_data:  The type_data variable of this structure\n   :return:            The translated name of the service type\n\n`void *(*obs_service_info.create)(obs_data_t *settings, obs_service_t *service)`\n\n   Creates the implementation data for the service.\n\n   :param  settings: Settings to initialize the service with\n   :param  service:   Source that this data is associated with\n   :return:          The implementation data associated with this service\n\n`void (*obs_service_info.destroy)(void *data)`\n\n   Destroys the implementation data for the service.\n\n`void (*obs_service_info.get_defaults)(obs_data_t *settings)`\n            void (*obs_service_info.get_defaults2)(void *type_data, obs_data_t *settings)\n\n   Sets the default settings for this service.\n\n   :param  settings:  Default settings.  Call obs_data_set_default*\n                      functions on this object to set default setting\n                      values\n\n`obs_properties_t *(*obs_service_info.get_properties)(void *data)`\n            obs_properties_t *(*obs_service_info.get_properties2)(void *data, void *type_data)\n\n   Gets the property information of this service.\n\n   (Optional)\n\n   :return: The properties of the service\n\n`void (*obs_service_info.update)(void *data, obs_data_t *settings)`\n\n   Updates the settings for this service.\n\n   (Optional)\n\n   :param settings: New settings for this service\n\n`bool (*obs_service_info.initialize)(void *data, obs_output_t *output)`\n\n   Called when getting ready to start up an output, before the encoders\n   and output are initialized.\n\n   (Optional)","chars":1900,"tokens_est":475,"sha256":"4554ecfaae690c6edca2e4e18cfdf4b973866125d972d2eb2136fffa4b092a2b"},{"id":"docs-sphinx-reference-services#service-api-reference-obs-service-t-service-definition-structure~2","doc":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Service API Reference (obs_service_t)","Service Definition Structure"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst#service-definition-structure","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst","text":"[Service API Reference (obs_service_t) \u203a Service Definition Structure]\n:param  output: Output context to use this service with\n   :return:        *true* to allow the output to start up,\n                   *false* to prevent output from starting up\n\n`const char *(*obs_service_info.get_url)(void *data)`\n\n   :return: The stream URL\n\n`const char *(*obs_service_info.get_key)(void *data)`\n\n   :return: The stream key\n\n`const char *(*obs_service_info.get_username)(void *data)`\n\n   (Optional)\n\n   :return: The username\n\n`const char *(*obs_service_info.get_password)(void *data)`\n\n   (Optional)\n\n   :return: The password\n\n`void (*obs_service_info.apply_encoder_settings)(void *data, obs_data_t *video_encoder_settings, obs_data_t *audio_encoder_settings)`\n\n   This function is called to apply custom encoder settings specific to\n   this service.  For example, if a service requires a specific keyframe\n   interval, or has a bitrate limit, the settings for the video and\n   audio encoders can be optionally modified if the front-end optionally\n   calls `obs_service_apply_encoder_settings()`.\n\n   (Optional)\n\n   :param video_encoder_settings: The audio encoder settings to change\n   :param audio_encoder_settings: The video encoder settings to change\n\n`void *obs_service_info.type_data`\n            void (*obs_service_info.free_type_data)(void *type_data)\n\n   Private data associated with this entry.  Note that this is not the\n   same as the implementation data; this is used to differentiate\n   between two different types if the same callbacks are used for more\n   than one different type.\n\n   (Optional)\n\n`const char *(*obs_service_info.get_output_type)(void *data)`\n\n   (Optional)\n\n   :return: The output type that should be preferred with this service\n\n`const char **(*get_supported_video_codecs)(void *data)`\n\n   (Optional)\n\n   :return: A string pointer array of the supported video codecs, should\n            be stored by the plugin so the caller does not need to free\n            the data manually (typically best to use strlist_split to\n            generate this)","chars":2067,"tokens_est":517,"sha256":"9d6aa4b6936a75c78efd147fc0993cdd9c10a15cc9bab9b96aecbd3d0d106f78"},{"id":"docs-sphinx-reference-services#service-api-reference-obs-service-t-service-definition-structure~3","doc":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Service API Reference (obs_service_t)","Service Definition Structure"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst#service-definition-structure","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst","text":"[Service API Reference (obs_service_t) \u203a Service Definition Structure]\n`const char **(*get_supported_audio_codecs)(void *data)`\n\n   (Optional)\n\n   :return: A string pointer array of the supported audio codecs, should\n            be stored by the plugin so the caller does not need to free\n            the data manually (typically best to use strlist_split to\n            generate this)\n\n   .. versionadded:: 29.1\n\n`const char *(*obs_service_info.get_protocol)(void *data)`\n\n   :return: The protocol used by the service\n\n   .. versionadded:: 29.1\n\n`const char *(*obs_service_info.get_connect_info)(void *data, uint32_t type)`\n\n   Output a service connection info related to a given type value:\n\n   - **OBS_SERVICE_CONNECT_INFO_SERVER_URL** - Server URL (0)\n\n   - **OBS_SERVICE_CONNECT_INFO_STREAM_ID** - Stream ID (2)\n\n   - **OBS_SERVICE_CONNECT_INFO_STREAM_KEY** - Stream key (alias of **OBS_SERVICE_CONNECT_INFO_STREAM_ID**)\n\n   - **OBS_SERVICE_CONNECT_INFO_USERNAME** - Username (4)\n\n   - **OBS_SERVICE_CONNECT_INFO_PASSWORD** - Password (6)\n\n   - **OBS_SERVICE_CONNECT_INFO_ENCRYPT_PASSPHRASE** - Encryption passphrase (8)\n\n   - Odd values as types are reserved for third-party protocols\n\n   Depending on the protocol, the service will have to provide information\n   to the output to be able to connect.\n\n   Irrelevant or unused types can return `NULL`.\n\n   .. versionadded:: 29.1\n\n`bool (*obs_service_info.can_try_to_connect)(void *data)`\n\n   (Optional)\n\n   :return: If the service has all the needed connection info to be\n            able to connect.\n\n   NOTE: If not set, `obs_service_can_try_to_connect()`\n   returns *true* by default.\n\n   .. versionadded:: 29.1","chars":1669,"tokens_est":417,"sha256":"d051707b0996018652b183c0b7b46ba52139c3eceaeab408de59f4a9e80168ea"},{"id":"docs-sphinx-reference-services#service-api-reference-obs-service-t-general-service-functions","doc":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Service API Reference (obs_service_t)","General Service Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst#general-service-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst","text":"[Service API Reference (obs_service_t) \u203a General Service Functions]\n`void obs_register_service(struct obs_service_info *info)`\n\n   Registers a service type.  Typically used in\n   `obs_module_load()` or in the program's initialization phase.\n\n`const char *obs_service_get_display_name(const char *id)`\n\n   Calls the `obs_service_info.get_name` callback to get the\n   translated display name of a service type.\n\n   :param    id:            The service type string identifier\n   :return:                 The translated display name of a service type\n\n`obs_service_t *obs_service_create(const char *id, const char *name, obs_data_t *settings, obs_data_t *hotkey_data)`\n\n   Creates a service with the specified settings.\n\n   The \"service\" context is used for encoding video/audio data.  Use\n   obs_service_release to release it.\n\n   :param   id:             The service type string identifier\n   :param   name:           The desired name of the service.  If this is\n                            not unique, it will be made to be unique\n   :param   settings:       The settings for the service, or *NULL* if\n                            none\n   :param   hotkey_data:    Saved hotkey data for the service, or *NULL*\n                            if none\n   :return:                 A reference to the newly created service, or\n                            *NULL* if failed\n\n`obs_service_t *obs_service_get_ref(obs_service_t *service)`\n\n   Returns an incremented reference if still valid, otherwise returns\n   *NULL*. Release with `obs_service_release()`.\n\n`void obs_service_release(obs_service_t *service)`\n\n   Releases a reference to a service.  When the last reference is\n   released, the service is destroyed.\n\n`obs_weak_service_t *obs_service_get_weak_service(obs_service_t *service)`\n              obs_service_t *obs_weak_service_get_service(obs_weak_service_t *weak)","chars":1860,"tokens_est":465,"sha256":"fe1e6578672c5e8cc27b4100c6fc5094e938ceebf564e91c859b71bf4d8fea48"},{"id":"docs-sphinx-reference-services#service-api-reference-obs-service-t-general-service-functions~2","doc":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Service API Reference (obs_service_t)","General Service Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst#general-service-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst","text":"[Service API Reference (obs_service_t) \u203a General Service Functions]\nThese functions are used to get a weak reference from a strong service\n   reference, or a strong service reference from a weak reference.  If\n   the service is destroyed, *obs_weak_service_get_service* will return\n   *NULL*.\n\n`void obs_weak_service_addref(obs_weak_service_t *weak)`\n              void obs_weak_service_release(obs_weak_service_t *weak)\n\n   Adds/releases a weak reference to a service.\n\n`const char *obs_service_get_name(const obs_service_t *service)`\n\n   :return: The name of the service\n\n`obs_data_t *obs_service_defaults(const char *id)`\n\n   :return: An incremented reference to the service's default settings.\n            Release with `obs_data_release()`.\n\n`obs_properties_t *obs_service_properties(const obs_service_t *service)`\n              obs_properties_t *obs_get_service_properties(const char *id)\n\n   Use these functions to get the properties of a service or service\n   type.  Properties are optionally used (if desired) to automatically\n   generate user interface widgets to allow users to update settings.\n\n   :return: The properties list for a specific existing service.  Free\n            with `obs_properties_destroy()`\n\n`obs_data_t *obs_service_get_settings(const obs_service_t *service)`\n\n   :return: An incremented reference to the service's settings. Release with\n            `obs_data_release()`.\n\n`void obs_service_update(obs_service_t *service, obs_data_t *settings)`\n\n   Updates the settings for this service context.\n\n`void obs_service_apply_encoder_settings(obs_service_t *service, obs_data_t *video_encoder_settings, obs_data_t *audio_encoder_settings)`\n\n   Applies service-specific video encoder settings.\n\n   :param  video_encoder_settings: Video encoder settings.  Can be *NULL*\n   :param  audio_encoder_settings: Audio encoder settings.  Can be *NULL*\n\n`const char **obs_service_get_supported_video_codecs(const obs_service_t *service)`","chars":1952,"tokens_est":488,"sha256":"cd473c22bcd97a97d79ca124ee894da7b7a0de4fa15155f0f30e059cdafd1faf"},{"id":"docs-sphinx-reference-services#service-api-reference-obs-service-t-general-service-functions~3","doc":"docs-sphinx-reference-services","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Service API Reference (obs_service_t)","General Service Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst#general-service-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-services.rst","text":"[Service API Reference (obs_service_t) \u203a General Service Functions]\n:return: An array of string pointers containing the supported video\n            codecs for the service, terminated with a *NULL* pointer.\n            Does not need to be freed\n\n`const char **obs_service_get_supported_audio_codecs(const obs_service_t *service)`\n\n   :return: An array of string pointers containing the supported audio\n            codecs for the service, terminated with a *NULL* pointer.\n            Does not need to be freed\n\n   .. versionadded:: 29.1\n\n`const char *obs_service_get_protocol(const obs_service_t *service)`\n\n   :return: Protocol currently used for this service\n\n   .. versionadded:: 29.1\n\n`const char *obs_service_get_preferred_output_type(const obs_service_t *service)`\n\n   :return: The output type that should be preferred with this service\n\n   .. versionadded:: 29.1\n\n`const char *obs_service_get_connect_info(const obs_service_t *service, uint32_t type)`\n\n   :param type: Check `obs_service_info.get_connect_info` for\n                type values.\n   :return: Connection info related to the type value.\n\n   .. versionadded:: 29.1\n\n`bool obs_service_can_try_to_connect(const obs_service_t *service)`\n\n   :return: If the service has all the needed connection info to be\n            able to connect. Returns `true` if\n            `obs_service_info.can_try_to_connect` is not set.\n\n   .. versionadded:: 29.1\n\n.. ---------------------------------------------------------------------------\n\n.. _libobs/obs-service.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-service.h","chars":1586,"tokens_est":396,"sha256":"5a6917653800518f7d5972cf3f55ad9c2601f1076dff9789a479e84b62737e3c"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#data-settings-api-reference-obs_data_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t)]\nData settings objects are reference-counted objects that store values in\na string-table or array.  They're similar to Json objects, but\nadditionally allow additional functionality such as default or\nauto-selection values.  Data is saved/loaded to/from Json text and Json\ntext files.\n\n`obs_data_t`\n\n   A reference-counted data object.\n\n`obs_data_array_t`\n\n   A reference-counted data array object.\n\n.. code:: cpp\n\n   #include <obs.h>","chars":475,"tokens_est":119,"sha256":"bfbd47ef418cb1995f1d298072078023487eb0114e462060239380bb04489e30"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t-general-functions","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)","General Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#general-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t) \u203a General Functions]\n`obs_data_t *obs_data_create()`\n\n   :return: A new reference to a data object. Release with\n            `obs_data_release()`.\n\n`obs_data_t *obs_data_create_from_json(const char *json_string)`\n\n   Creates a data object from a Json string.\n\n   :param json_string: Json string\n   :return:            A new reference to a data object. Release with\n                       `obs_data_release()`.\n\n`obs_data_t *obs_data_create_from_json_file(const char *json_file)`\n\n   Creates a data object from a Json file.\n\n   :param json_file: Json file path\n   :return:          A new reference to a data object. Release with\n                     `obs_data_release()`.\n\n`obs_data_t *obs_data_create_from_json_file_safe(const char *json_file, const char *backup_ext)`\n\n   Creates a data object from a Json file, with a backup file in case\n   the original is corrupted or fails to load.\n\n   :param json_file:  Json file path\n   :param backup_ext: Backup file extension\n   :return:           A new reference to a data object. Release with\n                       `obs_data_release()`.\n\n`void obs_data_addref(obs_data_t *data)`\n              void obs_data_release(obs_data_t *data)\n\n   Adds/releases a reference to a data object.\n\n`const char *obs_data_get_json(obs_data_t *data)`\n\n   Generates a new json string. The string allocation is stored within\n   the data object itself, and does not need to be manually freed.\n\n   :return: Json string for this object\n\n`const char *obs_data_get_json_with_defaults(obs_data_t *data)`\n\n   Same as `obs_data_get_json()` but default values are also serialized.\n\n   :return: Json string for this object\n\n`const char *obs_data_get_json_pretty(obs_data_t *data)`\n\n   Same as `obs_data_get_json()` but the JSON data is pretty-printed.\n\n   :return: Json string for this object\n\n`const char *obs_data_get_json_pretty_with_defaults(obs_data_t *data)`\n\n   Same as `obs_data_get_json_pretty()` but default values are also serialized.\n\n   :return: Json string for this object","chars":2043,"tokens_est":511,"sha256":"5e2b62fa994ab5d5be2b7cf4a8a624c55b5bb34d1ba492b919aa0d47ae61bcb0"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t-general-functions~2","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)","General Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#general-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t) \u203a General Functions]\n`const char *obs_data_get_last_json(obs_data_t *data)`\n\n   Returns the last json string generated for this data object. Does not\n   generate a new string. Use `obs_data_get_json()` to generate\n   a json string first.\n\n   :return: Json string for this object\n\n`bool obs_data_save_json(obs_data_t *data, const char *file)`\n\n   Saves the data to a file as Json text.\n\n   :param file: The file to save to\n   :return:     *true* if successful, *false* otherwise\n\n`bool obs_data_save_json_safe(obs_data_t *data, const char *file, const char *temp_ext, const char *backup_ext)`\n\n   Saves the data to a file as Json text, and if overwriting an old\n   file, backs up that old file to help prevent potential file\n   corruption.\n\n   :param file:       The file to save to\n   :param backup_ext: The backup extension to use for the overwritten\n                      file if it exists\n   :return:           *true* if successful, *false* otherwise\n\n`void obs_data_apply(obs_data_t *target, obs_data_t *apply_data)`\n\n   Merges the data of *apply_data* in to *target*.\n\n`void obs_data_erase(obs_data_t *data, const char *name)`\n\n   Erases the user data for item *name* within the data object.\n\n`void obs_data_clear(obs_data_t *data)`\n\n   Clears all user data in the data object.","chars":1324,"tokens_est":331,"sha256":"0473eac448c56bf7088f2d22b965fd3dd9980a73e34a2c2d6ff79936ce450c45"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t-set-functions","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)","Set Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#set-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t) \u203a Set Functions]\n`void obs_data_set_string(obs_data_t *data, const char *name, const char *val)`\n\n`void obs_data_set_int(obs_data_t *data, const char *name, long long val)`\n\n`void obs_data_set_double(obs_data_t *data, const char *name, double val)`\n\n`void obs_data_set_bool(obs_data_t *data, const char *name, bool val)`\n\n`void obs_data_set_obj(obs_data_t *data, const char *name, obs_data_t *obj)`\n\n`void obs_data_set_array(obs_data_t *data, const char *name, obs_data_array_t *array)`\n\n.. _obs_data_get_funcs:","chars":553,"tokens_est":138,"sha256":"97b98c5d244aa7232225f7151aafa594ea267d9ea4df31d4739d9e0abd35bf70"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t-get-functions","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)","Get Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#get-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t) \u203a Get Functions]\n`const char *obs_data_get_string(obs_data_t *data, const char *name)`\n\n   Note: If the data object was generated from a OBS_COMBO_TYPE_EDITABLE property, the property's `name` will be\n   returned instead of its `val`.\n\n`long long obs_data_get_int(obs_data_t *data, const char *name)`\n\n`double obs_data_get_double(obs_data_t *data, const char *name)`\n\n`bool obs_data_get_bool(obs_data_t *data, const char *name)`\n\n`obs_data_t *obs_data_get_obj(obs_data_t *data, const char *name)`\n\n   :return: An incremented reference to a data object. Release with\n            `obs_data_release()`.\n\n`obs_data_array_t *obs_data_get_array(obs_data_t *data, const char *name)`\n\n   :return: An incremented reference to a data array object. Release\n            with `obs_data_array_release()`.\n\n.. _obs_data_default_funcs:","chars":861,"tokens_est":215,"sha256":"ac51a77850f3de65941175e7c7cfa601becea88a8b1086a03d9728765daef778"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t-default-value-functions","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)","Default Value Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#default-value-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t) \u203a Default Value Functions]\nDefault values are used to determine what value will be given if a value\nis not set.\n\n`obs_data_t *obs_data_get_defaults(obs_data_t *data);`\n\n   :return: obs_data_t * with all default values (recursively for all objects as well).\n\n`void obs_data_set_default_string(obs_data_t *data, const char *name, const char *val)`\n              const char *obs_data_get_default_string(obs_data_t *data, const char *name)\n\n`void obs_data_set_default_int(obs_data_t *data, const char *name, long long val)`\n              long long obs_data_get_default_int(obs_data_t *data, const char *name)\n\n`void obs_data_set_default_double(obs_data_t *data, const char *name, double val)`\n              double obs_data_get_default_double(obs_data_t *data, const char *name)\n\n`void obs_data_set_default_bool(obs_data_t *data, const char *name, bool val)`\n              bool obs_data_get_default_bool(obs_data_t *data, const char *name)\n\n`void obs_data_set_default_obj(obs_data_t *data, const char *name, obs_data_t *obj)`\n              obs_data_t *obs_data_get_default_obj(obs_data_t *data, const char *name)\n\n   :return: An incremented reference to a data object. Release with\n            `obs_data_release()`.\n\n`void obs_data_set_default_array(obs_data_t *data, const char *name, obs_data_array_t *arr)`\n              obs_data_array_t *obs_data_get_default_array(obs_data_t *data, const char *name)","chars":1441,"tokens_est":360,"sha256":"0b6d66f2abb94a0cd06ef941b924a81091c5b41e63ceb87c7e1a625f78ed8f50"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t-autoselect-functions","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)","Autoselect Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#autoselect-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t) \u203a Autoselect Functions]\nAutoselect values are optionally used to determine what values should be\nused to ensure functionality if the currently set values are\ninappropriate or invalid.\n\n`void obs_data_set_autoselect_string(obs_data_t *data, const char *name, const char *val)`\n              const char *obs_data_get_autoselect_string(obs_data_t *data, const char *name)\n\n`void obs_data_set_autoselect_int(obs_data_t *data, const char *name, long long val)`\n              long long obs_data_get_autoselect_int(obs_data_t *data, const char *name)\n\n`void obs_data_set_autoselect_double(obs_data_t *data, const char *name, double val)`\n              double obs_data_get_autoselect_double(obs_data_t *data, const char *name)\n\n`void obs_data_set_autoselect_bool(obs_data_t *data, const char *name, bool val)`\n              bool obs_data_get_autoselect_bool(obs_data_t *data, const char *name)\n\n`void obs_data_set_autoselect_obj(obs_data_t *data, const char *name, obs_data_t *obj)`\n              obs_data_t *obs_data_get_autoselect_obj(obs_data_t *data, const char *name)\n\n   :return: An incremented reference to a data object. Release with\n            `obs_data_release()`.\n\n`void obs_data_set_autoselect_array(obs_data_t *data, const char *name, obs_data_array_t *arr)`\n              obs_data_array_t *obs_data_get_autoselect_array(obs_data_t *data, const char *name)\n\n   :return: An incremented reference to a data array object. Release\n             with `obs_data_array_release()`.\n\n   .. versionadded:: 30.1","chars":1547,"tokens_est":387,"sha256":"a6624b54f1964680ce3843557e3f9808e3126383eced24857597b5c2378f9d9e"},{"id":"docs-sphinx-reference-settings#data-settings-api-reference-obs-data-t-array-functions","doc":"docs-sphinx-reference-settings","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Data Settings API Reference (obs_data_t)","Array Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst#array-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-settings.rst","text":"[Data Settings API Reference (obs_data_t) \u203a Array Functions]\n`obs_data_array_t *obs_data_array_create()`\n\n   :return: A new reference to a data array object. Release\n            with `obs_data_array_release()`.\n\n`void obs_data_array_addref(obs_data_array_t *array)`\n\n`void obs_data_array_release(obs_data_array_t *array)`\n\n`size_t obs_data_array_count(obs_data_array_t *array)`\n\n`obs_data_t *obs_data_array_item(obs_data_array_t *array, size_t idx)`\n\n   :return: An incremented reference to the data object associated with\n            this array entry. Release with `obs_data_release()`.\n\n`size_t obs_data_array_push_back(obs_data_array_t *array, obs_data_t *obj)`\n\n`void obs_data_array_insert(obs_data_array_t *array, size_t idx, obs_data_t *obj)`\n\n`void obs_data_array_erase(obs_data_array_t *array, size_t idx)`","chars":814,"tokens_est":204,"sha256":"078782a014759b3be50f33436fb407ba19ab325c75d56329d7248a5134c0e54a"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-api-reference-obs_source_t","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t)]\nSources are used to render video and/or audio on stream.  Things such as\ncapturing displays/games/audio, playing a video, showing an image, or\nplaying audio.  Sources can also be used to implement audio and video\nfilters as well as transitions.  The `libobs/obs-source.h`_ file is the\ndedicated header for implementing sources.\n\n`obs_source_t`\n\n   A reference-counted video/audio input source.\n\n`obs_weak_source_t`\n\n   A weak reference to an video/audio input source.\n\n.. code:: cpp\n\n   #include <obs.h>","chars":541,"tokens_est":135,"sha256":"1021a7c2280e6f19e311a5c48be4cc424334a9b550f14817f686d1242cd9f125"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\n`obs_source_info`\n\n   Source definition structure.\n\n`const char *obs_source_info.id`\n\n   Unique string identifier for the source (required).\n\n`uint32_t version`\n\n   Source version (optional).\n\n   This is used when a source's implementation is significantly\n   modified and the previous version is deprecated, but is kept to\n   prevent old sources from breaking.\n\n`enum obs_source_type obs_source_info.type`\n\n   Type of source.\n\n   - **OBS_SOURCE_TYPE_INPUT**      - Video/Audio Input\n   - **OBS_SOURCE_TYPE_FILTER**     - Filter\n   - **OBS_SOURCE_TYPE_TRANSITION** - Transition\n\n`uint32_t obs_source_info.output_flags`\n\n   Source output capability flags (required).\n\n   (Author's note: This should be renamed to \"capability_flags\")\n\n   A bitwise OR combination of one or more of the following values:\n\n   - **OBS_SOURCE_VIDEO** - Source has video\n\n     Unless SOURCE_ASYNC_VIDEO is specified, the source must include the\n     `obs_source_info.video_render` callback in the source\n     definition structure.\n\n   - **OBS_SOURCE_AUDIO** - Source has audio\n\n     Use the `obs_source_output_audio()` function to pass raw\n     audio data, which will be automatically converted and uploaded.  If\n     used with OBS_SOURCE_ASYNC_VIDEO, audio will automatically be\n     synced up to the video output based upon their mutual timestamps.\n\n   - **OBS_SOURCE_ASYNC** - Video is asynchronous (use\n     OBS_SOURCE_ASYNC_VIDEO instead to automatically combine this flag\n     with the OBS_SOURCE_VIDEO flag).\n\n   - **OBS_SOURCE_ASYNC_VIDEO** - Source passes raw video data via RAM\n\n     Use the `obs_source_output_video()` function to pass raw\n     video data, which will be automatically drawn at a timing relative\n     to the provided timestamp.\n\n     If audio is also present on the source, the audio will\n     automatically be synced to the video based upon their mutual\n     timestamps.\n\n   - **OBS_SOURCE_CUSTOM_DRAW** - Source uses custom graphics calls,\n     rather than just rendering a single texture.","chars":2080,"tokens_est":520,"sha256":"66e7dcb85702ba63dc1dcf0d29584ff289560b4b5f2910701fcc4692feb15eb7"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~2","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\nThis capability flag must be used if the source does not use\n     `obs_source_draw()` to render a single texture.\n\n     This capability flag is an important hint to turn off a specific\n     optimization that allows the first effect filter in the filter\n     chain to render the source directly with that effect filter.  The\n     optimization does not work if there are custom graphics calls, and\n     the source must be rendered to a texture first before being sent to\n     the first filter in the filter chain.\n\n     (Author's note: Ironically, not many sources render with that\n     optimization.  I should have made it so that the optimization isn't\n     used by default, and a flag should have been used to turn on the\n     optimization -- not turn it off).\n\n   - **OBS_SOURCE_INTERACTION** - Source can be interacted with by the\n     user.\n\n     When this is used, the source will receive interaction events if\n     these callbacks are provided:\n     `obs_source_info.mouse_click`,\n     `obs_source_info.mouse_move`,\n     `obs_source_info.mouse_wheel`,\n     `obs_source_info.focus`, and\n     `obs_source_info.key_click`.\n\n   - **OBS_SOURCE_COMPOSITE** - Source composites child sources\n\n     When used, specifies that the source composites one or more child\n     sources.  Scenes and transitions are examples of sources that\n     contain and render child sources.\n\n     Sources that render sub-sources must implement the audio_render\n     callback in order to perform custom audio mixing of child sources.\n\n     This capability flag is always set for transitions.\n\n   - **OBS_SOURCE_DO_NOT_DUPLICATE** - Source should not be fully\n     duplicated.\n\n     When this is used, specifies that the source should not be fully\n     duplicated, and should prefer to duplicate via holding references\n     rather than full duplication.","chars":1915,"tokens_est":479,"sha256":"8ffee0d0f23fa4991d1537808215e5ce09206d798b5416918c672aac57aa5832"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~3","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\nWhen functions such as `obs_source_duplicate()` or\n     `obs_scene_duplicate()` are called, sources or child\n     sources with this flag will never be fully duplicated, and will\n     instead only be referenced.\n\n     An example of the type of sources that should not be fully\n     duplicated are video devices, browsers, and video/audio captures,\n     as they will either not function correctly or will cause\n     performance or resource issues when duplicated.\n\n   - **OBS_SOURCE_DEPRECATED** - Source is deprecated and should not be\n     used.\n\n   - **OBS_SOURCE_DO_NOT_SELF_MONITOR** - Audio of this source should\n     not allow monitoring if the current monitoring device is the same\n     device being captured by the source.\n\n     This flag is used as a hint to the back-end to prevent the source\n     from creating an audio feedback loop.  This is primarily only used\n     with desktop audio capture sources.\n\n   - **OBS_SOURCE_CAP_DISABLED** - This source type has been disabled\n     and should not be shown as a type of source the user can add.\n\n   - **OBS_SOURCE_CAP_OBSOLETE** - This source type is obsolete and\n     should not be shown as a type of source the user can add.\n     Identical to *OBS_SOURCE_CAP_DISABLED*.  Meant to be used when a\n     source has changed in some way (mostly defaults/properties), but\n     you want to avoid breaking older configurations.  Basically solves\n     the problem of \"I want to change the defaults of a source but I\n     don't want to break people's configurations\"\n\n   - **OBS_SOURCE_CONTROLLABLE_MEDIA** - This source has media that can\n     be controlled\n\n   - **OBS_SOURCE_MONITOR_BY_DEFAULT** - Source should enable\n     monitoring by default.  Monitoring should be set by the\n     frontend if this flag is set.\n\n   - **OBS_SOURCE_CEA_708** - Source type provides cea708 data\n\n   - **OBS_SOURCE_SRGB** - Source understands SRGB rendering","chars":1978,"tokens_est":494,"sha256":"5a9c84bc782558b7dab8b6d6de0ae6b835fa986985f8f0cd4a4567aa305b79f9"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~4","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\n- **OBS_SOURCE_CAP_DONT_SHOW_PROPERTIES** - Source type prefers not\n     to have its properties shown on creation (prefers to rely on\n     defaults first)\n\n   - **OBS_SOURCE_REQUIRES_CANVAS** - Source type requires a canvas.\n\n`const char *(*obs_source_info.get_name)(void *type_data)`\n\n   Get the translated name of the source type.\n\n   :param  type_data:  The type_data variable of this structure\n   :return:            The translated name of the source type\n\n`void *(*obs_source_info.create)(obs_data_t *settings, obs_source_t *source)`\n\n   Creates the implementation data for the source.\n\n   :param  settings: Settings to initialize the source with\n   :param  source:   Source that this data is associated with\n   :return:          The implementation data associated with this source\n\n`void (*obs_source_info.destroy)(void *data)`\n\n   Destroys the implementation data for the source.\n\n   Async sources must not call obs_source_output_video after returning\n   from destroy.\n\n`uint32_t (*obs_source_info.get_width)(void *data)`\n            uint32_t (*obs_source_info.get_height)(void *data)\n\n   Returns the width/height of the source.  These callbacks are required\n   if this is a video source and is synchronous.\n\n   (Author's note: These should really be consolidated in to one\n   function, not two)\n\n   :return: The width/height of the video\n\n`void (*obs_source_info.get_defaults)(obs_data_t *settings)`\n            void (*obs_source_info.get_defaults2)(void *type_data, obs_data_t *settings)\n\n   Sets the default settings for this source.\n\n   :param  settings:  Default settings.  Call obs_data_set_default*\n                      functions on this object to set default setting\n                      values\n\n`obs_properties_t *(*obs_source_info.get_properties)(void *data)`\n            obs_properties_t *(*obs_source_info.get_properties2)(void *data, void *type_data)\n\n   Gets the property information of this source.","chars":2008,"tokens_est":502,"sha256":"18888f92e1fe5c8307b0cb5dd8f7af1546584920f4565ad4fdf09b8240fe2868"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~5","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\n:param  data:  The implementation data associated with this source.\n                  This value can be null (e.g., when\n                  `obs_get_source_properties()` is called on the\n                  source type), make sure to handle this gracefully.\n\n   (Optional)\n\n   :return: The properties of the source\n\n`void (*obs_source_info.update)(void *data, obs_data_t *settings)`\n\n   Updates the settings for this source.\n\n   (Optional)\n\n   :param settings: New settings for this source\n\n`void (*obs_source_info.activate)(void *data)`\n\n   Called when the source has been activated in the main view (visible\n   on stream/recording).\n\n   (Optional)\n\n`void (*obs_source_info.deactivate)(void *data)`\n\n   Called when the source has been deactivated from the main view (no\n   longer visible on stream/recording).\n\n   (Optional)\n\n`void (*obs_source_info.show)(void *data)`\n\n   Called when the source is visible on any display and/or on the main\n   view.\n\n   (Optional)\n\n`void (*obs_source_info.hide)(void *data)`\n\n   Called when the source is no longer visible on any display and/or on\n   the main view.\n\n   (Optional)\n\n`void (*obs_source_info.video_tick)(void *data, float seconds)`\n\n   Called each video frame with the time elapsed.\n\n   (Optional)\n\n   :param  seconds: Seconds elapsed since the last frame\n\n`void (*obs_source_info.video_render)(void *data, gs_effect_t *effect)`\n\n   Called when rendering the source with the graphics subsystem.\n\n   If this is an input/transition source, this is called to draw the\n   source texture with the graphics subsystem.\n\n   If this is a filter source, it wraps source draw calls (for example\n   applying a custom effect with custom parameters to a source).  In\n   this case, it's highly recommended to use the\n   `obs_source_process_filter_begin()` and\n   `obs_source_process_filter_end()` functions to automatically\n   handle effect-based filter processing.  However, you can implement\n   custom draw handling as desired as well.","chars":2054,"tokens_est":514,"sha256":"6a71b20f63955d654aa33c4d75bd68f581d187be296029c82055f1ae2192a908"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~6","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\nIf the source output capability flags do not include\n   OBS_SOURCE_CUSTOM_DRAW, the source must use\n   `obs_source_draw()` to render the source's texture.\n\n   :param effect: This parameter is no longer used.  Instead, call\n                  `obs_source_draw()`\n\n`struct obs_source_frame *(*obs_source_info.filter_video)(void *data, struct obs_source_frame *frame)`\n\n   Called to filter raw async video data.  This function is only used\n   with asynchronous video filters.\n\n   :param  frame: Video frame to filter\n   :return:       New video frame data.  This can defer video data to\n                  be drawn later if time is needed for processing\n\n`struct obs_audio_data *(*obs_source_info.filter_audio)(void *data, struct obs_audio_data *audio)`\n\n   Called to filter raw audio data.  This function is only used with\n   audio filters.\n\n   :param  audio: Audio data to filter\n   :return:       Modified or new audio data.  You can directly modify\n                  the data passed and return it, or you can defer audio\n                  data for later if time is needed for processing.  If\n                  you are returning new data, that data must exist until\n                  the next call to the\n                  `obs_source_info.filter_audio` callback or\n                  until the filter is removed/destroyed\n\n`void (*obs_source_info.enum_active_sources)(void *data, obs_source_enum_proc_t enum_callback, void *param)`\n\n   Called to enumerate all active sources being used within this\n   source.  If the source has children that render audio/video it must\n   implement this callback.  Only used with sources that have the\n   OBS_SOURCE_COMPOSITE output capability flag.\n\n   :param  enum_callback: Enumeration callback\n   :param  param:         User data to pass to callback\n\n`void (*obs_source_info.save)(void *data, obs_data_t *settings)`","chars":1936,"tokens_est":484,"sha256":"b84d6d58ae40fe8094e7f793cf5e7f198a2d7ddbe9713abf1e905187ec074d2c"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~7","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\nCalled when saving custom data for a source.  This is a separate\n   function because sometimes a source needs to know when it is being\n   saved so it doesn't always have to update the current settings until\n   a certain point.\n\n   (Optional)\n\n   :param  settings: Settings object to save data to\n\n`void (*obs_source_info.load)(void *data, obs_data_t *settings)`\n\n   Called when loading custom data from saved source data.  This is\n   called after all the loading sources have actually been created,\n   allowing the ability to reference other sources if desired.\n\n   (Optional)\n\n   :param  settings: Settings object to load data from\n\n`void (*obs_source_info.mouse_click)(void *data, const struct obs_mouse_event *event, int32_t type, bool mouse_up, uint32_t click_count)`\n\n   Called when interacting with a source and a mouse-down or mouse-up\n   occurs.  Only used with sources that have the OBS_SOURCE_INTERACTION\n   output capability flag.\n\n   (Optional)\n\n   :param event:       Mouse event properties\n   :param type:        Mouse button pushed\n   :param mouse_up:    Mouse event type (true if mouse-up)\n   :param click_count: Mouse click count (1 for single click, etc.)\n\n`void (*obs_source_info.mouse_move)(void *data, const struct obs_mouse_event *event, bool mouse_leave)`\n\n   Called when interacting with a source and a mouse-move occurs.  Only\n   used with sources that have the OBS_SOURCE_INTERACTION output\n   capability flag.\n\n   (Optional)\n\n   :param event:       Mouse event properties\n   :param mouse_leave: Mouse leave state (true if mouse left source)\n\n`void (*obs_source_info.mouse_wheel)(void *data, const struct obs_mouse_event *event, int x_delta, int y_delta)`\n\n   Called when interacting with a source and a mouse-wheel occurs.  Only\n   used with sources that have the OBS_SOURCE_INTERACTION output\n   capability flag.\n\n   (Optional)","chars":1941,"tokens_est":485,"sha256":"c787d40c20002a65f464bcb9d9aaaea459821e4bfa3da1fc553f70c6c4a861bb"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~8","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\n:param event:       Mouse event properties\n   :param x_delta:     Movement delta in the horizontal direction\n   :param y_delta:     Movement delta in the vertical direction\n\n`void (*obs_source_info.focus)(void *data, bool focus)`\n\n   Called when interacting with a source and gain focus/lost focus event\n   occurs.  Only used with sources that have the OBS_SOURCE_INTERACTION\n   output capability flag.\n\n   (Optional)\n\n   :param focus:       Focus state (true if focus gained)\n\n`void (*obs_source_info.key_click)(void *data, const struct obs_key_event *event, bool key_up)`\n\n   Called when interacting with a source and a key-up or key-down\n   occurs.  Only used with sources that have the OBS_SOURCE_INTERACTION\n   output capability flag.\n\n   (Optional)\n\n   :param event:       Key event properties\n   :param focus:       Key event type (true if mouse-up)\n\n`void (*obs_source_info.filter_add)(void *data, obs_source_t *source)`\n\n   Called when the filter is added to a source.\n\n   (Optional)\n\n   :param  data:   Filter data\n   :param  source: Source that the filter is being added to\n\n`void (*obs_source_info.filter_remove)(void *data, obs_source_t *source)`\n\n   Called when the filter is removed from a source.\n\n   (Optional)\n\n   :param  data:   Filter data\n   :param  source: Source that the filter being removed from\n\n`void *obs_source_info.type_data`\n            void (*obs_source_info.free_type_data)(void *type_data)\n\n   Private data associated with this entry.  Note that this is not the\n   same as the implementation data; this is used to differentiate\n   between two different types if the same callbacks are used for more\n   than one different type.\n\n`bool (*obs_source_info.audio_render)(void *data, uint64_t *ts_out, struct obs_source_audio_mix *audio_output, uint32_t mixers, size_t channels, size_t sample_rate)`\n\n   Called to render audio of composite sources.  Only used with sources\n   that have the OBS_SOURCE_COMPOSITE output capability flag.","chars":2048,"tokens_est":512,"sha256":"38cb5ebcf34cea8b5727d9e9feee8954e13fd06ccfabae88cc17e31439bbbcf7"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~9","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\n`void (*obs_source_info.enum_all_sources)(void *data, obs_source_enum_proc_t enum_callback, void *param)`\n\n   Called to enumerate all active and inactive sources being used\n   within this source.  If this callback isn't implemented,\n   enum_active_sources will be called instead.  Only used with sources\n   that have the OBS_SOURCE_COMPOSITE output capability flag.\n\n   This is typically used if a source can have inactive child sources.\n\n   :param  enum_callback: Enumeration callback\n   :param  param:         User data to pass to callback\n\n`void (*obs_source_info.transition_start)(void *data)`\n            void (*obs_source_info.transition_stop)(void *data)\n\n   Called on transition sources when the transition starts/stops.\n\n   (Optional)\n\n`enum obs_icon_type obs_source_info.icon_type`\n\n   Icon used for the source.\n\n   - **OBS_ICON_TYPE_UNKNOWN**         - Unknown\n   - **OBS_ICON_TYPE_IMAGE**           - Image\n   - **OBS_ICON_TYPE_COLOR**           - Color\n   - **OBS_ICON_TYPE_SLIDESHOW**       - Slideshow\n   - **OBS_ICON_TYPE_AUDIO_INPUT**     - Audio Input\n   - **OBS_ICON_TYPE_AUDIO_OUTPUT**    - Audio Output\n   - **OBS_ICON_TYPE_DESKTOP_CAPTURE** - Desktop Capture\n   - **OBS_ICON_TYPE_WINDOW_CAPTURE**  - Window Capture\n   - **OBS_ICON_TYPE_GAME_CAPTURE**    - Game Capture\n   - **OBS_ICON_TYPE_CAMERA**          - Camera\n   - **OBS_ICON_TYPE_TEXT**            - Text\n   - **OBS_ICON_TYPE_MEDIA**           - Media\n   - **OBS_ICON_TYPE_BROWSER**         - Browser\n   - **OBS_ICON_TYPE_CUSTOM**          - Custom\n\n`const char *(*obs_source_info.get_dark_icon)(void *type_data)`\n\n   Gets the icon file path used for dark themes. Make sure icon_type is set to OBS_ICON_TYPE_CUSTOM.\n\n`const char *(*obs_source_info.get_light_icon)(void *type_data)`\n\n   Gets the icon file path used for light themes. Make sure icon_type is set to OBS_ICON_TYPE_CUSTOM.\n\n`void (*obs_source_info.media_play_pause)(void *data, bool pause)`\n\n   Called to pause or play media.","chars":2053,"tokens_est":513,"sha256":"fcd72d0616a51ac1e179a736df046cebffc8b7035d5b4ff649fdf43b7c088638"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-definition-structure-obs-source-info~10","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source Definition Structure (obs_source_info)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-definition-structure-obs_source_info","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source Definition Structure (obs_source_info)]\n`void (*obs_source_info.media_restart)(void *data)`\n\n   Called to restart the media.\n\n`void (*obs_source_info.media_stop)(void *data)`\n\n   Called to stop the media.\n\n`void (*obs_source_info.media_next)(void *data)`\n\n   Called to go to the next media.\n\n`void (*obs_source_info.media_previous)(void *data)`\n\n   Called to go to the previous media.\n\n`int64_t (*obs_source_info.media_get_duration)(void *data)`\n\n   Called to get the media duration.\n\n`int64_t (*obs_source_info.media_get_time)(void *data)`\n\n   Called to get the current time of the media.\n\n`void (*obs_source_info.media_set_time)(void *data, int64_t milliseconds)`\n\n   Called to set the media time.\n\n`enum obs_media_state (*obs_source_info.media_get_state)(void *data)`\n\n   Called to get the state of the media.\n\n   - **OBS_MEDIA_STATE_NONE**      - None\n   - **OBS_MEDIA_STATE_PLAYING**   - Playing\n   - **OBS_MEDIA_STATE_OPENING**   - Opening\n   - **OBS_MEDIA_STATE_BUFFERING** - Buffering\n   - **OBS_MEDIA_STATE_PAUSED**    - Paused\n   - **OBS_MEDIA_STATE_STOPPED**   - Stopped\n   - **OBS_MEDIA_STATE_ENDED**     - Ended\n   - **OBS_MEDIA_STATE_ERROR**     - Error\n\n`obs_missing_files_t *(*missing_files)(void *data)`\n\n   Called to get the missing files of the source.\n\n`enum gs_color_space (*obs_source_info.video_get_color_space)(void *data, size_t count, const enum gs_color_space *preferred_spaces)`\n\n   Returns the color space of the source. Assume GS_CS_SRGB if not\n   implemented.\n\n   There's an optimization an SDR source can do when rendering to HDR.\n   Check if the active space is GS_CS_709_EXTENDED, and return\n   GS_CS_709_EXTENDED instead of GS_CS_SRGB to avoid an redundant\n   conversion. This optimization can only be done if the pixel shader\n   outputs linear 709, which is why it's not performed by default.\n\n   :return: The color space of the video\n\n.. _source_signal_handler_reference:","chars":1954,"tokens_est":488,"sha256":"00ec946fec15e11f6eea6e92d02342631d1bf5450b533ce94865a71522b6fdba"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-common-source-signals","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Common Source Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#common-source-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Common Source Signals]\nThe following signals are defined for every source type:\n\n**destroy** (ptr *source*)\n\n   This signal is called when the source is about to be destroyed.  Do\n   not increment any references when using this signal.\n\n**remove** (ptr source)\n\n   Called when the `obs_source_remove()` function is called on\n   the source.\n\n**update** (ptr source)\n\n   Called when the source's settings have been updated.\n\n   .. versionadded:: 29.0.0\n\n**save** (ptr source)\n\n   Called when the source is being saved.\n\n**load** (ptr source)\n\n   Called when the source is being loaded.\n\n**activate** (ptr source)\n\n   Called when the source has been activated in the main view (visible\n   on stream/recording).\n\n**deactivate** (ptr source)\n\n   Called when the source has been deactivated from the main view (no\n   longer visible on stream/recording).\n\n**show** (ptr source)\n\n   Called when the source is visible on any display and/or on the main\n   view.\n\n**hide** (ptr source)\n\n   Called when the source is no longer visible on any display and/or on\n   the main view.\n\n**mute** (ptr source, bool muted)\n\n   Called when the source is muted/unmuted.\n\n**push_to_mute_changed** (ptr source, bool enabled)\n\n   Called when push-to-mute has been enabled/disabled.\n\n**push_to_mute_delay** (ptr source, int delay)\n\n   Called when the push-to-mute delay value has changed.\n\n**push_to_talk_changed** (ptr source, bool enabled)\n\n   Called when push-to-talk has been enabled/disabled.\n\n**push_to_talk_delay** (ptr source, int delay)\n\n   Called when the push-to-talk delay value has changed.\n\n**enable** (ptr source, bool enabled)\n\n   Called when the source has been disabled/enabled.\n\n**rename** (ptr source, string new_name, string prev_name)\n\n   Called when the source has been renamed.\n\n**volume** (ptr source, in out float volume)\n\n   Called when the volume of the source has changed.\n\n**update_properties** (ptr source)","chars":1948,"tokens_est":487,"sha256":"330f94835f9c17874b82dc2790828cd642ec18ebdd9decdc27997a79d56df004"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-common-source-signals~2","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Common Source Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#common-source-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Common Source Signals]\nCalled to signal to any properties view (or other users of the source's\n   obs_properties_t) that the presentable properties of the source have changed\n   and should be re-queried via obs_source_properties.\n   Does not mean that the source's *settings* (as configured by the user) have\n   changed. For that, use the `update` signal instead.\n\n**update_flags** (ptr source, int flags)\n\n   Called when the flags of the source have been changed.\n\n**audio_sync** (ptr source, int out int offset)\n\n   Called when the audio sync offset has changed.\n\n**audio_balance** (ptr source, in out float balance)\n\n   Called when the audio balance has changed.\n\n**audio_mixers** (ptr source, in out int mixers)\n\n   Called when the audio mixers have changed.\n\n**audio_activate** (ptr source)\n\n   Called when the source's audio becomes active.\n\n**audio_deactivate** (ptr source)\n\n   Called when the source's audio becomes inactive.\n\n**filter_add** (ptr source, ptr filter)\n\n   Called when a filter has been added to the source.\n\n   .. versionadded:: 30.0\n\n**filter_remove** (ptr source, ptr filter)\n\n   Called when a filter has been removed from the source.\n\n**reorder_filters** (ptr source)\n\n   Called when filters have been reordered.\n\n**transition_start** (ptr source)\n\n   Called when a transition is starting.\n\n**transition_video_stop** (ptr source)\n\n   Called when a transition's video transitioning has stopped.\n\n**transition_stop** (ptr source)\n\n   Called when a transition has stopped.\n\n**media_started** (ptr source)\n\n   Called when media has started.\n\n**media_ended** (ptr source)\n\n   Called when media has ended.\n\n**media_pause** (ptr source)\n\n   Called when media has been paused.\n\n**media_play** (ptr source)\n\n   Called when media starts playing.\n\n**media_restart** (ptr source)\n\n   Called when the playing of media has been restarted.\n\n**media_stopped** (ptr source)\n\n   Called when the playing of media has been stopped.\n\n**media_next** (ptr source)\n\n   Called when the media source switches to the next media.\n\n**media_previous** (ptr source)\n\n   Called when the media source switches to the previous media.","chars":2165,"tokens_est":541,"sha256":"2189f6836dc20a49f35d20433826474d55dc39e79c251028daf7214828cdd5a2"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-specific-signals","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source-specific Signals"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-specific-signals","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source-specific Signals]\n**slide_changed** (int index, string path)\n\n   Called when the source's currently displayed image changes.\n\n   :Defined by: - Image Slide Show\n\n**hooked** (ptr source, string title, string class, string executable)\n\n   Called when the source successfully captures an existing window.\n\n   :Defined by: - Window Capture (Windows)\n                - Game Capture (Windows)\n                - Application Audio Output Capture (Windows)\n\n**hooked** (ptr source, string name, string class)\n\n   Called when the source successfully captures an existing window.\n\n   :Defined by: - Window Capture (Xcomposite)\n\n**unhooked** (ptr source)\n\n   Called when the source stops capturing.\n\n   :Defined by: - Window Capture (Windows)\n                - Game Capture (Windows)\n                - Application Audio Output Capture (Windows)\n                - Window Capture (Xcomposite)","chars":924,"tokens_est":231,"sha256":"5b3ab487325ab0affb90bd8cd97eefc168ba9cd1fc149eeba59735eed39ea5b5"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-source-specific-procedures","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Source-specific Procedures"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#source-specific-procedures","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Source-specific Procedures]\nThe following procedures are defined for specific sources only:\n\n**current_index** (out int current_index)\n\n   Returns the index of the currently displayed image in the slideshow.\n\n   :Defined by: - Image Slide Show\n\n**total_files** (out int total_files)\n\n   Returns the total number of image files in the slideshow.\n\n   :Defined by: - Image Slide Show\n\n**get_hooked** (out bool hooked, out string title, out string class, out string executable)\n\n   Returns whether the source is currently capturing a window and if yes, which.\n\n   :Defined by: - Window Capture (Windows)\n                - Game Capture (Windows)\n                - Application audio output capture (Windows)\n\n**get_hooked** (out bool hooked, out string name, out string class)\n\n   Returns whether the source is currently capturing a window and if yes, which.\n\n   :Defined by: - Window Capture (Xcomposite)\n\n**get_metadata** (in string tag_id, out string tag_data)\n\n   For a given metadata tag, returns the data associated with it.\n\n   :Defined by: - VLC Video Source\n\n**restart** ()\n\n   Restarts the media.\n\n   :Defined by: - Media Source\n\n**get_duration** (out int duration)\n\n   Returns the total duration of the media file, in nanoseconds.\n\n   :Defined by: - Media Source\n\n**get_nb_frames** (out int num_frames)\n\n   Returns the total number of frames in the media file.\n\n   :Defined by: - Media Source\n\n**activate** (in bool active)\n\n   Activates or deactivates the device.\n\n   :Defined by: - Video Capture Device Source (Windows)","chars":1565,"tokens_est":391,"sha256":"8d30460ee9c69c910f80b16fed5ffe1b6440ca7f2a617786e6491f027f5edc69"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\n`void obs_register_source(struct obs_source_info *info)`\n\n   Registers a source type.  Typically used in\n   `obs_module_load()` or in the program's initialization phase.\n\n`const char *obs_source_get_display_name(const char *id)`\n\n   Calls the `obs_source_info.get_name` callback to get the\n   translated display name of a source type.\n\n   :param    id:            The source type string identifier\n   :return:                 The translated display name of a source type\n\n`obs_source_t *obs_source_create(const char *id, const char *name, obs_data_t *settings, obs_data_t *hotkey_data)`\n\n   Creates a source of the specified type with the specified settings.\n\n   The \"source\" context is used for anything related to presenting\n   or modifying video/audio.  Use `obs_source_release` to release it.\n\n   :param   id:             The source type string identifier\n   :param   name:           The desired name of the source.  If this is\n                            not unique, it will be made to be unique\n   :param   settings:       The settings for the source, or *NULL* if\n                            none\n   :param   hotkey_data:    Saved hotkey data for the source, or *NULL*\n                            if none\n   :return:                 A reference to the newly created source, or\n                            *NULL* if failed\n\n`obs_source_t *obs_source_create_private(const char *id, const char *name, obs_data_t *settings)`\n\n   Creates a 'private' source which is not enumerated by\n   `obs_enum_sources()`, and is not saved by\n   `obs_save_sources()`.\n\n   Author's Note: The existence of this function is a result of design\n   flaw: the front-end should control saving/loading of sources, and\n   functions like `obs_enum_sources()` and\n   `obs_save_sources()` should not exist in the back-end.","chars":1862,"tokens_est":466,"sha256":"cba7d4eed18454d5f9e697a7ff60d6dd5304b3ad5a0866826d684c404aed2105"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~2","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\n:param   id:             The source type string identifier\n   :param   name:           The desired name of the source.  For private\n                            sources, this does not have to be unique,\n                            and can additionally be *NULL* if desired\n   :param   settings:       The settings for the source, or *NULL* if\n                            none\n   :return:                 A reference to the newly created source, or\n                            *NULL* if failed\n\n`obs_source_t *obs_source_duplicate(obs_source_t *source, const char *desired_name, bool create_private)`\n\n   Duplicates a source.  If the source has the\n   OBS_SOURCE_DO_NOT_DUPLICATE output flag set, this only returns a\n   new reference to the same source. Either way,\n   release with `obs_source_release`.\n\n   :param source:         The source to duplicate\n   :param desired_name:   The desired name of the new source.  If this is\n                          not a private source and the name is not unique,\n                          it will be made to be unique\n   :param create_private: If *true*, the new source will be a private\n                          source if fully duplicated\n   :return:               A new source reference\n\n`obs_source_t *obs_source_get_ref(obs_source_t *source)`\n\n   Returns an incremented reference if still valid, otherwise returns\n   *NULL*. Use `obs_source_release` to release it.\n\n`void obs_source_release(obs_source_t *source)`\n\n   Releases a reference to a source.  When the last reference is\n   released, the source is destroyed.\n\n`obs_weak_source_t *obs_source_get_weak_source(obs_source_t *source)`\n              obs_source_t *obs_weak_source_get_source(obs_weak_source_t *weak)","chars":1777,"tokens_est":444,"sha256":"a9a362185009219f73b76e230e79f752239278d592b5dc69279b73c2fba8ce82"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~3","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\nThese functions are used to get an incremented weak reference from a strong source\n   reference, or an incremented strong source reference from a weak reference. If\n   the source is destroyed, *obs_weak_source_get_source* will return\n   *NULL*. Release with `obs_weak_source_release()` or\n   `obs_source_release()`, respectively.\n\n`void obs_weak_source_addref(obs_weak_source_t *weak)`\n              void obs_weak_source_release(obs_weak_source_t *weak)\n\n   Adds/releases a weak reference to a source.\n\n`void obs_source_remove(obs_source_t *source)`\n\n   Notifies all reference holders of the source (via\n   `obs_source_removed()`) that the source should be released.\n\n`bool obs_source_removed(const obs_source_t *source)`\n\n   :return: *true* if the source should be released\n\n`bool obs_source_is_hidden(obs_source_t *source)`\n              void obs_source_set_hidden(obs_source_t *source, bool hidden)\n\n   Gets/sets the hidden property that determines whether it should be hidden from the user.\n   Used when the source is still alive but should not be referenced.\n\n   .. deprecated:: 33.0\n\n`uint32_t obs_source_get_output_flags(const obs_source_t *source)`\n              uint32_t obs_get_source_output_flags(const char *id)\n\n   :return: Capability flags of a source\n\n   Author's Note: \"Output flags\" is poor wording in retrospect; this\n   should have been named \"Capability flags\", and the OBS_SOURCE_*\n   macros should really be OBS_SOURCE_CAP_* macros instead.\n\n   See `obs_source_info.output_flags` for more information.\n\n`obs_data_t *obs_get_source_defaults(const char *id)`\n\n   Calls `obs_source_info.get_defaults` to get the defaults\n   settings of the source type.\n\n   :return: The default settings for a source type\n\n`obs_properties_t *obs_source_properties(const obs_source_t *source)`\n              obs_properties_t *obs_get_source_properties(const char *id)","chars":1933,"tokens_est":483,"sha256":"6cf0d4b06c2c6b91694566769374705001dde350fd84e0f17f35c773747aea48"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~4","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\nUse these functions to get the properties of a source or source type.\n   Properties are optionally used (if desired) to automatically generate\n   user interface widgets to allow users to update settings.\n\n   :return: The properties list for a specific existing source.  Free with\n            `obs_properties_destroy()`\n\n`bool obs_source_configurable(const obs_source_t *source)`\n              bool obs_is_source_configurable(const char *id)\n\n   :return: *true* if the the source has custom properties, *false*\n            otherwise\n\n`void obs_source_update(obs_source_t *source, obs_data_t *settings)`\n\n   Updates the settings for a source and calls the\n   `obs_source_info.update` callback of the source.  If the\n   source is a video source, the `obs_source_info.update` will\n   be not be called immediately; instead, it will be deferred to the\n   video thread to prevent threading issues.\n\n`void obs_source_reset_settings(obs_source_t *source, obs_data_t *settings)`\n\n   Same as `obs_source_update`, but clears existing settings\n   first.\n\n`void obs_source_video_render(obs_source_t *source)`\n\n   Renders a video source.  This will call the\n   `obs_source_info.video_render` callback of the source.\n\n`uint32_t obs_source_get_width(obs_source_t *source)`\n              uint32_t obs_source_get_height(obs_source_t *source)\n\n   Calls the `obs_source_info.get_width` or\n   `obs_source_info.get_height` of the source to get its width\n   and/or height.\n\n   Author's Note: These functions should be consolidated in to a single\n   function/callback rather than having a function for both width and\n   height.\n\n   :return: The width or height of the source\n\n`enum gs_color_space obs_source_get_color_space(obs_source_t *source, size_t count, const enum gs_color_space *preferred_spaces)`\n\n   Calls the `obs_source_info.video_get_color_space` of the\n   source to get its color space. Assumes GS_CS_SRGB if not implemented.","chars":1979,"tokens_est":495,"sha256":"e369deed24ef316854536581a76e8ba692472a0d51e0a19fe4364592dd331992"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~5","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\nDisabled filters are skipped, and async video sources can figure out\n   the color space for themselves.\n\n   :return: The color space of the source\n\n`bool obs_source_get_texcoords_centered(obs_source_t *source)`\n\n   Hints whether or not the source will blend texels.\n\n   :return: Whether or not the source will blend texels\n\n`obs_data_t *obs_source_get_settings(const obs_source_t *source)`\n\n   :return: The settings string for a source.  The reference counter of the\n            returned settings data is incremented, so\n            `obs_data_release()` must be called when the\n            settings are no longer used\n\n`const char *obs_source_get_name(const obs_source_t *source)`\n\n   :return: The name of the source\n\n`const char *obs_source_get_uuid(const obs_source_t *source)`\n\n   :return: The UUID of the source\n\n   .. versionadded:: 29.1\n\n`void obs_source_set_name(obs_source_t *source, const char *name)`\n\n   Sets the name of a source.  If the source is not private and the name\n   is not unique, it will automatically be given a unique name.\n\n`enum obs_source_type obs_source_get_type(const obs_source_t *source)`\n\n   :return: | OBS_SOURCE_TYPE_INPUT for inputs\n            | OBS_SOURCE_TYPE_FILTER for filters\n            | OBS_SOURCE_TYPE_TRANSITION for transitions\n            | OBS_SOURCE_TYPE_SCENE for scenes\n\n`bool obs_source_is_scene(const obs_source_t *source)`\n\n   :return: *true* if the source is a scene\n\n`bool obs_source_is_group(const obs_source_t *source)`\n\n   :return: *true* if the source is a group\n\n`const char *obs_source_get_id(const obs_source_t *source)`\n\n   :return: The source's type identifier string. If the source is versioned,\n            \"_vN\" is appended at the end, where \"N\" is the source's version.\n\n`const char *obs_source_get_unversioned_id(const obs_source_t *source)`\n\n   :return: The source's unversioned type identifier string.\n\n`signal_handler_t *obs_source_get_signal_handler(const obs_source_t *source)`","chars":2018,"tokens_est":504,"sha256":"b3a36f1d07ba81f0e001243944951e1c06beb2d967127bd6e5ee82390ca7715d"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~6","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\n:return: The source's signal handler. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n   See the `source_signal_handler_reference` for more information\n   on signals that are available for sources.\n\n`proc_handler_t *obs_source_get_proc_handler(const obs_source_t *source)`\n\n   :return: The procedure handler for a source. Should not be manually freed,\n            as its lifecycle is managed by libobs.\n\n`void obs_source_set_volume(obs_source_t *source, float volume)`\n              float obs_source_get_volume(const obs_source_t *source)\n\n   Sets/gets the user volume for a source that has audio output, as a\n   multiplier of 0.0 or more (1.0 is unchanged). A negative volume sets\n   0.0, NaN sets the default, 1.0, and infinity sets 20.0 (+26 dB).\n\n`bool obs_source_muted(const obs_source_t *source)`\n              void obs_source_set_muted(obs_source_t *source, bool muted)\n\n   Sets/gets whether the source's audio is muted.\n\n`enum speaker_layout obs_source_get_speaker_layout(obs_source_t *source)`\n\n   Gets the current speaker layout.\n\n`void obs_source_set_balance_value(obs_source_t *source, float balance)`\n              float obs_source_get_balance_value(const obs_source_t *source)\n\n   Sets/gets the audio balance value, from 0.0 (left) to 1.0 (right).\n   A value outside that range is clamped to it, and NaN sets the\n   default, 0.5.\n\n`void obs_source_set_sync_offset(obs_source_t *source, int64_t offset)`\n              int64_t obs_source_get_sync_offset(const obs_source_t *source)\n\n   Sets/gets the audio sync offset (in nanoseconds) for a source.\n\n`void obs_source_set_async_compensation(obs_source_t *source, bool compensate)`\n              bool obs_source_async_compensation(const obs_source_t *source)","chars":1817,"tokens_est":454,"sha256":"1eb0abaaa3896a8d786045e9eb005c1798d80ee8008402a80b296fd66ed10926"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~7","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\nSets/gets whether libobs compensates for the clock drift of an\n   asynchronous audio source. An audio device runs on its own clock,\n   slightly off its nominal sample rate; when enabled, libobs resamples\n   the source's audio by up to 1000 ppm so that it keeps pace with its\n   timestamps, instead of resyncing with an audible dropout every few\n   minutes. Audio from a device on the system clock passes through\n   untouched. Off by default.\n\n`void obs_source_set_audio_mixers(obs_source_t *source, uint32_t mixers)`\n              uint32_t obs_source_get_audio_mixers(const obs_source_t *source)\n\n   Sets/gets the audio mixer channels (i.e. audio tracks) that a source outputs to,\n   depending on what bits are set.  Audio mixers allow filtering\n   specific using multiple audio encoders to mix different sources\n   together depending on what mixer channel they're set to.\n\n   For example, to output to mixer 1 and 3, you would perform a bitwise\n   OR on bits 0 and 2:  (1<<0) | (1<<2), or 0x5.\n\n`void obs_source_set_monitoring_type(obs_source_t *source, enum obs_monitoring_type type)`\n              enum obs_monitoring_type obs_source_get_monitoring_type(obs_source_t *source)\n\n   .. deprecated:: 33.0\n   Use `obs_source_set_monitoring_enabled` and `obs_source_get_monitoring_enabled` instead.\n\n   Sets/gets the desktop audio monitoring type.\n\n   :param order: | OBS_MONITORING_TYPE_NONE - Do not monitor\n                 | OBS_MONITORING_TYPE_MONITOR_ONLY - Send to monitor device, no outputs\n                 | OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT - Send to monitor device and outputs","chars":1655,"tokens_est":414,"sha256":"ef0c065bf19677724ddf6bb0beb118ce86477f7817b55724616d138967e2334e"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~8","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\nSince 33.0, monitoring is on or off, and the monitor plays a source even\n   when it is muted. OBS_MONITORING_TYPE_MONITOR_ONLY turns monitoring on\n   and mutes the source; OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT turns\n   monitoring on and unmutes it; OBS_MONITORING_TYPE_NONE turns monitoring\n   off and leaves the mute, except that it unmutes a source whose mute\n   OBS_MONITORING_TYPE_MONITOR_ONLY set, if nothing has set the mute since.\n   The getter reports a monitored source that is muted as\n   OBS_MONITORING_TYPE_MONITOR_ONLY, and one that is not muted as\n   OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT.\n\n   Note that OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT unmutes the source, even\n   if the user muted it. Before 33.0 the monitoring type and the mute were\n   independent, so a muted source set to Monitor and Output stayed silent.\n   Now, setting Monitor and Output on a muted source, such as a microphone,\n   makes it audible in the outputs. Check\n   `obs_source_muted()` first if a plugin must not unmute a source.\n\n`void obs_source_set_monitoring_enabled(obs_source_t *source, bool enable)`\n              bool obs_source_get_monitoring_enabled(const obs_source_t *source)\n\n   Sets/gets the audio monitoring enabled state for the source.\n\n   .. versionadded:: 33.0\n\n`void obs_source_set_audio_active(obs_source_t *source, bool active)`\n              bool obs_source_audio_active(const obs_source_t *source)\n\n   Sets/gets the audio active status (controls whether the source is shown in the mixer).\n\n`void obs_source_enum_active_sources(obs_source_t *source, obs_source_enum_proc_t enum_callback, void *param)`\n              void obs_source_enum_active_tree(obs_source_t *source, obs_source_enum_proc_t enum_callback, void *param)\n\n   Enumerates active child sources or source tree used by this source.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef void (*obs_source_enum_proc_t)(obs_source_t *parent,\n                   obs_source_t *child, void *param);","chars":2054,"tokens_est":514,"sha256":"db9b2a0e8d5c3cd9e66dafcb54e64f33940c56e3fd829bb3ffce3b6389bd6f24"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~9","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\n`bool obs_source_push_to_mute_enabled(const obs_source_t *source)`\n              void obs_source_enable_push_to_mute(obs_source_t *source, bool enabled)\n\n   Sets/gets whether push-to-mute is enabled.\n\n`uint64_t obs_source_get_push_to_mute_delay(const obs_source_t *source)`\n              void obs_source_set_push_to_mute_delay(obs_source_t *source, uint64_t delay)\n\n   Sets/gets the push-to-mute delay, in milliseconds.\n\n`bool obs_source_push_to_talk_enabled(const obs_source_t *source)`\n              void obs_source_enable_push_to_talk(obs_source_t *source, bool enabled)\n\n   Sets/gets whether push-to-talk is enabled.\n\n`uint64_t obs_source_get_push_to_talk_delay(const obs_source_t *source)`\n              void obs_source_set_push_to_talk_delay(obs_source_t *source, uint64_t delay)\n\n   Sets/gets the push-to-talk delay, in milliseconds.\n\n`bool obs_source_active(const obs_source_t *source)`\n\n   :return: *true* if active, *false* if not.  A source is only\n            considered active if it's being shown on the final mix\n\n`bool obs_source_showing(const obs_source_t *source)`\n\n   :return: *true* if showing, *false* if not.  A source is considered\n            showing if it's being displayed anywhere at all, whether on\n            a display context or on the final output\n\n`void obs_source_inc_showing(obs_source_t *source)`\n              void obs_source_dec_showing(obs_source_t *source)\n\n   Increments/decrements a source's \"showing\" state.  Typically used\n   when drawing a source on a display manually.\n\n`void obs_source_set_flags(obs_source_t *source, uint32_t flags)`\n              uint32_t obs_source_get_flags(const obs_source_t *source)\n\n   :param flags: OBS_SOURCE_FLAG_FORCE_MONO Forces audio to mono\n\n`void obs_source_enum_filters(obs_source_t *source, obs_source_enum_proc_t callback, void *param)`\n\n   Enumerates active filters on a source.\n\n   Relevant data types used with this function:\n\n.. code:: cpp","chars":1990,"tokens_est":498,"sha256":"d68aa0c11dbeb0cb0da1b8c1c4061f38ffb2efdb3739e2245392537e69f18313"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~10","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\ntypedef void (*obs_source_enum_proc_t)(obs_source_t *parent,\n                   obs_source_t *child, void *param);\n\n`obs_source_t *obs_source_get_filter_by_name(obs_source_t *source, const char *name)`\n\n   :return: The desired filter, or *NULL* if not found.  The reference\n            of the filter is incremented\n\n`void obs_source_copy_filters(obs_source_t *dst, obs_source_t *src)`\n\n   Copies filters from the source to the destination.  If filters by the\n   same name already exist in the destination source, the newer filters\n   will be given unique names.\n\n`void obs_source_copy_single_filter(obs_source_t *dst, obs_source_t *filter)`\n\n   Copies the filter from the source to the destination. If a filter by the\n   same name already exists in the destination source, the newer filter\n   will be given a unique name.\n\n`size_t obs_source_filter_count(const obs_source_t *source)`\n\n   Returns the number of filters the source has.\n\n`obs_data_array_t *obs_source_backup_filters(obs_source_t *source)`\n              void obs_source_restore_filters(obs_source_t *source, obs_data_array_t *array)\n\n   Backs up and restores the current filter list and order.\n\n`bool obs_source_enabled(const obs_source_t *source)`\n              void obs_source_set_enabled(obs_source_t *source, bool enabled)\n\n   Enables/disables a source, or returns the enabled state.\n\n`void obs_source_add_audio_capture_callback(obs_source_t *source, obs_source_audio_capture_t callback, void *param)`\n              void obs_source_remove_audio_capture_callback(obs_source_t *source, obs_source_audio_capture_t callback, void *param)\n\n   Adds/removes an audio capture callback for a source.  This allows the\n   ability to get the raw audio data of a source as it comes in.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef void (*obs_source_audio_capture_t)(void *param, obs_source_t *source,\n                   const struct audio_data *audio_data, bool muted);","chars":2019,"tokens_est":505,"sha256":"ec947946624062acb4ff72ebebd7ebc1523550239845f1199002bf3978dceb5c"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~11","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\n`void obs_source_set_deinterlace_mode(obs_source_t *source, enum obs_deinterlace_mode mode)`\n              enum obs_deinterlace_mode obs_source_get_deinterlace_mode(const obs_source_t *source)\n\n   Sets/gets the deinterlace mode.\n\n   :param mode:   | OBS_DEINTERLACE_MODE_DISABLE    - Disables deinterlacing\n                  | OBS_DEINTERLACE_MODE_DISCARD    - Discard\n                  | OBS_DEINTERLACE_MODE_RETRO      - Retro\n                  | OBS_DEINTERLACE_MODE_BLEND      - Blend\n                  | OBS_DEINTERLACE_MODE_BLEND_2X   - Blend 2x\n                  | OBS_DEINTERLACE_MODE_LINEAR     - Linear\n                  | OBS_DEINTERLACE_MODE_LINEAR_2X  - Linear 2x\n                  | OBS_DEINTERLACE_MODE_YADIF      - Yadif\n                  | OBS_DEINTERLACE_MODE_YADIF_2X   - Yadif 2x\n\n`void obs_source_set_deinterlace_field_order(obs_source_t *source, enum obs_deinterlace_field_order order)`\n              enum obs_deinterlace_field_order obs_source_get_deinterlace_field_order(const obs_source_t *source)\n\n   Sets/gets the deinterlace field order.\n\n   :param order: | OBS_DEINTERLACE_FIELD_ORDER_TOP - Start from top\n                 | OBS_DEINTERLACE_FIELD_ORDER_BOTTOM - Start from bottom\n\n`obs_data_t *obs_source_get_private_settings(obs_source_t *item)`\n\n   Gets private front-end settings data.  This data is saved/loaded\n   automatically.  Returns an incremented reference. Use `obs_data_release()`\n   to release it.\n\n`void obs_source_send_mouse_click(obs_source_t *source, const struct obs_mouse_event *event, int32_t type, bool mouse_up, uint32_t click_count)`\n\n   Used for interacting with sources: sends a mouse down/up event to a\n   source.\n\n`void obs_source_send_mouse_move(obs_source_t *source, const struct obs_mouse_event *event, bool mouse_leave)`\n\n   Used for interacting with sources: sends a mouse move event to a\n   source.\n\n`void obs_source_send_mouse_wheel(obs_source_t *source, const struct obs_mouse_event *event, int x_delta, int y_delta)`","chars":2047,"tokens_est":512,"sha256":"d9e6f448cd3a4d74c74a0007a4b91b8d1032417b8c513e66a85d0b3dc19035b1"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~12","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\nUsed for interacting with sources:  sends a mouse wheel event to a\n   source.\n\n`void obs_source_send_focus(obs_source_t *source, bool focus)`\n\n   Used for interacting with sources:  sends a got-focus or lost-focus\n   event to a source.\n\n`void obs_source_send_key_click(obs_source_t *source, const struct obs_key_event *event, bool key_up)`\n\n   Used for interacting with sources:  sends a key up/down event to a\n   source.\n\n`enum obs_icon_type obs_source_get_icon_type(const char *id)`\n\n   Calls the `obs_source_info.icon_type` to get the icon type.\n\n`const char *obs_source_get_dark_icon(const char *id)`\n\n   Calls the `obs_source_info.get_dark_icon` to get the dark icon.\n\n`const char *obs_source_get_light_icon(const char *id)`\n\n   Calls the `obs_source_info.get_light_icon` to get the light icon.\n\n`void obs_source_media_play_pause(obs_source_t *source, bool pause)`\n\n   Calls the `obs_source_info.media_play_pause` to pause or play media.\n\n`void obs_source_media_restart(obs_source_t *source)`\n\n   Calls the `obs_source_info.media_restart` to restart the media.\n\n`void obs_source_media_stop(obs_source_t *source)`\n\n   Calls the `obs_source_info.media_stop` to stop the media.\n\n`void obs_source_media_next(obs_source_t *source)`\n\n   Calls the `obs_source_info.media_next` to go to the next media.\n\n`void obs_source_media_previous(obs_source_t *source)`\n\n   Calls the `obs_source_info.media_previous` to go to the previous media.\n\n`int64_t obs_source_media_get_duration(obs_source_t *source)`\n\n   Calls the `obs_source_info.media_get_duration` to\n   get the media duration in milliseconds.\n\n`int64_t obs_source_media_get_time(obs_source_t *source)`\n              void obs_source_media_set_time(obs_source_t *source, int64_t ms)\n\n   Calls the `obs_source_info.media_get_time` or\n   `obs_source_info.media_set_time` to get/set the\n   current time (in milliseconds) of the media. Will return 0\n   for non-media sources.\n\n`enum obs_media_state obs_source_media_get_state(obs_source_t *source)`","chars":2056,"tokens_est":514,"sha256":"99999ffda51bc7c99e2f24f699d110f87f9106e122b73ad5f696a3b7ae4457c6"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-general-source-functions~13","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","General Source Functions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#general-source-functions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a General Source Functions]\nCalls the `obs_source_info.media_get_state` to get the state of the media.\n\n`void obs_source_media_started(obs_source_t *source)`\n\n   Emits a **media_started** signal.\n\n`void obs_source_media_ended(obs_source_t *source)`\n\n   Emits a **media_ended** signal.\n\n`obs_canvas_t *obs_source_get_canvas(const obs_source_t *source)`\n\n   Get canvas this source belongs to (reference incremented)","chars":450,"tokens_est":112,"sha256":"0d2f7b5ccec0e0f11cc3a2b9df297c3ffb58de7ca984311b8e4587d6f54526dc"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-functions-used-by-sources","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Functions used by sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#functions-used-by-sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Functions used by sources]\n`void obs_source_draw_set_color_matrix(const struct matrix4 *color_matrix, const struct vec3 *color_range_min, const struct vec3 *color_range_max)`\n\n   Helper function to set the color matrix information when drawing the\n   source.\n\n   :param  color_matrix:    The color matrix.  Assigns to the 'color_matrix'\n                            effect variable.\n   :param  color_range_min: The minimum color range.  Assigns to the\n                            'color_range_min' effect variable.  If NULL,\n                            {0.0f, 0.0f, 0.0f} is used.\n   :param  color_range_max: The maximum color range.  Assigns to the\n                            'color_range_max' effect variable.  If NULL,\n                            {1.0f, 1.0f, 1.0f} is used.\n\n`void obs_source_draw(gs_texture_t *image, int x, int y, uint32_t cx, uint32_t cy, bool flip)`\n\n   Helper function to draw sprites for a source (synchronous video).\n\n   :param  image:  The sprite texture to draw.  Assigns to the 'image' variable\n                   of the current effect.\n   :param  x:      X position of the sprite.\n   :param  y:      Y position of the sprite.\n   :param  cx:     Width of the sprite.  If 0, uses the texture width.\n   :param  cy:     Height of the sprite.  If 0, uses the texture height.\n   :param  flip:   Specifies whether to flip the image vertically.\n\n`void obs_source_output_video(obs_source_t *source, const struct obs_source_frame *frame)`\n\n   Outputs asynchronous video data.  Set to NULL to deactivate the texture.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   enum video_format {\n           VIDEO_FORMAT_NONE,\n\n           /* planar 4:2:0 formats */\n           VIDEO_FORMAT_I420, /* three-plane */\n           VIDEO_FORMAT_NV12, /* two-plane, luma and packed chroma */\n\n           /* packed 4:2:2 formats */\n           VIDEO_FORMAT_YVYU,\n           VIDEO_FORMAT_YUY2, /* YUYV */\n           VIDEO_FORMAT_UYVY,","chars":1990,"tokens_est":498,"sha256":"2a36118b655b2511dccb653e9d11b368c053bbba33b87577ae60aea4c4080b1e"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-functions-used-by-sources~2","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Functions used by sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#functions-used-by-sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Functions used by sources]\n/* packed uncompressed formats */\n           VIDEO_FORMAT_RGBA,\n           VIDEO_FORMAT_BGRA,\n           VIDEO_FORMAT_BGRX,\n           VIDEO_FORMAT_Y800, /* grayscale */\n\n           /* planar 4:4:4 */\n           VIDEO_FORMAT_I444,\n\n           /* more packed uncompressed formats */\n           VIDEO_FORMAT_BGR3,\n\n           /* planar 4:2:2 */\n           VIDEO_FORMAT_I422,\n\n           /* planar 4:2:0 with alpha */\n           VIDEO_FORMAT_I40A,\n\n           /* planar 4:2:2 with alpha */\n           VIDEO_FORMAT_I42A,\n\n           /* planar 4:4:4 with alpha */\n           VIDEO_FORMAT_YUVA,\n\n           /* packed 4:4:4 with alpha */\n           VIDEO_FORMAT_AYUV,\n\n           /* planar 4:2:0 format, 10 bpp */\n           VIDEO_FORMAT_I010, /* three-plane */\n           VIDEO_FORMAT_P010, /* two-plane, luma and packed chroma */\n\n           /* planar 4:2:2 format, 10 bpp */\n           VIDEO_FORMAT_I210,\n\n           /* planar 4:4:4 format, 12 bpp */\n           VIDEO_FORMAT_I412,\n\n           /* planar 4:4:4:4 format, 12 bpp */\n           VIDEO_FORMAT_YA2L,\n\n           /* planar 4:2:2 format, 16 bpp */\n           VIDEO_FORMAT_P216, /* two-plane, luma and packed chroma */\n\n           /* planar 4:4:4 format, 16 bpp */\n           VIDEO_FORMAT_P416, /* two-plane, luma and packed chroma */\n\n           /* packed 4:2:2 format, 10 bpp */\n           VIDEO_FORMAT_V210,\n\n           /* packed uncompressed 10-bit format */\n           VIDEO_FORMAT_R10L,\n   };\n\n   struct obs_source_frame {\n           uint8_t             *data[MAX_AV_PLANES];\n           uint32_t            linesize[MAX_AV_PLANES];\n           uint32_t            width;\n           uint32_t            height;\n           uint64_t            timestamp;","chars":1774,"tokens_est":444,"sha256":"13df15eec20dd1be7f73bbb2c5c4f303e513d8cd2e47b2fa4947e5ec1fb7a3f7"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-functions-used-by-sources~3","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Functions used by sources"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#functions-used-by-sources","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Functions used by sources]\nenum video_format   format;\n           float               color_matrix[16];\n           bool                full_range;\n           uint16_t            max_luminance;\n           float               color_range_min[3];\n           float               color_range_max[3];\n           bool                flip;\n           uint8_t             flags;\n           uint8_t             trc; /* enum video_trc */\n   };\n\n`void obs_source_set_async_rotation(obs_source_t *source, long rotation)`\n\n   Allows the ability to set rotation (0, 90, 180, -90, 270) for an\n   async video source.  The rotation will be automatically applied to\n   the source.  The rotation is in degrees; any multiple of 90 (such as\n   -180 or 450) is taken as its equivalent in 0-359.\n\n`void obs_source_preload_video(obs_source_t *source, const struct obs_source_frame *frame)`\n\n   Preloads a video frame to ensure a frame is ready for playback as\n   soon as video playback starts.\n\n`void obs_source_show_preloaded_video(obs_source_t *source)`\n\n   Shows any preloaded video frame.\n\n`void obs_source_output_audio(obs_source_t *source, const struct obs_source_audio *audio)`\n\n   Outputs audio data.\n\n`void obs_source_update_properties(obs_source_t *source)`\n\n   Signals to any currently opened properties views (or other users of the\n   source's obs_properties_t) that the source's presentable properties have\n   changed and that the view should be updated.\n\n`bool obs_source_add_active_child(obs_source_t *parent, obs_source_t *child)`\n\n   Adds an active child source.  Must be called by parent sources on child\n   sources when the child is added and active.  This ensures that the source is\n   properly activated if the parent is active.\n\n   :return: *true* if source can be added, *false* if it causes recursion\n\n`void obs_source_remove_active_child(obs_source_t *parent, obs_source_t *child)`\n\n   Removes an active child source.  Must be called by parent sources on child\n   sources when the child is removed or inactive.  This ensures that the source\n   is properly deactivated if the parent is no longer active.","chars":2141,"tokens_est":535,"sha256":"ed1c344eb92c7d7f4c59a3b4aa1b3ddd2b6b93279dc00beefb175da0b1e2f8bf"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-filters","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Filters]\n`obs_source_t *obs_filter_get_parent(const obs_source_t *filter)`\n\n   If the source is a filter, returns the parent source of the filter.\n   The parent source is the source being filtered. Does not increment the\n   reference.\n\n   Only guaranteed to be valid inside of the video_render, filter_audio,\n   filter_video, filter_add, and filter_remove callbacks.\n\n`obs_source_t *obs_filter_get_target(const obs_source_t *filter)`\n\n   If the source is a filter, returns the target source of the filter.\n   The target source is the next source in the filter chain. Does not increment\n   the reference.\n\n   Only guaranteed to be valid inside of the video_render, filter_audio,\n   filter_video, and filter_remove callbacks.\n\n`void obs_source_default_render(obs_source_t *source)`\n\n   Can be used by filters to directly render a non-async parent source\n   without any filter processing.\n\n`void obs_source_filter_add(obs_source_t *source, obs_source_t *filter)`\n              void obs_source_filter_remove(obs_source_t *source, obs_source_t *filter)\n\n   Adds/removes a filter to/from a source.\n\n`void obs_source_filter_set_order(obs_source_t *source, obs_source_t *filter, enum obs_order_movement movement)`\n\n   Modifies the order of a specific filter.\n\n   :param movement: | Can be one of the following:\n                    | OBS_ORDER_MOVE_UP\n                    | OBS_ORDER_MOVE_DOWN\n                    | OBS_ORDER_MOVE_TOP\n                    | OBS_ORDER_MOVE_BOTTOM\n\n`void obs_source_filter_set_index(obs_source_t *source, obs_source_t *filter, size_t index)`\n\n   Moves a filter to the specified index in the filters array.\n\n   :param index: | The index to move the filter to.\n\n   .. versionadded:: 30.0\n\n`int obs_source_filter_get_index(obs_source_t *source, obs_source_t *filter)`\n\n   Gets the index of the specified filter.\n\n   :return: Index of the filter or -1 if it is invalid/not found.\n\n   .. versionadded:: 30.0","chars":1963,"tokens_est":491,"sha256":"ddf1a77836c2edf758e22c17664cff654cbd2a65eb7a559973dc121c923c1731"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-functions-used-by-filters","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Functions used by filters"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#functions-used-by-filters","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Functions used by filters]\n`bool obs_source_process_filter_begin(obs_source_t *filter, enum gs_color_format format, enum obs_allow_direct_render allow_direct)`\n\n   Default RGB filter handler for generic effect filters.  Processes the\n   filter chain and renders them to texture if needed, then the filter is\n   drawn with.\n\n   After calling this, set your parameters for the effect, then call\n   obs_source_process_filter_end to draw the filter.\n\n   :return: *true* if filtering should continue, *false* if the filter\n            is bypassed for whatever reason\n\n`bool obs_source_process_filter_begin_with_color_space(obs_source_t *filter, enum gs_color_format format, enum gs_color_space space, enum obs_allow_direct_render allow_direct)`\n\n   Similar to obs_source_process_filter_begin, but also set the active\n   color space.\n\n   :return: *true* if filtering should continue, *false* if the filter\n            is bypassed for whatever reason\n\n`void obs_source_process_filter_end(obs_source_t *filter, gs_effect_t *effect, uint32_t width, uint32_t height)`\n\n   Draws the filter using the effect's \"Draw\" technique.\n\n   Before calling this function, first call obs_source_process_filter_begin and\n   then set the effect parameters, and then call this function to finalize the\n   filter.\n\n`void obs_source_process_filter_tech_end(obs_source_t *filter, gs_effect_t *effect, uint32_t width, uint32_t height, const char *tech_name)`\n\n   Draws the filter with a specific technique in the effect.\n\n   Before calling this function, first call obs_source_process_filter_begin and\n   then set the effect parameters, and then call this function to finalize the\n   filter.\n\n`void obs_source_skip_video_filter(obs_source_t *filter)`\n\n   Skips the filter if the filter is invalid and cannot be rendered.\n\n.. _transitions:","chars":1847,"tokens_est":462,"sha256":"2ab950bf1c2b9a884dd53f4f82d5c440c78570a48f394fc4bcbff96946c35a52"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-transitions","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Transitions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#transitions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Transitions]\n`obs_source_t *obs_transition_get_source(obs_source_t *transition, enum obs_transition_target target)`\n\n   :param target: | OBS_TRANSITION_SOURCE_A - Source being transitioned from, or the current source if not transitioning\n                  | OBS_TRANSITION_SOURCE_B - Source being transitioned to\n   :return:       An incremented reference to the source or destination\n                  sources of the transition. Use `obs_source_release`\n                  to release it.\n\n`void obs_transition_clear(obs_source_t *transition)`\n\n   Clears the transition.\n\n`obs_source_t *obs_transition_get_active_source(obs_source_t *transition)`\n\n   :return: An incremented reference to the currently active source of\n            the transition. Use `obs_source_release` to release it.\n\n`bool obs_transition_start(obs_source_t *transition, enum obs_transition_mode mode, uint32_t duration_ms, obs_source_t *dest)`\n\n   Starts the transition with the desired destination source.\n\n   :param mode:        Currently only OBS_TRANSITION_MODE_AUTO\n   :param duration_ms: Duration in milliseconds.  If the transition has\n                       a fixed duration set by\n                       `obs_transition_enable_fixed`, this\n                       parameter will have no effect\n   :param dest:        The destination source to transition to\n\n`void obs_transition_is_active(obs_source_t *transition)`\n\n   :return: *true* if the transition is currently transitioning, *false* otherwise.\n\n`void obs_transition_set_size(obs_source_t *transition, uint32_t cx, uint32_t cy)`\n              void obs_transition_get_size(const obs_source_t *transition, uint32_t *cx, uint32_t *cy)\n\n   Sets/gets the dimensions of the transition.\n\n`void obs_transition_set_scale_type(obs_source_t *transition, enum obs_transition_scale_type type)`\n              enum obs_transition_scale_type obs_transition_get_scale_type( const obs_source_t *transition)\n\n   Sets/gets the scale type for sources within the transition.","chars":2025,"tokens_est":506,"sha256":"b09bfe99aa6cf35c3e403d5cb1cffa07e1b83aac21bdb7ebcdbf1ff09c8ed31d"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-transitions~2","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Transitions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#transitions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Transitions]\n:param type: | OBS_TRANSITION_SCALE_MAX_ONLY - Scale to aspect ratio, but only to the maximum size of each source\n                | OBS_TRANSITION_SCALE_ASPECT   - Always scale the sources, but keep aspect ratio\n                | OBS_TRANSITION_SCALE_STRETCH  - Scale and stretch the sources to the size of the transition\n\n`void obs_transition_set_alignment(obs_source_t *transition, uint32_t alignment)`\n              uint32_t obs_transition_get_alignment(const obs_source_t *transition)\n\n   Sets/gets the alignment used to draw the two sources within\n   transition the transition.\n\n   :param alignment: | Can be any bitwise OR combination of:\n                     | OBS_ALIGN_CENTER\n                     | OBS_ALIGN_LEFT\n                     | OBS_ALIGN_RIGHT\n                     | OBS_ALIGN_TOP\n                     | OBS_ALIGN_BOTTOM","chars":890,"tokens_est":222,"sha256":"66ef1e9082761beda262bf46d32e450919ddb888fe7f8030bdf6b5339b547fc0"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-functions-used-by-transitions","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Functions used by transitions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#functions-used-by-transitions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Functions used by transitions]\n`void obs_transition_enable_fixed(obs_source_t *transition, bool enable, uint32_t duration_ms)`\n              bool obs_transition_fixed(obs_source_t *transition)\n\n   Sets/gets whether the transition uses a fixed duration.  Useful for\n   certain types of transitions such as stingers.  If this is set, the\n   *duration_ms* parameter of `obs_transition_start()` has no\n   effect.\n\n`float obs_transition_get_time(obs_source_t *transition)`\n\n   :return: The current transition time value (0.0f..1.0f)\n\n`void obs_transition_video_render(obs_source_t *transition, obs_transition_video_render_callback_t callback)`\n              void obs_transition_video_render2(obs_source_t *transition, obs_transition_video_render_callback_t callback, gs_texture_t *placeholder_texture)\n\n   Helper function used for rendering transitions.  This function will\n   render two distinct textures for source A and source B of the\n   transition, allowing the ability to blend them together with a pixel\n   shader in a desired manner.\n\n   The *a* and *b* parameters of *callback* are automatically rendered\n   textures of source A and source B, *t* is the time value\n   (0.0f..1.0f), *cx* and *cy* are the current dimensions of the\n   transition, and *data* is the implementation's private data.\n\n   The *placeholder_texture* parameter allows a callback to receive\n   a replacement that isn't the default transparent texture, including\n   NULL if the caller desires.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef void (*obs_transition_video_render_callback_t)(void *data,\n                   gs_texture_t *a, gs_texture_t *b, float t,\n                   uint32_t cx, uint32_t cy);\n\n`enum gs_color_space obs_transition_video_get_color_space(obs_source_t *transition)`\n\n   Figure out the color space that encompasses both child sources.\n\n   The wider space wins.\n\n   :return: The color space of the transition","chars":1977,"tokens_est":494,"sha256":"008a25eed636efbf9a9ee47bb6469869c23d65bf0ad4d23881471788a81b288a"},{"id":"docs-sphinx-reference-sources#source-api-reference-obs-source-t-functions-used-by-transitions~2","doc":"docs-sphinx-reference-sources","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Source API Reference (obs_source_t)","Functions used by transitions"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst#functions-used-by-transitions","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/reference-sources.rst","text":"[Source API Reference (obs_source_t) \u203a Functions used by transitions]\n`bool obs_transition_audio_render(obs_source_t *transition, uint64_t *ts_out, struct obs_source_audio_mix *audio, uint32_t mixers, size_t channels, size_t sample_rate, obs_transition_audio_mix_callback_t mix_a_callback, obs_transition_audio_mix_callback_t mix_b_callback)`\n\n   Helper function used for transitioning audio.  Typically you'd call\n   this in the obs_source_info.audio_render callback with its\n   parameters, and use the mix_a_callback and mix_b_callback to\n   determine the the audio fading of source A and source B.\n\n   Relevant data types used with this function:\n\n.. code:: cpp\n\n   typedef float (*obs_transition_audio_mix_callback_t)(void *data, float t);\n\n`void obs_transition_swap_begin(obs_source_t *tr_dest, obs_source_t *tr_source)`\n              void obs_transition_swap_end(obs_source_t *tr_dest, obs_source_t *tr_source)\n\n   Swaps two transitions.  Call obs_transition_swap_begin, swap the\n   source, then call obs_transition_swap_end when complete.  This allows\n   the ability to seamlessly swap two different transitions without it\n   affecting the output.\n\n   For example, if a transition is assigned to output channel 0, you'd\n   call obs_transition_swap_begin, then you'd call obs_set_output_source\n   with the new transition, then call\n   `obs_transition_swap_begin()`.\n\n.. ---------------------------------------------------------------------------\n\n.. _libobs/obs-source.h: https://github.com/obsproject/obs-studio/blob/master/libobs/obs-source.h","chars":1550,"tokens_est":388,"sha256":"84bbd6fdc70b8fd30ec9a24443baaa50cd24eb23c446ace62c3a4d7b6fb22a48"},{"id":"docs-sphinx-scripting#python-lua-scripting","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#pythonlua-scripting","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting]\nScripting (21.0+) adds support for Python 3 and Luajit 2 (which is\nroughly equivalent to Lua 5.2), allowing the ability to quickly extend,\nadd features, or automate the program without needing to build a native\nplugin module.\n\nScripting can be accessed in OBS Studio via the Tools menu -> Scripts\noption, which will bring up the scripting dialog.  Scripts can be added,\nremoved, and reloaded in real time while the program is running.\n\n**NOTE:** To use Python on Windows or macOS, you must download and install a\nPython version that matches your OBS architecture.  Then, in the scripting\ndialog, you must set the path to the Python install in the \"Python Settings\" tab.\n\nAll API bindings are provided through the **obspython** module in\nPython, and the **obslua** module in Lua.\n\nCertain functions have been changed/replaced in order to provide script\ncallbacks, see `other_script_differences` for more information.\n\n**WARNING:** Because bindings to the entire API are provided, it is\npossible to leak memory or crash the program with an improperly-written\nscript.  Please exercise caution when making scripts and check the\nmemory leak counter in your log file to make sure scripts you write\naren't leaking memory.  **Please treat the API bindings as though you\nwere writing a C program:  read the documentation for functions you use,\nand release/destroy objects you reference or create via the API.**","chars":1424,"tokens_est":356,"sha256":"2a14c25cb995a603544aa469d05da80ddd3aae3140d42df63fe1b8392ca3f8a2"},{"id":"docs-sphinx-scripting#python-lua-scripting-script-function-exports","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Script Function Exports"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#script-function-exports","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Script Function Exports]\nThere are a number of global functions that scripts can optionally\nprovide:\n\n.. py:function:: script_description()\n\n   Called to retrieve a description string to be displayed to the user\n   in the Scripts window.\n\n.. py:function:: script_load(settings)\n\n   Called on script startup with specific settings associated with the\n   script.  The *settings* parameter provided is not typically used for\n   settings that are set by the user; instead the parameter is used for\n   any extra internal settings data that may be used in the script.\n\n   :param settings: Settings associated with the script.\n\n.. py:function:: script_unload()\n\n   Called when the script is being unloaded.\n\n.. py:function:: script_save(settings)\n\n   Called when the script is being saved.  This is not necessary for\n   settings that are set by the user; instead this is used for any\n   extra internal settings data that may be used in the script.\n\n   :param settings: Settings associated with the script.\n\n.. py:function:: script_defaults(settings)\n\n   Called to set default settings (if any) associated with the script.\n   You would typically call `obs_data_default_funcs` for the\n   on the settings in order to set its default values.\n\n   :param settings: Settings associated with the script.\n\n.. py:function:: script_update(settings)\n\n   Called when the script's settings (if any) have been changed by the\n   user.\n\n   :param settings: Settings associated with the script.\n\n.. py:function:: script_properties()\n\n   Called to define user properties associated with the script.  These\n   properties are used to define how to show settings properties to a\n   user.\n\n   :return: obs_properties_t object created via\n            `obs_properties_create()`.\n\n.. py:function:: script_tick(seconds)","chars":1809,"tokens_est":452,"sha256":"841eedab8aa6e37025bd056464eb43937bd6b0cab6fb4b8aee85ae2b59ea6761"},{"id":"docs-sphinx-scripting#python-lua-scripting-script-function-exports~2","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Script Function Exports"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#script-function-exports","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Script Function Exports]\nCalled every frame in case per-frame processing is needed.  If a\n   timer is needed, please use `scripting_timers` instead, as\n   timers are more efficient if all that's needed is basic timer\n   functionality.  Using this function in Python is not recommended due\n   to the global interpreter lock of Python.\n\n   :param seconds: Seconds passed since previous frame.","chars":414,"tokens_est":104,"sha256":"ba3baf25ab1254c76be316c5bd02e0aa33037695b4fff4512c5eeb84843aa207"},{"id":"docs-sphinx-scripting#python-lua-scripting-getting-the-current-script-s-path","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Getting the Current Script's Path"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#getting-the-current-scripts-path","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Getting the Current Script's Path]\nThere is a function you can use to get the current script's path.  This\nfunction is automatically implemented in to each script before the\nscript is loaded, and is part of the script's namespace, not\nobslua/obspython:\n\n.. py:function:: script_path()\n\n   :return: The path to the script.\n\n.. _scripting_timers:","chars":368,"tokens_est":92,"sha256":"62daf8c5f66e8410bbe4d72e89fa8d1fc6699af4d2be832e89346bc856af598e"},{"id":"docs-sphinx-scripting#python-lua-scripting-script-timers","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Script Timers"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#script-timers","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Script Timers]\nScript timers provide an efficient means of providing timer callbacks\nwithout necessarily having to lock scripts/interpreters every frame.\n(These functions are part of the obspython/obslua modules/namespaces).\n\n.. py:function:: timer_add(callback, milliseconds)\n\n    Adds an timer callback which triggers every *milliseconds*.\n\n    Note: Using instance methods as callbacks is not supported. Always\n    use module methods.\n\n.. py:function:: timer_remove(callback)\n\n    Removes a timer callback.  (Note: You can also use\n    :py`remove_current_callback()` to terminate the timer from the\n    timer callback)","chars":645,"tokens_est":161,"sha256":"58fa5dad6a85d84fc40f276b106a995acfe917805c786956d4f7739211bddb03"},{"id":"docs-sphinx-scripting#python-lua-scripting-script-sources-lua-only","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Script Sources (Lua Only)"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#script-sources-lua-only","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Script Sources (Lua Only)]\nIt is possible to register sources in Lua.  To do so, create a table,\nand define its keys the same way you would define an\n`obs_source_info` structure:\n\n.. code:: lua\n\n    local info = {}\n    info.id = \"my_source_id\"\n    info.type = obslua.OBS_SOURCE_TYPE_INPUT\n    info.output_flags = obslua.OBS_SOURCE_VIDEO\n\n    info.get_name = function()\n            return \"My Source\"\n    end\n\n    info.create = function(settings, source)\n            -- typically source data would be stored as a table\n            local my_source_data = {}\n\n            [...]\n\n            return my_source_data\n    end\n\n    info.video_render = function(my_source_data, effect)\n            [...]\n    end\n\n    info.get_width = function(my_source_data)\n            [...]\n\n            -- assuming the source data contains a 'width' key\n            return my_source_data.width\n    end\n\n    info.get_height = function(my_source_data)\n            [...]\n\n            -- assuming the source data contains a 'height' key\n            return my_source_data.height\n    end\n\n    -- register the source\n    obs_register_source(info)\n\n.. _other_script_differences:","chars":1171,"tokens_est":293,"sha256":"67df07652d467f34d30ee2df25259304be6518cd8f27c52432f418dfc1fe61cd"},{"id":"docs-sphinx-scripting#python-lua-scripting-other-differences-from-the-c-api","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Other Differences From the C API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#other-differences-from-the-c-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Other Differences From the C API]\nCertain functions are implemented differently from the C API due to how\ncallbacks work.  (These functions are part of the obspython/obslua\nmodules/namespaces).\n\n.. py:function:: obs_enum_sources()\n\n   Enumerates all sources.\n\n   :return: An array of reference-incremented sources.  Release with\n            :py`source_list_release()`.\n\n.. py:function:: obs_source_enum_filters(source)\n\n   Enumerates the filters of a source.\n\n   :param source: obs_source_t object to enumerate filters from.\n   :return:       An array of reference-incremented filters.  Release with\n                  :py`source_list_release()`.\n\n.. py:function:: obs_scene_enum_items(scene)\n\n   Enumerates scene items within a scene.\n\n   :param scene: obs_scene_t object to enumerate items from.\n   :return:      List of scene items.  Release with\n                 :py`sceneitem_list_release()`.\n\n.. py:function:: obs_sceneitem_group_enum_items(group)\n\n   Enumerates scene items within a group.\n\n   :param group: obs_sceneitem_t object to enumerate items from.\n   :return:      List of scene items.  Release with\n                 :py`sceneitem_list_release()`.\n\n.. py:function:: obs_add_main_render_callback(callback)\n\n   **Lua only:** Adds a primary output render callback.  This callback\n   has no parameters.\n\n   :param callback: Render callback.  Use\n                    :py`obs_remove_main_render_callback()` or\n                    :py`remove_current_callback()` to remove the\n                    callback.\n\n.. py:function:: obs_remove_main_render_callback(callback)\n\n   **Lua only:** Removes a primary output render callback.\n\n   :param callback: Render callback.\n\n.. py:function:: signal_handler_connect(handler, signal, callback)\n\n   Adds a callback to a specific signal on a signal handler.  This\n   callback has one parameter:  the calldata_t object.","chars":1885,"tokens_est":471,"sha256":"e9b69437b68bf5e7d1030db7b7c7c143a3b86bad1c9652331def8b28aa31204d"},{"id":"docs-sphinx-scripting#python-lua-scripting-other-differences-from-the-c-api~2","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Other Differences From the C API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#other-differences-from-the-c-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Other Differences From the C API]\n:param handler:  A signal_handler_t object.\n   :param signal:   The signal on the signal handler (string)\n   :param callback: The callback to connect to the signal.  Use\n                    :py`signal_handler_disconnect()` or\n                    :py`remove_current_callback()` to remove the\n                    callback.\n\n.. py:function:: signal_handler_disconnect(handler, signal, callback)\n\n   Removes a callback from a specific signal of a signal handler.\n\n   :param handler:  A signal_handler_t object.\n   :param signal:   The signal on the signal handler (string)\n   :param callback: The callback to disconnect from the signal.\n\n.. py:function:: signal_handler_connect_global(handler, callback)\n\n   Adds a global callback to a signal handler.  This callback has two\n   parameters:  the first parameter is the signal string, and the second\n   parameter is the calldata_t object.\n\n   :param handler:  A signal_handler_t object.\n   :param callback: The callback to connect.  Use\n                    :py`signal_handler_disconnect_global()` or\n                    :py`remove_current_callback()` to remove the\n                    callback.\n\n.. py:function:: signal_handler_disconnect_global(handler, callback)\n\n   Removes a global callback from a signal handler.\n\n   :param handler:  A signal_handler_t object.\n   :param callback: The callback to disconnect.\n\n.. py:function:: obs_hotkey_register_frontend(name, description, callback)\n\n   Adds a frontend hotkey.  The callback takes one parameter: a boolean\n   'pressed' parameter.\n\n   :param name:        Unique name identifier string of the hotkey.\n   :param description: Hotkey description shown to the user.\n   :param callback:    Callback for the hotkey.  Use\n                       :py`obs_hotkey_unregister()` or\n                       :py`remove_current_callback()` to remove\n                       the callback.\n\n.. py:function:: obs_hotkey_unregister(callback)\n\n   Unregisters the hotkey associated with the specified callback.","chars":2044,"tokens_est":511,"sha256":"70c3add6404deac3b929f4fa4f0c992680fd76a10479074ac6e03a99cc76f3b5"},{"id":"docs-sphinx-scripting#python-lua-scripting-other-differences-from-the-c-api~3","doc":"docs-sphinx-scripting","group":"libobs-api","tier":"reference","kind":"prose","breadcrumb":["Python/Lua Scripting","Other Differences From the C API"],"url":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst#other-differences-from-the-c-api","source":"https://github.com/obs-rust/obs-studio/blob/524486a44c81ef30b039f10ab955bc778f39e225/docs/sphinx/scripting.rst","text":"[Python/Lua Scripting \u203a Other Differences From the C API]\n:param callback: Callback of the hotkey to unregister.\n\n.. py:function:: obs_properties_add_button(properties, setting_name, text, callback)\n\n   Adds a button property to an obs_properties_t object.  The callback\n   takes two parameters:  the first parameter is the obs_properties_t\n   object, and the second parameter is the obs_property_t for the\n   button.\n\n   :param properties:   An obs_properties_t object.\n   :param setting_name: A setting identifier string.\n   :param text:         Button text.\n   :param callback:     Button callback.  This callback is automatically\n                        cleaned up.\n\n.. py:function:: remove_current_callback()\n\n   Removes the current callback being executed.  Does nothing if not\n   within a callback.\n\n.. py:function:: source_list_release(source_list)\n\n   Releases the references of a source list.\n\n   :param source_list: Array of sources to release.\n\n.. py:function:: sceneitem_list_release(item_list)\n\n   Releases the references of a scene item list.\n\n   :param item_list: Array of scene items to release.\n\n.. py:function:: calldata_source(calldata, name)\n\n   Casts a pointer parameter of a calldata_t object to an obs_source_t\n   object.\n\n   :param calldata: A calldata_t object.\n   :param name:     Name of the parameter.\n   :return:         A borrowed reference to an obs_source_t object.\n\n.. py:function:: calldata_sceneitem(calldata, name)\n\n   Casts a pointer parameter of a calldata_t object to an\n   obs_sceneitem_t object.\n\n   :param calldata: A calldata_t object.\n   :param name:     Name of the parameter.\n   :return:         A borrowed reference to an obs_sceneitem_t object.","chars":1693,"tokens_est":423,"sha256":"b4e8a68e3eaa1c4d98498b0dde38e06eda93562f5f70869b9efa8d051a415e44"},{"id":"obs-websocket-docs-generated-protocol#top","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#top","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol]\n<!-- This file was automatically generated. Do not edit directly! -->\n<!-- markdownlint-disable no-bare-urls -->\n\n## Main Table of Contents\n- [General Intro](#general-intro)\n  - [Design Goals](#design-goals)\n- [Connecting to obs-websocket](#connecting-to-obs-websocket)\n  - [Connection steps](#connection-steps)\n    - [Connection Notes](#connection-notes)\n  - [Creating an authentication string](#creating-an-authentication-string)\n- [Message Types (OpCodes)](#message-types-opcodes)\n  - [Hello (OpCode 0)](#hello-opcode-0)\n  - [Identify (OpCode 1)](#identify-opcode-1)\n  - [Identified (OpCode 2)](#identified-opcode-2)\n  - [Reidentify (OpCode 3)](#reidentify-opcode-3)\n  - [Event (OpCode 5)](#event-opcode-5)\n  - [Request (OpCode 6)](#request-opcode-6)\n  - [RequestResponse (OpCode 7)](#requestresponse-opcode-7)\n  - [RequestBatch (OpCode 8)](#requestbatch-opcode-8)\n  - [RequestBatchResponse (OpCode 9)](#requestbatchresponse-opcode-9)\n- [Enumerations](#enums)\n- [Events](#events)\n- [Requests](#requests)\n\n## General Intro\nobs-websocket provides a feature-rich RPC communication protocol, giving access to much of OBS's feature set. This document contains everything you should know in order to make a connection and use obs-websocket's functionality to the fullest.","chars":1299,"tokens_est":325,"sha256":"bd6e613e4256de1cf0286e3644efd74b60b4b538aa26a480828c136d8f1e1222"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-general-intro-design-goals","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","General Intro","Design Goals"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#design-goals","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a General Intro \u203a Design Goals]\n- Abstraction of identification, events, requests, and batch requests into dedicated message types\n- Conformity of request naming using similar terms like `Get`, `Set`, `Get[x]List`, `Start[x]`, `Toggle[x]`\n- Conformity of OBS data field names like `sourceName`, `sourceKind`, `sourceType`, `sceneName`, `sceneItemName`\n- Error code response system - integer corrosponds to type of error, with optional comment\n- Possible support for multiple message encoding options: JSON and MessagePack\n- PubSub system - Allow clients to specify which events they do or don't want to receive from OBS\n- RPC versioning - Client and server negotiate the latest version of the obs-websocket protocol to communicate with.\n\n## Connecting to obs-websocket\nHere's info on how to connect to obs-websocket\n\n---","chars":850,"tokens_est":212,"sha256":"c8804b6323eab6dc4a29ff115083a1c56eceaec0a72eb3331005390273647fc3"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-connecting-to-obs-websocket-connection-steps","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Connecting to obs-websocket","Connection steps"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#connection-steps","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Connecting to obs-websocket \u203a Connection steps]\nThese steps should be followed precisely. Failure to connect to the server as instructed will likely result in your client being treated in an undefined way.\n\n- Initial HTTP request made to the obs-websocket server.\n  - The `Sec-WebSocket-Protocol` header can be used to tell obs-websocket which kind of message encoding to use. By default, obs-websocket uses JSON over text. Available subprotocols:\n    - `obswebsocket.json` - JSON over text frames\n    - `obswebsocket.msgpack` - MsgPack over binary frames\n\n- Once the connection is upgraded, the websocket server will immediately send an [OpCode 0 `Hello`](#hello-opcode-0) message to the client.\n\n- The client listens for the `Hello` and responds with an [OpCode 1 `Identify`](#identify-opcode-1) containing all appropriate session parameters.\n  - If there is an `authentication` field in the `messageData` object, the server requires authentication, and the steps in [Creating an authentication string](#creating-an-authentication-string) should be followed.\n  - If there is no `authentication` field, the resulting `Identify` object sent to the server does not require an `authentication` string.\n  - The client determines if the server's `rpcVersion` is supported, and if not it provides its closest supported version in `Identify`.\n\n- The server receives and processes the `Identify` sent by the client.\n  - If authentication is required and the `Identify` message data does not contain an `authentication` string, or the string is not correct, the connection is closed with `WebSocketCloseCode::AuthenticationFailed`\n  - If the client has requested an `rpcVersion` which the server cannot use, the connection is closed with `WebSocketCloseCode::UnsupportedRpcVersion`. This system allows both the server and client to have seamless backwards compatibility.\n  - If any other parameters are malformed (invalid type, etc), the connection is closed with an appropriate close code.","chars":2014,"tokens_est":504,"sha256":"e931d76bd3f14f697c55eee531177039d4b6d98e397a83bc91c0235568055396"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-connecting-to-obs-websocket-connection-steps~2","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Connecting to obs-websocket","Connection steps"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#connection-steps","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Connecting to obs-websocket \u203a Connection steps]\n- Once identification is processed on the server, the server responds to the client with an [OpCode 2 `Identified`](#identified-opcode-2).\n\n- The client will begin receiving events from obs-websocket and may now make requests to obs-websocket.\n\n- At any time after a client has been identified, it may send an [OpCode 3 `Reidentify`](#reidentify-opcode-3) message to update certain allowed session parameters. The server will respond in the same way it does during initial identification.","chars":568,"tokens_est":142,"sha256":"56d945e48a8c6ff4d12d2373538e8bde26e377c66258aa444a015236cf50aaca"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-connecting-to-obs-websocket-connection-steps-connec","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Connecting to obs-websocket","Connection steps","Connection Notes"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#connection-notes","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Connecting to obs-websocket \u203a Connection steps \u203a Connection Notes]\n- If a binary frame is received when using the `obswebsocket.json` (default) subprotocol, or a text frame is received while using the `obswebsocket.msgpack` subprotocol, the connection is closed with `WebSocketCloseCode::MessageDecodeError`.\n- The obs-websocket server listens for any messages containing a `request-type` field in the first level JSON from unidentified clients. If a message matches, the connection is closed with `WebSocketCloseCode::UnsupportedRpcVersion` and a warning is logged.\n- If a message with a `messageType` is not recognized to the obs-websocket server, the connection is closed with `WebSocketCloseCode::UnknownOpCode`.\n- At no point may the client send any message other than a single `Identify` before it has received an `Identified`. Doing so will result in the connection being closed with `WebSocketCloseCode::NotIdentified`.\n\n---","chars":964,"tokens_est":241,"sha256":"b97a553a53bed13ef44d9d3cce45b532e213eeb3fa185167a027230dce1533f9"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-connecting-to-obs-websocket-creating-an-authenticat","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Connecting to obs-websocket","Creating an authentication string"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#creating-an-authentication-string","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Connecting to obs-websocket \u203a Creating an authentication string]\nobs-websocket uses SHA256 to transmit authentication credentials. The server starts by sending an object in the `authentication` field of its `Hello` message data. The client processes the authentication challenge and responds via the `authentication` string in the `Identify` message data.\n\nFor this guide, we'll be using `supersecretpassword` as the password.\n\nThe `authentication` object in `Hello` looks like this (example):\n\n```json\n{\n    \"challenge\": \"+IxH4CnCiqpX1rM9scsNynZzbOe4KhDeYcTNS3PDaeY=\",\n    \"salt\": \"lM1GncleQOaCu9lT1yeUZhFYnqhsLLP1G5lAGo3ixaI=\"\n}\n```\n\nTo generate the authentication string, follow these steps:\n\n- Concatenate the websocket password with the `salt` provided by the server (`password + salt`)\n- Generate an SHA256 binary hash of the result and base64 encode it, known as a base64 secret.\n- Concatenate the base64 secret with the `challenge` sent by the server (`base64_secret + challenge`)\n- Generate a binary SHA256 hash of that result and base64 encode it. You now have your `authentication` string.\n\nFor real-world examples of the `authentication` string creation, refer to the obs-websocket client libraries listed on the [README](../../README.md).","chars":1283,"tokens_est":321,"sha256":"359ac9a7cf4164a6b7d66cdec89dfcac1d0a26d99082bfdbcf6f4ae9f6bdafa4"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#message-types-opcodes","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes)]\nThe following message types are the low-level message types which may be sent to and from obs-websocket.\n\nMessages sent from the obs-websocket server or client may contain these first-level fields, known as the base object:\n\n```txt\n{\n  \"op\": number,\n  \"d\": object\n}\n```\n\n- `op` is a `WebSocketOpCode` OpCode.\n- `d` is an object of the data fields associated with the operation.\n\n---","chars":439,"tokens_est":110,"sha256":"e1a5ab8c1debf354be847d4738fb78fea19e488e4282dd600304e1a5ca6bea2f"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-hello-opcode-0","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","Hello (OpCode 0)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#hello-opcode-0","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a Hello (OpCode 0)]\n- Sent from: obs-websocket\n- Sent to: Freshly connected websocket client\n- Description: First message sent from the server immediately on client connection. Contains authentication information if auth is required. Also contains RPC version for version negotiation.\n\n**Data Keys:**\n\n```txt\n{\n  \"obsStudioVersion\": string,\n  \"obsWebSocketVersion\": string,\n  \"rpcVersion\": number,\n  \"authentication\": object(optional)\n}\n```\n\n- `rpcVersion` is a version number which gets incremented on each **breaking change** to the obs-websocket protocol. Its usage in this context is to provide the current rpc version that the server would like to use.\n- `obsWebSocketVersion` may be used as a soft feature level hint. For example, a new WebSocket request may only be available in a specific obs-websocket version or newer, but the rpcVersion will not be increased, as no\n  breaking changes have occured. Be aware, that no guarantees will be made on these assumptions, and you should still verify that the requests you desire to use are available in obs-websocket via the `GetVersion` request.\n\n**Example Messages:**\nAuthentication is required\n\n```json\n{\n  \"op\": 0,\n  \"d\": {\n    \"obsStudioVersion\": \"30.2.2\",\n    \"obsWebSocketVersion\": \"5.5.2\",\n    \"rpcVersion\": 1,\n    \"authentication\": {\n      \"challenge\": \"+IxH4CnCiqpX1rM9scsNynZzbOe4KhDeYcTNS3PDaeY=\",\n      \"salt\": \"lM1GncleQOaCu9lT1yeUZhFYnqhsLLP1G5lAGo3ixaI=\"\n    }\n  }\n}\n```\n\nAuthentication is not required\n\n```json\n{\n  \"op\": 0,\n  \"d\": {\n    \"obsStudioVersion\": \"30.2.2\",\n    \"obsWebSocketVersion\": \"5.5.2\",\n    \"rpcVersion\": 1\n  }\n}\n```\n\n---","chars":1662,"tokens_est":416,"sha256":"03425abfc1eef0288c05501c8f7b6f31526ba31b10bb2351ed1428640cedd6d3"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-identify-opcode-1","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","Identify (OpCode 1)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#identify-opcode-1","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a Identify (OpCode 1)]\n- Sent from: Freshly connected websocket client\n- Sent to: obs-websocket\n- Description: Response to `Hello` message, should contain authentication string if authentication is required, along with PubSub subscriptions and other session parameters.\n\n**Data Keys:**\n\n```txt\n{\n  \"rpcVersion\": number,\n  \"authentication\": string(optional),\n  \"eventSubscriptions\": number(optional) = (EventSubscription::All)\n}\n```\n\n- `rpcVersion` is the version number that the client would like the obs-websocket server to use.\n- `eventSubscriptions` is a bitmask of `EventSubscriptions` items to subscribe to events and event categories at will. By default, all event categories are subscribed, except for events marked as high volume. High volume events must be explicitly subscribed to.\n\n**Example Message:**\n\n```json\n{\n  \"op\": 1,\n  \"d\": {\n    \"rpcVersion\": 1,\n    \"authentication\": \"Dj6cLS+jrNA0HpCArRg0Z/Fc+YHdt2FQfAvgD1mip6Y=\",\n    \"eventSubscriptions\": 33\n  }\n}\n```\n\n---","chars":1035,"tokens_est":259,"sha256":"ac70c68c61438ad671cfe4b963008813af80d4bb6fc29136cd72e0f799de048e"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-identified-opcode-2","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","Identified (OpCode 2)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#identified-opcode-2","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a Identified (OpCode 2)]\n- Sent from: obs-websocket\n- Sent to: Freshly identified client\n- Description: The identify request was received and validated, and the connection is now ready for normal operation.\n\n**Data Keys:**\n\n```txt\n{\n  \"negotiatedRpcVersion\": number\n}\n```\n\n- If rpc version negotiation succeeds, the server determines the RPC version to be used and gives it to the client as `negotiatedRpcVersion`\n\n**Example Message:**\n\n```json\n{\n  \"op\": 2,\n  \"d\": {\n    \"negotiatedRpcVersion\": 1\n  }\n}\n```\n\n---","chars":567,"tokens_est":142,"sha256":"7aebe3af1991c5e30667a3d51adc5cbeea688a533bb4b4fe41e0b924bf734470"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-reidentify-opcode-3","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","Reidentify (OpCode 3)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#reidentify-opcode-3","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a Reidentify (OpCode 3)]\n- Sent from: Identified client\n- Sent to: obs-websocket\n- Description: Sent at any time after initial identification to update the provided session parameters.\n\n**Data Keys:**\n\n```txt\n{\n  \"eventSubscriptions\": number(optional) = (EventSubscription::All)\n}\n```\n\n- Only the listed parameters may be changed after initial identification. To change a parameter not listed, you must reconnect to the obs-websocket server.\n\n---","chars":502,"tokens_est":126,"sha256":"8aa56206a418267d77b1d9d839158124eba7008b3c913bbbdfa67aaaa9e25efb"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-event-opcode-5","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","Event (OpCode 5)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#event-opcode-5","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a Event (OpCode 5)]\n- Sent from: obs-websocket\n- Sent to: All subscribed and identified clients\n- Description: An event coming from OBS has occured. Eg scene switched, source muted.\n\n**Data Keys:**\n\n```txt\n{\n  \"eventType\": string,\n  \"eventIntent\": number,\n  \"eventData\": object(optional)\n}\n```\n\n- `eventIntent` is the original intent required to be subscribed to in order to receive the event.\n\n**Example Message:**\n\n```json\n{\n  \"op\": 5,\n  \"d\": {\n    \"eventType\": \"StudioModeStateChanged\",\n    \"eventIntent\": 1,\n    \"eventData\": {\n      \"studioModeEnabled\": true\n    }\n  }\n}\n```\n\n---","chars":639,"tokens_est":160,"sha256":"ae9f6f2acd5e2ee74191a05fe407b7a2d185caade56cf45b81994275a9f3b5fd"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-request-opcode-6","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","Request (OpCode 6)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#request-opcode-6","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a Request (OpCode 6)]\n- Sent from: Identified client\n- Sent to: obs-websocket\n- Description: Client is making a request to obs-websocket. Eg get current scene, create source.\n\n**Data Keys:**\n\n```txt\n{\n  \"requestType\": string,\n  \"requestId\": string,\n  \"requestData\": object(optional),\n\n}\n```\n\n**Example Message:**\n\n```json\n{\n  \"op\": 6,\n  \"d\": {\n    \"requestType\": \"SetCurrentProgramScene\",\n    \"requestId\": \"f819dcf0-89cc-11eb-8f0e-382c4ac93b9c\",\n    \"requestData\": {\n      \"sceneName\": \"Scene 12\"\n    }\n  }\n}\n```\n\n---","chars":573,"tokens_est":143,"sha256":"e930b3f1f831553115c6a782cd71aaf0af601dc7f04a54e23c0424746d10f540"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-requestresponse-opcode-7","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","RequestResponse (OpCode 7)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#requestresponse-opcode-7","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a RequestResponse (OpCode 7)]\n- Sent from: obs-websocket\n- Sent to: Identified client which made the request\n- Description: obs-websocket is responding to a request coming from a client.\n\n**Data Keys:**\n\n```txt\n{\n  \"requestType\": string,\n  \"requestId\": string,\n  \"requestStatus\": object,\n  \"responseData\": object(optional)\n}\n```\n\n- The `requestType` and `requestId` are simply mirrors of what was sent by the client.\n\n`requestStatus` object:\n\n```txt\n{\n  \"result\": bool,\n  \"code\": number,\n  \"comment\": string(optional)\n}\n```\n\n- `result` is `true` if the request resulted in `RequestStatus::Success`. False if otherwise.\n- `code` is a `RequestStatus` code.\n- `comment` may be provided by the server on errors to offer further details on why a request failed.\n\n**Example Messages:**\nSuccessful Response\n\n```json\n{\n  \"op\": 7,\n  \"d\": {\n    \"requestType\": \"SetCurrentProgramScene\",\n    \"requestId\": \"f819dcf0-89cc-11eb-8f0e-382c4ac93b9c\",\n    \"requestStatus\": {\n      \"result\": true,\n      \"code\": 100\n    }\n  }\n}\n```\n\nFailure Response\n\n```json\n{\n  \"op\": 7,\n  \"d\": {\n    \"requestType\": \"SetCurrentProgramScene\",\n    \"requestId\": \"f819dcf0-89cc-11eb-8f0e-382c4ac93b9c\",\n    \"requestStatus\": {\n      \"result\": false,\n      \"code\": 608,\n      \"comment\": \"Parameter: sceneName\"\n    }\n  }\n}\n```\n\n---","chars":1344,"tokens_est":336,"sha256":"202b03526c5b3b08e084a98ceccc7e041061b0455d582aaf59eb8ad0cbcf3488"},{"id":"obs-websocket-docs-generated-protocol#obs-websocket-5-x-x-protocol-message-types-opcodes-requestbatch-opcode-8","doc":"obs-websocket-docs-generated-protocol","group":"websocket","tier":"core","kind":"prose","breadcrumb":["obs-websocket 5.x.x Protocol","Message Types (OpCodes)","RequestBatch (OpCode 8)"],"url":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md#requestbatch-opcode-8","source":"https://github.com/obs-rust/obs-websocket/blob/c2366e8d2c212be569a4fce6687d8a3fb7c6be70/docs/generated/protocol.md","text":"[obs-websocket 5.x.x Protocol \u203a Message Types (OpCodes) \u203a RequestBatch (OpCode 8)]\n- Sent from: Identified client\n- Sent to: obs-websocket\n- Description: Client is making a batch of requests for obs-websocket. Requests are processed serially (in order) by the server.\n\n**Data Keys:**\n\n```txt\n{\n  \"requestId\": string,\n  \"haltOnFailure\": bool(optional) = false,\n  \"executionType\": number(optional) = RequestBatchExecutionType::SerialRealtime\n  \"requests\": array<object>\n}\n```\n\n- When `haltOnFailure` is `true`, the processing of requests will be halted on first failure. Returns only the processed requests in [`RequestBatchResponse`](#requestbatchresponse-opcode-9).\n- Requests in the `requests` array follow the same structure as the `Request` payload data format, however `requestId` is an optional field.\n\n---\n\n### RequestBatchResponse (OpCode 9)\n- Sent from: obs-websocket\n- Sent to: Identified client which made the request\n- Description: obs-websocket is responding to a request batch coming from the client.\n\n**Data Keys:**\n\n```txt\n{\n  \"requestId\": string,\n  \"results\": array<object>\n}\n```","chars":1095,"tokens_est":274,"sha256":"aed63ffa5b93a891787af4b47b68d250f7079fe16cf0e58379ed1fbbadb2cb18"},{"id":"ws:request:GetCanvasList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","canvases","GetCanvasList"],"url":"https://obs-rust.com/websocket/#GetCanvasList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a canvases \u203a GetCanvasList]\nRequest GetCanvasList: Gets an array of canvases in OBS.\nCategory canvases; since 5.7.0; complexity 3/5.\nResponse fields:\n- canvases (Array<Object>): Array of canvases","chars":224,"tokens_est":56,"sha256":"56f7fc5323a684a813715c04f3d525482fa7b249f4acffc0ec2939fc4a106912"},{"id":"ws:request:GetPersistentData","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","GetPersistentData"],"url":"https://obs-rust.com/websocket/#GetPersistentData","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a GetPersistentData]\nRequest GetPersistentData: Gets the value of a \"slot\" from the selected persistent data realm.\nCategory config; since 5.0.0; complexity 2/5.\nRequest fields:\n- realm (String): The data realm to select. `OBS_WEBSOCKET_DATA_REALM_GLOBAL` or `OBS_WEBSOCKET_DATA_REALM_PROFILE`\n- slotName (String): The name of the slot to retrieve data from\nResponse fields:\n- slotValue (Any): Value associated with the slot. `null` if not set","chars":481,"tokens_est":120,"sha256":"3c7e92704e70d55a5d74a5c5b4cbfb8c83f3385d578da5e7a5aea03017785767"},{"id":"ws:request:SetPersistentData","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","SetPersistentData"],"url":"https://obs-rust.com/websocket/#SetPersistentData","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a SetPersistentData]\nRequest SetPersistentData: Sets the value of a \"slot\" from the selected persistent data realm.\nCategory config; since 5.0.0; complexity 2/5.\nRequest fields:\n- realm (String): The data realm to select. `OBS_WEBSOCKET_DATA_REALM_GLOBAL` or `OBS_WEBSOCKET_DATA_REALM_PROFILE`\n- slotName (String): The name of the slot to retrieve data from\n- slotValue (Any): The value to apply to the slot","chars":445,"tokens_est":111,"sha256":"e59a0e041a80cbe49e60bc6e1c320377e60a6b35d87190352c70414c71a0b9cf"},{"id":"ws:request:GetSceneCollectionList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","GetSceneCollectionList"],"url":"https://obs-rust.com/websocket/#GetSceneCollectionList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a GetSceneCollectionList]\nRequest GetSceneCollectionList: Gets an array of all scene collections\nCategory config; since 5.0.0; complexity 1/5.\nResponse fields:\n- currentSceneCollectionName (String): The name of the current scene collection\n- sceneCollections (Array<String>): Array of all available scene collections","chars":354,"tokens_est":88,"sha256":"cf16ff86891204eb9cf76b6c590a7109a9941bb27de7ea35327aa65bac858769"},{"id":"ws:request:SetCurrentSceneCollection","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","SetCurrentSceneCollection"],"url":"https://obs-rust.com/websocket/#SetCurrentSceneCollection","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a SetCurrentSceneCollection]\nRequest SetCurrentSceneCollection: Switches to a scene collection.\n\nNote: This will block until the collection has finished changing.\nCategory config; since 5.0.0; complexity 1/5.\nRequest fields:\n- sceneCollectionName (String): Name of the scene collection to switch to","chars":336,"tokens_est":84,"sha256":"265596ae65aa30e0a5aa28b6762104abee9547c0773a9e8f0b1000726306b96b"},{"id":"ws:request:CreateSceneCollection","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","CreateSceneCollection"],"url":"https://obs-rust.com/websocket/#CreateSceneCollection","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a CreateSceneCollection]\nRequest CreateSceneCollection: Creates a new scene collection, switching to it in the process.\n\nNote: This will block until the collection has finished changing.\nCategory config; since 5.0.0; complexity 1/5.\nRequest fields:\n- sceneCollectionName (String): Name for the new scene collection","chars":352,"tokens_est":88,"sha256":"d2274fdb625b3d4f7f9f120ed5d96a9de142436f900a24e77a159e2cd4acbaf7"},{"id":"ws:request:GetProfileList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","GetProfileList"],"url":"https://obs-rust.com/websocket/#GetProfileList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a GetProfileList]\nRequest GetProfileList: Gets an array of all profiles\nCategory config; since 5.0.0; complexity 1/5.\nResponse fields:\n- currentProfileName (String): The name of the current profile\n- profiles (Array<String>): Array of all available profiles","chars":295,"tokens_est":74,"sha256":"565a7b7ff91681b3c5a080e87464a643e5b7f582f880c762245705c78be5137b"},{"id":"ws:request:SetCurrentProfile","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","SetCurrentProfile"],"url":"https://obs-rust.com/websocket/#SetCurrentProfile","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a SetCurrentProfile]\nRequest SetCurrentProfile: Switches to a profile.\nCategory config; since 5.0.0; complexity 1/5.\nRequest fields:\n- profileName (String): Name of the profile to switch to","chars":227,"tokens_est":57,"sha256":"312f293d3c454fd790aae83b270775b490fbc5e89a775d92c5d6b3545babc0b0"},{"id":"ws:request:CreateProfile","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","CreateProfile"],"url":"https://obs-rust.com/websocket/#CreateProfile","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a CreateProfile]\nRequest CreateProfile: Creates a new profile, switching to it in the process\nCategory config; since 5.0.0; complexity 1/5.\nRequest fields:\n- profileName (String): Name for the new profile","chars":242,"tokens_est":60,"sha256":"2bd3aa8fa1d175553ebae7f544fa16c49aa955e4465a63acba8e2ea971118d53"},{"id":"ws:request:RemoveProfile","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","RemoveProfile"],"url":"https://obs-rust.com/websocket/#RemoveProfile","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a RemoveProfile]\nRequest RemoveProfile: Removes a profile. If the current profile is chosen, it will change to a different profile first.\nCategory config; since 5.0.0; complexity 1/5.\nRequest fields:\n- profileName (String): Name of the profile to remove","chars":291,"tokens_est":73,"sha256":"b4418ed68c674546284b12ffd2b4c2e3534da941f59e5732e926d96d1cacdadd"},{"id":"ws:request:GetProfileParameter","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","GetProfileParameter"],"url":"https://obs-rust.com/websocket/#GetProfileParameter","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a GetProfileParameter]\nRequest GetProfileParameter: Gets a parameter from the current profile's configuration.\nCategory config; since 5.0.0; complexity 4/5.\nRequest fields:\n- parameterCategory (String): Category of the parameter to get\n- parameterName (String): Name of the parameter to get\nResponse fields:\n- parameterValue (String): Value associated with the parameter. `null` if not set and no default\n- defaultParameterValue (String): Default value associated with the parameter. `null` if no default","chars":542,"tokens_est":136,"sha256":"52b7b60986fd850055d6f41353f190db512511a664b216bd561617f891033262"},{"id":"ws:request:SetProfileParameter","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","SetProfileParameter"],"url":"https://obs-rust.com/websocket/#SetProfileParameter","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a SetProfileParameter]\nRequest SetProfileParameter: Sets the value of a parameter in the current profile's configuration.\nCategory config; since 5.0.0; complexity 4/5.\nRequest fields:\n- parameterCategory (String): Category of the parameter to set\n- parameterName (String): Name of the parameter to set\n- parameterValue (String): Value of the parameter to set. Use `null` to delete","chars":418,"tokens_est":104,"sha256":"a0fc455d2600f2bae1daec53f18b761a4942114b10c29deec295f7ff94ad5247"},{"id":"ws:request:GetVideoSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","GetVideoSettings"],"url":"https://obs-rust.com/websocket/#GetVideoSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a GetVideoSettings]\nRequest GetVideoSettings: Gets the current video settings.\n\nNote: To get the true FPS value, divide the FPS numerator by the FPS denominator. Example: `60000/1001`\nCategory config; since 5.0.0; complexity 2/5.\nResponse fields:\n- fpsNumerator (Number): Numerator of the fractional FPS value\n- fpsDenominator (Number): Denominator of the fractional FPS value\n- baseWidth (Number): Width of the base (canvas) resolution in pixels\n- baseHeight (Number): Height of the base (canvas) resolution in pixels\n- outputWidth (Number): Width of the output resolution in pixels\n- outputHeight (Number): Height of the output resolution in pixels","chars":688,"tokens_est":172,"sha256":"3e09553041425e6d8f4568498a1652304169bf01284426c200054543586d523b"},{"id":"ws:request:SetVideoSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","SetVideoSettings"],"url":"https://obs-rust.com/websocket/#SetVideoSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a SetVideoSettings]\nRequest SetVideoSettings: Sets the current video settings.\n\nNote: Fields must be specified in pairs. For example, you cannot set only `baseWidth` without needing to specify `baseHeight`.\nCategory config; since 5.0.0; complexity 2/5.\nRequest fields:\n- fpsNumerator (Number, optional): Numerator of the fractional FPS value\n- fpsDenominator (Number, optional): Denominator of the fractional FPS value\n- baseWidth (Number, optional): Width of the base (canvas) resolution in pixels\n- baseHeight (Number, optional): Height of the base (canvas) resolution in pixels\n- outputWidth (Number, optional): Width of the output resolution in pixels\n- outputHeight (Number, optional): Height of the output resolution in pixels","chars":770,"tokens_est":192,"sha256":"775cef6447912a1cf689e42ecf4f01363882d3a8efcdfd46d8b4d9dffd5e6f3a"},{"id":"ws:request:GetStreamServiceSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","GetStreamServiceSettings"],"url":"https://obs-rust.com/websocket/#GetStreamServiceSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a GetStreamServiceSettings]\nRequest GetStreamServiceSettings: Gets the current stream service settings (stream destination).\nCategory config; since 5.0.0; complexity 4/5.\nResponse fields:\n- streamServiceType (String): Stream service type, like `rtmp_custom` or `rtmp_common`\n- streamServiceSettings (Object): Stream service settings","chars":370,"tokens_est":92,"sha256":"20fc5929d6fd59f6e325f06d554b0e4242d9bfd738898a6cd7d494428384abcf"},{"id":"ws:request:SetStreamServiceSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","SetStreamServiceSettings"],"url":"https://obs-rust.com/websocket/#SetStreamServiceSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a SetStreamServiceSettings]\nRequest SetStreamServiceSettings: Sets the current stream service settings (stream destination).\n\nNote: Simple RTMP settings can be set with type `rtmp_custom` and the settings fields `server` and `key`.\nCategory config; since 5.0.0; complexity 4/5.\nRequest fields:\n- streamServiceType (String): Type of stream service to apply. Example: `rtmp_common` or `rtmp_custom`\n- streamServiceSettings (Object): Settings to apply to the service","chars":501,"tokens_est":125,"sha256":"39a214bf1ec75297edeb8b8a9d19ad3bfa07b17593a473ab057d8ddabe69dbee"},{"id":"ws:request:GetRecordDirectory","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","GetRecordDirectory"],"url":"https://obs-rust.com/websocket/#GetRecordDirectory","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a GetRecordDirectory]\nRequest GetRecordDirectory: Gets the current directory that the record output is set to.\nCategory config; since 5.0.0; complexity 2/5.\nResponse fields:\n- recordDirectory (String): Output directory","chars":256,"tokens_est":64,"sha256":"6b58a1077367cf74004a77125dfe4a2fe82ad119953e58436884c7c2a13461a7"},{"id":"ws:request:SetRecordDirectory","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","config","SetRecordDirectory"],"url":"https://obs-rust.com/websocket/#SetRecordDirectory","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a config \u203a SetRecordDirectory]\nRequest SetRecordDirectory: Sets the current directory that the record output writes files to.\nCategory config; since 5.3.0; complexity 2/5.\nRequest fields:\n- recordDirectory (String): Output directory","chars":261,"tokens_est":65,"sha256":"2ea9393e44f64abaea4ecc6143b71670ee2662fd765ca8d46acf70796bd6fffe"},{"id":"ws:request:GetSourceFilterKindList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","GetSourceFilterKindList"],"url":"https://obs-rust.com/websocket/#GetSourceFilterKindList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a GetSourceFilterKindList]\nRequest GetSourceFilterKindList: Gets an array of all available source filter kinds.\n\nSimilar to `GetInputKindList`\nCategory filters; since 5.4.0; complexity 2/5.\nResponse fields:\n- sourceFilterKinds (Array<String>): Array of source filter kinds","chars":311,"tokens_est":78,"sha256":"a7c53313d8f85464f1a265a15866246f8d23078c6c99134dc7eb7473a483370d"},{"id":"ws:request:GetSourceFilterList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","GetSourceFilterList"],"url":"https://obs-rust.com/websocket/#GetSourceFilterList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a GetSourceFilterList]\nRequest GetSourceFilterList: Gets an array of all of a source's filters.\nCategory filters; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source\n- sourceUuid (String, optional): UUID of the source\nResponse fields:\n- filters (Array<Object>): Array of filters","chars":462,"tokens_est":116,"sha256":"936d7c5a10832eb80211ecdccd9f79ed987c178720bfafe50998ea696f792a81"},{"id":"ws:request:GetSourceFilterDefaultSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","GetSourceFilterDefaultSettings"],"url":"https://obs-rust.com/websocket/#GetSourceFilterDefaultSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a GetSourceFilterDefaultSettings]\nRequest GetSourceFilterDefaultSettings: Gets the default settings for a filter kind.\nCategory filters; since 5.0.0; complexity 3/5.\nRequest fields:\n- filterKind (String): Filter kind to get the default settings for\nResponse fields:\n- defaultFilterSettings (Object): Object of default settings for the filter kind","chars":385,"tokens_est":96,"sha256":"12152ab9f4f1ab090c2e165652a1200b89255217e2ec08ebcd700355c0389cff"},{"id":"ws:request:CreateSourceFilter","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","CreateSourceFilter"],"url":"https://obs-rust.com/websocket/#CreateSourceFilter","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a CreateSourceFilter]\nRequest CreateSourceFilter: Creates a new filter, adding it to the specified source.\nCategory filters; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source to add the filter to\n- sourceUuid (String, optional): UUID of the source to add the filter to\n- filterName (String): Name of the new filter to be created\n- filterKind (String): The kind of filter to be created\n- filterSettings (Object, optional): Settings object to initialize the filter with","chars":653,"tokens_est":163,"sha256":"181ec6accaeff2478587b1e0a027e3364dc61299289a34f3666136552902e1c9"},{"id":"ws:request:RemoveSourceFilter","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","RemoveSourceFilter"],"url":"https://obs-rust.com/websocket/#RemoveSourceFilter","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a RemoveSourceFilter]\nRequest RemoveSourceFilter: Removes a filter from a source.\nCategory filters; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source the filter is on\n- sourceUuid (String, optional): UUID of the source the filter is on\n- filterName (String): Name of the filter to remove","chars":473,"tokens_est":118,"sha256":"469d15d0e075b3671134f2cb23079b160f2a9fd418e7661200c389f72bceb47e"},{"id":"ws:request:SetSourceFilterName","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","SetSourceFilterName"],"url":"https://obs-rust.com/websocket/#SetSourceFilterName","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a SetSourceFilterName]\nRequest SetSourceFilterName: Sets the name of a source filter (rename).\nCategory filters; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source the filter is on\n- sourceUuid (String, optional): UUID of the source the filter is on\n- filterName (String): Current name of the filter\n- newFilterName (String): New name for the filter","chars":534,"tokens_est":134,"sha256":"35080f8f7273f0b170d508483d1a4c2ce1fdca451e764557a51bb2720bd67e9d"},{"id":"ws:request:GetSourceFilter","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","GetSourceFilter"],"url":"https://obs-rust.com/websocket/#GetSourceFilter","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a GetSourceFilter]\nRequest GetSourceFilter: Gets the info for a specific source filter.\nCategory filters; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source\n- sourceUuid (String, optional): UUID of the source\n- filterName (String): Name of the filter\nResponse fields:\n- filterEnabled (Boolean): Whether the filter is enabled\n- filterIndex (Number): Index of the filter in the list, beginning at 0\n- filterKind (String): The kind of filter\n- filterSettings (Object): Settings object associated with the filter","chars":693,"tokens_est":173,"sha256":"64fd52db4419dc571f1d68ea24477ac543a94dbd7d452405789178b3f5e4c5bf"},{"id":"ws:request:SetSourceFilterIndex","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","SetSourceFilterIndex"],"url":"https://obs-rust.com/websocket/#SetSourceFilterIndex","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a SetSourceFilterIndex]\nRequest SetSourceFilterIndex: Sets the index position of a filter on a source.\nCategory filters; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source the filter is on\n- sourceUuid (String, optional): UUID of the source the filter is on\n- filterName (String): Name of the filter\n- filterIndex (Number): New index position of the filter","chars":541,"tokens_est":135,"sha256":"c4d971a11c39113b562b4dff6bd3823119dca72c3b840fde5f74b0c7bf5e3902"},{"id":"ws:request:SetSourceFilterSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","SetSourceFilterSettings"],"url":"https://obs-rust.com/websocket/#SetSourceFilterSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a SetSourceFilterSettings]\nRequest SetSourceFilterSettings: Sets the settings of a source filter.\nCategory filters; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source the filter is on\n- sourceUuid (String, optional): UUID of the source the filter is on\n- filterName (String): Name of the filter to set the settings of\n- filterSettings (Object): Object of settings to apply\n- overlay (Boolean, optional): True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings.","chars":703,"tokens_est":176,"sha256":"2e99a22dd6923759f25be32d59c467e992656542493bf9335dacd6d9ec0edce6"},{"id":"ws:request:SetSourceFilterEnabled","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","filters","SetSourceFilterEnabled"],"url":"https://obs-rust.com/websocket/#SetSourceFilterEnabled","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a filters \u203a SetSourceFilterEnabled]\nRequest SetSourceFilterEnabled: Sets the enable state of a source filter.\nCategory filters; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source the filter is on\n- sourceUuid (String, optional): UUID of the source the filter is on\n- filterName (String): Name of the filter\n- filterEnabled (Boolean): New enable state of the filter","chars":539,"tokens_est":135,"sha256":"26e628205613a067bd3c9fd9d826b63d3f2f72037972d383824135e30334064c"},{"id":"ws:request:GetVersion","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","GetVersion"],"url":"https://obs-rust.com/websocket/#GetVersion","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a GetVersion]\nRequest GetVersion: Gets data about the current plugin and RPC version.\nCategory general; since 5.0.0; complexity 1/5.\nResponse fields:\n- obsVersion (String): Current OBS Studio version\n- obsWebSocketVersion (String): Current obs-websocket version\n- rpcVersion (Number): Current latest obs-websocket RPC version\n- availableRequests (Array<String>): Array of available RPC requests for the currently negotiated RPC version\n- supportedImageFormats (Array<String>): Image formats available in `GetSourceScreenshot` and `SaveSourceScreenshot` requests.\n- platform (String): Name of the platform. Usually `windows`, `macos`, or `ubuntu` (linux flavor). Not guaranteed to be any of those\n- platformDescription (String): Description of the platform, like `Windows 10 (10.0)`","chars":820,"tokens_est":205,"sha256":"a1d6b0771752c7513bbeebe54fcef2ba9d55f5b02fcc386a74f0c972d41ea72c"},{"id":"ws:request:GetStats","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","GetStats"],"url":"https://obs-rust.com/websocket/#GetStats","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a GetStats]\nRequest GetStats: requests). os_cpu_usage_info_query() updates it, and requests run in\nparallel on the thread pool. */\nGets statistics about OBS, obs-websocket, and the current session.\nCategory general; since 5.0.0; complexity 2/5.\nResponse fields:\n- cpuUsage (Number): CPU usage of OBS in percent since this client's previous `GetStats` (since it connected, for the first)\n- memoryUsage (Number): Amount of memory in MB currently being used by OBS\n- availableDiskSpace (Number): Available disk space on the device being used for recording storage\n- activeFps (Number): Current FPS being rendered\n- averageFrameRenderTime (Number): Average time in milliseconds that OBS is taking to render a frame\n- renderSkippedFrames (Number): Number of frames skipped by OBS in the render thread\n- renderTotalFrames (Number): Total number of frames outputted by the render thread\n- outputSkippedFrames (Number): Number of frames skipped by OBS in the output thread\n- outputTotalFrames (Number): Total number of frames outputted by the output thread\n- gpuAcceleration (Object): GPU acceleration status (`state` green/yellow/red, `adapter`, `detectedGpus`, `summary`, `causes`), or null when the frontend does not report it\n- webSocketSessionIncomingMessages (Number): Total number of messages received by obs-websocket from the client\n- webSocketSessionOutgoingMessages (Number): Total number of messages sent by obs-websocket to the client","chars":1478,"tokens_est":370,"sha256":"d009c2156df47e58c59efd2b14601c2d4ea19a631623de3b4c71376b1857b9d4"},{"id":"ws:request:BroadcastCustomEvent","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","BroadcastCustomEvent"],"url":"https://obs-rust.com/websocket/#BroadcastCustomEvent","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a BroadcastCustomEvent]\nRequest BroadcastCustomEvent: Broadcasts a `CustomEvent` to all WebSocket clients. Receivers are clients which are identified and subscribed.\nCategory general; since 5.0.0; complexity 1/5.\nRequest fields:\n- eventData (Object): Data payload to emit to all receivers","chars":327,"tokens_est":82,"sha256":"f30d45cc14aa78a885ca68bdf844d699d84abf9c0d2ad5ed36dc30870f15ce26"},{"id":"ws:request:CallVendorRequest","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","CallVendorRequest"],"url":"https://obs-rust.com/websocket/#CallVendorRequest","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a CallVendorRequest]\nRequest CallVendorRequest: Call a request registered to a vendor.\n\nA vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.\nIf a plugin or script implements vendor requests or events, documentation is expected to be provided with them.\nCategory general; since 5.0.0; complexity 3/5.\nRequest fields:\n- vendorName (String): Name of the vendor to use\n- requestType (String): The request type to call\n- requestData (Object, optional): Object containing appropriate request data\nResponse fields:\n- vendorName (String): Echoed of `vendorName`\n- requestType (String): Echoed of `requestType`\n- responseData (Object): Object containing appropriate response data. {} if request does not provide any response data","chars":852,"tokens_est":213,"sha256":"97d42d9a9e9458e5044ac88c31d55cd834f2205ecc43101193d4e00ca370b825"},{"id":"ws:request:GetHotkeyList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","GetHotkeyList"],"url":"https://obs-rust.com/websocket/#GetHotkeyList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a GetHotkeyList]\nRequest GetHotkeyList: Gets an array of all hotkey names in OBS.\n\nNote: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.\nCategory general; since 5.0.0; complexity 4/5.\nResponse fields:\n- hotkeys (Array<String>): Array of hotkey names","chars":444,"tokens_est":111,"sha256":"27cd0d2693e42529894cef3e553393330ecb22048b4d3a6e9c9d4769c60d744d"},{"id":"ws:request:TriggerHotkeyByName","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","TriggerHotkeyByName"],"url":"https://obs-rust.com/websocket/#TriggerHotkeyByName","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a TriggerHotkeyByName]\nRequest TriggerHotkeyByName: Triggers a hotkey using its name. See `GetHotkeyList`.\n\nNote: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.\nCategory general; since 5.0.0; complexity 4/5.\nRequest fields:\n- hotkeyName (String): Name of the hotkey to trigger\n- contextName (String, optional): Name of context of the hotkey to trigger","chars":547,"tokens_est":137,"sha256":"e202a536a1c3538f2b55de760329300c4fac501050ec853209168f21c8e0870d"},{"id":"ws:request:TriggerHotkeyByKeySequence","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","TriggerHotkeyByKeySequence"],"url":"https://obs-rust.com/websocket/#TriggerHotkeyByKeySequence","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a TriggerHotkeyByKeySequence]\nRequest TriggerHotkeyByKeySequence: Triggers a hotkey using a sequence of keys.\n\nNote: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.\nCategory general; since 5.0.0; complexity 4/5.\nRequest fields:\n- keyId (String, optional): The OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h\n- keyModifiers (Object, optional): Object containing key modifiers to apply\n- keyModifiers.shift (Boolean, optional): Press Shift\n- keyModifiers.control (Boolean, optional): Press CTRL\n- keyModifiers.alt (Boolean, optional): Press ALT\n- keyModifiers.command (Boolean, optional): Press CMD (Mac)","chars":846,"tokens_est":212,"sha256":"d37222f22c5d736cf7a31c14118b6eed693611d9947a675c48cf3dcc0b07fa9b"},{"id":"ws:request:Sleep","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","general","Sleep"],"url":"https://obs-rust.com/websocket/#Sleep","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a general \u203a Sleep]\nRequest Sleep: Sleeps for a time duration or number of frames. Only available in request batches with types `SERIAL_REALTIME` or `SERIAL_FRAME`.\nCategory general; since 5.0.0; complexity 2/5.\nRequest fields:\n- sleepMillis (Number, optional): Number of milliseconds to sleep for (if `SERIAL_REALTIME` mode)\n- sleepFrames (Number, optional): Number of frames to sleep for (if `SERIAL_FRAME` mode)","chars":442,"tokens_est":110,"sha256":"72c57f8f0ccc5b135cf8aed14b131732a0836f7eae65b2fbebfa791cc08e7ce2"},{"id":"ws:request:GetInputList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputList"],"url":"https://obs-rust.com/websocket/#GetInputList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputList]\nRequest GetInputList: renders. Prune every scene now, as the frontend does after it removes a\nscene. The scenes are collected first, so no enumeration lock is held\nwhile a scene takes its video lock. */\nGets an array of all inputs in OBS.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputKind (String, optional): Restrict the array to only inputs of the specified kind\nResponse fields:\n- inputs (Array<Object>): Array of inputs","chars":501,"tokens_est":125,"sha256":"3e3f17d0289f801ad57b81d0f89d4f11b39b86a2f527ae0d1fd4642c243ebb2b"},{"id":"ws:request:GetInputKindList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputKindList"],"url":"https://obs-rust.com/websocket/#GetInputKindList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputKindList]\nRequest GetInputKindList: Gets an array of all available input kinds in OBS.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- unversioned (Boolean, optional): True == Return all kinds as unversioned, False == Return with version suffixes (if available)\nResponse fields:\n- inputKinds (Array<String>): Array of input kinds","chars":393,"tokens_est":98,"sha256":"e8de7e544f9ab81a70e5106e471e640f2ae33792ad1f5fb81f0856b48174df73"},{"id":"ws:request:GetSpecialInputs","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetSpecialInputs"],"url":"https://obs-rust.com/websocket/#GetSpecialInputs","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetSpecialInputs]\nRequest GetSpecialInputs: Gets the names of all special inputs.\nCategory inputs; since 5.0.0; complexity 2/5.\nResponse fields:\n- desktop1 (String): Name of the Desktop Audio input\n- desktop2 (String): Name of the Desktop Audio 2 input\n- mic1 (String): Name of the Mic/Auxiliary Audio input\n- mic2 (String): Name of the Mic/Auxiliary Audio 2 input\n- mic3 (String): Name of the Mic/Auxiliary Audio 3 input\n- mic4 (String): Name of the Mic/Auxiliary Audio 4 input","chars":518,"tokens_est":130,"sha256":"2933d98fe012f881323c40b438eecac04d84cbf10ac76eaa7fc8157c66a94ff9"},{"id":"ws:request:CreateInput","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","CreateInput"],"url":"https://obs-rust.com/websocket/#CreateInput","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a CreateInput]\nRequest CreateInput: Creates a new input, adding it as a scene item to the specified scene.\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene to add the input to as a scene item\n- sceneUuid (String, optional): UUID of the scene to add the input to as a scene item\n- inputName (String): Name of the new input to created\n- inputKind (String): The kind of input to be created\n- inputSettings (Object, optional): Settings object to initialize the input with\n- sceneItemEnabled (Boolean, optional): Whether to set the created scene item to enabled or disabled\nResponse fields:\n- inputUuid (String): UUID of the newly created input\n- sceneItemId (Number): ID of the newly created scene item","chars":897,"tokens_est":224,"sha256":"69bc4886d577ae5972f18ab0aec5d6fa31d4fe08db24e62a221531f4405dc1c3"},{"id":"ws:request:RemoveInput","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","RemoveInput"],"url":"https://obs-rust.com/websocket/#RemoveInput","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a RemoveInput]\nRequest RemoveInput: Removes an existing input.\n\nNote: Will immediately remove all associated scene items.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input to remove\n- inputUuid (String, optional): UUID of the input to remove","chars":341,"tokens_est":85,"sha256":"8c8c46806a753489b61ca4a534544c0a84a749a17ea459ae89b00f89af79cea8"},{"id":"ws:request:SetInputName","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputName"],"url":"https://obs-rust.com/websocket/#SetInputName","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputName]\nRequest SetInputName: Sets the name of an input (rename).\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Current input name\n- inputUuid (String, optional): Current input UUID\n- newInputName (String): New name for the input","chars":323,"tokens_est":81,"sha256":"ed13af2c73e278a1b66d14ce21a0ee5e9cc2d944c323b2cb2889349b290d9f53"},{"id":"ws:request:GetInputDefaultSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputDefaultSettings"],"url":"https://obs-rust.com/websocket/#GetInputDefaultSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputDefaultSettings]\nRequest GetInputDefaultSettings: Gets the default settings for an input kind.\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- inputKind (String): Input kind to get the default settings for\nResponse fields:\n- defaultInputSettings (Object): Object of default settings for the input kind","chars":365,"tokens_est":91,"sha256":"61c3c28a4b5f94ece7bac868d515bdb26429abcc3856c22a65a1ec3b24dd85f0"},{"id":"ws:request:GetInputSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputSettings"],"url":"https://obs-rust.com/websocket/#GetInputSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputSettings]\nRequest GetInputSettings: Gets the settings of an input.\n\nNote: Does not include defaults. To create the entire settings object, overlay `inputSettings` over the `defaultInputSettings` provided by `GetInputDefaultSettings`.\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- inputName (String, optional): Name of the input to get the settings of\n- inputUuid (String, optional): UUID of the input to get the settings of\nResponse fields:\n- inputSettings (Object): Object of settings for the input\n- inputKind (String): The kind of the input","chars":609,"tokens_est":152,"sha256":"06bf8e4da5be1a8d721fa39e97b22bb61473085500d7f3ce1c446a49ec762ac6"},{"id":"ws:request:SetInputSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputSettings"],"url":"https://obs-rust.com/websocket/#SetInputSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputSettings]\nRequest SetInputSettings: Sets the settings of an input.\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- inputName (String, optional): Name of the input to set the settings of\n- inputUuid (String, optional): UUID of the input to set the settings of\n- inputSettings (Object): Object of settings to apply\n- overlay (Boolean, optional): True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings.","chars":522,"tokens_est":130,"sha256":"222aae1d6ed0ced6e76d89a29d90662080f5afac8c23edbf55f6b4b51f328526"},{"id":"ws:request:GetInputMute","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputMute"],"url":"https://obs-rust.com/websocket/#GetInputMute","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputMute]\nRequest GetInputMute: Gets the audio mute state of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of input to get the mute state of\n- inputUuid (String, optional): UUID of input to get the mute state of\nResponse fields:\n- inputMuted (Boolean): Whether the input is muted","chars":386,"tokens_est":96,"sha256":"430f828640e8151484b650fffef12e6845e87a1ba45eded29709ecceafe91517"},{"id":"ws:request:SetInputMute","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputMute"],"url":"https://obs-rust.com/websocket/#SetInputMute","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputMute]\nRequest SetInputMute: Sets the audio mute state of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input to set the mute state of\n- inputUuid (String, optional): UUID of the input to set the mute state of\n- inputMuted (Boolean): Whether to mute the input or not","chars":383,"tokens_est":96,"sha256":"1962567139fe8c753d573d60a2a098fd420a57aa014c3a54fc340f380802d429"},{"id":"ws:request:ToggleInputMute","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","ToggleInputMute"],"url":"https://obs-rust.com/websocket/#ToggleInputMute","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a ToggleInputMute]\nRequest ToggleInputMute: Toggles the audio mute state of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input to toggle the mute state of\n- inputUuid (String, optional): UUID of the input to toggle the mute state of\nResponse fields:\n- inputMuted (Boolean): Whether the input has been muted or unmuted","chars":426,"tokens_est":106,"sha256":"36de762bd55b2862cefef53d81a15d0241fb677db8d8b395f8f1599e2d500d69"},{"id":"ws:request:GetInputVolume","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputVolume"],"url":"https://obs-rust.com/websocket/#GetInputVolume","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputVolume]\nRequest GetInputVolume: Gets the current volume setting of an input.\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- inputName (String, optional): Name of the input to get the volume of\n- inputUuid (String, optional): UUID of the input to get the volume of\nResponse fields:\n- inputVolumeMul (Number): Volume setting in mul\n- inputVolumeDb (Number): Volume setting in dB","chars":441,"tokens_est":110,"sha256":"c4830408d76bc86531e65674fa3b743c1fb7b08dff73ffd93ae37cb0a1228175"},{"id":"ws:request:SetInputVolume","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputVolume"],"url":"https://obs-rust.com/websocket/#SetInputVolume","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputVolume]\nRequest SetInputVolume: Sets the volume setting of an input.\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- inputName (String, optional): Name of the input to set the volume of\n- inputUuid (String, optional): UUID of the input to set the volume of\n- inputVolumeMul (Number, optional): Volume setting in mul\n- inputVolumeDb (Number, optional): Volume setting in dB","chars":436,"tokens_est":109,"sha256":"bebc12d6de4e4d6abe376607509c75c10d055761493afae39e1369ab19143b83"},{"id":"ws:request:GetInputAudioBalance","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputAudioBalance"],"url":"https://obs-rust.com/websocket/#GetInputAudioBalance","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputAudioBalance]\nRequest GetInputAudioBalance: Gets the audio balance of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input to get the audio balance of\n- inputUuid (String, optional): UUID of the input to get the audio balance of\nResponse fields:\n- inputAudioBalance (Number): Audio balance value from 0.0-1.0","chars":425,"tokens_est":106,"sha256":"700933b32a2f2a0634f5dc29af00c87961d797b3cdd9621dde397b267d5b0318"},{"id":"ws:request:SetInputAudioBalance","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputAudioBalance"],"url":"https://obs-rust.com/websocket/#SetInputAudioBalance","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputAudioBalance]\nRequest SetInputAudioBalance: Sets the audio balance of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input to set the audio balance of\n- inputUuid (String, optional): UUID of the input to set the audio balance of\n- inputAudioBalance (Number): New audio balance value","chars":399,"tokens_est":100,"sha256":"39410911be4f4ca0a0712d83b13ce53b8bade5f638d31d9267672ea3f57de9ee"},{"id":"ws:request:GetInputAudioSyncOffset","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputAudioSyncOffset"],"url":"https://obs-rust.com/websocket/#GetInputAudioSyncOffset","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputAudioSyncOffset]\nRequest GetInputAudioSyncOffset: Gets the audio sync offset of an input.\n\nNote: The audio sync offset can be negative too!\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- inputName (String, optional): Name of the input to get the audio sync offset of\n- inputUuid (String, optional): UUID of the input to get the audio sync offset of\nResponse fields:\n- inputAudioSyncOffset (Number): Audio sync offset in milliseconds","chars":497,"tokens_est":124,"sha256":"e0a38ca206503d1edae91aa0ad7ef3345721a323407780c379ac94b640fae90e"},{"id":"ws:request:SetInputAudioSyncOffset","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputAudioSyncOffset"],"url":"https://obs-rust.com/websocket/#SetInputAudioSyncOffset","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputAudioSyncOffset]\nRequest SetInputAudioSyncOffset: Sets the audio sync offset of an input.\nCategory inputs; since 5.0.0; complexity 3/5.\nRequest fields:\n- inputName (String, optional): Name of the input to set the audio sync offset of\n- inputUuid (String, optional): UUID of the input to set the audio sync offset of\n- inputAudioSyncOffset (Number): New audio sync offset in milliseconds","chars":434,"tokens_est":108,"sha256":"bbec449a2004d8766b43dff0f2c7a40c041d371c76ffe455848dcefe6dceed2b"},{"id":"ws:request:GetInputAudioMonitorType","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputAudioMonitorType"],"url":"https://obs-rust.com/websocket/#GetInputAudioMonitorType","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputAudioMonitorType]\nRequest GetInputAudioMonitorType: Gets the audio monitor type of an input.\n\nThe available audio monitor types are:\n\n- `OBS_MONITORING_TYPE_NONE`\n- `OBS_MONITORING_TYPE_MONITOR_ONLY`\n- `OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT`\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input to get the audio monitor type of\n- inputUuid (String, optional): UUID of the input to get the audio monitor type of\nResponse fields:\n- monitorType (String): Audio monitor type","chars":578,"tokens_est":144,"sha256":"d67442584a165cb30c18f38770c268ac4c224dd51fe821b66f9a2f61c55aeaed"},{"id":"ws:request:SetInputAudioMonitorType","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputAudioMonitorType"],"url":"https://obs-rust.com/websocket/#SetInputAudioMonitorType","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputAudioMonitorType]\nRequest SetInputAudioMonitorType: Sets the audio monitor type of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input to set the audio monitor type of\n- inputUuid (String, optional): UUID of the input to set the audio monitor type of\n- monitorType (String): Audio monitor type","chars":411,"tokens_est":103,"sha256":"18849bea1e6a378ce17008782286c5a22a8719ccba6216b1bd9693cbea67c83a"},{"id":"ws:request:GetInputAudioTracks","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputAudioTracks"],"url":"https://obs-rust.com/websocket/#GetInputAudioTracks","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputAudioTracks]\nRequest GetInputAudioTracks: Gets the enable state of all audio tracks of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\nResponse fields:\n- inputAudioTracks (Object): Object of audio tracks and associated enable states","chars":404,"tokens_est":101,"sha256":"f10010a4488b3e658d64db6c67aca348b676a8845a371529c313bfff7856d745"},{"id":"ws:request:SetInputAudioTracks","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputAudioTracks"],"url":"https://obs-rust.com/websocket/#SetInputAudioTracks","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputAudioTracks]\nRequest SetInputAudioTracks: Sets the enable state of audio tracks of an input.\nCategory inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\n- inputAudioTracks (Object): Track settings to apply","chars":355,"tokens_est":89,"sha256":"6bedaf9410b889246f8af628fcc4dfc034c40b1b5cd490befa94273581735cf8"},{"id":"ws:request:GetInputDeinterlaceMode","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputDeinterlaceMode"],"url":"https://obs-rust.com/websocket/#GetInputDeinterlaceMode","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputDeinterlaceMode]\nRequest GetInputDeinterlaceMode: Gets the deinterlace mode of an input.\n\nDeinterlace Modes:\n\n- `OBS_DEINTERLACE_MODE_DISABLE`\n- `OBS_DEINTERLACE_MODE_DISCARD`\n- `OBS_DEINTERLACE_MODE_RETRO`\n- `OBS_DEINTERLACE_MODE_BLEND`\n- `OBS_DEINTERLACE_MODE_BLEND_2X`\n- `OBS_DEINTERLACE_MODE_LINEAR`\n- `OBS_DEINTERLACE_MODE_LINEAR_2X`\n- `OBS_DEINTERLACE_MODE_YADIF`\n- `OBS_DEINTERLACE_MODE_YADIF_2X`\n\nNote: Deinterlacing functionality is restricted to async inputs only.\nCategory inputs; since 5.6.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\nResponse fields:\n- inputDeinterlaceMode (String): Deinterlace mode of the input","chars":764,"tokens_est":191,"sha256":"a1f4bb4f3b06c38e53d2f1d03c2f2f89d1457943e8f8e25141b07381e7ed854d"},{"id":"ws:request:SetInputDeinterlaceMode","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputDeinterlaceMode"],"url":"https://obs-rust.com/websocket/#SetInputDeinterlaceMode","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputDeinterlaceMode]\nRequest SetInputDeinterlaceMode: Sets the deinterlace mode of an input.\n\nNote: Deinterlacing functionality is restricted to async inputs only.\nCategory inputs; since 5.6.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\n- inputDeinterlaceMode (String): Deinterlace mode for the input","chars":433,"tokens_est":108,"sha256":"9b893597b6179a1f8d4e09ace4ea416da4ff54b85d5691d3331a449ea69c402d"},{"id":"ws:request:GetInputDeinterlaceFieldOrder","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputDeinterlaceFieldOrder"],"url":"https://obs-rust.com/websocket/#GetInputDeinterlaceFieldOrder","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputDeinterlaceFieldOrder]\nRequest GetInputDeinterlaceFieldOrder: Gets the deinterlace field order of an input.\n\nDeinterlace Field Orders:\n\n- `OBS_DEINTERLACE_FIELD_ORDER_TOP`\n- `OBS_DEINTERLACE_FIELD_ORDER_BOTTOM`\n\nNote: Deinterlacing functionality is restricted to async inputs only.\nCategory inputs; since 5.6.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\nResponse fields:\n- inputDeinterlaceFieldOrder (String): Deinterlace field order of the input","chars":584,"tokens_est":146,"sha256":"2a5ef48e1c97794f36949f75ecee8fb82303c02f4f4f55cc99320fbbb88cbe13"},{"id":"ws:request:SetInputDeinterlaceFieldOrder","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","SetInputDeinterlaceFieldOrder"],"url":"https://obs-rust.com/websocket/#SetInputDeinterlaceFieldOrder","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a SetInputDeinterlaceFieldOrder]\nRequest SetInputDeinterlaceFieldOrder: Sets the deinterlace field order of an input.\n\nNote: Deinterlacing functionality is restricted to async inputs only.\nCategory inputs; since 5.6.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\n- inputDeinterlaceFieldOrder (String): Deinterlace field order for the input","chars":465,"tokens_est":116,"sha256":"c56d58bfe57fa3416dbc83128c7401f7ae9b3c93f8cf6e1ecc72ac09317aac7e"},{"id":"ws:request:GetInputPropertiesListPropertyItems","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","GetInputPropertiesListPropertyItems"],"url":"https://obs-rust.com/websocket/#GetInputPropertiesListPropertyItems","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a GetInputPropertiesListPropertyItems]\nRequest GetInputPropertiesListPropertyItems: Gets the items of a list property from an input's properties.\n\nNote: Use this in cases where an input provides a dynamic, selectable list of items. For example, display capture, where it provides a list of available displays.\nCategory inputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\n- propertyName (String): Name of the list property to get the items of\nResponse fields:\n- propertyItems (Array<Object>): Array of items in the list property","chars":666,"tokens_est":166,"sha256":"734a7defd1491b442253e841f3051d02a9255fbe42b79c059002e8671987729c"},{"id":"ws:request:PressInputPropertiesButton","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","inputs","PressInputPropertiesButton"],"url":"https://obs-rust.com/websocket/#PressInputPropertiesButton","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a inputs \u203a PressInputPropertiesButton]\nRequest PressInputPropertiesButton: Presses a button in the properties of an input.\n\nSome known `propertyName` values are:\n\n- `refreshnocache` - Browser source reload button\n\nNote: Use this in cases where there is a button in the properties of an input that cannot be accessed in any other way. For example, browser sources, where there is a refresh button.\nCategory inputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- inputName (String, optional): Name of the input\n- inputUuid (String, optional): UUID of the input\n- propertyName (String): Name of the button property to press","chars":649,"tokens_est":162,"sha256":"348dc63b8b5322dc7c6b0cf93fa8700b34470cb5e24d7677d40a4038a2b5c454"},{"id":"ws:request:GetMediaInputStatus","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","media inputs","GetMediaInputStatus"],"url":"https://obs-rust.com/websocket/#GetMediaInputStatus","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a media inputs \u203a GetMediaInputStatus]\nRequest GetMediaInputStatus: Gets the status of a media input.\n\nMedia States:\n\n- `OBS_MEDIA_STATE_NONE`\n- `OBS_MEDIA_STATE_PLAYING`\n- `OBS_MEDIA_STATE_OPENING`\n- `OBS_MEDIA_STATE_BUFFERING`\n- `OBS_MEDIA_STATE_PAUSED`\n- `OBS_MEDIA_STATE_STOPPED`\n- `OBS_MEDIA_STATE_ENDED`\n- `OBS_MEDIA_STATE_ERROR`\nCategory media inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the media input\n- inputUuid (String, optional): UUID of the media input\nResponse fields:\n- mediaState (String): State of the media input\n- mediaDuration (Number): Total duration of the playing media in milliseconds. `null` if not playing\n- mediaCursor (Number): Position of the cursor in milliseconds. `null` if not playing","chars":795,"tokens_est":199,"sha256":"9a09fbd629880321b89350daf49775a3e74f3eeb0f00eb5f1da965493634bcc5"},{"id":"ws:request:SetMediaInputCursor","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","media inputs","SetMediaInputCursor"],"url":"https://obs-rust.com/websocket/#SetMediaInputCursor","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a media inputs \u203a SetMediaInputCursor]\nRequest SetMediaInputCursor: Sets the cursor position of a media input.\n\nThis request does not perform bounds checking of the cursor position.\nCategory media inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the media input\n- inputUuid (String, optional): UUID of the media input\n- mediaCursor (Number): New cursor position to set","chars":440,"tokens_est":110,"sha256":"73da7a99a7c3514ba45e5afb78f1aef12af8bb0a21866c88f40f25d6fd2a009a"},{"id":"ws:request:OffsetMediaInputCursor","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","media inputs","OffsetMediaInputCursor"],"url":"https://obs-rust.com/websocket/#OffsetMediaInputCursor","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a media inputs \u203a OffsetMediaInputCursor]\nRequest OffsetMediaInputCursor: Offsets the current cursor position of a media input by the specified value.\n\nThis request does not perform bounds checking of the cursor position.\nCategory media inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the media input\n- inputUuid (String, optional): UUID of the media input\n- mediaCursorOffset (Number): Value to offset the current cursor position by","chars":506,"tokens_est":126,"sha256":"7741d7d6ca087382695b1f2aabb1ba1889666a0662f8999909f7063017eab8f2"},{"id":"ws:request:TriggerMediaInputAction","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","media inputs","TriggerMediaInputAction"],"url":"https://obs-rust.com/websocket/#TriggerMediaInputAction","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a media inputs \u203a TriggerMediaInputAction]\nRequest TriggerMediaInputAction: Triggers an action on a media input.\nCategory media inputs; since 5.0.0; complexity 2/5.\nRequest fields:\n- inputName (String, optional): Name of the media input\n- inputUuid (String, optional): UUID of the media input\n- mediaAction (String): Identifier of the `ObsMediaInputAction` enum","chars":389,"tokens_est":97,"sha256":"8e438e8a081e6a82615bf99828c4c03a1d6081d93d4292607a41688c3b6fbbe3"},{"id":"ws:request:GetVirtualCamStatus","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","GetVirtualCamStatus"],"url":"https://obs-rust.com/websocket/#GetVirtualCamStatus","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a GetVirtualCamStatus]\nRequest GetVirtualCamStatus: Gets the status of the virtualcam output.\nCategory outputs; since 5.0.0; complexity 1/5.\nResponse fields:\n- outputActive (Boolean): Whether the output is active","chars":251,"tokens_est":63,"sha256":"e67e94fbf4bdf932746739d6672f56ab5ebcbe2b4778d8f6f7cd55842113b047"},{"id":"ws:request:ToggleVirtualCam","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","ToggleVirtualCam"],"url":"https://obs-rust.com/websocket/#ToggleVirtualCam","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a ToggleVirtualCam]\nRequest ToggleVirtualCam: Toggles the state of the virtualcam output.\nCategory outputs; since 5.0.0; complexity 1/5.\nResponse fields:\n- outputActive (Boolean): Whether the output is active","chars":247,"tokens_est":62,"sha256":"adf976ac388874befff2259990c5a90b714451f56cc588288614bb3ef04c23fd"},{"id":"ws:request:StartVirtualCam","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","StartVirtualCam"],"url":"https://obs-rust.com/websocket/#StartVirtualCam","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a StartVirtualCam]\nRequest StartVirtualCam: Starts the virtualcam output.\nCategory outputs; since 5.0.0; complexity 1/5.","chars":159,"tokens_est":40,"sha256":"821c8f6da3f4b268d632392de65d627396a0ea03e3aa64635d4a0eb7a4a8f812"},{"id":"ws:request:StopVirtualCam","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","StopVirtualCam"],"url":"https://obs-rust.com/websocket/#StopVirtualCam","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a StopVirtualCam]\nRequest StopVirtualCam: Stops the virtualcam output.\nCategory outputs; since 5.0.0; complexity 1/5.","chars":156,"tokens_est":39,"sha256":"b6052386ed3300ab0657580a78b7884367b3afef3841fb3e2ef6f6bcd9a46d20"},{"id":"ws:request:GetReplayBufferStatus","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","GetReplayBufferStatus"],"url":"https://obs-rust.com/websocket/#GetReplayBufferStatus","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a GetReplayBufferStatus]\nRequest GetReplayBufferStatus: Gets the status of the replay buffer output.\nCategory outputs; since 5.0.0; complexity 1/5.\nResponse fields:\n- outputActive (Boolean): Whether the output is active","chars":258,"tokens_est":64,"sha256":"33568a4b3ed7c146e17e064e65d5312e586fa2763d56c0d96e0302789fe48fe0"},{"id":"ws:request:ToggleReplayBuffer","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","ToggleReplayBuffer"],"url":"https://obs-rust.com/websocket/#ToggleReplayBuffer","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a ToggleReplayBuffer]\nRequest ToggleReplayBuffer: Toggles the state of the replay buffer output.\nCategory outputs; since 5.0.0; complexity 1/5.\nResponse fields:\n- outputActive (Boolean): Whether the output is active","chars":254,"tokens_est":64,"sha256":"d9e73a307d23613684ace7cd5047fb1e64dc4a6ce52b64dd15ae843525e88250"},{"id":"ws:request:StartReplayBuffer","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","StartReplayBuffer"],"url":"https://obs-rust.com/websocket/#StartReplayBuffer","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a StartReplayBuffer]\nRequest StartReplayBuffer: Starts the replay buffer output.\nCategory outputs; since 5.0.0; complexity 1/5.","chars":166,"tokens_est":42,"sha256":"dd86d2af179d139039768199e869544c9b5bc9e4dc89c949acaae63e5f7e7fc2"},{"id":"ws:request:StopReplayBuffer","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","StopReplayBuffer"],"url":"https://obs-rust.com/websocket/#StopReplayBuffer","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a StopReplayBuffer]\nRequest StopReplayBuffer: Stops the replay buffer output.\nCategory outputs; since 5.0.0; complexity 1/5.","chars":163,"tokens_est":41,"sha256":"57a2fb3424c239136dd6b91abc24241f8bc48dcaf28adaf5f72f044d6ca6e02e"},{"id":"ws:request:SaveReplayBuffer","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","SaveReplayBuffer"],"url":"https://obs-rust.com/websocket/#SaveReplayBuffer","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a SaveReplayBuffer]\nRequest SaveReplayBuffer: Saves the contents of the replay buffer output.\nCategory outputs; since 5.0.0; complexity 1/5.","chars":179,"tokens_est":45,"sha256":"e8520754a6b49ee25e21a3450bf6ad5b51b88acd102a9c1b585cd2975b958079"},{"id":"ws:request:GetLastReplayBufferReplay","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","GetLastReplayBufferReplay"],"url":"https://obs-rust.com/websocket/#GetLastReplayBufferReplay","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a GetLastReplayBufferReplay]\nRequest GetLastReplayBufferReplay: Gets the filename of the last replay buffer save file.\nCategory outputs; since 5.0.0; complexity 2/5.\nResponse fields:\n- savedReplayPath (String): File path","chars":259,"tokens_est":65,"sha256":"defb62ab06fd9b3c3ddc5a1a4e85b71560d30f79d467054be664405f04916b70"},{"id":"ws:request:GetOutputList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","GetOutputList"],"url":"https://obs-rust.com/websocket/#GetOutputList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a GetOutputList]\nRequest GetOutputList: Gets the list of available outputs.\nCategory outputs; since 5.0.0; complexity 4/5.\nResponse fields:\n- outputs (Array<Object>): Array of outputs","chars":222,"tokens_est":56,"sha256":"f368be18a3a45a63694c02e7cb0d860249aba7441c6ee2d4109f6e49fe45db3f"},{"id":"ws:request:GetOutputStatus","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","GetOutputStatus"],"url":"https://obs-rust.com/websocket/#GetOutputStatus","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a GetOutputStatus]\nRequest GetOutputStatus: Gets the status of an output.\nCategory outputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- outputName (String): Output name\nResponse fields:\n- outputActive (Boolean): Whether the output is active\n- outputReconnecting (Boolean): Whether the output is reconnecting\n- outputTimecode (String): Current formatted timecode string for the output\n- outputDuration (Number): Current duration in milliseconds for the output\n- outputCongestion (Number): Congestion of the output\n- outputBytes (Number): Number of bytes sent by the output\n- outputSkippedFrames (Number): Number of frames skipped by the output's process\n- outputTotalFrames (Number): Total number of frames delivered by the output's process","chars":781,"tokens_est":195,"sha256":"2e726c5a19ba0acba831411fa3709db8fa56577385a1f0e180f38ec0303a5f89"},{"id":"ws:request:ToggleOutput","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","ToggleOutput"],"url":"https://obs-rust.com/websocket/#ToggleOutput","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a ToggleOutput]\nRequest ToggleOutput: Toggles the status of an output.\nCategory outputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- outputName (String): Output name\nResponse fields:\n- outputActive (Boolean): Whether the output is active","chars":279,"tokens_est":70,"sha256":"047b35fed06cb119c5910f77c4abb23e8c2925b2bb910cda51e7160839db6905"},{"id":"ws:request:StartOutput","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","StartOutput"],"url":"https://obs-rust.com/websocket/#StartOutput","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a StartOutput]\nRequest StartOutput: Starts an output.\nCategory outputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- outputName (String): Output name","chars":190,"tokens_est":48,"sha256":"f793b1ba51815443f08af87a1be7e83781a616303d15fc2fcbb98b334dc59015"},{"id":"ws:request:StopOutput","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","StopOutput"],"url":"https://obs-rust.com/websocket/#StopOutput","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a StopOutput]\nRequest StopOutput: Stops an output.\nCategory outputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- outputName (String): Output name","chars":187,"tokens_est":47,"sha256":"e1f54aefcd08eb8ccdc0e757c5d53e81698a9ea4fd0531f5c02bd82c1bd8193e"},{"id":"ws:request:GetOutputSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","GetOutputSettings"],"url":"https://obs-rust.com/websocket/#GetOutputSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a GetOutputSettings]\nRequest GetOutputSettings: Gets the settings of an output.\nCategory outputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- outputName (String): Output name\nResponse fields:\n- outputSettings (Object): Output settings","chars":276,"tokens_est":69,"sha256":"6307e474facae6ba123886bdc59406976be8528eacde238fe8243169ab3b825b"},{"id":"ws:request:SetOutputSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","outputs","SetOutputSettings"],"url":"https://obs-rust.com/websocket/#SetOutputSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a outputs \u203a SetOutputSettings]\nRequest SetOutputSettings: Sets the settings of an output.\nCategory outputs; since 5.0.0; complexity 4/5.\nRequest fields:\n- outputName (String): Output name\n- outputSettings (Object): Output settings","chars":259,"tokens_est":65,"sha256":"71e635d5f3ea2f4ec2832c7f65d0e0b0a41629de789a4823dbda234532c50192"},{"id":"ws:request:GetRecordStatus","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","GetRecordStatus"],"url":"https://obs-rust.com/websocket/#GetRecordStatus","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a GetRecordStatus]\nRequest GetRecordStatus: Gets the status of the record output.\nCategory record; since 5.0.0; complexity 2/5.\nResponse fields:\n- outputActive (Boolean): Whether the output is active\n- outputPaused (Boolean): Whether the output is paused\n- outputTimecode (String): Current formatted timecode string for the output\n- outputDuration (Number): Current duration in milliseconds for the output\n- outputBytes (Number): Number of bytes sent by the output","chars":502,"tokens_est":126,"sha256":"99b2a3f7eb02e42a88eec216f4ad627259086cad6677eb8a4b000814cb6ffce5"},{"id":"ws:request:ToggleRecord","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","ToggleRecord"],"url":"https://obs-rust.com/websocket/#ToggleRecord","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a ToggleRecord]\nRequest ToggleRecord: Toggles the status of the record output.\nCategory record; since 5.0.0; complexity 1/5.\nResponse fields:\n- outputActive (Boolean): The new active state of the output","chars":240,"tokens_est":60,"sha256":"f9aeff821e5495abed64ad448f4414e80aa3ce3786b613ddc0410097e7a0a986"},{"id":"ws:request:StartRecord","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","StartRecord"],"url":"https://obs-rust.com/websocket/#StartRecord","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a StartRecord]\nRequest StartRecord: Starts the record output.\nCategory record; since 5.0.0; complexity 1/5.","chars":145,"tokens_est":36,"sha256":"62cc9088d408fcb812fb513501752551f57fcbf1a333fbf43557221910bc1cda"},{"id":"ws:request:StopRecord","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","StopRecord"],"url":"https://obs-rust.com/websocket/#StopRecord","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a StopRecord]\nRequest StopRecord: Stops the record output.\nCategory record; since 5.0.0; complexity 1/5.\nResponse fields:\n- outputPath (String): File name for the saved recording","chars":216,"tokens_est":54,"sha256":"f3c202a7806f3a8a23022ac139f06c158700e8c42905523e57075e107edac0ed"},{"id":"ws:request:ToggleRecordPause","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","ToggleRecordPause"],"url":"https://obs-rust.com/websocket/#ToggleRecordPause","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a ToggleRecordPause]\nRequest ToggleRecordPause: Toggles pause on the record output.\nCategory record; since 5.0.0; complexity 1/5.","chars":167,"tokens_est":42,"sha256":"7e243cef333bf82f49053e9145ac25243d4383398356d9841fd9fba0796c7639"},{"id":"ws:request:PauseRecord","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","PauseRecord"],"url":"https://obs-rust.com/websocket/#PauseRecord","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a PauseRecord]\nRequest PauseRecord: Pauses the record output.\nCategory record; since 5.0.0; complexity 1/5.","chars":145,"tokens_est":36,"sha256":"3ec03e48aefb28bcaa6cb01252d93ea0316093e4b92b67a9e59110fad7a4a09a"},{"id":"ws:request:ResumeRecord","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","ResumeRecord"],"url":"https://obs-rust.com/websocket/#ResumeRecord","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a ResumeRecord]\nRequest ResumeRecord: Resumes the record output.\nCategory record; since 5.0.0; complexity 1/5.","chars":148,"tokens_est":37,"sha256":"e8d0032dd29420d83b61aade62494397f148cf40c24720c8db3741ff72601034"},{"id":"ws:request:SplitRecordFile","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","SplitRecordFile"],"url":"https://obs-rust.com/websocket/#SplitRecordFile","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a SplitRecordFile]\nRequest SplitRecordFile: Splits the current file being recorded into a new file.\nCategory record; since 5.5.0; complexity 2/5.","chars":183,"tokens_est":46,"sha256":"4ec2c404025d6a28b93ddcfb030eb9e5a998c06d3d8aa2a6c4f6fc2b84f78828"},{"id":"ws:request:CreateRecordChapter","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","record","CreateRecordChapter"],"url":"https://obs-rust.com/websocket/#CreateRecordChapter","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a record \u203a CreateRecordChapter]\nRequest CreateRecordChapter: Adds a new chapter marker to the file currently being recorded.\n\nNote: As of OBS 30.2.0, the only file format supporting this feature is Hybrid MP4.\nCategory record; since 5.5.0; complexity 2/5.\nRequest fields:\n- chapterName (String, optional): Name of the new chapter","chars":358,"tokens_est":90,"sha256":"f8241b43936744bebb025617a7e398161b0df2f15dd0ddf3fdcb6c7d6a2ffc8d"},{"id":"ws:request:GetSceneItemList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemList"],"url":"https://obs-rust.com/websocket/#GetSceneItemList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemList]\nRequest GetSceneItemList: Gets a list of all scene items in a scene.\n\nScenes only\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene to get the items of\n- sceneUuid (String, optional): UUID of the scene to get the items of\nResponse fields:\n- sceneItems (Array<Object>): Array of scene items in the scene","chars":530,"tokens_est":132,"sha256":"ff5338ce89edd22627f693679c9e430455d0b8926c634f364a7826e1fb808992"},{"id":"ws:request:GetGroupSceneItemList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetGroupSceneItemList"],"url":"https://obs-rust.com/websocket/#GetGroupSceneItemList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetGroupSceneItemList]\nRequest GetGroupSceneItemList: Basically GetSceneItemList, but for groups.\n\nUsing groups at all in OBS is discouraged, as they are very broken under the hood. Please use nested scenes instead.\n\nGroups only\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the group is in, if using the sceneName field\n- sceneName (String, optional): Name of the group to get the items of\n- sceneUuid (String, optional): UUID of the group to get the items of\nResponse fields:\n- sceneItems (Array<Object>): Array of scene items in the group","chars":659,"tokens_est":165,"sha256":"94c4102fdba3d62c1ec9e7f19d45bf2325de878af2661c033e630b2cce0eeebf"},{"id":"ws:request:GetSceneItemId","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemId"],"url":"https://obs-rust.com/websocket/#GetSceneItemId","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemId]\nRequest GetSceneItemId: Searches a scene for a source, and returns its id.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene or group is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene or group to search in\n- sceneUuid (String, optional): UUID of the scene or group to search in\n- sourceName (String): Name of the source to find\n- searchOffset (Number, optional): Number of matches to skip during search. >= 0 means first forward. -1 means last (top) item\nResponse fields:\n- sceneItemId (Number): Numeric ID of the scene item","chars":719,"tokens_est":180,"sha256":"46241a023e499e9476d25ae038f6b18980228c1f4dbc00b7f1db1c69fbd1b75b"},{"id":"ws:request:GetSceneItemSource","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemSource"],"url":"https://obs-rust.com/websocket/#GetSceneItemSource","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemSource]\nRequest GetSceneItemSource: Gets the source associated with a scene item.\nCategory scene items; since 5.4.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\nResponse fields:\n- sourceName (String): Name of the source associated with the scene item\n- sourceUuid (String): UUID of the source associated with the scene item","chars":649,"tokens_est":162,"sha256":"803ce29ae1a7dd59f0bdeb14410616c448975496815f7df865fbbabdd25d9b08"},{"id":"ws:request:CreateSceneItem","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","CreateSceneItem"],"url":"https://obs-rust.com/websocket/#CreateSceneItem","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a CreateSceneItem]\nRequest CreateSceneItem: Creates a new scene item using a source.\n\nScenes only\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene to create the new item in\n- sceneUuid (String, optional): UUID of the scene to create the new item in\n- sourceName (String, optional): Name of the source to add to the scene\n- sourceUuid (String, optional): UUID of the source to add to the scene\n- sceneItemEnabled (Boolean, optional): Enable state to apply to the scene item on creation\nResponse fields:\n- sceneItemId (Number): Numeric ID of the scene item","chars":763,"tokens_est":191,"sha256":"42b115f877a90edc5872b8b2d8d611a726111a1a7279411333dc0f1c43b5e403"},{"id":"ws:request:RemoveSceneItem","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","RemoveSceneItem"],"url":"https://obs-rust.com/websocket/#RemoveSceneItem","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a RemoveSceneItem]\nRequest RemoveSceneItem: Removes a scene item from a scene.\n\nScenes only\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item","chars":482,"tokens_est":120,"sha256":"f53327a8166f7ae5892895a0d44134f2085ac1690845203e7f1e34c939b74183"},{"id":"ws:request:DuplicateSceneItem","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","DuplicateSceneItem"],"url":"https://obs-rust.com/websocket/#DuplicateSceneItem","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a DuplicateSceneItem]\nRequest DuplicateSceneItem: Duplicates a scene item, copying all transform and crop info.\n\nScenes only\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- destinationSceneName (String, optional): Name of the scene to create the duplicated item in\n- destinationSceneUuid (String, optional): UUID of the scene to create the duplicated item in\nResponse fields:\n- sceneItemId (Number): Numeric ID of the duplicated scene item","chars":784,"tokens_est":196,"sha256":"f3bd59a46e996b073d679342899ddf647b6e6b189c0dfdad20514a0de4030c18"},{"id":"ws:request:GetSceneItemTransform","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemTransform"],"url":"https://obs-rust.com/websocket/#GetSceneItemTransform","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemTransform]\nRequest GetSceneItemTransform: Gets the transform and crop info of a scene item.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\nResponse fields:\n- sceneItemTransform (Object): Object containing scene item transform info","chars":607,"tokens_est":152,"sha256":"d2eb2c582d7d09e5f80c326e40c1039b02d561acdf8ca49b6ace404a4fcf0b68"},{"id":"ws:request:SetSceneItemTransform","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","SetSceneItemTransform"],"url":"https://obs-rust.com/websocket/#SetSceneItemTransform","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a SetSceneItemTransform]\nRequest SetSceneItemTransform: Sets the transform and crop info of a scene item.\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemTransform (Object): Object containing scene item transform info to update","chars":581,"tokens_est":145,"sha256":"e7ee73e0f05de2e6a03a49bb4104f9840118669a0241ddec2eeba49cfebe0dcc"},{"id":"ws:request:GetSceneItemEnabled","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemEnabled"],"url":"https://obs-rust.com/websocket/#GetSceneItemEnabled","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemEnabled]\nRequest GetSceneItemEnabled: Gets the enable state of a scene item.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\nResponse fields:\n- sceneItemEnabled (Boolean): Whether the scene item is enabled. `true` for enabled, `false` for disabled","chars":623,"tokens_est":156,"sha256":"4d9d7a9a5e3a382c62bef6ebb4a816508600b8cf8b7dbd2fc1a19aff86b293b6"},{"id":"ws:request:SetSceneItemEnabled","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","SetSceneItemEnabled"],"url":"https://obs-rust.com/websocket/#SetSceneItemEnabled","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a SetSceneItemEnabled]\nRequest SetSceneItemEnabled: Sets the enable state of a scene item.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemEnabled (Boolean): New enable state of the scene item","chars":565,"tokens_est":141,"sha256":"3cfe9dd2a9df5b566631abcb795a8634c0351f4d775a8dae4ee22884a776b94b"},{"id":"ws:request:GetSceneItemLocked","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemLocked"],"url":"https://obs-rust.com/websocket/#GetSceneItemLocked","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemLocked]\nRequest GetSceneItemLocked: Gets the lock state of a scene item.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\nResponse fields:\n- sceneItemLocked (Boolean): Whether the scene item is locked. `true` for locked, `false` for unlocked","chars":616,"tokens_est":154,"sha256":"61db688fb83dde9570375f715d8f2b067836fdf23af39a8a1b9c62e8731823a0"},{"id":"ws:request:SetSceneItemLocked","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","SetSceneItemLocked"],"url":"https://obs-rust.com/websocket/#SetSceneItemLocked","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a SetSceneItemLocked]\nRequest SetSceneItemLocked: Sets the lock state of a scene item.\n\nScenes and Group\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemLocked (Boolean): New lock state of the scene item","chars":557,"tokens_est":139,"sha256":"1f2550ae649d019d9c3839d9fc29366935ff00290395eb2fd3d214789b0b151f"},{"id":"ws:request:GetSceneItemIndex","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemIndex"],"url":"https://obs-rust.com/websocket/#GetSceneItemIndex","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemIndex]\nRequest GetSceneItemIndex: Gets the index position of a scene item in a scene.\n\nAn index of 0 is at the bottom of the source list in the UI.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\nResponse fields:\n- sceneItemIndex (Number): Index position of the scene item","chars":648,"tokens_est":162,"sha256":"c7b0b97ca631a590e3982b22d87dfed8eb38f6a4e21e0c90b8091a916c1ab031"},{"id":"ws:request:SetSceneItemIndex","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","SetSceneItemIndex"],"url":"https://obs-rust.com/websocket/#SetSceneItemIndex","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a SetSceneItemIndex]\nRequest SetSceneItemIndex: Sets the index position of a scene item in a scene.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemIndex (Number): New index position of the scene item","chars":573,"tokens_est":143,"sha256":"b901e69792c86b9e96d62313b6949a81417768d0b38590ec34040fd8843b9dc2"},{"id":"ws:request:GetSceneItemBlendMode","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","GetSceneItemBlendMode"],"url":"https://obs-rust.com/websocket/#GetSceneItemBlendMode","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a GetSceneItemBlendMode]\nRequest GetSceneItemBlendMode: Gets the blend mode of a scene item.\n\nBlend modes:\n\n- `OBS_BLEND_NORMAL`\n- `OBS_BLEND_ADDITIVE`\n- `OBS_BLEND_SUBTRACT`\n- `OBS_BLEND_SCREEN`\n- `OBS_BLEND_MULTIPLY`\n- `OBS_BLEND_LIGHTEN`\n- `OBS_BLEND_DARKEN`\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\nResponse fields:\n- sceneItemBlendMode (String): Current blend mode","chars":738,"tokens_est":184,"sha256":"7f6fa40deeda682e8661421c1fa02cf80f16641e3d6001212380f32eaa247ff3"},{"id":"ws:request:SetSceneItemBlendMode","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scene items","SetSceneItemBlendMode"],"url":"https://obs-rust.com/websocket/#SetSceneItemBlendMode","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scene items \u203a SetSceneItemBlendMode]\nRequest SetSceneItemBlendMode: Sets the blend mode of a scene item.\n\nScenes and Groups\nCategory scene items; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene the item is in\n- sceneUuid (String, optional): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemBlendMode (String): New blend mode","chars":548,"tokens_est":137,"sha256":"ded6e065272d3471200f1680906acee7feb7c77b361210709233fb65103eb405"},{"id":"ws:request:GetSceneList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","GetSceneList"],"url":"https://obs-rust.com/websocket/#GetSceneList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a GetSceneList]\nRequest GetSceneList: Gets an array of scenes in OBS.\nCategory scenes; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scenes are in\nResponse fields:\n- currentProgramSceneName (String): Current program scene name. Can be `null` if non-main canvas or internal state desync\n- currentProgramSceneUuid (String): Current program scene UUID. Can be `null` if non-main canvas or internal state desync\n- currentPreviewSceneName (String): Current preview scene name. `null` if not in studio mode or non-main canvas\n- currentPreviewSceneUuid (String): Current preview scene UUID. `null` if not in studio mode or non-main canvas\n- scenes (Array<Object>): Array of scenes","chars":766,"tokens_est":192,"sha256":"bdf15753c6278d678bdd8ebcf14e210099e6d310be61a3a7a76115c657ca6998"},{"id":"ws:request:GetGroupList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","GetGroupList"],"url":"https://obs-rust.com/websocket/#GetGroupList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a GetGroupList]\nRequest GetGroupList: Gets an array of all groups in OBS.\n\nGroups in OBS are actually scenes, but renamed and modified. In obs-websocket, we treat them as scenes where we can.\nCategory scenes; since 5.0.0; complexity 2/5.\nResponse fields:\n- groups (Array<String>): Array of group names","chars":339,"tokens_est":85,"sha256":"abb91bd2fd1fc0017bc8563e4e8bdb1ccce2731be46cb45c5cbb343a1419db26"},{"id":"ws:request:GetCurrentProgramScene","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","GetCurrentProgramScene"],"url":"https://obs-rust.com/websocket/#GetCurrentProgramScene","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a GetCurrentProgramScene]\nRequest GetCurrentProgramScene: Gets the current program scene.\n\nNote 1: This request is slated to have the `currentProgram`-prefixed fields removed from in an upcoming RPC version.\n\nNote 2: Canvases do not have any concept of a program or preview scene, so this request does not support canvases.\nCategory scenes; since 5.0.0; complexity 1/5.\nResponse fields:\n- sceneName (String): Current program scene name. `null` if there is no program scene\n- sceneUuid (String): Current program scene UUID. `null` if there is no program scene\n- currentProgramSceneName (String): Current program scene name (Deprecated)\n- currentProgramSceneUuid (String): Current program scene UUID (Deprecated)","chars":748,"tokens_est":187,"sha256":"4cf3e8467a0397032bc935fa27c959ed41a55980ac6085008fc4bda996eb098a"},{"id":"ws:request:SetCurrentProgramScene","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","SetCurrentProgramScene"],"url":"https://obs-rust.com/websocket/#SetCurrentProgramScene","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a SetCurrentProgramScene]\nRequest SetCurrentProgramScene: Sets the current program scene.\nCategory scenes; since 5.0.0; complexity 1/5.\nRequest fields:\n- sceneName (String, optional): Scene name to set as the current program scene\n- sceneUuid (String, optional): Scene UUID to set as the current program scene","chars":347,"tokens_est":87,"sha256":"00ae1b979e5ccfe61413162f5e4c0091bb616a783d7afc9ebc65ea70d5b58c38"},{"id":"ws:request:GetCurrentPreviewScene","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","GetCurrentPreviewScene"],"url":"https://obs-rust.com/websocket/#GetCurrentPreviewScene","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a GetCurrentPreviewScene]\nRequest GetCurrentPreviewScene: Gets the current preview scene.\n\nOnly available when studio mode is enabled.\n\nNote: This request is slated to have the `currentPreview`-prefixed fields removed from in an upcoming RPC version.\nCategory scenes; since 5.0.0; complexity 1/5.\nResponse fields:\n- sceneName (String): Current preview scene name. `null` if there is no preview scene\n- sceneUuid (String): Current preview scene UUID. `null` if there is no preview scene\n- currentPreviewSceneName (String): Current preview scene name\n- currentPreviewSceneUuid (String): Current preview scene UUID","chars":649,"tokens_est":162,"sha256":"4a176ecfc2bbee77d2b8507934bfbbfbbebc884d687f9e8860f9a442f2efbad2"},{"id":"ws:request:SetCurrentPreviewScene","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","SetCurrentPreviewScene"],"url":"https://obs-rust.com/websocket/#SetCurrentPreviewScene","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a SetCurrentPreviewScene]\nRequest SetCurrentPreviewScene: Sets the current preview scene.\n\nOnly available when studio mode is enabled.\nCategory scenes; since 5.0.0; complexity 1/5.\nRequest fields:\n- sceneName (String, optional): Scene name to set as the current preview scene\n- sceneUuid (String, optional): Scene UUID to set as the current preview scene","chars":392,"tokens_est":98,"sha256":"4946684b5d8c6e51b7da2cc395cba5f4c2083f993fc7959d0e333fc6a489d495"},{"id":"ws:request:CreateScene","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","CreateScene"],"url":"https://obs-rust.com/websocket/#CreateScene","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a CreateScene]\nRequest CreateScene: Creates a new scene in OBS.\nCategory scenes; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas to create the new scene in. Leave default to assume main canvas\n- sceneName (String): Name for the new scene\nResponse fields:\n- sceneUuid (String): UUID of the created scene","chars":389,"tokens_est":97,"sha256":"897a95e74b8b46e215867228199e1ae205544c478d864808e972f1db07b3fe4e"},{"id":"ws:request:RemoveScene","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","RemoveScene"],"url":"https://obs-rust.com/websocket/#RemoveScene","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a RemoveScene]\nRequest RemoveScene: Removes a scene from OBS.\nCategory scenes; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene to remove\n- sceneUuid (String, optional): UUID of the scene to remove","chars":379,"tokens_est":95,"sha256":"1dc196d49eec950c168fe6255ed74406e990fbdaf0013c061d81a9cf2eba059f"},{"id":"ws:request:SetSceneName","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","SetSceneName"],"url":"https://obs-rust.com/websocket/#SetSceneName","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a SetSceneName]\nRequest SetSceneName: Sets the name of a scene (rename).\nCategory scenes; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene to be renamed\n- sceneUuid (String, optional): UUID of the scene to be renamed\n- newSceneName (String): New name for the scene","chars":446,"tokens_est":112,"sha256":"160d3a1d142a6f2437c6c852f8a81bd6e9e6db11c1715e6e8e81a9188eb9bc4d"},{"id":"ws:request:GetSceneSceneTransitionOverride","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","GetSceneSceneTransitionOverride"],"url":"https://obs-rust.com/websocket/#GetSceneSceneTransitionOverride","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a GetSceneSceneTransitionOverride]\nRequest GetSceneSceneTransitionOverride: Gets the scene transition overridden for a scene.\n\nNote: A transition UUID response field is not currently able to be implemented as of 2024-1-18.\nCategory scenes; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene\n- sceneUuid (String, optional): UUID of the scene\nResponse fields:\n- transitionName (String): Name of the overridden scene transition, else `null`\n- transitionDuration (Number): Duration of the overridden scene transition, else `null`","chars":705,"tokens_est":176,"sha256":"8b1c2f1e04906f17c47500801832b005a02cbe81b05717e6cc9ccb32405665a4"},{"id":"ws:request:SetSceneSceneTransitionOverride","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","scenes","SetSceneSceneTransitionOverride"],"url":"https://obs-rust.com/websocket/#SetSceneSceneTransitionOverride","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a scenes \u203a SetSceneSceneTransitionOverride]\nRequest SetSceneSceneTransitionOverride: Sets the scene transition overridden for a scene.\nCategory scenes; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the scene is in, if using the sceneName field\n- sceneName (String, optional): Name of the scene\n- sceneUuid (String, optional): UUID of the scene\n- transitionName (String, optional): Name of the scene transition to use as override. Specify `null` to remove\n- transitionDuration (Number, optional): Duration to use for any overridden transition. Specify `null` to remove","chars":647,"tokens_est":162,"sha256":"35dba98cc9186c9833b314f7837f80b67220369910727ab0a94b9d715c7aec18"},{"id":"ws:request:GetSourceActive","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","sources","GetSourceActive"],"url":"https://obs-rust.com/websocket/#GetSourceActive","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a sources \u203a GetSourceActive]\nRequest GetSourceActive: Gets the active and show state of a source.\n\n**Compatible with inputs and scenes.**\nCategory sources; since 5.0.0; complexity 2/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using sourceName field\n- sourceName (String, optional): Name of the source to get the active state of\n- sourceUuid (String, optional): UUID of the source to get the active state of\nResponse fields:\n- videoActive (Boolean): Whether the source is showing in Program\n- videoShowing (Boolean): Whether the source is showing in the UI (Preview, Projector, Properties)","chars":665,"tokens_est":166,"sha256":"ac95123c5f16e8cc176cf386eea44e91b2455ef72535c67783451a27726bfed8"},{"id":"ws:request:GetSourceScreenshot","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","sources","GetSourceScreenshot"],"url":"https://obs-rust.com/websocket/#GetSourceScreenshot","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a sources \u203a GetSourceScreenshot]\nRequest GetSourceScreenshot: Gets a Base64-encoded screenshot of a source.\n\nThe `imageWidth` and `imageHeight` parameters are treated as \"scale to inner\", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.\nIf `imageWidth` and `imageHeight` are not specified, the compressed image will use the full resolution of the source.\n\n**Compatible with inputs and scenes.**\nCategory sources; since 5.0.0; complexity 4/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using sourceName field\n- sourceName (String, optional): Name of the source to take a screenshot of\n- sourceUuid (String, optional): UUID of the source to take a screenshot of\n- imageFormat (String): Image compression format to use. Use `GetVersion` to get compatible image formats\n- imageWidth (Number, optional): Width to scale the screenshot to\n- imageHeight (Number, optional): Height to scale the screenshot to\n- imageCompressionQuality (Number, optional): Compression quality to use. 0 for high compression, 100 for uncompressed. -1 to use \"default\" (whatever that means, idk)\nResponse fields:\n- imageData (String): Base64-encoded screenshot","chars":1254,"tokens_est":314,"sha256":"987cbb74168b6f2290669b3a24b928251db0409c584aa902ff5cb7c1b6a11434"},{"id":"ws:request:SaveSourceScreenshot","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","sources","SaveSourceScreenshot"],"url":"https://obs-rust.com/websocket/#SaveSourceScreenshot","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a sources \u203a SaveSourceScreenshot]\nRequest SaveSourceScreenshot: Saves a screenshot of a source to the filesystem.\n\nThe `imageWidth` and `imageHeight` parameters are treated as \"scale to inner\", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.\nIf `imageWidth` and `imageHeight` are not specified, the compressed image will use the full resolution of the source.\n\n**Compatible with inputs and scenes.**\nCategory sources; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using sourceName field\n- sourceName (String, optional): Name of the source to take a screenshot of\n- sourceUuid (String, optional): UUID of the source to take a screenshot of\n- imageFormat (String): Image compression format to use. Use `GetVersion` to get compatible image formats\n- imageFilePath (String): Path to save the screenshot file to. Eg. `C:\\Users\\user\\Desktop\\screenshot.png`\n- imageWidth (Number, optional): Width to scale the screenshot to\n- imageHeight (Number, optional): Height to scale the screenshot to\n- imageCompressionQuality (Number, optional): Compression quality to use. 0 for high compression, 100 for uncompressed. -1 to use \"default\" (whatever that means, idk)","chars":1301,"tokens_est":325,"sha256":"309ee661497b64299d2806d710a52441de045e339294dbf87d2df3461a2334c1"},{"id":"ws:request:GetStreamStatus","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","stream","GetStreamStatus"],"url":"https://obs-rust.com/websocket/#GetStreamStatus","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a stream \u203a GetStreamStatus]\nRequest GetStreamStatus: Gets the status of the stream output.\nCategory stream; since 5.0.0; complexity 2/5.\nResponse fields:\n- outputActive (Boolean): Whether the output is active\n- outputReconnecting (Boolean): Whether the output is currently reconnecting\n- outputTimecode (String): Current formatted timecode string for the output\n- outputDuration (Number): Current duration in milliseconds for the output\n- outputCongestion (Number): Congestion of the output\n- outputBytes (Number): Number of bytes sent by the output\n- outputSkippedFrames (Number): Number of frames skipped by the output's process\n- outputTotalFrames (Number): Total number of frames delivered by the output's process","chars":746,"tokens_est":186,"sha256":"f66a266213f7ec4e6337094f496d3a13c3b2b8415f0f22ecc3bcd75f32fce2e2"},{"id":"ws:request:ToggleStream","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","stream","ToggleStream"],"url":"https://obs-rust.com/websocket/#ToggleStream","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a stream \u203a ToggleStream]\nRequest ToggleStream: Toggles the status of the stream output.\nCategory stream; since 5.0.0; complexity 1/5.\nResponse fields:\n- outputActive (Boolean): New state of the stream output","chars":236,"tokens_est":59,"sha256":"c175f4ac2130cd14d5acabd080cbcb0c1d957f70ea78f9131ab0a0e51ccbecbc"},{"id":"ws:request:StartStream","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","stream","StartStream"],"url":"https://obs-rust.com/websocket/#StartStream","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a stream \u203a StartStream]\nRequest StartStream: Starts the stream output.\nCategory stream; since 5.0.0; complexity 1/5.","chars":145,"tokens_est":36,"sha256":"7401f5b76560b38342ab226a69a62436a687e9ed40c01fd0a8534f356e07de36"},{"id":"ws:request:StopStream","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","stream","StopStream"],"url":"https://obs-rust.com/websocket/#StopStream","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a stream \u203a StopStream]\nRequest StopStream: Stops the stream output.\nCategory stream; since 5.0.0; complexity 1/5.","chars":142,"tokens_est":36,"sha256":"6d8458157ab32fb41241ff52766ede67dfd2a26c170f2e647338742973e8b5c3"},{"id":"ws:request:SendStreamCaption","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","stream","SendStreamCaption"],"url":"https://obs-rust.com/websocket/#SendStreamCaption","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a stream \u203a SendStreamCaption]\nRequest SendStreamCaption: Sends CEA-608 caption text over the stream output.\nCategory stream; since 5.0.0; complexity 2/5.\nRequest fields:\n- captionText (String): Caption text","chars":235,"tokens_est":59,"sha256":"81eb049e541ea952c07a9c6384ab8e1c6bd4bc08ba5c907b6519b51dd8342e8d"},{"id":"ws:request:GetTransitionKindList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","GetTransitionKindList"],"url":"https://obs-rust.com/websocket/#GetTransitionKindList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a GetTransitionKindList]\nRequest GetTransitionKindList: Gets an array of all available transition kinds.\n\nSimilar to `GetInputKindList`\nCategory transitions; since 5.0.0; complexity 2/5.\nResponse fields:\n- transitionKinds (Array<String>): Array of transition kinds","chars":307,"tokens_est":77,"sha256":"b41013ba3f15986948038b709d4de4a8d1a10ff6e85d0ad2cf61272b60ccc90a"},{"id":"ws:request:GetSceneTransitionList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","GetSceneTransitionList"],"url":"https://obs-rust.com/websocket/#GetSceneTransitionList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a GetSceneTransitionList]\nRequest GetSceneTransitionList: Gets an array of all scene transitions in OBS.\nCategory transitions; since 5.0.0; complexity 3/5.\nResponse fields:\n- currentSceneTransitionName (String): Name of the current scene transition. Can be null\n- currentSceneTransitionUuid (String): UUID of the current scene transition. Can be null\n- currentSceneTransitionKind (String): Kind of the current scene transition. Can be null\n- transitions (Array<Object>): Array of transitions","chars":534,"tokens_est":134,"sha256":"76f91db381bb651e304306938f03a2127fe48bff0b867faddcd2eb3e64eff017"},{"id":"ws:request:GetCurrentSceneTransition","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","GetCurrentSceneTransition"],"url":"https://obs-rust.com/websocket/#GetCurrentSceneTransition","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a GetCurrentSceneTransition]\nRequest GetCurrentSceneTransition: Gets information about the current scene transition.\nCategory transitions; since 5.0.0; complexity 2/5.\nResponse fields:\n- transitionName (String): Name of the transition\n- transitionUuid (String): UUID of the transition\n- transitionKind (String): Kind of the transition\n- transitionFixed (Boolean): Whether the transition uses a fixed (unconfigurable) duration\n- transitionDuration (Number): Configured transition duration in milliseconds. `null` if transition is fixed\n- transitionConfigurable (Boolean): Whether the transition supports being configured\n- transitionSettings (Object): Object of settings for the transition. `null` if transition is not configurable","chars":773,"tokens_est":193,"sha256":"1ded8c3180f41e3d50b71111b2aaf68b6eba78d7d5849d13b08e6d73f3e770ef"},{"id":"ws:request:SetCurrentSceneTransition","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","SetCurrentSceneTransition"],"url":"https://obs-rust.com/websocket/#SetCurrentSceneTransition","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a SetCurrentSceneTransition]\nRequest SetCurrentSceneTransition: Sets the current scene transition.\n\nSmall note: While the namespace of scene transitions is generally unique, that uniqueness is not a guarantee as it is with other resources like inputs.\nCategory transitions; since 5.0.0; complexity 2/5.\nRequest fields:\n- transitionName (String): Name of the transition to make active","chars":426,"tokens_est":106,"sha256":"7eeb1b419876fd3e3e60e54f9c6a642e6a4fffd53946ba8f97a6ddecebda15f7"},{"id":"ws:request:SetCurrentSceneTransitionDuration","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","SetCurrentSceneTransitionDuration"],"url":"https://obs-rust.com/websocket/#SetCurrentSceneTransitionDuration","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a SetCurrentSceneTransitionDuration]\nRequest SetCurrentSceneTransitionDuration: Sets the duration of the current scene transition, if it is not fixed.\nCategory transitions; since 5.0.0; complexity 2/5.\nRequest fields:\n- transitionDuration (Number): Duration in milliseconds","chars":316,"tokens_est":79,"sha256":"b5522de18717584bac318c216ae809245867f7dfd322aaba13654457306c0bfd"},{"id":"ws:request:SetCurrentSceneTransitionSettings","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","SetCurrentSceneTransitionSettings"],"url":"https://obs-rust.com/websocket/#SetCurrentSceneTransitionSettings","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a SetCurrentSceneTransitionSettings]\nRequest SetCurrentSceneTransitionSettings: Sets the settings of the current scene transition.\nCategory transitions; since 5.0.0; complexity 3/5.\nRequest fields:\n- transitionSettings (Object): Settings object to apply to the transition. Can be `{}`\n- overlay (Boolean, optional): Whether to overlay over the current settings or replace them","chars":419,"tokens_est":105,"sha256":"773266b34e99247d57f1530568c1f415297e9329eff96ee013fafb156c49770c"},{"id":"ws:request:GetCurrentSceneTransitionCursor","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","GetCurrentSceneTransitionCursor"],"url":"https://obs-rust.com/websocket/#GetCurrentSceneTransitionCursor","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a GetCurrentSceneTransitionCursor]\nRequest GetCurrentSceneTransitionCursor: Gets the cursor position of the current scene transition.\n\nNote: `transitionCursor` will return 1.0 when the transition is inactive.\nCategory transitions; since 5.0.0; complexity 2/5.\nResponse fields:\n- transitionCursor (Number): Cursor position, between 0.0 and 1.0","chars":385,"tokens_est":96,"sha256":"fe3feabf32c5715d095f8165ba55b983e08f92b671ec7b89464ea4249abe6dc5"},{"id":"ws:request:TriggerStudioModeTransition","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","TriggerStudioModeTransition"],"url":"https://obs-rust.com/websocket/#TriggerStudioModeTransition","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a TriggerStudioModeTransition]\nRequest TriggerStudioModeTransition: Triggers the current scene transition. Same functionality as the `Transition` button in studio mode.\nCategory transitions; since 5.0.0; complexity 1/5.","chars":262,"tokens_est":66,"sha256":"ccca049708ebaca654912528c62714610dfed1293d96ee5f628e83cba3c460cd"},{"id":"ws:request:SetTBarPosition","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","transitions","SetTBarPosition"],"url":"https://obs-rust.com/websocket/#SetTBarPosition","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a transitions \u203a SetTBarPosition]\nRequest SetTBarPosition: Sets the position of the TBar.\n\n**Very important note**: This will be deprecated and replaced in a future version of obs-websocket.\nCategory transitions; since 5.0.0; complexity 3/5.\nRequest fields:\n- position (Number): New position\n- release (Boolean, optional): Whether to release the TBar. Only set `false` if you know that you will be sending another position update","chars":457,"tokens_est":114,"sha256":"69adf856b978d5639cf26afa117acbf376c203b84e338f7dfc889adb4cd85f4d"},{"id":"ws:request:GetStudioModeEnabled","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","GetStudioModeEnabled"],"url":"https://obs-rust.com/websocket/#GetStudioModeEnabled","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a GetStudioModeEnabled]\nRequest GetStudioModeEnabled: Gets whether studio is enabled.\nCategory ui; since 5.0.0; complexity 1/5.\nResponse fields:\n- studioModeEnabled (Boolean): Whether studio mode is enabled","chars":240,"tokens_est":60,"sha256":"b407ab378f4a1bc7665b6bf6bbf5e39cafe3bbb5f082b77865b3862c7575d7bb"},{"id":"ws:request:SetStudioModeEnabled","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","SetStudioModeEnabled"],"url":"https://obs-rust.com/websocket/#SetStudioModeEnabled","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a SetStudioModeEnabled]\nRequest SetStudioModeEnabled: Enables or disables studio mode\nCategory ui; since 5.0.0; complexity 1/5.\nRequest fields:\n- studioModeEnabled (Boolean): True == Enabled, False == Disabled","chars":243,"tokens_est":61,"sha256":"9a9d6f978b85ac6ef4aa58ed27bfd5d5ba08a016b4fa1e976f3533d850cbee6a"},{"id":"ws:request:OpenInputPropertiesDialog","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","OpenInputPropertiesDialog"],"url":"https://obs-rust.com/websocket/#OpenInputPropertiesDialog","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a OpenInputPropertiesDialog]\nRequest OpenInputPropertiesDialog: Opens the properties dialog of an input.\nCategory ui; since 5.0.0; complexity 1/5.\nRequest fields:\n- inputName (String, optional): Name of the input to open the dialog of\n- inputUuid (String, optional): UUID of the input to open the dialog of","chars":340,"tokens_est":85,"sha256":"1b9fd9ccd736c235a6a683f0e56f6e409268fc61a8507f28a364fe217ee79a1f"},{"id":"ws:request:OpenInputFiltersDialog","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","OpenInputFiltersDialog"],"url":"https://obs-rust.com/websocket/#OpenInputFiltersDialog","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a OpenInputFiltersDialog]\nRequest OpenInputFiltersDialog: Opens the filters dialog of an input.\nCategory ui; since 5.0.0; complexity 1/5.\nRequest fields:\n- inputName (String, optional): Name of the input to open the dialog of\n- inputUuid (String, optional): UUID of the input to open the dialog of","chars":331,"tokens_est":83,"sha256":"b7ca335975864f767bdbd8ec7850acef180f0dd68a34ad582ae2ef5de9b46706"},{"id":"ws:request:OpenInputInteractDialog","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","OpenInputInteractDialog"],"url":"https://obs-rust.com/websocket/#OpenInputInteractDialog","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a OpenInputInteractDialog]\nRequest OpenInputInteractDialog: Opens the interact dialog of an input.\nCategory ui; since 5.0.0; complexity 1/5.\nRequest fields:\n- inputName (String, optional): Name of the input to open the dialog of\n- inputUuid (String, optional): UUID of the input to open the dialog of","chars":334,"tokens_est":84,"sha256":"41394b79d63465867c4bae5a03d90c5b9574283760077cc33be1aa09fc20a873"},{"id":"ws:request:GetMonitorList","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","GetMonitorList"],"url":"https://obs-rust.com/websocket/#GetMonitorList","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a GetMonitorList]\nRequest GetMonitorList: Gets a list of connected monitors and information about them.\nCategory ui; since 5.0.0; complexity 2/5.\nResponse fields:\n- monitors (Array<Object>): a list of detected monitors with some information","chars":274,"tokens_est":68,"sha256":"06aae6ece15585a173f751f51e619e6120f0f69bda266ec61bffc413508f7720"},{"id":"ws:request:OpenVideoMixProjector","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","OpenVideoMixProjector"],"url":"https://obs-rust.com/websocket/#OpenVideoMixProjector","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a OpenVideoMixProjector]\nRequest OpenVideoMixProjector: Opens a projector for a specific output video mix.\n\nMix types:\n\n- `OBS_WEBSOCKET_VIDEO_MIX_TYPE_PREVIEW`\n- `OBS_WEBSOCKET_VIDEO_MIX_TYPE_PROGRAM`\n- `OBS_WEBSOCKET_VIDEO_MIX_TYPE_MULTIVIEW`\n\nNote: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.\nCategory ui; since 5.0.0; complexity 3/5.\nRequest fields:\n- videoMixType (String): Type of mix to open\n- monitorIndex (Number, optional): Monitor index, use `GetMonitorList` to obtain index\n- projectorGeometry (String, optional): Size/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with `monitorIndex`","chars":748,"tokens_est":187,"sha256":"a726972b6edcb0862db98b115a6ac75b59726b585379bd3c1345875b9504a2ae"},{"id":"ws:request:OpenSourceProjector","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-request","breadcrumb":["obs-websocket v5","Requests","ui","OpenSourceProjector"],"url":"https://obs-rust.com/websocket/#OpenSourceProjector","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Requests \u203a ui \u203a OpenSourceProjector]\nRequest OpenSourceProjector: Opens a projector for a source.\n\nNote: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.\nCategory ui; since 5.0.0; complexity 3/5.\nRequest fields:\n- canvasUuid (String, optional): UUID of the canvas the source is in, if using the sourceName field\n- sourceName (String, optional): Name of the source to open a projector for\n- sourceUuid (String, optional): UUID of the source to open a projector for\n- monitorIndex (Number, optional): Monitor index, use `GetMonitorList` to obtain index\n- projectorGeometry (String, optional): Size/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with `monitorIndex`","chars":794,"tokens_est":198,"sha256":"f9ab91008b14adf8882f7e1b05297f052e4fa7119aaa431b86a8e3cd1bac74ac"},{"id":"ws:event:CanvasCreated","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","canvases","CanvasCreated"],"url":"https://obs-rust.com/websocket/#CanvasCreated","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a canvases \u203a CanvasCreated]\nEvent CanvasCreated: A new canvas has been created.\nCategory canvases; subscription Canvases; since 5.7.0.\n- canvasName (String): Name of the new canvas\n- canvasUuid (String): UUID of the new canvas","chars":253,"tokens_est":63,"sha256":"6c37268a13e30a69fb0e61740d515394e7735a4af8d5cbda50035d7d6495b26b"},{"id":"ws:event:CanvasRemoved","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","canvases","CanvasRemoved"],"url":"https://obs-rust.com/websocket/#CanvasRemoved","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a canvases \u203a CanvasRemoved]\nEvent CanvasRemoved: A canvas has been removed.\nCategory canvases; subscription Canvases; since 5.7.0.\n- canvasName (String): Name of the removed canvas\n- canvasUuid (String): UUID of the removed canvas","chars":257,"tokens_est":64,"sha256":"af6eff579dce4309316ebab30da7e69342d773a8ccdcdfda39122f2c653d2ad4"},{"id":"ws:event:CanvasNameChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","canvases","CanvasNameChanged"],"url":"https://obs-rust.com/websocket/#CanvasNameChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a canvases \u203a CanvasNameChanged]\nEvent CanvasNameChanged: The name of a canvas has changed.\nCategory canvases; subscription Canvases; since 5.7.0.\n- canvasUuid (String): UUID of the canvas\n- oldCanvasName (String): Old name of the canvas\n- canvasName (String): New name of the canvas","chars":309,"tokens_est":77,"sha256":"a552af19334821aa2e54b76d3cfa48435e609a19c8e8c6e23da0af5514d48b88"},{"id":"ws:event:CurrentSceneCollectionChanging","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","config","CurrentSceneCollectionChanging"],"url":"https://obs-rust.com/websocket/#CurrentSceneCollectionChanging","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a config \u203a CurrentSceneCollectionChanging]\nEvent CurrentSceneCollectionChanging: The current scene collection has begun changing.\n\nNote: We recommend using this event to trigger a pause of all polling requests, as performing any requests during a\nscene collection change is considered undefined behavior and can cause crashes!\nCategory config; subscription Config; since 5.0.0.\n- sceneCollectionName (String): Name of the current scene collection","chars":473,"tokens_est":118,"sha256":"8fede6619e78cabe5c648b7fc3a84d17f140689f3b7f458cc9dff1a86ee7ee42"},{"id":"ws:event:CurrentSceneCollectionChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","config","CurrentSceneCollectionChanged"],"url":"https://obs-rust.com/websocket/#CurrentSceneCollectionChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a config \u203a CurrentSceneCollectionChanged]\nEvent CurrentSceneCollectionChanged: The current scene collection has changed.\n\nNote: If polling has been paused during `CurrentSceneCollectionChanging`, this is the que to restart polling.\nCategory config; subscription Config; since 5.0.0.\n- sceneCollectionName (String): Name of the new scene collection","chars":374,"tokens_est":94,"sha256":"6399a7ec5a48521eb2931196eabedcd892eaf762bda97fa51f61a46d9074de47"},{"id":"ws:event:SceneCollectionListChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","config","SceneCollectionListChanged"],"url":"https://obs-rust.com/websocket/#SceneCollectionListChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a config \u203a SceneCollectionListChanged]\nEvent SceneCollectionListChanged: The scene collection list has changed.\nCategory config; subscription Config; since 5.0.0.\n- sceneCollections (Array<String>): Updated list of scene collections","chars":259,"tokens_est":65,"sha256":"873416794c5cf6c3cb842cb0cfd501a260bb9f0603c665b19307455ab085bd31"},{"id":"ws:event:CurrentProfileChanging","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","config","CurrentProfileChanging"],"url":"https://obs-rust.com/websocket/#CurrentProfileChanging","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a config \u203a CurrentProfileChanging]\nEvent CurrentProfileChanging: The current profile has begun changing.\nCategory config; subscription Config; since 5.0.0.\n- profileName (String): Name of the current profile","chars":234,"tokens_est":58,"sha256":"4b843ea234a59a6054ff71bb03a88bdc0b783d96871f49af4d3704d1f309fb75"},{"id":"ws:event:CurrentProfileChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","config","CurrentProfileChanged"],"url":"https://obs-rust.com/websocket/#CurrentProfileChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a config \u203a CurrentProfileChanged]\nEvent CurrentProfileChanged: The current profile has changed.\nCategory config; subscription Config; since 5.0.0.\n- profileName (String): Name of the new profile","chars":221,"tokens_est":55,"sha256":"c80c47a3323f05a0d24b3a4b14ae5dfad2ff74c4b2291e89bc2e3049ba15ccbd"},{"id":"ws:event:ProfileListChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","config","ProfileListChanged"],"url":"https://obs-rust.com/websocket/#ProfileListChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a config \u203a ProfileListChanged]\nEvent ProfileListChanged: The profile list has changed.\nCategory config; subscription Config; since 5.0.0.\n- profiles (Array<String>): Updated list of profiles","chars":217,"tokens_est":54,"sha256":"9528a6a4256e408716487390d7dc15b60138dad9938bb285a5b58d33291ef56c"},{"id":"ws:event:SourceFilterListReindexed","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","filters","SourceFilterListReindexed"],"url":"https://obs-rust.com/websocket/#SourceFilterListReindexed","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a filters \u203a SourceFilterListReindexed]\nEvent SourceFilterListReindexed: A source's filter list has been reindexed.\nCategory filters; subscription Filters; since 5.0.0.\n- sourceName (String): Name of the source\n- filters (Array<Object>): Array of filter objects","chars":287,"tokens_est":72,"sha256":"3f34a5ddd4ed2e2b19ced77ba51e1cb79ef6ac98f4e30af5e92cc8d25031d54e"},{"id":"ws:event:SourceFilterCreated","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","filters","SourceFilterCreated"],"url":"https://obs-rust.com/websocket/#SourceFilterCreated","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a filters \u203a SourceFilterCreated]\nEvent SourceFilterCreated: A filter has been added to a source.\nCategory filters; subscription Filters; since 5.0.0.\n- sourceName (String): Name of the source the filter was added to\n- filterName (String): Name of the filter\n- filterKind (String): The kind of the filter\n- filterIndex (Number): Index position of the filter\n- filterSettings (Object): The settings configured to the filter when it was created\n- defaultFilterSettings (Object): The default settings for the filter","chars":538,"tokens_est":134,"sha256":"7d29b8fd06af18031c8df93182852a9538f4679f605620fcb2ed8bda06100502"},{"id":"ws:event:SourceFilterRemoved","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","filters","SourceFilterRemoved"],"url":"https://obs-rust.com/websocket/#SourceFilterRemoved","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a filters \u203a SourceFilterRemoved]\nEvent SourceFilterRemoved: A filter has been removed from a source.\nCategory filters; subscription Filters; since 5.0.0.\n- sourceName (String): Name of the source the filter was on\n- filterName (String): Name of the filter","chars":282,"tokens_est":70,"sha256":"467a03b5b6a4803750ebf49e32f70601f5c4068b337ec7ac453c87c484c0d04e"},{"id":"ws:event:SourceFilterNameChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","filters","SourceFilterNameChanged"],"url":"https://obs-rust.com/websocket/#SourceFilterNameChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a filters \u203a SourceFilterNameChanged]\nEvent SourceFilterNameChanged: The name of a source filter has changed.\nCategory filters; subscription Filters; since 5.0.0.\n- sourceName (String): The source the filter is on\n- oldFilterName (String): Old name of the filter\n- filterName (String): New name of the filter","chars":334,"tokens_est":84,"sha256":"0673652ca02bf0c17bd396aabdbfadaad281a5cc0418be279d1cd18ce297e078"},{"id":"ws:event:SourceFilterSettingsChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","filters","SourceFilterSettingsChanged"],"url":"https://obs-rust.com/websocket/#SourceFilterSettingsChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a filters \u203a SourceFilterSettingsChanged]\nEvent SourceFilterSettingsChanged: An source filter's settings have changed (been updated).\nCategory filters; subscription Filters; since 5.4.0.\n- sourceName (String): Name of the source the filter is on\n- filterName (String): Name of the filter\n- filterSettings (Object): New settings object of the filter","chars":374,"tokens_est":94,"sha256":"6e075cb77e041d8909d810b2f4b0465d5b22cddd2ab8ee41b948dbc2307b64e9"},{"id":"ws:event:SourceFilterEnableStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","filters","SourceFilterEnableStateChanged"],"url":"https://obs-rust.com/websocket/#SourceFilterEnableStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a filters \u203a SourceFilterEnableStateChanged]\nEvent SourceFilterEnableStateChanged: A source filter's enable state has changed.\nCategory filters; subscription Filters; since 5.0.0.\n- sourceName (String): Name of the source the filter is on\n- filterName (String): Name of the filter\n- filterEnabled (Boolean): Whether the filter is enabled","chars":363,"tokens_est":91,"sha256":"c202c4901209959d741320d3d3792f11a57287de2d7da236726a525ed803f12b"},{"id":"ws:event:ExitStarted","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","general","ExitStarted"],"url":"https://obs-rust.com/websocket/#ExitStarted","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a general \u203a ExitStarted]\nEvent ExitStarted: OBS has begun the shutdown process.\nCategory general; subscription General; since 5.0.0.","chars":159,"tokens_est":40,"sha256":"52439502ea43dba3548eb4e593dc73149cce91122069bc19ef8652cc664bc1ec"},{"id":"ws:event:InputCreated","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputCreated"],"url":"https://obs-rust.com/websocket/#InputCreated","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputCreated]\nEvent InputCreated: An input has been created.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- inputKind (String): The kind of the input\n- unversionedInputKind (String): The unversioned kind of input (aka no `_v2` stuff)\n- inputKindCaps (Number): Bitflag value for the caps that an input supports. See obs_source_info.output_flags in the libobs docs\n- inputSettings (Object): The settings configured to the input when it was created\n- defaultInputSettings (Object): The default settings for the input","chars":637,"tokens_est":159,"sha256":"db15ccf10c33616763f5012362199e5ae9b6f3046d31dba4470a2b82f71f6e11"},{"id":"ws:event:InputRemoved","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputRemoved"],"url":"https://obs-rust.com/websocket/#InputRemoved","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputRemoved]\nEvent InputRemoved: An input has been removed.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input","chars":229,"tokens_est":57,"sha256":"e95ae214b4105de8f3ef610222b77aeb660a07e269479a423623e53009a6d4f9"},{"id":"ws:event:InputNameChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputNameChanged"],"url":"https://obs-rust.com/websocket/#InputNameChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputNameChanged]\nEvent InputNameChanged: The name of an input has changed.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputUuid (String): UUID of the input\n- oldInputName (String): Old name of the input\n- inputName (String): New name of the input","chars":295,"tokens_est":74,"sha256":"2ac7d7dcf9064b8795f82e78cc5e3e366c43595d2b74bebc86c156d1e6549a6f"},{"id":"ws:event:InputSettingsChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputSettingsChanged"],"url":"https://obs-rust.com/websocket/#InputSettingsChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputSettingsChanged]\nEvent InputSettingsChanged: An input's settings have changed (been updated).\n\nNote: On some inputs, changing values in the properties dialog will cause an immediate update. Pressing the \"Cancel\" button will revert the settings, resulting in another event being fired.\nCategory inputs; subscription Inputs; since 5.4.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- inputSettings (Object): New settings object of the input","chars":517,"tokens_est":129,"sha256":"b052edf3fc71f27ad9a6e9084eb236d85e7f7ed3ee846193d52af2f5562b6d55"},{"id":"ws:event:InputActiveStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputActiveStateChanged"],"url":"https://obs-rust.com/websocket/#InputActiveStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputActiveStateChanged]\nEvent InputActiveStateChanged: An input's active state has changed.\n\nWhen an input is active, it means it's being shown by the program feed.\nCategory inputs; subscription InputActiveStateChanged; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- videoActive (Boolean): Whether the input is active","chars":404,"tokens_est":101,"sha256":"e810a67f18c57a4a6200196a9b1211a19cb8f93e2fe493bfb44511fe2583ee0b"},{"id":"ws:event:InputShowStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputShowStateChanged"],"url":"https://obs-rust.com/websocket/#InputShowStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputShowStateChanged]\nEvent InputShowStateChanged: An input's show state has changed.\n\nWhen an input is showing, it means it's being shown by the preview or a dialog.\nCategory inputs; subscription InputShowStateChanged; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- videoShowing (Boolean): Whether the input is showing","chars":406,"tokens_est":102,"sha256":"25778ecc0dd7727ac9600a6f98a7040fd623b2c63cb0499ab57fa9641bdcc49e"},{"id":"ws:event:InputMuteStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputMuteStateChanged"],"url":"https://obs-rust.com/websocket/#InputMuteStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputMuteStateChanged]\nEvent InputMuteStateChanged: An input's mute state has changed.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- inputMuted (Boolean): Whether the input is muted","chars":306,"tokens_est":76,"sha256":"f6d261ded8077e3e031c53df2ea5cd7feeee86fb89a38632adbb0fd7fe94a97c"},{"id":"ws:event:InputVolumeChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputVolumeChanged"],"url":"https://obs-rust.com/websocket/#InputVolumeChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputVolumeChanged]\nEvent InputVolumeChanged: An input's volume level has changed.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- inputVolumeMul (Number): New volume level multiplier\n- inputVolumeDb (Number): New volume level in dB","chars":355,"tokens_est":89,"sha256":"f17455d39b13a83e997e851587704c929b8a82267199d7909493d3ebbf713d9a"},{"id":"ws:event:InputAudioBalanceChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputAudioBalanceChanged"],"url":"https://obs-rust.com/websocket/#InputAudioBalanceChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputAudioBalanceChanged]\nEvent InputAudioBalanceChanged: The audio balance value of an input has changed.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- inputAudioBalance (Number): New audio balance value of the input","chars":342,"tokens_est":86,"sha256":"671f696f2a19e752c639c2ca3f503a97d834617315c17c2b5a87130f5d6b7d79"},{"id":"ws:event:InputAudioSyncOffsetChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputAudioSyncOffsetChanged"],"url":"https://obs-rust.com/websocket/#InputAudioSyncOffsetChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputAudioSyncOffsetChanged]\nEvent InputAudioSyncOffsetChanged: The sync offset of an input has changed.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- inputAudioSyncOffset (Number): New sync offset in milliseconds","chars":338,"tokens_est":84,"sha256":"99afe9b22501cf0d9c6dde39a80206da2cbc3b8a14a764f38279b773c7852202"},{"id":"ws:event:InputAudioTracksChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputAudioTracksChanged"],"url":"https://obs-rust.com/websocket/#InputAudioTracksChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputAudioTracksChanged]\nEvent InputAudioTracksChanged: The audio tracks of an input have changed.\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- inputAudioTracks (Object): Object of audio tracks along with their associated enable states","chars":361,"tokens_est":90,"sha256":"9d5f6f4272f371a722d3a64bd7861d30ab8601d06102c0b7bd78869ef6dc9a25"},{"id":"ws:event:InputAudioMonitorTypeChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputAudioMonitorTypeChanged"],"url":"https://obs-rust.com/websocket/#InputAudioMonitorTypeChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputAudioMonitorTypeChanged]\nEvent InputAudioMonitorTypeChanged: The monitor type of an input has changed.\n\nAvailable types are:\n\n- `OBS_MONITORING_TYPE_NONE`\n- `OBS_MONITORING_TYPE_MONITOR_ONLY`\n- `OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT`\nCategory inputs; subscription Inputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- monitorType (String): New monitor type of the input","chars":462,"tokens_est":116,"sha256":"1536610f2060b748db9579dbf64cbae337f0541e3910cc7e14fb943f96b6f13b"},{"id":"ws:event:InputVolumeMeters","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","inputs","InputVolumeMeters"],"url":"https://obs-rust.com/websocket/#InputVolumeMeters","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a inputs \u203a InputVolumeMeters]\nEvent InputVolumeMeters: A high-volume event providing volume levels of all active inputs every 50 milliseconds.\nCategory inputs; subscription InputVolumeMeters; since 5.0.0.\n- inputs (Array<Object>): Array of active inputs with their associated volume levels","chars":316,"tokens_est":79,"sha256":"ac940e398a197535df3669058af0295aabec4ad4774632000dc704e60d11639b"},{"id":"ws:event:MediaInputPlaybackStarted","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","media inputs","MediaInputPlaybackStarted"],"url":"https://obs-rust.com/websocket/#MediaInputPlaybackStarted","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a media inputs \u203a MediaInputPlaybackStarted]\nEvent MediaInputPlaybackStarted: A media input has started playing.\nCategory media inputs; subscription MediaInputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input","chars":280,"tokens_est":70,"sha256":"5d414f55c35aecb898e1f9913d4e52bd0fae9fa7f85a39ef060cd6412ae71304"},{"id":"ws:event:MediaInputPlaybackEnded","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","media inputs","MediaInputPlaybackEnded"],"url":"https://obs-rust.com/websocket/#MediaInputPlaybackEnded","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a media inputs \u203a MediaInputPlaybackEnded]\nEvent MediaInputPlaybackEnded: A media input has finished playing.\nCategory media inputs; subscription MediaInputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input","chars":277,"tokens_est":69,"sha256":"4913ed7d931dabe89b9be57ab37ff3237e219659772f558d1145d8dbf9d038ce"},{"id":"ws:event:MediaInputActionTriggered","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","media inputs","MediaInputActionTriggered"],"url":"https://obs-rust.com/websocket/#MediaInputActionTriggered","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a media inputs \u203a MediaInputActionTriggered]\nEvent MediaInputActionTriggered: An action has been performed on an input.\nCategory media inputs; subscription MediaInputs; since 5.0.0.\n- inputName (String): Name of the input\n- inputUuid (String): UUID of the input\n- mediaAction (String): Action performed on the input. See `ObsMediaInputAction` enum","chars":373,"tokens_est":93,"sha256":"1dd2e63f90b7c9eef8e26aa69c419c4c3500ae3f7ea74ec4d9a8c7bbacf5ec7b"},{"id":"ws:event:StreamStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","outputs","StreamStateChanged"],"url":"https://obs-rust.com/websocket/#StreamStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a outputs \u203a StreamStateChanged]\nEvent StreamStateChanged: The state of the stream output has changed.\nCategory outputs; subscription Outputs; since 5.0.0.\n- outputActive (Boolean): Whether the output is active\n- outputState (String): The specific state of the output","chars":293,"tokens_est":73,"sha256":"b08a0e681354608e215a30854e061b5d23b6580803981b999b91f14066816ef4"},{"id":"ws:event:RecordStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","outputs","RecordStateChanged"],"url":"https://obs-rust.com/websocket/#RecordStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a outputs \u203a RecordStateChanged]\nEvent RecordStateChanged: The state of the record output has changed.\nCategory outputs; subscription Outputs; since 5.0.0.\n- outputActive (Boolean): Whether the output is active\n- outputState (String): The specific state of the output\n- outputPath (String): File name for the saved recording, if record stopped. `null` otherwise","chars":387,"tokens_est":97,"sha256":"c49fa5d95f49c48258bd3e82edfc8ce41d21d83e982fd2ca358479e569b9d656"},{"id":"ws:event:RecordFileChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","outputs","RecordFileChanged"],"url":"https://obs-rust.com/websocket/#RecordFileChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a outputs \u203a RecordFileChanged]\nEvent RecordFileChanged: The record output has started writing to a new file. For example, when a file split happens.\nCategory outputs; subscription Outputs; since 5.5.0.\n- newOutputPath (String): File name that the output has begun writing to","chars":301,"tokens_est":75,"sha256":"215ca5a2ce93f84bcb4c40aae6c822901446a1e51d5892af13bfff4d4e57265b"},{"id":"ws:event:ReplayBufferStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","outputs","ReplayBufferStateChanged"],"url":"https://obs-rust.com/websocket/#ReplayBufferStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a outputs \u203a ReplayBufferStateChanged]\nEvent ReplayBufferStateChanged: The state of the replay buffer output has changed.\nCategory outputs; subscription Outputs; since 5.0.0.\n- outputActive (Boolean): Whether the output is active\n- outputState (String): The specific state of the output","chars":312,"tokens_est":78,"sha256":"786e54f97f25630ff62de6e3751f40af6c625fe42747bc486eb2bd3e73765be1"},{"id":"ws:event:VirtualcamStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","outputs","VirtualcamStateChanged"],"url":"https://obs-rust.com/websocket/#VirtualcamStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a outputs \u203a VirtualcamStateChanged]\nEvent VirtualcamStateChanged: The state of the virtualcam output has changed.\nCategory outputs; subscription Outputs; since 5.0.0.\n- outputActive (Boolean): Whether the output is active\n- outputState (String): The specific state of the output","chars":305,"tokens_est":76,"sha256":"befcf655e1b7d041611b6e7be55809a65467cf3cc33f62d13b98d02b3f55d311"},{"id":"ws:event:ReplayBufferSaved","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","outputs","ReplayBufferSaved"],"url":"https://obs-rust.com/websocket/#ReplayBufferSaved","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a outputs \u203a ReplayBufferSaved]\nEvent ReplayBufferSaved: The replay buffer has been saved.\nCategory outputs; subscription Outputs; since 5.0.0.\n- savedReplayPath (String): Path of the saved replay file","chars":227,"tokens_est":57,"sha256":"268f69343d6e5dc7fea2e019af78fba25c73a7bf0fbc98e20c679723b4ec227d"},{"id":"ws:event:SceneItemCreated","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scene items","SceneItemCreated"],"url":"https://obs-rust.com/websocket/#SceneItemCreated","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scene items \u203a SceneItemCreated]\nEvent SceneItemCreated: A scene item has been created.\nCategory scene items; subscription SceneItems; since 5.0.0.\n- sceneName (String): Name of the scene the item was added to\n- sceneUuid (String): UUID of the scene the item was added to\n- sourceName (String): Name of the underlying source (input/scene)\n- sourceUuid (String): UUID of the underlying source (input/scene)\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemIndex (Number): Index position of the item","chars":540,"tokens_est":135,"sha256":"cdb8a926537bd04fe9bbd8556d7b4b44cdaade712c7e5de6348b8743db3ab9e7"},{"id":"ws:event:SceneItemRemoved","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scene items","SceneItemRemoved"],"url":"https://obs-rust.com/websocket/#SceneItemRemoved","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scene items \u203a SceneItemRemoved]\nEvent SceneItemRemoved: A scene item has been removed.\n\nThis event is not emitted when the scene the item is in is removed.\nCategory scene items; subscription SceneItems; since 5.0.0.\n- sceneName (String): Name of the scene the item was removed from\n- sceneUuid (String): UUID of the scene the item was removed from\n- sourceName (String): Name of the underlying source (input/scene)\n- sourceUuid (String): UUID of the underlying source (input/scene)\n- sceneItemId (Number): Numeric ID of the scene item","chars":563,"tokens_est":141,"sha256":"77c9f6d5ea091835e623271b60e7455d5e65f7ea0e04686b405799ff5286980b"},{"id":"ws:event:SceneItemListReindexed","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scene items","SceneItemListReindexed"],"url":"https://obs-rust.com/websocket/#SceneItemListReindexed","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scene items \u203a SceneItemListReindexed]\nEvent SceneItemListReindexed: A scene's item list has been reindexed.\nCategory scene items; subscription SceneItems; since 5.0.0.\n- sceneName (String): Name of the scene\n- sceneUuid (String): UUID of the scene\n- sceneItems (Array<Object>): Array of scene item objects","chars":334,"tokens_est":84,"sha256":"608980cada34c78e57c015c38c493fd8ff242b71a97488a85430a0a8a3f7dbaf"},{"id":"ws:event:SceneItemEnableStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scene items","SceneItemEnableStateChanged"],"url":"https://obs-rust.com/websocket/#SceneItemEnableStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scene items \u203a SceneItemEnableStateChanged]\nEvent SceneItemEnableStateChanged: A scene item's enable state has changed.\nCategory scene items; subscription SceneItems; since 5.0.0.\n- sceneName (String): Name of the scene the item is in\n- sceneUuid (String): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemEnabled (Boolean): Whether the scene item is enabled (visible)","chars":444,"tokens_est":111,"sha256":"5e0b7abff4b637aed78809b48fc036b8718adbe7b99defeee8b0ccaa19e6f767"},{"id":"ws:event:SceneItemLockStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scene items","SceneItemLockStateChanged"],"url":"https://obs-rust.com/websocket/#SceneItemLockStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scene items \u203a SceneItemLockStateChanged]\nEvent SceneItemLockStateChanged: A scene item's lock state has changed.\nCategory scene items; subscription SceneItems; since 5.0.0.\n- sceneName (String): Name of the scene the item is in\n- sceneUuid (String): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemLocked (Boolean): Whether the scene item is locked","chars":426,"tokens_est":106,"sha256":"2ba3ba0c2d7a6bccf4390037b96715428db7faa78e9a5596b508acde47d9da0d"},{"id":"ws:event:SceneItemSelected","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scene items","SceneItemSelected"],"url":"https://obs-rust.com/websocket/#SceneItemSelected","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scene items \u203a SceneItemSelected]\nEvent SceneItemSelected: A scene item has been selected in the Ui.\nCategory scene items; subscription SceneItems; since 5.0.0.\n- sceneName (String): Name of the scene the item is in\n- sceneUuid (String): UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item","chars":351,"tokens_est":88,"sha256":"7b55aa88048571b1b0e59e9bdb5c0ccd9b8be4e40536a27884c94fb0db67e400"},{"id":"ws:event:SceneItemTransformChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scene items","SceneItemTransformChanged"],"url":"https://obs-rust.com/websocket/#SceneItemTransformChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scene items \u203a SceneItemTransformChanged]\nEvent SceneItemTransformChanged: The transform/crop of a scene item has changed.\nCategory scene items; subscription SceneItemTransformChanged; since 5.0.0.\n- sceneName (String): The name of the scene the item is in\n- sceneUuid (String): The UUID of the scene the item is in\n- sceneItemId (Number): Numeric ID of the scene item\n- sceneItemTransform (Object): New transform/crop info of the scene item","chars":469,"tokens_est":117,"sha256":"a28bd33a3a0b9d4994fa1982434966598d4eb3171073bb6386bc77e8ef874138"},{"id":"ws:event:SceneCreated","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scenes","SceneCreated"],"url":"https://obs-rust.com/websocket/#SceneCreated","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scenes \u203a SceneCreated]\nEvent SceneCreated: A new scene has been created.\nCategory scenes; subscription Scenes; since 5.0.0.\n- sceneName (String): Name of the new scene\n- sceneUuid (String): UUID of the new scene\n- isGroup (Boolean): Whether the new scene is a group","chars":294,"tokens_est":74,"sha256":"faf01a5f1deefe0bd9e4f21c7289e4fcfee3f037b8a428c2ba8aa3fd287e96da"},{"id":"ws:event:SceneRemoved","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scenes","SceneRemoved"],"url":"https://obs-rust.com/websocket/#SceneRemoved","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scenes \u203a SceneRemoved]\nEvent SceneRemoved: A scene has been removed.\nCategory scenes; subscription Scenes; since 5.0.0.\n- sceneName (String): Name of the removed scene\n- sceneUuid (String): UUID of the removed scene\n- isGroup (Boolean): Whether the scene was a group","chars":295,"tokens_est":74,"sha256":"417b9515198cfc1cbcd6627c7f1075a7359acb4ffca045ddae06b05acd4b9aff"},{"id":"ws:event:SceneNameChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scenes","SceneNameChanged"],"url":"https://obs-rust.com/websocket/#SceneNameChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scenes \u203a SceneNameChanged]\nEvent SceneNameChanged: The name of a scene has changed.\nCategory scenes; subscription Scenes; since 5.0.0.\n- sceneUuid (String): UUID of the scene\n- oldSceneName (String): Old name of the scene\n- sceneName (String): New name of the scene","chars":294,"tokens_est":74,"sha256":"3c5397d4dd78e86f0094829ff1cb55ecaae82bd89d27f8d4bb34d104b338c99f"},{"id":"ws:event:CurrentProgramSceneChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scenes","CurrentProgramSceneChanged"],"url":"https://obs-rust.com/websocket/#CurrentProgramSceneChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scenes \u203a CurrentProgramSceneChanged]\nEvent CurrentProgramSceneChanged: The current program scene has changed.\nCategory scenes; subscription Scenes; since 5.0.0.\n- sceneName (String): Name of the scene that was switched to\n- sceneUuid (String): UUID of the scene that was switched to","chars":311,"tokens_est":78,"sha256":"a3c31336399f8f0b414a38cbedc685148700c958a57528356e803e0e0dbe23d3"},{"id":"ws:event:CurrentPreviewSceneChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scenes","CurrentPreviewSceneChanged"],"url":"https://obs-rust.com/websocket/#CurrentPreviewSceneChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scenes \u203a CurrentPreviewSceneChanged]\nEvent CurrentPreviewSceneChanged: The current preview scene has changed.\nCategory scenes; subscription Scenes; since 5.0.0.\n- sceneName (String): Name of the scene that was switched to\n- sceneUuid (String): UUID of the scene that was switched to","chars":311,"tokens_est":78,"sha256":"2585dde5fe96a58cbeb82802a5c87dcbca9d9f24fe5917b013c4e481ea78adc5"},{"id":"ws:event:SceneListChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","scenes","SceneListChanged"],"url":"https://obs-rust.com/websocket/#SceneListChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a scenes \u203a SceneListChanged]\nEvent SceneListChanged: The list of scenes has changed.\n\nTODO: Make OBS fire this event when scenes are reordered.\nCategory scenes; subscription Scenes; since 5.0.0.\n- scenes (Array<Object>): Updated array of scenes","chars":271,"tokens_est":68,"sha256":"0f017d2e5c8e8fb02fb180c9c1177e2070f2a96f72fc567ece5caa6a12650342"},{"id":"ws:event:CurrentSceneTransitionChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","transitions","CurrentSceneTransitionChanged"],"url":"https://obs-rust.com/websocket/#CurrentSceneTransitionChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a transitions \u203a CurrentSceneTransitionChanged]\nEvent CurrentSceneTransitionChanged: The current scene transition has changed.\nCategory transitions; subscription Transitions; since 5.0.0.\n- transitionName (String): Name of the new transition\n- transitionUuid (String): UUID of the new transition","chars":321,"tokens_est":80,"sha256":"cba4456c71b9f75c00fc6a5c57ae46b248c0581259daa34361ee83d02c377ac8"},{"id":"ws:event:CurrentSceneTransitionDurationChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","transitions","CurrentSceneTransitionDurationChanged"],"url":"https://obs-rust.com/websocket/#CurrentSceneTransitionDurationChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a transitions \u203a CurrentSceneTransitionDurationChanged]\nEvent CurrentSceneTransitionDurationChanged: The current scene transition duration has changed.\nCategory transitions; subscription Transitions; since 5.0.0.\n- transitionDuration (Number): Transition duration in milliseconds","chars":305,"tokens_est":76,"sha256":"9b9417de59ab4a61d064d587729c8c7497a2a76c573565c806ce87a507dd6525"},{"id":"ws:event:SceneTransitionStarted","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","transitions","SceneTransitionStarted"],"url":"https://obs-rust.com/websocket/#SceneTransitionStarted","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a transitions \u203a SceneTransitionStarted]\nEvent SceneTransitionStarted: A scene transition has started.\nCategory transitions; subscription Transitions; since 5.0.0.\n- transitionName (String): Scene transition name\n- transitionUuid (String): Scene transition UUID","chars":287,"tokens_est":72,"sha256":"5432acb1c3666a816e16847d7ec5934a4ba4e13441b44cce167dd7c8c57c4f16"},{"id":"ws:event:SceneTransitionEnded","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","transitions","SceneTransitionEnded"],"url":"https://obs-rust.com/websocket/#SceneTransitionEnded","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a transitions \u203a SceneTransitionEnded]\nEvent SceneTransitionEnded: A scene transition has completed fully.\n\nNote: Does not appear to trigger when the transition is interrupted by the user.\nCategory transitions; subscription Transitions; since 5.0.0.\n- transitionName (String): Scene transition name\n- transitionUuid (String): Scene transition UUID","chars":373,"tokens_est":93,"sha256":"45c5f50ab787db2d4d6085b4c46d710d8069a7e8ab9ab5e9d2de2281646fba69"},{"id":"ws:event:SceneTransitionVideoEnded","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","transitions","SceneTransitionVideoEnded"],"url":"https://obs-rust.com/websocket/#SceneTransitionVideoEnded","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a transitions \u203a SceneTransitionVideoEnded]\nEvent SceneTransitionVideoEnded: A scene transition's video has completed fully.\n\nUseful for stinger transitions to tell when the video *actually* ends.\n`SceneTransitionEnded` only signifies the cut point, not the completion of transition playback.\n\nNote: Appears to be called by every transition, regardless of relevance.\nCategory transitions; subscription Transitions; since 5.0.0.\n- transitionName (String): Scene transition name\n- transitionUuid (String): Scene transition UUID","chars":551,"tokens_est":138,"sha256":"fe76aede505a46813b5a786109e637085940ec47d810ce9d2924f7bf98bf204d"},{"id":"ws:event:StudioModeStateChanged","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","ui","StudioModeStateChanged"],"url":"https://obs-rust.com/websocket/#StudioModeStateChanged","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a ui \u203a StudioModeStateChanged]\nEvent StudioModeStateChanged: Studio mode has been enabled or disabled.\nCategory ui; subscription Ui; since 5.0.0.\n- studioModeEnabled (Boolean): True == Enabled, False == Disabled","chars":238,"tokens_est":60,"sha256":"f1ae4bb17860447ecab7c649b6f0b067109442acb1be356229c44155a2876a17"},{"id":"ws:event:ScreenshotSaved","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","ui","ScreenshotSaved"],"url":"https://obs-rust.com/websocket/#ScreenshotSaved","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a ui \u203a ScreenshotSaved]\nEvent ScreenshotSaved: A screenshot has been saved.\n\nNote: Triggered for the screenshot feature available in `Settings -> Hotkeys -> Screenshot Output` ONLY.\nApplications using `Get/SaveSourceScreenshot` should implement a `CustomEvent` if this kind of inter-client\ncommunication is desired.\nCategory ui; subscription Ui; since 5.1.0.\n- savedScreenshotPath (String): Path of the saved image file","chars":446,"tokens_est":112,"sha256":"796314dc269bee6ded8da81e57aaf0d9e127e3285782a232d3a2da9619629d55"},{"id":"ws:event:VendorEvent","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","general","VendorEvent"],"url":"https://obs-rust.com/websocket/#VendorEvent","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a general \u203a VendorEvent]\nEvent VendorEvent: An event has been emitted from a vendor.\n\nA vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.\nIf a plugin or script implements vendor requests or events, documentation is expected to be provided with them.\nCategory general; subscription Vendors; since 5.0.0.\n- vendorName (String): Name of the vendor emitting the event\n- eventType (String): Vendor-provided event typedef\n- eventData (Object): Vendor-provided event data. {} if event does not provide any data","chars":624,"tokens_est":156,"sha256":"dd6415d7a31f71365f6110db3d78d2f5ad7253b485280c6c914043c047789830"},{"id":"ws:event:CustomEvent","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-event","breadcrumb":["obs-websocket v5","Events","general","CustomEvent"],"url":"https://obs-rust.com/websocket/#CustomEvent","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Events \u203a general \u203a CustomEvent]\nEvent CustomEvent: for every client, a client got the usage since any client's call. */\nCustom event emitted by `BroadcastCustomEvent`.\nCategory general; subscription General; since 5.0.0.\n- eventData (Object): Custom event data","chars":280,"tokens_est":70,"sha256":"8e9977550c2c28d9930cbb48516d29bce17f2442f41e85dad5e267c5c72b779e"},{"id":"ws:enum:EventSubscription","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-enum","breadcrumb":["obs-websocket v5","Enums","EventSubscription"],"url":"https://obs-rust.com/websocket/#EventSubscription","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Enums \u203a EventSubscription]\nEnum EventSubscription:\n- None = 0: Subcription value used to disable all events.\n- General = (1 << 0): Subscription value to receive events in the `General` category.\n- Config = (1 << 1): Subscription value to receive events in the `Config` category.\n- Scenes = (1 << 2): Subscription value to receive events in the `Scenes` category.\n- Inputs = (1 << 3): Subscription value to receive events in the `Inputs` category.\n- Transitions = (1 << 4): Subscription value to receive events in the `Transitions` category.\n- Filters = (1 << 5): Subscription value to receive events in the `Filters` category.\n- Outputs = (1 << 6): Subscription value to receive events in the `Outputs` category.\n- SceneItems = (1 << 7): Subscription value to receive events in the `SceneItems` category.\n- MediaInputs = (1 << 8): Subscription value to receive events in the `MediaInputs` category.\n- Vendors = (1 << 9): Subscription value to receive the `VendorEvent` event.\n- Ui = (1 << 10): Subscription value to receive events in the `Ui` category.\n- Canvases = (1 << 11): Subscription value to receive events in the `Canvases` category.\n- All = (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors | Ui | Canvases): Helper to receive all non-high-volume events.\n- InputVolumeMeters = (1 << 16): Subscription value to receive the `InputVolumeMeters` high-volume event.\n- InputActiveStateChanged = (1 << 17): Subscription value to receive the `InputActiveStateChanged` high-volume event.\n- InputShowStateChanged = (1 << 18): Subscription value to receive the `InputShowStateChanged` high-volume event.\n- SceneItemTransformChanged = (1 << 19): Subscription value to receive the `SceneItemTransformChanged` high-volume event.","chars":1800,"tokens_est":450,"sha256":"9ecabc5c75a555ca170f5b6681220fbe68dc06a8562202fb0e092ff2cd7e9b6b"},{"id":"ws:enum:RequestBatchExecutionType","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-enum","breadcrumb":["obs-websocket v5","Enums","RequestBatchExecutionType"],"url":"https://obs-rust.com/websocket/#RequestBatchExecutionType","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Enums \u203a RequestBatchExecutionType]\nEnum RequestBatchExecutionType:\n- None = -1: Not a request batch.\n- SerialRealtime = 0: A request batch which processes all requests serially, as fast as possible.\n\nNote: To introduce artificial delay, use the `Sleep` request and the `sleepMillis` request field.\n- SerialFrame = 1: A request batch type which processes all requests serially, in sync with the graphics thread. Designed to provide high accuracy for animations.\n\nNote: To introduce artificial delay, use the `Sleep` request and the `sleepFrames` request field.\n- Parallel = 2: A request batch type which processes all requests using all available threads in the thread pool.\n\nNote: This is mainly experimental, and only really shows its colors during requests which require lots of\nactive processing, like `GetSourceScreenshot`.","chars":847,"tokens_est":212,"sha256":"81038578b7b7b62775c0755bf07d36fb15bc6eb0aec8a5881fa76a2f847de36d"},{"id":"ws:enum:RequestStatus","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-enum","breadcrumb":["obs-websocket v5","Enums","RequestStatus"],"url":"https://obs-rust.com/websocket/#RequestStatus","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Enums \u203a RequestStatus]\nEnum RequestStatus:\n- Unknown = 0: Unknown status, should never be used.\n- NoError = 10: For internal use to signify a successful field check.\n- Success = 100: The request has succeeded.\n- MissingRequestType = 203: The `requestType` field is missing from the request data.\n- UnknownRequestType = 204: The request type is invalid or does not exist.\n- GenericError = 205: Generic error code.\n\nNote: A comment is required to be provided by obs-websocket.\n- UnsupportedRequestBatchExecutionType = 206: The request batch execution type is not supported.\n- NotReady = 207: The server is not ready to handle the request.\n\nNote: This usually occurs during OBS scene collection change or exit. Requests may be tried again after a delay if this code is given.\n- MissingRequestField = 300: A required request field is missing.\n- MissingRequestData = 301: The request does not have a valid requestData object.\n- InvalidRequestField = 400: Generic invalid request field message.\n\nNote: A comment is required to be provided by obs-websocket.\n- InvalidRequestFieldType = 401: A request field has the wrong data type.\n- RequestFieldOutOfRange = 402: A request field (number) is outside of the allowed range.\n- RequestFieldEmpty = 403: A request field (string or array) is empty and cannot be.\n- TooManyRequestFields = 404: There are too many request fields (eg. a request takes two optionals, where only one is allowed at a time).\n- OutputRunning = 500: An output is running and cannot be in order to perform the request.\n- OutputNotRunning = 501: An output is not running and should be.\n- OutputPaused = 502: An output is paused and should not be.\n- OutputNotPaused = 503: An output is not paused and should be.\n- OutputDisabled = 504: An output is disabled and should not be.\n- StudioModeActive = 505: Studio mode is active and cannot be.\n- StudioModeNotActive = 506: Studio mode is not active and should be.\n- ResourceNotFound = 600: The resource was not found.\n\nNote: Resources are any kind of object in obs-websocket, like inputs, profiles, outputs, etc.\n- ResourceAlreadyExists = 601: The resource already exists.\n- InvalidResourceType = 602: The type of resource found is invalid.\n- NotEnoughResources = 603: There are not enough instances of the resource in order to perform the request.\n- InvalidResourceState = 604: The state of the resource is invalid. For example, if the resource is blocked from being accessed.\n- InvalidInputKind = 605: The specified input (obs_source_t-OBS_SOURCE_TYPE_INPUT) had the wrong kind.\n- ResourceNotConfigurable = 606: The resource does not support being configured.\n\nThis is particularly relevant to transitions, where they do not always have changeable settings.\n- InvalidFilterKind = 607: The specified filter (obs_source_t-OBS_SOURCE_TYPE_FILTER) had the wrong kind.\n- ResourceCreationFailed = 700: Creating the resource failed.\n- ResourceActionFailed = 701: Performing an action on the resource failed.\n- RequestProcessingFailed = 702: Processing the request failed unexpectedly.\n\nNote: A comment is required to be provided by obs-websocket.\n- CannotAct = 703: The combination of request fields cannot be used to perform an action.","chars":3205,"tokens_est":801,"sha256":"53fd7a0169c05219d7ac4a59a8f8337871a119094432c80d862fe50bb7adb692"},{"id":"ws:enum:ObsOutputState","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-enum","breadcrumb":["obs-websocket v5","Enums","ObsOutputState"],"url":"https://obs-rust.com/websocket/#ObsOutputState","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Enums \u203a ObsOutputState]\nEnum ObsOutputState:\n- OBS_WEBSOCKET_OUTPUT_UNKNOWN = OBS_WEBSOCKET_OUTPUT_UNKNOWN: Unknown state.\n- OBS_WEBSOCKET_OUTPUT_STARTING = OBS_WEBSOCKET_OUTPUT_STARTING: The output is starting.\n- OBS_WEBSOCKET_OUTPUT_STARTED = OBS_WEBSOCKET_OUTPUT_STARTED: The input has started.\n- OBS_WEBSOCKET_OUTPUT_STOPPING = OBS_WEBSOCKET_OUTPUT_STOPPING: The output is stopping.\n- OBS_WEBSOCKET_OUTPUT_STOPPED = OBS_WEBSOCKET_OUTPUT_STOPPED: The output has stopped.\n- OBS_WEBSOCKET_OUTPUT_RECONNECTING = OBS_WEBSOCKET_OUTPUT_RECONNECTING: The output has disconnected and is reconnecting.\n- OBS_WEBSOCKET_OUTPUT_RECONNECTED = OBS_WEBSOCKET_OUTPUT_RECONNECTED: The output has reconnected successfully.\n- OBS_WEBSOCKET_OUTPUT_PAUSED = OBS_WEBSOCKET_OUTPUT_PAUSED: The output is now paused.\n- OBS_WEBSOCKET_OUTPUT_RESUMED = OBS_WEBSOCKET_OUTPUT_RESUMED: The output has been resumed (unpaused).","chars":917,"tokens_est":229,"sha256":"b509dc858719bf86556043680893dc2281b7617a6af07f989e6a7f5283e2ec11"},{"id":"ws:enum:ObsMediaInputAction","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-enum","breadcrumb":["obs-websocket v5","Enums","ObsMediaInputAction"],"url":"https://obs-rust.com/websocket/#ObsMediaInputAction","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Enums \u203a ObsMediaInputAction]\nEnum ObsMediaInputAction:\n- OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE = OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE: No action.\n- OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY = OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY: Play the media input.\n- OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE = OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE: Pause the media input.\n- OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP = OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP: Stop the media input.\n- OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART = OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART: Restart the media input.\n- OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXT = OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXT: Go to the next playlist item.\n- OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUS = OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUS: Go to the previous playlist item.","chars":824,"tokens_est":206,"sha256":"6e320a3a6e0f5dff6e01c418d06caa04cd4d7365b20388e027cdf8064d78a496"},{"id":"ws:enum:WebSocketCloseCode","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-enum","breadcrumb":["obs-websocket v5","Enums","WebSocketCloseCode"],"url":"https://obs-rust.com/websocket/#WebSocketCloseCode","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Enums \u203a WebSocketCloseCode]\nEnum WebSocketCloseCode:\n- DontClose = 0: For internal use only to tell the request handler not to perform any close action.\n- UnknownReason = 4000: Unknown reason, should never be used.\n- MessageDecodeError = 4002: The server was unable to decode the incoming websocket message.\n- MissingDataField = 4003: A data field is required but missing from the payload.\n- InvalidDataFieldType = 4004: A data field's value type is invalid.\n- InvalidDataFieldValue = 4005: A data field's value is invalid.\n- UnknownOpCode = 4006: The specified `op` was invalid or missing.\n- NotIdentified = 4007: The client sent a websocket message without first sending `Identify` message.\n- AlreadyIdentified = 4008: The client sent an `Identify` message while already identified.\n\nNote: Once a client has identified, only `Reidentify` may be used to change session parameters.\n- AuthenticationFailed = 4009: The authentication attempt (via `Identify`) failed.\n- UnsupportedRpcVersion = 4010: The server detected the usage of an old version of the obs-websocket RPC protocol.\n- SessionInvalidated = 4011: The websocket session has been invalidated by the obs-websocket server.\n\nNote: This is the code used by the `Kick` button in the UI Session List. If you receive this code, you must not automatically reconnect.\n- UnsupportedFeature = 4012: A requested feature is not supported due to hardware/software limitations.","chars":1442,"tokens_est":360,"sha256":"745a04be14df6f0db782ae02bb89f331b2fa832e42f3b0b2776e42d927eec7ef"},{"id":"ws:enum:WebSocketOpCode","doc":"obs-websocket-reference","group":"websocket","tier":"reference","kind":"ws-enum","breadcrumb":["obs-websocket v5","Enums","WebSocketOpCode"],"url":"https://obs-rust.com/websocket/#WebSocketOpCode","source":"https://obs-rust.com/websocket/","text":"[obs-websocket v5 \u203a Enums \u203a WebSocketOpCode]\nEnum WebSocketOpCode:\n- Hello = 0: The initial message sent by obs-websocket to newly connected clients.\n- Identify = 1: The message sent by a newly connected client to obs-websocket in response to a `Hello`.\n- Identified = 2: The response sent by obs-websocket to a client after it has successfully identified with obs-websocket.\n- Reidentify = 3: The message sent by an already-identified client to update identification parameters.\n- Event = 5: The message sent by obs-websocket containing an event payload.\n- Request = 6: The message sent by a client to obs-websocket to perform a request.\n- RequestResponse = 7: The message sent by obs-websocket in response to a particular request from a client.\n- RequestBatch = 8: The message sent by a client to obs-websocket to perform a batch of requests.\n- RequestBatchResponse = 9: The message sent by obs-websocket in response to a particular batch of requests from a client.","chars":967,"tokens_est":242,"sha256":"529cdd15a1c7da6d89d72fc4827e0f6c6d02385a80bdcb3d3c06973b2a1e015d"},{"id":"mcp:tool:media_restart","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","media_restart"],"url":"https://obs-rust.com/mcp/#media_restart","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a media_restart]\nMCP tool media_restart: media restart: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- name (string, required): Name of an existing media source.\nReturns:\n- duration_ms (integer | null): Total duration, if known.\n- name (string, required): Source name.\n- position_ms (integer | null): Playback position, if known.\n- state (\"none\" | \"playing\" | \"opening\" | \"buffering\" | \"paused\" | \"stopped\" | \"ended\" | \"error\", required): Current media state.","chars":589,"tokens_est":147,"sha256":"02e0fef9bcca6a9c1931547b9600109cb4ff3ef59774ffa86dc725457136cab8"},{"id":"mcp:tool:media_status","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","media_status"],"url":"https://obs-rust.com/mcp/#media_status","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a media_status]\nMCP tool media_status: media status: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nArguments:\n- name (string, required): Name of an existing media source.\nReturns:\n- duration_ms (integer | null): Total duration, if known.\n- name (string, required): Source name.\n- position_ms (integer | null): Playback position, if known.\n- state (\"none\" | \"playing\" | \"opening\" | \"buffering\" | \"paused\" | \"stopped\" | \"ended\" | \"error\", required): Current media state.","chars":586,"tokens_est":146,"sha256":"31a50d44eeea4fb8d46435dae0f0c22cebc83e6f20119eb6dca31e4e0d6d1bc6"},{"id":"mcp:tool:pipeline_dump","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","pipeline_dump"],"url":"https://obs-rust.com/mcp/#pipeline_dump","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a pipeline_dump]\nMCP tool pipeline_dump: pipeline dump: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- program (string | null): Program source name.\n- sources (array<string>, required): Source names in stable order.\n- stats (object, required): Current pipeline measurements.\n- vcam (object, required): Virtual output state.","chars":451,"tokens_est":113,"sha256":"c266ce852ca141c718b889f3fb9363292d234296219e9af0ce2ec1ae22d99d6c"},{"id":"mcp:tool:record_start","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","record_start"],"url":"https://obs-rust.com/mcp/#record_start","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a record_start]\nMCP tool record_start: Start recording.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- timeout_ms (integer): Bounded wait deadline.\n- wait (boolean): Wait for the output to report active.\nReturns:\n- active (boolean, required): Whether the output is running.","chars":368,"tokens_est":92,"sha256":"5723fbcbfd5da8cc64e6556da4cd52693f377f75cec392939a605acde4cd4ac3"},{"id":"mcp:tool:record_status","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","record_status"],"url":"https://obs-rust.com/mcp/#record_status","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a record_status]\nMCP tool record_status: Report whether recording is active, with duration_ms and bytes where known.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- active (boolean, required): Whether the output is running.\n- bytes (integer | null): Bytes written or sent so far, where known.\n- duration_ms (integer | null): Milliseconds since the output started, where known.","chars":469,"tokens_est":117,"sha256":"550c85f7fed1b0ce829b8a18c246144e48fe16415cf54490d5355dbef1ce176d"},{"id":"mcp:tool:record_stop","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","record_stop"],"url":"https://obs-rust.com/mcp/#record_stop","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a record_stop]\nMCP tool record_stop: Stop recording.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nReturns:\n- active (boolean, required): Whether the output is running.","chars":251,"tokens_est":63,"sha256":"3435ea079cd7634bd5068097df07639fed3e4fcdc251a74477b52ff9e3d6c6b1"},{"id":"mcp:tool:scene_create","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_create"],"url":"https://obs-rust.com/mcp/#scene_create","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_create]\nMCP tool scene_create: Create a new empty scene with the given name. When there is no program scene yet, the new scene becomes the current program scene.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- name (string, required): Scene name.\nReturns:\n- name (string | null): Null when there is no program scene.","chars":419,"tokens_est":105,"sha256":"f6f0747fb33f6da79170dbfb1a9f1a673e19e3b5c1fc1d4598e70f4836032395"},{"id":"mcp:tool:scene_get_current","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_get_current"],"url":"https://obs-rust.com/mcp/#scene_get_current","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_get_current]\nMCP tool scene_get_current: Get the name of the current program scene, or null if none.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- name (string | null): Null when there is no program scene.","chars":308,"tokens_est":77,"sha256":"47b7a2801e5356d5f731b8f32d1c832c2e84d18f2c36adc355476fe3b589c46d"},{"id":"mcp:tool:scene_item_add","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_item_add"],"url":"https://obs-rust.com/mcp/#scene_item_add","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_item_add]\nMCP tool scene_item_add: Add an existing source to a scene as a scene item, optionally at a position. A source only shows in the program output once it is an item of the program scene.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- position (object | null): Initial position.\n- scene (string, required): Scene name.\n- source (string, required): Source name.\nReturns:\n- item (integer, required): Item id.\n- position (object, required): Canvas position.\n- rotation (number, required): Rotation in degrees.\n- scale (object, required): Scale factors.\n- scene (string | null): Present when an item was added.\n- source (string, required): Source name.\n- visible (boolean, required): Visibility.","chars":802,"tokens_est":200,"sha256":"882a2bd915447f2cbd9c0c4bfb0b41200419fbee52788406788e3846e95ebcd8"},{"id":"mcp:tool:scene_item_set_transform","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_item_set_transform"],"url":"https://obs-rust.com/mcp/#scene_item_set_transform","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_item_set_transform]\nMCP tool scene_item_set_transform: Set the position, scale and/or rotation of a scene item, named by `item` (id from scene_items_list) or `source`.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- item (integer | null): Item id.\n- position (object | null): New position.\n- rotation (number | null): New rotation in degrees.\n- scale (object | null): New scale.\n- scene (string, required): Scene name.\n- source (string | null): Source name instead of item id.\nReturns:\n- item (integer | null): Item id when selected by id.\n- scene (string, required): Scene name.\n- source (string | null): Source name when selected by name.\n- visible (boolean | null): Present for visibility changes.","chars":803,"tokens_est":201,"sha256":"e26e1ef555845e7b15c532dd5f4072bcf0a2f7398a6d92689bf987cae4ad40a0"},{"id":"mcp:tool:scene_item_set_visible","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_item_set_visible"],"url":"https://obs-rust.com/mcp/#scene_item_set_visible","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_item_set_visible]\nMCP tool scene_item_set_visible: Show or hide a scene item, named by `item` (id from scene_items_list) or `source`.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- item (integer | null): Item id.\n- scene (string, required): Scene name.\n- source (string | null): Source name instead of item id.\n- visible (boolean, required): New visibility.\nReturns:\n- item (integer | null): Item id when selected by id.\n- scene (string, required): Scene name.\n- source (string | null): Source name when selected by name.\n- visible (boolean | null): Present for visibility changes.","chars":684,"tokens_est":171,"sha256":"cd15076484217cd9c2b69356b07c388c92086d881dfcfdfa00283cf165c521f1"},{"id":"mcp:tool:scene_items_list","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_items_list"],"url":"https://obs-rust.com/mcp/#scene_items_list","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_items_list]\nMCP tool scene_items_list: List the items of a scene (bottom to top) with their id, source name, visibility, position, scale and rotation.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nArguments:\n- scene (string, required): Scene name.\nReturns:\n- items (array<object>, required): Items bottom to top.\n- scene (string, required): Scene name.","chars":444,"tokens_est":111,"sha256":"194ee082c2214469012e5158720bc308dc1766c0ccdcecb0eeea666d4eb0f99d"},{"id":"mcp:tool:scene_remove","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_remove"],"url":"https://obs-rust.com/mcp/#scene_remove","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_remove]\nMCP tool scene_remove: Remove the scene with the given name.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- name (string, required): Scene name.\nReturns:\n- name (string | null): Null when there is no program scene.","chars":326,"tokens_est":82,"sha256":"2d164e3bb43a7b5d69b7e8e69a86630583160ba6f1c3ca20bcf2b9fe13d26173"},{"id":"mcp:tool:scene_set_current","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scene_set_current"],"url":"https://obs-rust.com/mcp/#scene_set_current","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scene_set_current]\nMCP tool scene_set_current: Make the named scene the current program scene.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- name (string, required): Scene name.\nReturns:\n- name (string | null): Null when there is no program scene.","chars":345,"tokens_est":86,"sha256":"d5d90223914f2d25f593c8709485e1518341579326d0cbba48bf85a778e78d25"},{"id":"mcp:tool:scenes_list","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","scenes_list"],"url":"https://obs-rust.com/mcp/#scenes_list","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a scenes_list]\nMCP tool scenes_list: List the names of all scenes, in order.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- scenes (array<string>, required): Scene names in display order.","chars":281,"tokens_est":70,"sha256":"1546ac78ad27dabbf31147c68a74a10930e7e8c20704485879dc4a2be10aeb35"},{"id":"mcp:tool:screenshot","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","screenshot"],"url":"https://obs-rust.com/mcp/#screenshot","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a screenshot]\nMCP tool screenshot: Capture a PNG screenshot of a source, or of the program output when no source is named. Returns the image plus a text item {width, height, source} (source is null for the program output). The PNG has an alpha channel (RGBA): pixels nothing was drawn on, such as an empty scene, are fully transparent, which a viewer may show as white. A source only appears in the program output once it is an item of the program scene.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nArguments:\n- height (integer | null): Height in pixels.\n- source (string | null): Source to capture; omit for program output.\n- width (integer | null): Width in pixels.\nReturns:\n- data (string, required): PNG bytes encoded in base64.\n- height (integer, required): Height in pixels.\n- source (string | null): Source name, or null for program output.\n- width (integer, required): Width in pixels.","chars":979,"tokens_est":245,"sha256":"9878d52097ea758d79a91a6c5c730b4fd59194d1c3340b2b3f291314556abf2e"},{"id":"mcp:tool:source_create","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","source_create"],"url":"https://obs-rust.com/mcp/#source_create","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a source_create]\nMCP tool source_create: Create a source of the given kind with a name and settings. Give `scene` (and optionally `position`) to also add it to that scene as an item.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- kind (string, required): Source kind id.\n- name (string, required): Unique name.\n- position (object | null): Initial position (requires scene).\n- scene (string | null): Scene receiving the source.\n- settings (object, required): Kind-specific settings.\nReturns:\n- item (integer | null): Created item id.\n- kind (string, required): Source kind.\n- name (string, required): Source name.\n- scene (string | null): Scene receiving the new item.","chars":763,"tokens_est":191,"sha256":"483ca14fa69dabb843682958e449480324b2188d06962c939d3357bea28add14"},{"id":"mcp:tool:source_remove","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","source_remove"],"url":"https://obs-rust.com/mcp/#source_remove","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a source_remove]\nMCP tool source_remove: Remove a source and its references from scenes.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- name (string, required): \nReturns:\n- name (string, required): Source name.","chars":306,"tokens_est":76,"sha256":"4d9f97aab9c886f368651795bdd38d42b638585cd17a809067de588dc550d096"},{"id":"mcp:tool:source_set_settings","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","source_set_settings"],"url":"https://obs-rust.com/mcp/#source_set_settings","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a source_set_settings]\nMCP tool source_set_settings: Merge settings into an existing source's settings.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- name (string, required): Source name.\n- settings (object, required): Kind-specific settings to merge.\nReturns:\n- name (string, required): Source name.","chars":397,"tokens_est":99,"sha256":"76eac626a1ac55ebe956c36c7c385182845c39936fe2b2e064a6bb90f84a0fb3"},{"id":"mcp:tool:sources_list","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","sources_list"],"url":"https://obs-rust.com/mcp/#sources_list","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a sources_list]\nMCP tool sources_list: List all sources with their names and kind ids.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- sources (array<object>, required): Sources in stable order.","chars":287,"tokens_est":72,"sha256":"c7507f27244ed57dda33c94f1b38203790426e2f460b3314118ed403016293ec"},{"id":"mcp:tool:stats_get","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","stats_get"],"url":"https://obs-rust.com/mcp/#stats_get","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a stats_get]\nMCP tool stats_get: stats get: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- end_to_end (object, required): End-to-end sync, with explicit provenance.\n- render (object, required): Render counters.\n- stages (object, required): Per-stage measured counters and bounds.","chars":407,"tokens_est":102,"sha256":"d94a3003a7d9da3dacbf52d19fde2fc0fbab67db1030197f39f2e695ea1dcc56"},{"id":"mcp:tool:stats_reset","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","stats_reset"],"url":"https://obs-rust.com/mcp/#stats_reset","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a stats_reset]\nMCP tool stats_reset: stats reset: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": false, \"openWorldHint\": true, \"readOnlyHint\": false}\nReturns:\n- end_to_end (object, required): End-to-end sync, with explicit provenance.\n- render (object, required): Render counters.\n- stages (object, required): Per-stage measured counters and bounds.","chars":413,"tokens_est":103,"sha256":"2fcc81cc7e17d1269865381199ee299fa2d3d10d8384c1d4515d3d97a5d1b126"},{"id":"mcp:tool:stream_start","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","stream_start"],"url":"https://obs-rust.com/mcp/#stream_start","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a stream_start]\nMCP tool stream_start: Start streaming.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- timeout_ms (integer): Bounded wait deadline.\n- wait (boolean): Wait for the output to report active.\nReturns:\n- active (boolean, required): Whether the output is running.","chars":368,"tokens_est":92,"sha256":"77656f26dc190e9bd0ba7acbd0f12ce15d8acaf94a4fadc2408dfff0460f9cee"},{"id":"mcp:tool:stream_status","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","stream_status"],"url":"https://obs-rust.com/mcp/#stream_status","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a stream_status]\nMCP tool stream_status: Report whether streaming is active, with duration_ms and bytes where known.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- active (boolean, required): Whether the output is running.\n- bytes (integer | null): Bytes written or sent so far, where known.\n- duration_ms (integer | null): Milliseconds since the output started, where known.","chars":469,"tokens_est":117,"sha256":"e5b1356165f84e0bfd2f21773a4c88a869e8bac5a7496dd11b000145b21cfdbf"},{"id":"mcp:tool:stream_stop","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","stream_stop"],"url":"https://obs-rust.com/mcp/#stream_stop","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a stream_stop]\nMCP tool stream_stop: Stop streaming.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nReturns:\n- active (boolean, required): Whether the output is running.","chars":251,"tokens_est":63,"sha256":"8c945e18ece548f2a2e9f4fa341c7fe6994172781c73aa4f0837f49a85841fd9"},{"id":"mcp:tool:vcam_start","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","vcam_start"],"url":"https://obs-rust.com/mcp/#vcam_start","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a vcam_start]\nMCP tool vcam_start: vcam start: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nArguments:\n- audio_enabled (boolean): Enable the paired microphone before a stopped output starts.\n- audio_track (integer): One-based OBS audio mix (1 through 6).\n- timeout_ms (integer): Auto-wait deadline in milliseconds.\n- wait (boolean): Wait until the output reports active.\nReturns:\n- active (boolean, required): Video output is active.\n- configured (boolean, required): Whether the registered output exists.\n- vmic_active (boolean | null): Paired virtual microphone is active, when the plugin supports the query.","chars":728,"tokens_est":182,"sha256":"2cfbf75a2684574aa65b8fa17d75f167399b1d446938a713928d7ab3f493d805"},{"id":"mcp:tool:vcam_status","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","vcam_status"],"url":"https://obs-rust.com/mcp/#vcam_status","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a vcam_status]\nMCP tool vcam_status: vcam status: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- active (boolean, required): Video output is active.\n- configured (boolean, required): Whether the registered output exists.\n- vmic_active (boolean | null): Paired virtual microphone is active, when the plugin supports the query.","chars":453,"tokens_est":113,"sha256":"56d738204739f9c4e326438a0dfb7e81bcf3dab318f612a50e5dfbd10999737f"},{"id":"mcp:tool:vcam_stop","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","vcam_stop"],"url":"https://obs-rust.com/mcp/#vcam_stop","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a vcam_stop]\nMCP tool vcam_stop: vcam stop: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": true, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": false}\nReturns:\n- active (boolean, required): Video output is active.\n- configured (boolean, required): Whether the registered output exists.\n- vmic_active (boolean | null): Paired virtual microphone is active, when the plugin supports the query.","chars":446,"tokens_est":112,"sha256":"6b0666aa37c74aedb52bab4348285a5f759f3f0dd449dd95f9f668a961792fb3"},{"id":"mcp:tool:vmic_status","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","vmic_status"],"url":"https://obs-rust.com/mcp/#vmic_status","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a vmic_status]\nMCP tool vmic_status: vmic status: control and inspect OBS directly.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nReturns:\n- active (boolean | null): Active according to virtualcam_audio; null means unsupported.\n- source_name (string | null): Runtime source name, when known.","chars":375,"tokens_est":94,"sha256":"0e31afd02009f6c915cd6d9ab59dd3672662634fd6c8a14804eb1ab8fd5519a6"},{"id":"mcp:tool:wait_for","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-tool","breadcrumb":["MCP server","Tools","wait_for"],"url":"https://obs-rust.com/mcp/#wait_for","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Tools \u203a wait_for]\nMCP tool wait_for: Observe a typed condition immediately, then wait within timeout_ms. Returns the final typed value on timeout; unavailable metrics never satisfy a threshold.\nAnnotations: {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}\nArguments:\n- condition (output_state | source_active | media_state | stat_at_most, required): Condition to observe before waiting.\n- timeout_ms (integer): Deadline in milliseconds; zero still observes once.\nReturns:\n- elapsed_ms (integer, required): Monotonic elapsed time.\n- last_value (object | object | object | object, required): Last observed value, including on timeout.\n- satisfied (boolean, required): Condition met before the deadline.","chars":762,"tokens_est":190,"sha256":"b91291390feb4c454f7fd02858372ce106db17bb18b4da809d30aa9cb92d3337"},{"id":"mcp:resource:obs://scenes","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-resource","breadcrumb":["MCP server","Resources","obs://scenes"],"url":"https://obs-rust.com/mcp/#resources","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Resources \u203a obs://scenes]\nMCP resource obs://scenes (application/json): The scene graph: the current program scene, every scene and every source.","chars":159,"tokens_est":40,"sha256":"e6f10150a85911d012ec2a50f347ed5058cfa0b7ef8199f9fdeeff0c585c901b"},{"id":"mcp:resource:obs://stats","doc":"mcp-reference","group":"mcp","tier":"core","kind":"mcp-resource","breadcrumb":["MCP server","Resources","obs://stats"],"url":"https://obs-rust.com/mcp/#resources","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a Resources \u203a obs://stats]\nMCP resource obs://stats (application/json): OBS performance: fps, cpu_usage (percent) and dropped_frames.","chars":145,"tokens_est":36,"sha256":"1d4a6f487e2f6d15e258f29b28ce249e7d4b3b14cfd39934e90ddcf40bb99121"},{"id":"mcp-reference#obs-studio-rust-mcp-server-reference-generated","doc":"mcp-reference","group":"mcp","tier":"core","kind":"prose","breadcrumb":["MCP server","obs-studio-rust MCP server reference (generated)"],"url":"https://obs-rust.com/ai/docs/mcp-reference.md#obs-studio-rust-mcp-server-reference-generated","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a obs-studio-rust MCP server reference (generated)]\nMCP server `obs-mcp` 0.1.0, protocol 2025-06-18. Platform: Linux only for now. Local only: stdio (`./mcp --mcp`) or a unix socket (`--mcp-listen` / `--mcp-attach`). Built from source with `./mcp --build` in an obs-studio checkout. Machine-readable: https://obs-rust.com/mcp/schema.json.\n\nClient config (Claude Code, Cursor, Claude Desktop):\n```json\n{\"mcpServers\": {\"obs\": {\"command\": \"/path/to/obs-studio/mcp\", \"args\": [\"--mcp\"]}}}\n```\n\n## Resources\n- `obs://scenes` (application/json): The scene graph: the current program scene, every scene and every source.\n- `obs://stats` (application/json): OBS performance: fps, cpu_usage (percent) and dropped_frames.\n\n## Errors\nFailed tool calls return `isError: true` with structuredContent `{code, category, message, retryable}` (ToolError); codes follow obs-websocket v5 status ranges.","chars":894,"tokens_est":224,"sha256":"214b24b6584c2527a64fe91b2f85ef522bfd4883338c87b2b0ebaa1f39205296"},{"id":"mcp-reference#obs-studio-rust-mcp-server-reference-generated-example-sessions-start-recording-","doc":"mcp-reference","group":"mcp","tier":"core","kind":"prose","breadcrumb":["MCP server","obs-studio-rust MCP server reference (generated)","Example sessions","Start recording when the scene is ready"],"url":"https://obs-rust.com/ai/docs/mcp-reference.md#start-recording-when-the-scene-is-ready","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a obs-studio-rust MCP server reference (generated) \u203a Example sessions \u203a Start recording when the scene is ready]\nSwitch scenes, wait for the camera to go live, then record. Writes only after it has looked.\n```\n# Handshake. The server speaks MCP 2025-06-18.\n> {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},\"clientInfo\":{\"name\":\"agent\",\"version\":\"1\"}}}\n< {\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"protocolVersion\":\"2025-06-18\",\"serverInfo\":{\"name\":\"obs-mcp\",\"version\":\"0.1.0\"},\"capabilities\":{\"tools\":{},\"resources\":{}}}}\n> {\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}\n# Put the interview scene on program.\n> {\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"scene_set_current\",\"arguments\":{\"name\":\"Interview\"}}}\n< {\"jsonrpc\":\"2.0\",\"id\":2,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"name\\\":\\\"Interview\\\"}\"}],\"structuredContent\":{\"name\":\"Interview\"},\"isError\":false}}\n# Don't guess with a sleep: block until the camera source is actually active, for up to 10 s.\n> {\"jsonrpc\":\"2.0\",\"id\":3,\"method\":\"tools/call\",\"params\":{\"name\":\"wait_for\",\"arguments\":{\"condition\":{\"type\":\"source_active\",\"name\":\"Camera\"},\"timeout_ms\":10000}}}\n< {\"jsonrpc\":\"2.0\",\"id\":3,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"satisfied\\\":true,\\\"elapsed_ms\\\":180,\\\"last_value\\\":{\\\"kind\\\":\\\"source\\\",\\\"present\\\":true,\\\"active\\\":true}}\"}],\"structuredContent\":{\"satisfied\":true,\"elapsed_ms\":180,\"last_value\":{\"kind\":\"source\",\"present\":true,\"active\":true}},\"isError\":false}}\n# The camera is live. Start recording and wait until the output is really active.\n> {\"jsonrpc\":\"2.0\",\"id\":4,\"method\":\"tools/call\",\"params\":{\"name\":\"record_start\",\"arguments\":{\"wait\":true,\"timeout_ms\":5000}}}\n< {\"jsonrpc\":\"2.0\",\"id\":4,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"active\\\":true}\"}],\"structuredContent\":{\"active\":true},\"isError\":false}}\n```","chars":1887,"tokens_est":472,"sha256":"8b66feed7299a5a06de4537407d3ddcd5cf0d5a481fd587a1e084a3c93690ab4"},{"id":"mcp-reference#obs-studio-rust-mcp-server-reference-generated-example-sessions-is-the-stream-he","doc":"mcp-reference","group":"mcp","tier":"core","kind":"prose","breadcrumb":["MCP server","obs-studio-rust MCP server reference (generated)","Example sessions","Is the stream healthy?"],"url":"https://obs-rust.com/ai/docs/mcp-reference.md#is-the-stream-healthy","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a obs-studio-rust MCP server reference (generated) \u203a Example sessions \u203a Is the stream healthy?]\nThree read-only calls, all allowed by the read-only allowlist. The agent also says what the server cannot tell it.\n```\n# Is the stream output running, and is it moving bytes?\n> {\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"stream_status\",\"arguments\":{}}}\n< {\"jsonrpc\":\"2.0\",\"id\":2,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"active\\\":true,\\\"duration_ms\\\":1804000,\\\"bytes\\\":1352000000}\"}],\"structuredContent\":{\"active\":true,\"duration_ms\":1804000,\"bytes\":1352000000},\"isError\":false}}\n# Has the renderer dropped frames? A zero timeout makes wait_for a one-shot check.\n> {\"jsonrpc\":\"2.0\",\"id\":3,\"method\":\"tools/call\",\"params\":{\"name\":\"wait_for\",\"arguments\":{\"condition\":{\"type\":\"stat_at_most\",\"metric\":\"render_frames_dropped\",\"value\":10},\"timeout_ms\":0}}}\n< {\"jsonrpc\":\"2.0\",\"id\":3,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"satisfied\\\":true,\\\"elapsed_ms\\\":0,\\\"last_value\\\":{\\\"kind\\\":\\\"stat\\\",\\\"metric\\\":\\\"render_frames_dropped\\\",\\\"value\\\":3}}\"}],\"structuredContent\":{\"satisfied\":true,\"elapsed_ms\":0,\"last_value\":{\"kind\":\"stat\",\"metric\":\"render_frames_dropped\",\"value\":3}},\"isError\":false}}\n```\nThis shows the output is active, bytes are moving (compare bytes across two calls) and the renderer keeps up. It does not show network drops, bitrate or reconnects: the server has no such field today, so an agent should not claim them.","chars":1460,"tokens_est":365,"sha256":"f97269a23ffe0116ac865ae7fa09e4efb47c512728303dff01985a9a20dc3306"},{"id":"mcp-reference#obs-studio-rust-mcp-server-reference-generated-example-sessions-when-it-says-no","doc":"mcp-reference","group":"mcp","tier":"core","kind":"prose","breadcrumb":["MCP server","obs-studio-rust MCP server reference (generated)","Example sessions","When it says no"],"url":"https://obs-rust.com/ai/docs/mcp-reference.md#when-it-says-no","source":"https://obs-rust.com/mcp/","text":"[MCP server \u203a obs-studio-rust MCP server reference (generated) \u203a Example sessions \u203a When it says no]\nThe unhappy branches. A typed ToolError gives the agent a code, a category and whether retrying makes sense.\n```\n# Wait for the camera, but it never comes up.\n> {\"jsonrpc\":\"2.0\",\"id\":5,\"method\":\"tools/call\",\"params\":{\"name\":\"wait_for\",\"arguments\":{\"condition\":{\"type\":\"source_active\",\"name\":\"Camera\"},\"timeout_ms\":3000}}}\n< {\"jsonrpc\":\"2.0\",\"id\":5,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"satisfied\\\":false,\\\"elapsed_ms\\\":3000,\\\"last_value\\\":{\\\"kind\\\":\\\"source\\\",\\\"present\\\":true,\\\"active\\\":false}}\"}],\"structuredContent\":{\"satisfied\":false,\"elapsed_ms\":3000,\"last_value\":{\"kind\":\"source\",\"present\":true,\"active\":false}},\"isError\":false}}\n# Not satisfied, so don't record. Report what was observed instead. Next, try the start anyway with a short timeout:\n> {\"jsonrpc\":\"2.0\",\"id\":6,\"method\":\"tools/call\",\"params\":{\"name\":\"record_start\",\"arguments\":{\"wait\":true,\"timeout_ms\":1000}}}\n< {\"jsonrpc\":\"2.0\",\"id\":6,\"result\":{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"code\\\":207,\\\"category\\\":\\\"not_ready\\\",\\\"message\\\":\\\"output start timed out\\\",\\\"retryable\\\":true}\"}],\"structuredContent\":{\"code\":207,\"category\":\"not_ready\",\"message\":\"output start timed out\",\"retryable\":true},\"isError\":true}}\n```\nThe error object is ToolError from control-api.schema.json. Codes use the obs-websocket v5 status ranges.","chars":1396,"tokens_est":349,"sha256":"a3699e147d1e74f0a9a102714488c2ae2aed3859d9fa375fcd27a692dd96c203"},{"id":"site-download#download-obs-studio-rust","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust"],"url":"https://obs-rust.com/ai/docs/site-download.md#download-obs-studio-rust","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust]\nTwo channels. **Stable** is recommended; **Beta** is the newest build from master. Verify a download with `sha256sum <file>` (Linux), `shasum -a 256 <file>` (macOS) or `Get-FileHash <file>` (Windows PowerShell); it must equal the SHA-256 listed.\n\n## Stable: OBS-Studio-Rust v1.0.0\nTag `obs-studio-rust-v1.0.0`, published 2026-11-01. Recommended. The newest release that is not a prerelease. Release page: https://github.com/obs-rust/obs-studio/releases/tag/obs-studio-rust-v1.0.0","chars":506,"tokens_est":126,"sha256":"02c53f72222ea570beb84a06da76488cc95765008e2c8c26b081f3212607d2ae"},{"id":"site-download#download-obs-studio-rust-stable-obs-studio-rust-v1-0-0-windows-x64-arm64","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Stable: OBS-Studio-Rust v1.0.0","Windows (x64 \u00b7 arm64)"],"url":"https://obs-rust.com/ai/docs/site-download.md#windows-x64--arm64","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Stable: OBS-Studio-Rust v1.0.0 \u203a Windows (x64 \u00b7 arm64)]\n| Package | File | Size | SHA-256 |\n|---|---|---|---|\n| Portable \u00b7 x64 | [OBS-Studio-Rust-1.0.0-windows-x64.zip](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.0/OBS-Studio-Rust-1.0.0-windows-x64.zip) | 223 MB | `e07b77781519ae1c9cdcadb7444c13d26cc8fd04d4a3c18531808b24d52534c2` |\n| Portable \u00b7 arm64 | [OBS-Studio-Rust-1.0.0-windows-arm64.zip](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.0/OBS-Studio-Rust-1.0.0-windows-arm64.zip) | 200 MB | `3f54613f0462f8fbcd4bf33d68b7c54dee4453565dd484ff9ea1ba88121676cc` |","chars":659,"tokens_est":165,"sha256":"89472ffbc24d57bd27c5d0c899c84c69c88131aadb00590d9c6e395f9d655ece"},{"id":"site-download#download-obs-studio-rust-stable-obs-studio-rust-v1-0-0-macos-apple-silicon-intel","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Stable: OBS-Studio-Rust v1.0.0","macOS (Apple silicon \u00b7 Intel)"],"url":"https://obs-rust.com/ai/docs/site-download.md#macos-apple-silicon--intel","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Stable: OBS-Studio-Rust v1.0.0 \u203a macOS (Apple silicon \u00b7 Intel)]\n| Package | File | Size | SHA-256 |\n|---|---|---|---|\n| Apple silicon | [OBS-Studio-Rust-1.0.0-macos-arm64.dmg](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.0/OBS-Studio-Rust-1.0.0-macos-arm64.dmg) | 229 MB | `ce528d7066c0c43e665d16cde5d67e7a3ae9f233add4e4d631e43b32f51173f6` |\n| Intel | [OBS-Studio-Rust-1.0.0-macos-x86_64.dmg](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.0/OBS-Studio-Rust-1.0.0-macos-x86_64.dmg) | 245 MB | `6c7803016fe157d56ac5e84685b1a77572104f47fadbdbd3a92be34881328e7b` |","chars":653,"tokens_est":163,"sha256":"551bd2e3ab823cbd5e1b3061cc4b4b4bd4227aa68217e11d980d0e00a5a4967d"},{"id":"site-download#download-obs-studio-rust-stable-obs-studio-rust-v1-0-0-linux-x86-64","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Stable: OBS-Studio-Rust v1.0.0","Linux (x86_64)"],"url":"https://obs-rust.com/ai/docs/site-download.md#linux-x86_64","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Stable: OBS-Studio-Rust v1.0.0 \u203a Linux (x86_64)]\n| Package | File | Size | SHA-256 |\n|---|---|---|---|\n| AppImage \u00b7 any distro | [OBS-Studio-Rust-1.0.0-linux-x86_64.AppImage](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.0/OBS-Studio-Rust-1.0.0-linux-x86_64.AppImage) | 107 MB | `ad525f5e6a4317971894caef01988c59b5e8978614fe200f80a0aebeb55173bf` |\n| .deb \u00b7 Ubuntu 26.04 | [OBS-Studio-Rust-1.0.0-ubuntu-26.04-x86_64.deb](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.0/OBS-Studio-Rust-1.0.0-ubuntu-26.04-x86_64.deb) | 181 MB | `38e8689cc1c4ed00c6750568966523e21feca79669f32a00092423712da1f5a3` |\n| Flatpak bundle | [OBS-Studio-Rust-1.0.0-linux-x86_64.flatpak](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.0/OBS-Studio-Rust-1.0.0-linux-x86_64.flatpak) | 179 MB | `b63987244fd28a1a09cdbe3df93d4a3fa41cc8e35df2eab85f84e676865781d5` |\n\n## Beta: OBS-Studio-Rust v1.0.1-beta.20261122\nTag `obs-studio-rust-v1.0.1-beta.20261122`, published 2026-11-22. Newest build from master: the latest fixes, less testing. Release page: https://github.com/obs-rust/obs-studio/releases/tag/obs-studio-rust-v1.0.1-beta.20261122","chars":1228,"tokens_est":307,"sha256":"e03861c4de14794355835d462295308ac76dcd6a8d2764864b2371004bccac1f"},{"id":"site-download#download-obs-studio-rust-beta-obs-studio-rust-v1-0-1-beta-20261122-windows-x64-a","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Beta: OBS-Studio-Rust v1.0.1-beta.20261122","Windows (x64 \u00b7 arm64)"],"url":"https://obs-rust.com/ai/docs/site-download.md#windows-x64--arm64-1","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Beta: OBS-Studio-Rust v1.0.1-beta.20261122 \u203a Windows (x64 \u00b7 arm64)]\n| Package | File | Size | SHA-256 |\n|---|---|---|---|\n| Installer \u00b7 x64 | [OBS-Studio-Rust-1.0.1-beta.20261122-windows-x64.msi](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-windows-x64.msi) | 191 MB | `506681504cf429effd71134c120f09697d9fe70e83fcf90023a4f84bfcc1d686` |\n| Installer \u00b7 arm64 | [OBS-Studio-Rust-1.0.1-beta.20261122-windows-arm64.msi](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-windows-arm64.msi) | 165 MB | `beae8ca6fe42ff8754d15d24b41ab5be5193fd7a727b4df3edd8f95b2c8d883e` |\n| Portable \u00b7 x64 | [OBS-Studio-Rust-1.0.1-beta.20261122-windows-x64.zip](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-windows-x64.zip) | 224 MB | `39abb5a9ff091cbe625abe1e22e9eff1a9f6659fa657faa31f433394a239d059` |\n| Portable \u00b7 arm64 | [OBS-Studio-Rust-1.0.1-beta.20261122-windows-arm64.zip](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-windows-arm64.zip) | 201 MB | `eaab8ecb8e949c12b3592cd99b01ff2f917a2b5d43cadc6d409f0828df7f4469` |","chars":1363,"tokens_est":341,"sha256":"ef5940c3970d5c66ce1d97d8fa59e8deec2dc279aec6bb6465511348759f446e"},{"id":"site-download#download-obs-studio-rust-beta-obs-studio-rust-v1-0-1-beta-20261122-macos-apple-s","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Beta: OBS-Studio-Rust v1.0.1-beta.20261122","macOS (Apple silicon \u00b7 Intel)"],"url":"https://obs-rust.com/ai/docs/site-download.md#macos-apple-silicon--intel-1","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Beta: OBS-Studio-Rust v1.0.1-beta.20261122 \u203a macOS (Apple silicon \u00b7 Intel)]\n| Package | File | Size | SHA-256 |\n|---|---|---|---|\n| Apple silicon | [OBS-Studio-Rust-1.0.1-beta.20261122-macos-arm64.dmg](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-macos-arm64.dmg) | 229 MB | `5cf9305efa85e99aa1fc5f61686a23e445bcd4eac7e63efa27b1a5c304105535` |\n| Intel | [OBS-Studio-Rust-1.0.1-beta.20261122-macos-x86_64.dmg](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-macos-x86_64.dmg) | 245 MB | `01594a3db648e4b2ffd9eb610f2f8e1ac3eab39c9edf70408519ef2d075a3e8a` |","chars":749,"tokens_est":187,"sha256":"28cb8fa4e3f5e0b642e9477241addd94788fa5b4a4cd78aea215604b092d3c2f"},{"id":"site-download#download-obs-studio-rust-beta-obs-studio-rust-v1-0-1-beta-20261122-linux-x86-64","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Beta: OBS-Studio-Rust v1.0.1-beta.20261122","Linux (x86_64)"],"url":"https://obs-rust.com/ai/docs/site-download.md#linux-x86_64-1","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Beta: OBS-Studio-Rust v1.0.1-beta.20261122 \u203a Linux (x86_64)]\n| Package | File | Size | SHA-256 |\n|---|---|---|---|\n| AppImage \u00b7 any distro | [OBS-Studio-Rust-1.0.1-beta.20261122-linux-x86_64.AppImage](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-linux-x86_64.AppImage) | 107 MB | `8bb128c33b9cb5c5b815d9f0a7a9af7654ebcca91a1ef6b7eaa7791c10b8c373` |\n| .deb \u00b7 Ubuntu 26.04 | [OBS-Studio-Rust-1.0.1-beta.20261122-ubuntu-26.04-x86_64.deb](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-ubuntu-26.04-x86_64.deb) | 181 MB | `a00365581d4ec3935dcda7d7e9d2781e177230b82c011b8b769b257126012f61` |\n| Flatpak bundle | [OBS-Studio-Rust-1.0.1-beta.20261122-linux-x86_64.flatpak](https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v1.0.1-beta.20261122/OBS-Studio-Rust-1.0.1-beta.20261122-linux-x86_64.flatpak) | 179 MB | `4da1ad46bc4f7a67053a93706e56029e8f65f3d14839aac9773c591231ab2248` |","chars":1092,"tokens_est":273,"sha256":"02b14144a0f58873e4276159b43aa42508c11a30c335beabd82614b9d4fd1da5"},{"id":"site-download#download-obs-studio-rust-install-notes-from-the-project-readme","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Install notes (from the project README)"],"url":"https://obs-rust.com/ai/docs/site-download.md#install-notes-from-the-project-readme","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Install notes (from the project README)]\nOBS-Studio-Rust is a **beta**. Every package is attached to a release in\n[releases](https://github.com/obs-rust/obs-studio/releases), named\n`OBS-Studio-Rust-<version>-<os>-<cpu>.<ext>`: take the newest\n`obs-studio-rust-v*` release and the file for your OS and CPU. Each release\nalso ships a `SHA256SUMS` file.\n\nIt installs and runs **beside** upstream OBS Studio. It has its own app\nidentity and keeps its settings in an `obs-studio-rust` folder inside the\nusual per-user config directory, so neither program overwrites the other. On\nits first start it copies upstream OBS's settings, profiles, scenes and\nplug-in settings without changing the originals; later upstream changes are\nnot imported again. Windows and macOS are a new app identity, so the OS may\nask for capture permissions again.","chars":861,"tokens_est":215,"sha256":"f164029c83d55715f675c5e09bcfdb6376c4ef4b831b5ad09632b66c32bcf8de"},{"id":"site-download#download-obs-studio-rust-install-notes-from-the-project-readme-linux-x86-64","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Install notes (from the project README)","Linux (x86_64)"],"url":"https://obs-rust.com/ai/docs/site-download.md#linux-x86_64-2","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Install notes (from the project README) \u203a Linux (x86_64)]\n- **AppImage** \u2014 any distribution: `chmod +x OBS-Studio-Rust-*-linux-x86_64.AppImage`,\n  then run it. The AppImage is tested on AlmaLinux 8 (the glibc 2.28 floor),\n  Ubuntu 22.04, Ubuntu 24.04, Arch Linux and NixOS. On NixOS, see the\n  AppImage entry in the Q&A below.\n- **.deb** \u2014 Ubuntu 26.04: `sudo apt install ./OBS-Studio-Rust-*-ubuntu-26.04-x86_64.deb`.\n  It installs the GUI as `obs-studio-rust-gui`; `obs-studio-rust` is the\n  obs-websocket command-line client. It keeps its settings in\n  `~/.config/obs-studio-rust`.\n- **Flatpak bundle**: `flatpak install --user ./OBS-Studio-Rust-*-linux-x86_64.flatpak`,\n  then `flatpak run io.github.obs_rust.OBSStudioRust`. It gets the Freedesktop\n  runtime from Flathub and does not update itself yet: install the next\n  release's bundle the same way. It is not on Flathub (`com.obsproject.Studio`\n  there is upstream OBS Studio), so it installs as\n  `io.github.obs_rust.OBSStudioRust`, beside upstream's rather than over it.\n  Its settings are in `~/.var/app/io.github.obs_rust.OBSStudioRust/config/obs-studio`,\n  and its plug-ins go in\n  `~/.var/app/io.github.obs_rust.OBSStudioRust/data/obs-studio/plugins/`. To\n  bring your scenes over from upstream's Flatpak, copy\n  `~/.var/app/com.obsproject.Studio/config/obs-studio` to that config folder.","chars":1380,"tokens_est":345,"sha256":"1a348ccbb26bc47dc90fc6a7c61a2b41b9c2d17b9cbf6878cdf6865152283c86"},{"id":"site-download#download-obs-studio-rust-install-notes-from-the-project-readme-macos-arm64-x86-6","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Install notes (from the project README)","macOS (arm64, x86_64)"],"url":"https://obs-rust.com/ai/docs/site-download.md#macos-arm64-x86_64","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Install notes (from the project README) \u203a macOS (arm64, x86_64)]\nOpen the `.dmg` for your CPU (`macos-arm64` on Apple silicon, `macos-x86_64`\non Intel), copy `OBS-Studio-Rust.app` to Applications, and start it.\nPackages are signed and notarized when the project's release credentials are\nconfigured. For an unnotarized download, try opening the app once, then allow\nit in **System Settings \u2192 Privacy & Security \u2192 Open Anyway**; for a download\nyou trust, the Terminal alternative is\n`xattr -dr com.apple.quarantine /Applications/OBS-Studio-Rust.app`, which\nremoves quarantine from that app only (see\n[Apple's guidance](https://support.apple.com/102445)). Its settings are in\n`~/Library/Application Support/obs-studio-rust`.","chars":750,"tokens_est":188,"sha256":"cfa40badee80cffdcccaf50c3c46c9348b1de80acd22f2495186ec7bddacaee4"},{"id":"site-download#download-obs-studio-rust-install-notes-from-the-project-readme-windows-x64-arm64","doc":"site-download","group":"site","tier":"core","kind":"prose","breadcrumb":["Download OBS Studio Rust","Install notes (from the project README)","Windows (x64, arm64)"],"url":"https://obs-rust.com/ai/docs/site-download.md#windows-x64-arm64","source":"https://obs-rust.com/#download","text":"[Download OBS Studio Rust \u203a Install notes (from the project README) \u203a Windows (x64, arm64)]\n**Installer (BETA):** run `OBS-Studio-Rust-<version>-windows-x64.msi` (or\n`-arm64.msi`). It lets you pick the install folder, adds an\n**OBS-Studio-Rust BETA** Start menu entry, and is removed from **Settings >\nApps** (Add/Remove Programs); uninstalling leaves your settings in place.\n\n**Portable:** unpack the `.zip` for your CPU, then start `bin\\64bit\\obs64.exe`\nfrom the unpacked folder. SmartScreen warns on the first start: choose **More info**,\nthen **Run anyway** if you trust the download. The `-symbols.zip` files are\nonly for decoding crash dumps. Its settings are in `%APPDATA%\\obs-studio-rust`.","chars":697,"tokens_est":174,"sha256":"cd7b27d972db054c6d965f0c26194e613e48b70173dbf3aae0e4506f03debe80"},{"id":"site-control#control-obs-studio-rust-from-code-websocket-or-mcp","doc":"site-control","group":"site","tier":"core","kind":"prose","breadcrumb":["Control OBS Studio Rust from code: WebSocket or MCP"],"url":"https://obs-rust.com/ai/docs/site-control.md#control-obs-studio-rust-from-code-websocket-or-mcp","source":"https://obs-rust.com/websocket/","text":"[Control OBS Studio Rust from code: WebSocket or MCP]\nOBS Studio Rust can be driven two ways: obs-websocket from any machine that can reach OBS, or the MCP server\non the OBS machine itself (Linux).\n\n## Choose\n| You are writing | Use | Why |\n|---|---|---|\n| A tool, bot, overlay, Stream Deck action or any existing obs-websocket client | **obs-websocket v5** | The standard OBS remote-control protocol: 147 requests, 60 events, 7 enums. Existing clients work unchanged. |\n| An AI agent that should operate OBS through typed tools | **MCP server** | 30 typed tools with JSON Schema arguments and results; 13 are read-only. Errors are typed (`ToolError`) and `wait_for` blocks on a condition instead of polling. |","chars":710,"tokens_est":178,"sha256":"594a7121b673dbc87b568615a4d3df6153f697a5c08c20197e313ecf6608ee04"},{"id":"site-control#control-obs-studio-rust-from-code-websocket-or-mcp-obs-websocket-v5","doc":"site-control","group":"site","tier":"core","kind":"prose","breadcrumb":["Control OBS Studio Rust from code: WebSocket or MCP","obs-websocket v5"],"url":"https://obs-rust.com/ai/docs/site-control.md#obs-websocket-v5","source":"https://obs-rust.com/websocket/","text":"[Control OBS Studio Rust from code: WebSocket or MCP \u203a obs-websocket v5]\n- Connect to `ws://<host>:4455`: the OBS machine itself or any host that can reach it (the port is set in\n  Tools \u2192 WebSocket Server Settings). A WebSocket client may run remotely.\n- Handshake: the server sends `Hello` (op 0); you reply `Identify` (op 1) with `rpcVersion: 1` and, if a\n  password is set, `authentication = base64(sha256(base64(sha256(password + salt)) + challenge))`; the server\n  answers `Identified` (op 2). Then send `Request` (op 6) messages and read `RequestResponse` (op 7).\n- First request: `{\"op\":6,\"d\":{\"requestType\":\"GetVersion\",\"requestId\":\"1\"}}`.\n- Full reference: https://obs-rust.com/websocket/ (browsable, with a live console),\n  https://obs-rust.com/websocket/protocol.json (machine-readable spec),\n  https://obs-rust.com/ai/docs/obs-websocket-reference.md (markdown, one section per request).\n- Client libraries and runnable snippets: https://obs-rust.com/ai/docs/site-examples.md.","chars":988,"tokens_est":247,"sha256":"75011a00db90d06d98a5940f6146f2f9e2e1d07596db86f73a19fd72554d471c"},{"id":"site-control#control-obs-studio-rust-from-code-websocket-or-mcp-mcp-server","doc":"site-control","group":"site","tier":"core","kind":"prose","breadcrumb":["Control OBS Studio Rust from code: WebSocket or MCP","MCP server"],"url":"https://obs-rust.com/ai/docs/site-control.md#mcp-server","source":"https://obs-rust.com/websocket/","text":"[Control OBS Studio Rust from code: WebSocket or MCP \u203a MCP server]\n- Linux only for now: the server is built from an obs-studio checkout and runs on Linux. It is local: it runs on\n  the OBS machine, next to the agent.\n- The server speaks JSON-RPC over stdio (MCP protocol 2025-06-18). Client config, requirements and\n  example sessions: https://obs-rust.com/mcp/index.md.\n- Tool list without starting the server: https://obs-rust.com/mcp/schema.json (tools/list + resources/list + ToolError).\n- A read-only allowlist for cautious clients: https://obs-rust.com/mcp/read-only-allowlist.json.","chars":589,"tokens_est":147,"sha256":"c7a66b44e279dec353f8839bfbd24cd7fa338d8c41cb3fae61dacf77922f06af"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code"],"url":"https://obs-rust.com/ai/docs/site-examples.md#examples-drive-obs-studio-rust-from-code","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code]\nGenerated from https://obs-rust.com/examples/. Every snippet targets obs-websocket v5 on `ws://localhost:4455` unless it says MCP.\n\n## Examples\nWorking starting points for everything that talks to OBS: WebSocket clients, agents over MCP, scripts and native plugins.\n\n### Hello, OBS\n**Rust**\n\nInstall: `cargo add obws tokio --features tokio/full`\n\n```rust\nuse obws::Client;\n\n#[tokio::main]\nasync fn main() -> obws::error::Result<()> {\n    let client = Client::connect(\"127.0.0.1\", 4455, Some(\"password\")).await?;\n\n    let v = client.general().version().await?;\n    println!(\"OBS {} \u00b7 websocket {}\", v.obs_version, v.obs_web_socket_version);\n\n    for scene in client.scenes().list().await?.scenes {\n        println!(\"scene: {}\", scene.id.name);\n    }\n    Ok(())\n}\n```\n\n**Python**\n\nInstall: `uv add obsws-python`\n\n```python\nimport obsws_python as obs\n\ncl = obs.ReqClient(host=\"127.0.0.1\", port=4455, password=\"password\", timeout=3)\n\nv = cl.get_version()\nprint(f\"OBS {v.obs_version} \u00b7 websocket {v.obs_web_socket_version}\")\n\nfor scene in cl.get_scene_list().scenes:\n    print(\"scene:\", scene[\"sceneName\"])\n\ncl.set_current_program_scene(\"BRB\")\n```\n\n**JavaScript**\n\nInstall: `npm i obs-websocket-js`\n\n```js\nimport OBSWebSocket from 'obs-websocket-js';\n\nconst obs = new OBSWebSocket();\nawait obs.connect('ws://127.0.0.1:4455', 'password');\n\nconst { obsVersion, obsWebSocketVersion } = await obs.call('GetVersion');\nconsole.log(`OBS ${obsVersion} \u00b7 websocket ${obsWebSocketVersion}`);\n\nconst { scenes } = await obs.call('GetSceneList');\nscenes.forEach(s => console.log('scene:', s.sceneName));\n\nawait obs.call('SetCurrentProgramScene', { sceneName: 'BRB' });\n```\n\nConnect, authenticate, read the version and switch scenes. Enable the server first under Tools \u2192 WebSocket Server Settings (default port 4455).\n\nEvery request name and field is in the [API reference](https://obs-rust.com/websocket/), and you can try one live from that page before you write any code.","chars":2000,"tokens_est":500,"sha256":"26aa3b6a8f3d0f4b3c12adde9209637b1d31c514c2e58ed6d73c79f3e23190a8"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code-examples-listen-to-events","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code","Examples","Listen to events"],"url":"https://obs-rust.com/ai/docs/site-examples.md#listen-to-events","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code \u203a Examples \u203a Listen to events]\nEvents arrive as op 5 messages. Choose which categories you receive with the [EventSubscription](https://obs-rust.com/websocket/#EventSubscription) bitmask when you identify.\n\n**JavaScript**\n\n```js\nobs.on('CurrentProgramSceneChanged', ({ sceneName }) => console.log('live:', sceneName));\nobs.on('StreamStateChanged', ({ outputActive, outputState }) => console.log(outputState));\nobs.on('InputMuteStateChanged', ({ inputName, inputMuted }) =>\n  console.log(`${inputName} ${inputMuted ? 'muted' : 'live'}`));\n```\n\n**Python**\n\n```python\nimport obsws_python as obs\n\nev = obs.EventClient(host=\"127.0.0.1\", port=4455, password=\"password\")\n\ndef on_current_program_scene_changed(data):\n    print(\"live:\", data.scene_name)\n\nev.callback.register(on_current_program_scene_changed)\ninput(\"listening, press Enter to quit\\n\")\n```","chars":889,"tokens_est":222,"sha256":"b7c71bab0675a062109f78e79977563a2a395be3c0f0a8c9aef219c3fb13ccd6"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code-examples-raw-handshake","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code","Examples","Raw handshake"],"url":"https://obs-rust.com/ai/docs/site-examples.md#raw-handshake","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code \u203a Examples \u203a Raw handshake]\nNo client library needed. Here is the whole v5 protocol in about 25 lines: Hello (op 0), a SHA-256 challenge, Identify (op 1), Identified (op 2), and then requests (op 6) and responses (op 7).\n\nInstall: `uv run --with websockets raw.py`\n\n```\nimport asyncio, base64, hashlib, json, websockets\n\ndef b64sha(s: str) -> str:\n    return base64.b64encode(hashlib.sha256(s.encode()).digest()).decode()\n\nasync def main(url=\"ws://127.0.0.1:4455\", password=\"password\"):\n    async with websockets.connect(url) as ws:\n        hello = json.loads(await ws.recv())                  # op 0\n        ident = {\"rpcVersion\": 1}\n        if auth := hello[\"d\"].get(\"authentication\"):\n            secret = b64sha(password + auth[\"salt\"])\n            ident[\"authentication\"] = b64sha(secret + auth[\"challenge\"])\n        await ws.send(json.dumps({\"op\": 1, \"d\": ident}))      # Identify\n        print(json.loads(await ws.recv()))                     # op 2 Identified\n\n        await ws.send(json.dumps({\"op\": 6, \"d\": {\"requestType\": \"GetStats\", \"requestId\": \"1\"}}))\n        while (msg := json.loads(await ws.recv()))[\"op\"] != 7:\n            pass                                                # skip events\n        print(json.dumps(msg[\"d\"][\"responseData\"], indent=2))\n\nasyncio.run(main())\n```","chars":1336,"tokens_est":334,"sha256":"dd7037641b5aadc199d61612d832a5f52bb46dbdc602874b1b2e63976961c5e4"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code-examples-batch-requests","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code","Examples","Batch requests"],"url":"https://obs-rust.com/ai/docs/site-examples.md#batch-requests","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code \u203a Examples \u203a Batch requests]\nop 8 sends several requests in one message, and OBS can run them on frame boundaries. `Sleep` with `sleepFrames` makes timed sequences: here, a cut to a scene, a wait of 60 frames, and a recording start.\n\n```\n{\n  \"op\": 8,\n  \"d\": {\n    \"requestId\": \"intro\",\n    \"executionType\": 1,            // SerialFrame\n    \"requests\": [\n      { \"requestType\": \"SetCurrentProgramScene\", \"requestData\": { \"sceneName\": \"Intro\" } },\n      { \"requestType\": \"Sleep\", \"requestData\": { \"sleepFrames\": 60 } },\n      { \"requestType\": \"StartRecord\" }\n    ]\n  }\n}\n```\n\nExecution types are in [RequestBatchExecutionType](https://obs-rust.com/websocket/#RequestBatchExecutionType).","chars":727,"tokens_est":182,"sha256":"cf25e960345187901a8af7dc14d7bbe664dfc365db473851ed8c04c15d065d4c"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code-examples-mcp-for-agents","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code","Examples","MCP for agents"],"url":"https://obs-rust.com/ai/docs/site-examples.md#mcp-for-agents","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code \u203a Examples \u203a MCP for agents]\nobs-studio-rust includes a Model Context Protocol server. An AI agent can list typed tools, start and stop outputs, inspect sources and wait for output, media or metric conditions, without screenshots or a GUI. It runs headless on Linux with Wayland or X11, and without either for control-only use.\n\n```\n# from an obs-studio checkout: build the libobs-enabled app, then talk JSON-RPC over stdio\n./mcp --build\nprintf '%s\\n' '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}' | ./mcp --mcp\n\n# or serve on a unix socket and attach clients to it\n./mcp --mcp-listen /run/user/1000/obs-control.sock\n./mcp --mcp-attach /run/user/1000/obs-control.sock\n```\n\nThe repo's `.mcp.json` already wires this up for Claude Code. Details: [mcp.md](https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/mcp.md) and [control-api.md](https://github.com/obs-rust/obs-studio/blob/master/docs/rust-port/control-api.md) (tools, schemas, metrics).","chars":1002,"tokens_est":250,"sha256":"598d4ae263f1f9bb75038a81891b4a2856ed62e1d06ddf7757ffb8209e4c627b"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code-examples-obs-scripts","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code","Examples","OBS scripts"],"url":"https://obs-rust.com/ai/docs/site-examples.md#obs-scripts","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code \u203a Examples \u203a OBS scripts]\nPython and Lua scripts load from Tools \u2192 Scripts. The scripting API is unchanged, so existing scripts keep working.\n\n```\nimport obspython as obs\n\ndef script_description():\n    return \"Logs every scene change.\"\n\ndef on_event(event):\n    if event == obs.OBS_FRONTEND_EVENT_SCENE_CHANGED:\n        scene = obs.obs_frontend_get_current_scene()\n        print(\"scene:\", obs.obs_source_get_name(scene))\n        obs.obs_source_release(scene)\n\ndef script_load(settings):\n    obs.obs_frontend_add_event_callback(on_event)\n```\n\nReference: [scripting](https://obs-rust.com/ai/docs/docs-sphinx-scripting.md) and [frontend API](https://obs-rust.com/ai/docs/docs-sphinx-reference-frontend-api.md).","chars":750,"tokens_est":188,"sha256":"035ce1175255b7c4c5cbfd94348a7788e20e8d0d3a7426507025d72b59673f49"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code-examples-native-plugins","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code","Examples","Native plugins"],"url":"https://obs-rust.com/ai/docs/site-examples.md#native-plugins","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code \u203a Examples \u203a Native plugins]\nThe libobs C ABI is a compatibility contract. Plugins already compiled for OBS load in obs-studio-rust without a rebuild, and new plugins are written the same way.\n\n- [Plugin template](https://github.com/obs-rust/obs-plugintemplate): CMake skeleton with CI for Windows, macOS and Linux.\n\n- [Plugin guide](https://obs-rust.com/ai/docs/docs-sphinx-plugins.md): Sources, outputs, encoders and services: the module lifecycle and the registration structs.\n\n- [obs-avip](https://github.com/obs-rust/obs-avip): An NDI\u00ae source and output written in Rust, a drop-in for DistroAV. Use it as a reference plugin in Rust.","chars":680,"tokens_est":170,"sha256":"fb0fdd28a9ffb98f02b789caa99f675c173607db4138b2270ea39787fcf21380"},{"id":"site-examples#examples-drive-obs-studio-rust-from-code-examples-client-libraries","doc":"site-examples","group":"site","tier":"core","kind":"prose","breadcrumb":["Examples: drive OBS Studio Rust from code","Examples","Client libraries"],"url":"https://obs-rust.com/ai/docs/site-examples.md#client-libraries","source":"https://obs-rust.com/examples/","text":"[Examples: drive OBS Studio Rust from code \u203a Examples \u203a Client libraries]\nAny obs-websocket v5 client library should work. A few well-maintained ones:\n\n| Language | Library | Install |\n|---|---|---|\n| Rust | [obws](https://github.com/dnaka91/obws) | `cargo add obws` |\n| JavaScript / TS | [obs-websocket-js](https://github.com/obs-websocket-community-projects/obs-websocket-js) | `npm i obs-websocket-js` |\n| Python | [obsws-python](https://github.com/aatikturk/obsws-python) | `uv add obsws-python` |\n| Python (async) | [simpleobsws](https://github.com/IRLToolkit/simpleobsws) | `uv add simpleobsws` |\n| Go | [goobs](https://github.com/andreykaipov/goobs) | `go get github.com/andreykaipov/goobs` |\n| C# / .NET | [obs-websocket-dotnet](https://github.com/BarRaider/obs-websocket-dotnet) | `dotnet add package obs-websocket-dotnet` |\n\nUpstream's full list is in the [obs-websocket README](https://github.com/obsproject/obs-websocket#language-apis).","chars":948,"tokens_est":237,"sha256":"e4ed856c22583f8ba059abd255121da9bd5ec71938735cba170e04ec1458186e"}]}