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
§Example
use libobs_simple::output::simple::{SimpleOutputBuilder, X264Preset};
use libobs_simple::quick_start::quick_start;
use libobs_wrapper::{context::ObsContext, utils::StartupInfo, data::video::ObsVideoInfoBuilder};
#[tokio::main]
async fn main() {
let context = StartupInfo::new()
.set_video_info(
ObsVideoInfoBuilder::new()
// Configure video info as need
.build()
).start()
.unwrap()
let output = SimpleOutputBuilder::new(context, "./recording.mp4")
.video_bitrate(6000)
.audio_bitrate(160)
.x264_encoder(X264Preset::VeryFast)
.build()
.unwrap();
// Add sources here (for more docs, look [this](https://github.com/libobs-rs/libobs-rs/blob/main/examples/monitor-capture/src/main.rs) example
println!("Output created!");
}Structs§
- Output
Settings - Unified output settings
- 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