libobs-rs/libobs-rs
Über uns
Video encoding and muxing through libobs in Rust
Design und MedienGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Originallibobs-rs
Documentation is available here
[!NOTE] Need help? Join our discord server!
Simple and safe video recording through libobs.
Which layer should I use?
The repository deliberately separates complete OBS coverage from convenience workflows:
| Crate | Use it when |
|---|---|
libobs-simple |
You want recording, RTMP streaming, replay buffers, or capture sources with sensible defaults and automatic capability selection. Start here for most applications. |
libobs-wrapper |
You are building an OBS-like editor, custom media application, remote control, or need direct safe access to sources, scenes/groups, dynamic plugin settings, encoders, outputs, services, displays, and signals. |
libobs |
You need raw generated FFI for functionality the safe wrapper does not expose yet. Prefer contributing a safe wrapper when the operation is generally useful. |
libobs-bootstrapper / cargo-obs-build |
You need to install compatible OBS binaries at runtime / build time. |
A good rule is: libobs-simple chooses for you; libobs-wrapper exposes the choices. See the API orientation guide for a task-to-module map and common workflows.
Windows and Linux are the primary runtime-tested platforms. Linux CI builds the pinned OBS release from source and exercises native recording, replay, scene, audio, media/transition, hotkey/property-action, and X11 preview paths. macOS CI prepares the official OBS framework and validates wrapper/simple compilation plus bootstrapper and macOS source contracts; real capture/runtime coverage there is narrower than on Windows/Linux.
The API is currently unstable and will definitely have breaking revisions in the future.
[!NOTE] The libobs-wrapper async functionality has been removed because of all kinds of issues (#32)
Prerequisites
Make sure that the OBS binaries are in your target directory. There's even a tool to help you build OBS from source!
Install the tool
cargo install cargo-obs-build
[!NOTE] There is now a standalone
libobs-bootstrappercrate that can download and install OBS binaries at runtime, which is useful for distributing applications without requiring users to install OBS separately. See the libobs-bootstrapper documentation for more details.
Add the following to your Cargo.toml
[package.metadata]
# The libobs version to use (can either be a specific version or "latest")
# This is optional; if not specified, the version will be selected based on the libobs crate version.
# libobs-version="32.1.0"
# The directory in which to store the OBS build (optional)
# libobs-cache-dir="../obs-build"
Install OBS in your target directory. This uses the original signed OBS binaries.
# for debugging
cargo obs-build build --out-dir target/debug
# for release
cargo obs-build build --out-dir target/release
# for testing
cargo obs-build build --out-dir target/(debug|release)/deps
More details can be found in the cargo-obs-build documentation.
[!NOTE] You can specify a
GITHUB_TOKENenvironment variable to increase the rate limit when downloading releases from GitHub. This is especially useful for CI environments.
Quick Start
For a normal recorder or stream client, start with libobs-simple. Its recording builder automatically selects a compatible H.264 encoder and its RTMP builder assembles the encoder/service/output graph for you.
For plugin-generic applications, start with libobs-wrapper: discover capabilities, build dynamic settings schemas, compose scenes/groups, and validate custom output pipelines without hard-coding the installed OBS plugins.
Examples are located in the examples directory. The API orientation guide explains how the modules fit together and when to move from the simple layer to the full wrapper.
Documentation
- API Orientation / Where to Start
- Bootstrap Options
- How it Works
- v10 Migration
- Capability Discovery & Generic Creation Example
- Multi-track Audio Mixing Example
- Output Health / Bitrate Example
- Scene Collection Persistence Example
- Preview / Target Geometry Example
Disclaimer
This project is not affiliated with, endorsed by, or associated with the OBS Project or OBS Studio.
OBS and OBS Studio are trademarks of their respective owners.
The developers of this project are independent and not part of the OBS Studio team in any capacity.
Ähnliche Projekte entdecken
Wird geladen…