pub struct SimpleOutputBuilder { /* private fields */ }Implementations§
Source§impl SimpleOutputBuilder
impl SimpleOutputBuilder
Sourcepub fn new<K: Into<ObsPath>, T: Into<ObsString>>(
context: ObsContext,
name: T,
path: K,
) -> Self
pub fn new<K: Into<ObsPath>, T: Into<ObsString>>( context: ObsContext, name: T, path: K, ) -> Self
Creates a new SimpleOutputBuilder with default settings.
Sourcepub fn settings(self, settings: OutputSettings) -> Self
pub fn settings(self, settings: OutputSettings) -> Self
Sets the output settings.
Sourcepub fn video_bitrate(self, bitrate: u32) -> Self
pub fn video_bitrate(self, bitrate: u32) -> Self
Sets the video bitrate in Kbps.
Sourcepub fn audio_bitrate(self, bitrate: u32) -> Self
pub fn audio_bitrate(self, bitrate: u32) -> Self
Sets the audio bitrate in Kbps.
Sourcepub fn format(self, format: OutputFormat) -> Self
pub fn format(self, format: OutputFormat) -> Self
Sets the output format.
Sourcepub fn x264_encoder(self, preset: X264Preset) -> Self
pub fn x264_encoder(self, preset: X264Preset) -> Self
Sets the video encoder to x264.
Sourcepub fn hardware_encoder(
self,
codec: HardwareCodec,
preset: HardwarePreset,
) -> Self
pub fn hardware_encoder( self, codec: HardwareCodec, preset: HardwarePreset, ) -> Self
Sets the video encoder to a generic hardware encoder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleOutputBuilder
impl RefUnwindSafe for SimpleOutputBuilder
impl Send for SimpleOutputBuilder
impl Sync for SimpleOutputBuilder
impl Unpin for SimpleOutputBuilder
impl UnsafeUnpin for SimpleOutputBuilder
impl UnwindSafe for SimpleOutputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more