pub struct OutputConfig {
pub format: Format,
pub video: Option<VideoSettings>,
pub audio: Option<AudioSettings>,
pub streaming: Option<StreamingConfig>,
pub strip_metadata: bool,
pub extra: HashMap<String, String>,
}Expand description
Complete output configuration.
Fields§
§format: FormatOutput container format.
video: Option<VideoSettings>Video encoding settings (None for audio-only).
audio: Option<AudioSettings>Audio encoding settings (None for video-only).
streaming: Option<StreamingConfig>Streaming output settings (HLS, DASH, RTMP).
strip_metadata: boolWhether to strip metadata from output.
extra: HashMap<String, String>Extra backend-specific parameters.
Implementations§
Source§impl OutputConfig
impl OutputConfig
Sourcepub fn with_video(self, video: VideoSettings) -> Self
pub fn with_video(self, video: VideoSettings) -> Self
Set video encoding settings.
Sourcepub fn with_audio(self, audio: AudioSettings) -> Self
pub fn with_audio(self, audio: AudioSettings) -> Self
Set audio encoding settings.
Sourcepub fn with_streaming(self, streaming: StreamingConfig) -> Self
pub fn with_streaming(self, streaming: StreamingConfig) -> Self
Set streaming output configuration.
Sourcepub fn with_strip_metadata(self) -> Self
pub fn with_strip_metadata(self) -> Self
Strip metadata from output.
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputConfig
impl Debug for OutputConfig
Source§impl<'de> Deserialize<'de> for OutputConfig
impl<'de> Deserialize<'de> for OutputConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnsafeUnpin for OutputConfig
impl UnwindSafe for OutputConfig
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