# OBS Studio Rust (obs-rust) > obs-studio-rust is an independent, hybrid Rust/C/C++ rewrite of OBS Studio that keeps the libobs C ABI, the obs-websocket v5 protocol and the plugin/scripting APIs compatible. It ships stable and beta builds for Windows, macOS and Linux, and a local MCP server for agents. Source: https://github.com/obs-rust/obs-studio. Generated 2026-11-23 from obs-studio@524486a44 and obs-websocket@c2366e8d2. Releases: stable obs-studio-rust-v1.0.0; beta obs-studio-rust-v1.0.1-beta.20261122. corpus.json has schema_version 2, 1746 chunks, and is also split per group under /ai/corpus/.jsonl. ## Router Task → the one file to fetch first (exact size in bytes). - Install and verify the download: [/ai/docs/site-download.md](https://obs-rust.com/ai/docs/site-download.md) (9541 bytes) - Choose WebSocket or MCP and connect: [/ai/docs/site-control.md](https://obs-rust.com/ai/docs/site-control.md) (2377 bytes) - Copy a working client snippet: [/ai/docs/site-examples.md](https://obs-rust.com/ai/docs/site-examples.md) (8169 bytes) - Look up an obs-websocket request, event or enum: [/ai/docs/obs-websocket-reference.md](https://obs-rust.com/ai/docs/obs-websocket-reference.md) (91877 bytes) - Machine-readable obs-websocket spec: [/websocket/protocol.json](https://obs-rust.com/websocket/protocol.json) (238852 bytes) - Control OBS from an agent (MCP): [/mcp/index.md](https://obs-rust.com/mcp/index.md) (19372 bytes) - MCP tools/list without starting the server: [/mcp/schema.json](https://obs-rust.com/mcp/schema.json) (69520 bytes) - Write a native plugin (libobs C API): [/ai/docs/docs-sphinx-plugins.md](https://obs-rust.com/ai/docs/docs-sphinx-plugins.md) (20579 bytes) - Contribute to the port: [/ai/docs/agents.md](https://obs-rust.com/ai/docs/agents.md) (14702 bytes) - Everything core in one context window: [/llms-ctx.txt](https://obs-rust.com/llms-ctx.txt) (230741 bytes) - Retrieval: typed chunks with breadcrumbs: [/ai/corpus.json](https://obs-rust.com/ai/corpus.json) (2746348 bytes) - Every document with its SHA-256: [/ai/manifest.json](https://obs-rust.com/ai/manifest.json) (53530 bytes) ## Feeds - [llms-ctx.txt: core bundle, one context window](https://obs-rust.com/llms-ctx.txt): 225 KB, ~57k tokens - [llms-full.txt: every document](https://obs-rust.com/llms-full.txt): 1794 KB, ~459k tokens - [corpus.json: typed chunks with breadcrumbs, for retrieval](https://obs-rust.com/ai/corpus.json): 2682 KB, ~686k tokens - [protocol.json: obs-websocket v5 spec](https://obs-rust.com/websocket/protocol.json): 233 KB, ~59k tokens ## Start here - [obs-studio-rust](https://obs-rust.com/ai/docs/readme.md): This is an independent rewrite of the obsproject's obs-studio. - [Agent instructions](https://obs-rust.com/ai/docs/agents.md): This repository is governed by the Constitution of the obs-rust Project, which supersedes every other document here, this one included. - [obs-websocket 5.x.x Protocol](https://obs-rust.com/ai/docs/obs-websocket-docs-generated-protocol.md): obs-websocket provides a feature-rich RPC communication protocol, giving access to much of OBS's feature set. - [Download OBS Studio Rust](https://obs-rust.com/ai/docs/site-download.md): Two channels. - [Control OBS Studio Rust from code: WebSocket or MCP](https://obs-rust.com/ai/docs/site-control.md): OBS Studio Rust can be driven two ways: obs-websocket from any machine that can reach OBS, or the MCP server on the OBS machine itself (Linux). ## Install and use - [Security tracker](https://obs-rust.com/security/): how to report a vulnerability, coordinated disclosure with the OBS Project, encrypted disclosure archives with their SHA-256, and the published advisories - [Security policy](https://obs-rust.com/ai/docs/security.md): obs-rust is a fork of OBS Studio that is being converted to Rust. - [Features ledger](https://obs-rust.com/ai/docs/docs-features.md): Everything OBS-Studio-Rust does differently from upstream OBS Studio, for a user: new features, changed behavior, and fixed upstream bugs. - [GPU acceleration status light](https://obs-rust.com/ai/docs/docs-gpu-status.md): OBS-Studio-Rust shows a light in the status bar that says whether video is rendered on a hardware GPU (obs-rust/obs-studio#846). ## Control OBS - [MCP server](https://obs-rust.com/mcp/index.md): 30 typed tools to control a local obs-studio-rust from an agent: client config, requirements, sessions, reference - [MCP schema (JSON)](https://obs-rust.com/mcp/schema.json): pre-fetched tools/list + resources/list + ToolError - [WebSocket API reference (HTML)](https://obs-rust.com/websocket/): every obs-websocket v5 request, event and enum, with a live console - [Examples](https://obs-rust.com/examples/): Rust, Python, JS and raw-socket clients, batch requests, scripts, plugins - [Control API](https://obs-rust.com/ai/docs/docs-rust-port-control-api.md): Extend obs-mcp; preserve existing tool names, successful text/image payloads, headless stdio and the unchanged C++ obs-websocket plugin. - [MCP control server](https://obs-rust.com/ai/docs/docs-rust-port-mcp.md): From the repository root, build the libobs-enabled application with: - [obs-websocket v5 protocol reference (generated)](https://obs-rust.com/ai/docs/obs-websocket-reference.md): Every obs-websocket v5 request, event and enum with its fields, generated from protocol.json. - [obs-studio-rust MCP server reference (generated)](https://obs-rust.com/ai/docs/mcp-reference.md): Every MCP tool with arguments, returns and annotations, plus resources, errors and example sessions, generated from the server's schema. - [Examples: drive OBS Studio Rust from code](https://obs-rust.com/ai/docs/site-examples.md): Generated from https://obs-rust.com/examples/. ## Extend OBS - [Frontends](https://obs-rust.com/ai/docs/docs-sphinx-frontends.md): To initialize libobs, you must call obs_startup(), obs_reset_video(), and then obs_reset_audio(). - [Rendering Graphics](https://obs-rust.com/ai/docs/docs-sphinx-graphics.md): Libobs has a custom-made programmable graphics subsystem that wraps both Direct3D 11 and OpenGL. - [Plugins](https://obs-rust.com/ai/docs/docs-sphinx-plugins.md): Plugins can implement sources, outputs, encoders, and services. - [OBS Core API Reference](https://obs-rust.com/ai/docs/docs-sphinx-reference-core.md): bool obs_startup(const char *locale, const char *module_config_path, profiler_name_store_t *store) - [Encoder API Reference (obs_encoder_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-encoders.md): Encoders are OBS-specific implementations of video/audio encoders, which are used with outputs that use encoders. - [OBS Studio Frontend API](https://obs-rust.com/ai/docs/docs-sphinx-reference-frontend-api.md): The OBS Studio frontend API is the API specific to OBS Studio itself. - [Output API Reference (obs_output_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-outputs.md): Outputs allow the ability to output the currently rendering audio/video. - [Service API Reference (obs_service_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-services.md): Services are custom implementations of streaming services, which are used with outputs that stream. - [Source API Reference (obs_source_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-sources.md): Sources are used to render video and/or audio on stream. - [Python/Lua Scripting](https://obs-rust.com/ai/docs/docs-sphinx-scripting.md): Scripting (21.0+) adds support for Python 3 and Luajit 2 (which is roughly equivalent to Lua 5.2), allowing the ability to quickly extend, add features, or… ## Contribute - [Building C, C++ and Objective-C: unity groups and precompiled headers](https://obs-rust.com/ai/docs/build.md): This is the build policy for every first-party C, C++ and Objective-C source in this repository (libobs/, libobs-*/, frontend/, plugins/, shared/). - [General Contribution Guidelines](https://obs-rust.com/ai/docs/contributing.md): OBS Studio Contribution Guidelines ============ - [Reducing Potential For Errors](https://obs-rust.com/ai/docs/codestyle.md): OBS Studio Code Style Guidelines ================================ - [Constitution](https://obs-rust.com/ai/docs/constitution.md): This repository is governed by the Constitution of the obs-rust Project. - [CI and build tooling: how not to drown the machines](https://obs-rust.com/ai/docs/docs-ci-tooling.md): Many agents and people work on this repo at once, on shared machines and a shared pool of GitHub runners. - [Coordinating work: issues, claims and pull requests](https://obs-rust.com/ai/docs/docs-rust-port-coordination.md): Many contributors here are AI agents working in parallel, including the maintainer's own automated runs. - [Naming](https://obs-rust.com/ai/docs/docs-rust-port-naming.md): One name per thing, so releases, crates and tags can't be confused (#320). - [Rust Port Testing Policy](https://obs-rust.com/ai/docs/docs-rust-port-testing-policy.md): OBS Studio keeps its existing public API, but its internals are rewritten in Rust. - [Knowledge bundle](https://obs-rust.com/ai/docs/docs-knowledge-index.md): Lessons that cost someone hours to find and that the next worker would otherwise find again. ## Optional - Process docs (30): [macOS Qt contract artifacts (#5008, slice c)](https://obs-rust.com/ai/docs/docs-ci-macos-qt-artifacts.md), [Merge-group scope and native runner capacity — 2026-11-04](https://obs-rust.com/ai/docs/docs-ci-merge-group-scope.md), [Tier 2 runner capacity on the merge queue (2026-11-07)](https://obs-rust.com/ai/docs/docs-ci-tier2-queue-capacity.md), [Fallback warning](https://obs-rust.com/ai/docs/docs-fallback-warning.md), [Feature sources](https://obs-rust.com/ai/docs/docs-feature-sources.md), [macOS signing policy](https://obs-rust.com/ai/docs/docs-macos-signing.md), [Worker prompt](https://obs-rust.com/ai/docs/docs-worker-prompt.md), [Back pressure and AI rebase](https://obs-rust.com/ai/docs/docs-rust-port-backpressure.md), [Cargo-driven OBS native build conversion](https://obs-rust.com/ai/docs/docs-rust-port-cc-build.md), [Shared registration conflicts](https://obs-rust.com/ai/docs/docs-rust-port-conflict-hotspots.md), [FFmpeg orientation metadata selection characterization](https://obs-rust.com/ai/docs/docs-rust-port-ffmpeg-orientation-characterization.md), [Scheduled differential fuzzing](https://obs-rust.com/ai/docs/docs-rust-port-fuzzing.md), [Hybrid default validation (#1587)](https://obs-rust.com/ai/docs/docs-rust-port-hybrid-build-validation.md), [Hybrid application build](https://obs-rust.com/ai/docs/docs-rust-port-hybrid-build.md), [Public-header platform conditional audit (#878)](https://obs-rust.com/ai/docs/docs-rust-port-public-header-conditionals.md), [Rust implementation release criteria](https://obs-rust.com/ai/docs/docs-rust-port-release-criteria.md), [Troubleshooting your environment](https://obs-rust.com/ai/docs/docs-rust-port-troubleshooting.md), [obs-websocket v5 port boundary](https://obs-rust.com/ai/docs/docs-rust-port-websocket-port.md), [Which asan tests keep the slow allocation unwinder](https://obs-rust.com/ai/docs/docs-knowledge-asan-allocation-unwinder.md), [Most asan builds start cold](https://obs-rust.com/ai/docs/docs-knowledge-asan-cold-builds.md), [An asan failure on your PR](https://obs-rust.com/ai/docs/docs-knowledge-asan-pr-failure.md), [Float results depend on the host compiler](https://obs-rust.com/ai/docs/docs-knowledge-host-compiler-float.md), [Running sanitizers locally](https://obs-rust.com/ai/docs/docs-knowledge-local-sanitizers.md), [A PipeWire loop stopped right after its start can hang](https://obs-rust.com/ai/docs/docs-knowledge-pipewire-stop-after-start.md), [Where a quit hang waits, from the last lines of the log](https://obs-rust.com/ai/docs/docs-knowledge-quit-hang-log-end.md), [Dispatch sanitizers on a separate ref](https://obs-rust.com/ai/docs/docs-knowledge-sanitizer-dispatch.md), [The sanitizer known list](https://obs-rust.com/ai/docs/docs-knowledge-sanitizer-known-list.md), [A source's destroy runs later, on another thread](https://obs-rust.com/ai/docs/docs-knowledge-shutdown-deferred-destroy.md), [Free what OBS's destroy path frees](https://obs-rust.com/ai/docs/docs-knowledge-test-leaks.md), [Timing tests wait for the result](https://obs-rust.com/ai/docs/docs-knowledge-timing-tests.md) - Reference docs (34): [OBS Studio Backend Design](https://obs-rust.com/ai/docs/docs-sphinx-backend-design.md), [Welcome to OBS Studio's documentation!](https://obs-rust.com/ai/docs/docs-sphinx-index.md), [Canvas API Reference (obs_canvas_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-canvases.md), [Core API Object Reference](https://obs-rust.com/ai/docs/docs-sphinx-reference-core-objects.md), [Callback API Reference (libobs/callback)](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-callback.md), [Axis Angle](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-axisang.md), [Effects (Shaders)](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-effects.md), [Core Graphics API](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-graphics.md), [Image File Helper](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-image-file.md), [Extra Math Functions/Macros](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-math.md), [Matrix](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-matrix4.md), [Quaternion](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-quat.md), [2-Component Vector](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-vec2.md), [3-Component Vector](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-vec3.md), [4-Component Vector](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics-vec4.md), [Graphics API Reference (libobs/graphics)](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-graphics.md), [Media I/O API Reference (libobs/media-io)](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-media-io.md), [Logging](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-base.md), [Memory Management](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-bmem.md), [Config Files](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-config-file.md), [Dynamic Arrays](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-darray.md), [Double-Ended Queue](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-deque.md), [Dynamic Strings And String Helpers](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-dstr.md), [Platform Helpers](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-platform.md), [Profiler](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-profiler.md), [Serializer](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-serializers.md), [Source Profiler](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-source-profiler.md), [Text Lookup Interface](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-text-lookup.md), [Threading](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util-threading.md), [Platform/Utility API Reference (libobs/util)](https://obs-rust.com/ai/docs/docs-sphinx-reference-libobs-util.md), [Module API Reference](https://obs-rust.com/ai/docs/docs-sphinx-reference-modules.md), [Properties API Reference (obs_properties_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-properties.md), [Scene API Reference (obs_scene_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-scenes.md), [Data Settings API Reference (obs_data_t)](https://obs-rust.com/ai/docs/docs-sphinx-reference-settings.md) - Archive docs (11): [CI cache audit: 2026-10-17](https://obs-rust.com/ai/docs/docs-ci-cache-audit-2026-10-17.md), [Linux Tier 2 concurrency audit — 2026-10-21](https://obs-rust.com/ai/docs/docs-ci-serial-audit-2026-10-21.md), [CI speed batch: October 21, 2026](https://obs-rust.com/ai/docs/docs-ci-speed-2026-10-21.md), [Next CI speed batch](https://obs-rust.com/ai/docs/docs-ci-speed-2026-10-22.md), [Flatpak performance: CEF debug processing](https://obs-rust.com/ai/docs/docs-ci-speed-flatpak-1760.md), [Flatpak PCH cache qualification (#1760)](https://obs-rust.com/ai/docs/docs-ci-speed-flatpak-pch-1760.md), [Flatpak performance retrospective (#1760)](https://obs-rust.com/ai/docs/docs-ci-speed-flatpak-retrospective-1760.md), [Flatpak packaged runtime qualification (#1760)](https://obs-rust.com/ai/docs/docs-ci-speed-flatpak-runtime-1760.md), [Zackees draft PR handoff — OBS repository only](https://obs-rust.com/ai/docs/docs-draft-pr-handoff-1845.md), [🏆 OBS Project User Abuse Hall of Fame](https://obs-rust.com/ai/docs/docs-hall-of-fame.md), [Undo/redo: coverage, architecture and a visible affordance (#2214)](https://obs-rust.com/ai/docs/docs-undo-redo-research-2214.md)