pub struct VideoProfileParams {Show 13 fields
pub codec: String,
pub bitrate_bps: Option<u64>,
pub crf: Option<u8>,
pub preset: Option<String>,
pub profile: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub frame_rate: Option<(u32, u32)>,
pub threads: u32,
pub quality_mode: Option<QualityMode>,
pub row_mt: bool,
pub tile_columns: Option<u8>,
pub tile_rows: Option<u8>,
}Expand description
Video encoding parameters within a TranscodeProfile.
Fields§
§codec: StringCodec name (e.g. "h264", "av1", "vp9").
bitrate_bps: Option<u64>Target bitrate in bits per second. None means CRF/quality-based.
crf: Option<u8>Constant Rate Factor (0–63 for AV1, 0–51 for H.264).
preset: Option<String>Encoder speed preset (e.g. "slow", "medium", "fast").
profile: Option<String>Codec profile (e.g. "high", "main", "baseline").
width: Option<u32>Output width in pixels.
height: Option<u32>Output height in pixels.
frame_rate: Option<(u32, u32)>Output frame rate as (numerator, denominator).
threads: u32Number of encoding threads (0 = auto).
quality_mode: Option<QualityMode>Quality mode used when CRF and bitrate are both absent.
row_mt: boolEnable row-based multi-threading (AV1 / VP9).
tile_columns: Option<u8>Number of tile columns (AV1 tile-based parallel encoding, log2).
tile_rows: Option<u8>Number of tile rows (AV1 tile-based parallel encoding, log2).
Trait Implementations§
Source§impl Clone for VideoProfileParams
impl Clone for VideoProfileParams
Source§fn clone(&self) -> VideoProfileParams
fn clone(&self) -> VideoProfileParams
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 VideoProfileParams
impl Debug for VideoProfileParams
Source§impl Default for VideoProfileParams
impl Default for VideoProfileParams
Source§impl<'de> Deserialize<'de> for VideoProfileParams
impl<'de> Deserialize<'de> for VideoProfileParams
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
Source§impl PartialEq for VideoProfileParams
impl PartialEq for VideoProfileParams
Source§impl Serialize for VideoProfileParams
impl Serialize for VideoProfileParams
impl StructuralPartialEq for VideoProfileParams
Auto Trait Implementations§
impl Freeze for VideoProfileParams
impl RefUnwindSafe for VideoProfileParams
impl Send for VideoProfileParams
impl Sync for VideoProfileParams
impl Unpin for VideoProfileParams
impl UnsafeUnpin for VideoProfileParams
impl UnwindSafe for VideoProfileParams
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