pub struct Output { /* private fields */ }Expand description
Output specification for FFmpeg
Implementations§
Source§impl Output
impl Output
Sourcepub fn video_codec(self, codec: Codec) -> Self
pub fn video_codec(self, codec: Codec) -> Self
Set video codec
Sourcepub fn video_codec_opts(self, options: CodecOptions) -> Self
pub fn video_codec_opts(self, options: CodecOptions) -> Self
Set video codec with options
Sourcepub fn audio_codec(self, codec: Codec) -> Self
pub fn audio_codec(self, codec: Codec) -> Self
Set audio codec
Sourcepub fn audio_codec_opts(self, options: CodecOptions) -> Self
pub fn audio_codec_opts(self, options: CodecOptions) -> Self
Set audio codec with options
Sourcepub fn subtitle_codec(self, codec: Codec) -> Self
pub fn subtitle_codec(self, codec: Codec) -> Self
Set subtitle codec
Sourcepub fn copy_codecs(self) -> Self
pub fn copy_codecs(self) -> Self
Copy all codecs
Sourcepub fn file_size_limit(self, size: Size) -> Self
pub fn file_size_limit(self, size: Size) -> Self
Set file size limit
Sourcepub fn stream_metadata(
self,
stream_spec: impl Into<String>,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn stream_metadata( self, stream_spec: impl Into<String>, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add stream-specific metadata
Sourcepub fn option(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn option(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add custom option
Sourcepub fn no_subtitles(self) -> Self
pub fn no_subtitles(self) -> Self
Disable subtitle output
Sourcepub fn copy_timestamps(self, enable: bool) -> Self
pub fn copy_timestamps(self, enable: bool) -> Self
Copy timestamps
Sourcepub fn avoid_negative_ts(self, mode: impl Into<String>) -> Self
pub fn avoid_negative_ts(self, mode: impl Into<String>) -> Self
Avoid negative timestamps
Sourcepub fn start_time(self, time: Duration) -> Self
pub fn start_time(self, time: Duration) -> Self
Set start time
Sourcepub fn for_streaming(self) -> Self
pub fn for_streaming(self) -> Self
Configure for streaming
Sourcepub fn build_args(&self) -> Vec<String>
pub fn build_args(&self) -> Vec<String>
Build command line arguments
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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