pub struct TranscodeConfig {Show 19 fields
pub input: Option<String>,
pub output: Option<String>,
pub video_codec: Option<String>,
pub audio_codec: Option<String>,
pub video_bitrate: Option<u64>,
pub audio_bitrate: Option<u64>,
pub width: Option<u32>,
pub height: Option<u32>,
pub frame_rate: Option<(u32, u32)>,
pub multi_pass: Option<MultiPassMode>,
pub quality_mode: Option<QualityMode>,
pub normalize_audio: bool,
pub loudness_standard: Option<LoudnessStandard>,
pub hw_accel: bool,
pub preserve_metadata: bool,
pub subtitle_mode: Option<SubtitleMode>,
pub chapter_mode: Option<ChapterMode>,
pub stream_copy: Option<StreamCopyMode>,
pub audio_channel_layout: Option<AudioLayout>,
}Expand description
Transcoding configuration.
Fields§
§input: Option<String>Input file path.
output: Option<String>Output file path.
video_codec: Option<String>Video codec name.
audio_codec: Option<String>Audio codec name.
video_bitrate: Option<u64>Target video bitrate in bits per second.
audio_bitrate: Option<u64>Target audio bitrate in bits per second.
width: Option<u32>Video width in pixels.
height: Option<u32>Video height in pixels.
frame_rate: Option<(u32, u32)>Frame rate as a rational number (numerator, denominator).
multi_pass: Option<MultiPassMode>Multi-pass encoding mode.
quality_mode: Option<QualityMode>Quality mode for encoding.
normalize_audio: boolEnable audio normalization.
loudness_standard: Option<LoudnessStandard>Loudness normalization standard.
hw_accel: boolEnable hardware acceleration.
preserve_metadata: boolPreserve metadata from input.
subtitle_mode: Option<SubtitleMode>Subtitle handling mode.
chapter_mode: Option<ChapterMode>Chapter handling mode.
stream_copy: Option<StreamCopyMode>Stream copy mode for passthrough without re-encoding.
audio_channel_layout: Option<AudioLayout>Audio channel layout for output.
Trait Implementations§
Source§impl Clone for TranscodeConfig
impl Clone for TranscodeConfig
Source§fn clone(&self) -> TranscodeConfig
fn clone(&self) -> TranscodeConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 TranscodeConfig
impl Debug for TranscodeConfig
Auto Trait Implementations§
impl Freeze for TranscodeConfig
impl RefUnwindSafe for TranscodeConfig
impl Send for TranscodeConfig
impl Sync for TranscodeConfig
impl Unpin for TranscodeConfig
impl UnsafeUnpin for TranscodeConfig
impl UnwindSafe for TranscodeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more