pub struct OutputSettings { /* private fields */ }Expand description
Unified output settings
Implementations§
Source§impl OutputSettings
impl OutputSettings
Sourcepub fn with_video_bitrate(self, bitrate: u32) -> Self
pub fn with_video_bitrate(self, bitrate: u32) -> Self
Sets the video bitrate in Kbps.
Sourcepub fn with_audio_bitrate(self, bitrate: u32) -> Self
pub fn with_audio_bitrate(self, bitrate: u32) -> Self
Sets the audio bitrate in Kbps.
Sourcepub fn with_x264_encoder(self, preset: X264Preset) -> Self
pub fn with_x264_encoder(self, preset: X264Preset) -> Self
Sets the video encoder to use x264 software encoding.
Sourcepub fn with_hardware_encoder(
self,
codec: HardwareCodec,
preset: HardwarePreset,
) -> Self
pub fn with_hardware_encoder( self, codec: HardwareCodec, preset: HardwarePreset, ) -> Self
Sets the video encoder to use a generic hardware encoder for the given codec. The builder will choose an available backend (NVENC/AMF/QSV) at runtime.
Sourcepub fn with_custom_video_encoder(self, encoder: ObsVideoEncoderType) -> Self
pub fn with_custom_video_encoder(self, encoder: ObsVideoEncoderType) -> Self
Sets a custom video encoder.
Sourcepub fn with_custom_settings<S: Into<String>>(self, settings: S) -> Self
pub fn with_custom_settings<S: Into<String>>(self, settings: S) -> Self
Sets custom x264 encoder settings.
Sourcepub fn with_format(self, format: OutputFormat) -> Self
pub fn with_format(self, format: OutputFormat) -> Self
Sets the output format.
Sourcepub fn with_custom_muxer_settings<S: Into<String>>(self, settings: S) -> Self
pub fn with_custom_muxer_settings<S: Into<String>>(self, settings: S) -> Self
Sets custom muxer settings.
Sourcepub fn with_audio_encoder(self, encoder: AudioEncoder) -> Self
pub fn with_audio_encoder(self, encoder: AudioEncoder) -> Self
Sets the audio encoder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutputSettings
impl RefUnwindSafe for OutputSettings
impl Send for OutputSettings
impl Sync for OutputSettings
impl Unpin for OutputSettings
impl UnsafeUnpin for OutputSettings
impl UnwindSafe for OutputSettings
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