Expand description
Simple output builder for OBS.
This module provides a simplified interface for configuring OBS outputs based on the SimpleOutput implementation from OBS Studio.
§Example
use libobs_simple::output::simple::{SimpleOutputBuilder, X264Preset};
use libobs_wrapper::{data::video::ObsVideoInfoBuilder, utils::{ObsPath, StartupInfo}};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let context = StartupInfo::new()
.set_video_info(ObsVideoInfoBuilder::new().build())
.start()?;
let _output = SimpleOutputBuilder::new(context, "recording", ObsPath::new("./recording.mp4"))
.video_bitrate(6000)
.audio_bitrate(160)
.x264_encoder(X264Preset::VeryFast)
.build()?;
Ok(())
}Structs§
- Configured
Simple Output - Simple recording output paired with the effective plugin/settings report used to build it.
- Managed
Simple Output - Managed simple recording that can conservatively retry eligible encoder initialization/start failures using the remaining compatible candidates. Destination/auth/path errors are never retried as encoder fallbacks.
- Output
Settings - Unified output settings
- Simple
Audio Track - One audio track in a simple recording. The encoder reads
mixand is attached toslot. - Simple
Output Builder
Enums§
- Audio
Encoder - Audio encoder configuration
- Hardware
Codec - Target codec for generic hardware selection
- Hardware
Preset - Preset for hardware encoders (NVENC, AMD, QSV)
- Output
Format - Output format for file recording
- Video
Encoder - Video encoder configuration
- X264
Preset - Preset for x264 software encoder