pub enum TranscodePreset {
YouTubeHd,
YouTubeUhd,
NetflixHd,
TwitchStreamHd,
LosslessArchive,
ProresLt,
BroadcastHd,
WebDelivery,
PodcastAudio,
}Expand description
Common real-world transcoding presets for streaming platforms, archive, and delivery workflows.
Each variant maps to a concrete TranscodeConfig via TranscodePreset::into_config.
Variants§
YouTubeHd
YouTube 1080p — AV1 4 Mbps, Opus 192 kbps.
YouTubeUhd
YouTube 4K UHD — AV1 15 Mbps, Opus 192 kbps.
NetflixHd
Netflix 1080p — AV1 6 Mbps, Opus 256 kbps.
TwitchStreamHd
Twitch live 1080p60 — VP9 6 Mbps, Opus 160 kbps.
LosslessArchive
Lossless archive — FFV1 Level 3 video, FLAC level 8 audio.
ProresLt
ProRes-like high-bitrate CBR output using VP9 (edit-friendly proxy).
BroadcastHd
Broadcast HD — AV1 CBR 50 Mbps, PCM 48 kHz.
WebDelivery
Web delivery — VP9 2 Mbps 720p, Opus 128 kbps.
PodcastAudio
Podcast audio — Opus 64 kbps mono CBR (no video).
Implementations§
Source§impl TranscodePreset
impl TranscodePreset
Sourcepub fn into_config(self) -> TranscodeConfig
pub fn into_config(self) -> TranscodeConfig
Converts this preset into a ready-to-use TranscodeConfig.
The returned config has all codec, bitrate, resolution and frame-rate
fields pre-populated. input and output paths are left as None so
callers can attach them.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns a short human-readable description of this preset.
Sourcepub fn all() -> Vec<TranscodePreset>
pub fn all() -> Vec<TranscodePreset>
Returns all available presets in logical order.
Trait Implementations§
Source§impl Clone for TranscodePreset
impl Clone for TranscodePreset
Source§fn clone(&self) -> TranscodePreset
fn clone(&self) -> TranscodePreset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TranscodePreset
impl Debug for TranscodePreset
Source§impl<'de> Deserialize<'de> for TranscodePreset
impl<'de> Deserialize<'de> for TranscodePreset
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>,
Source§impl PartialEq for TranscodePreset
impl PartialEq for TranscodePreset
Source§impl Serialize for TranscodePreset
impl Serialize for TranscodePreset
impl Copy for TranscodePreset
impl Eq for TranscodePreset
impl StructuralPartialEq for TranscodePreset
Auto Trait Implementations§
impl Freeze for TranscodePreset
impl RefUnwindSafe for TranscodePreset
impl Send for TranscodePreset
impl Sync for TranscodePreset
impl Unpin for TranscodePreset
impl UnsafeUnpin for TranscodePreset
impl UnwindSafe for TranscodePreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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