pub struct TranscodeProfileBuilder { /* private fields */ }Expand description
Pure builder for TranscodeProfile.
This builder does not call any host APIs and can be tested locally.
Implementations§
Source§impl TranscodeProfileBuilder
impl TranscodeProfileBuilder
Sourcepub fn new(profile: impl Into<String>, input_id: impl Into<String>) -> Self
pub fn new(profile: impl Into<String>, input_id: impl Into<String>) -> Self
Create a new profile builder.
profile: Target FFmpeg profile (e.g., “mini”, “remux”, “thumbnail”).input_id: Input resource ID (UUID) or “pipe:0”.
Sourcepub fn new_pipe(profile: impl Into<String>) -> Self
pub fn new_pipe(profile: impl Into<String>) -> Self
Create a builder that uses stdin as input (input_id = "pipe:0").
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 a key/value FFmpeg option (encoded as -key=value).
Sourcepub fn flag(self, key: impl Into<String>) -> Self
pub fn flag(self, key: impl Into<String>) -> Self
Add a flag-style FFmpeg option (encoded as -key).
Sourcepub fn seek(self, start: &str, duration: Option<&str>) -> Self
pub fn seek(self, start: &str, duration: Option<&str>) -> Self
Helper: Set seek window (equivalent to -ss + optional -t).
Sourcepub fn build(self) -> TranscodeProfile
pub fn build(self) -> TranscodeProfile
Builds the TranscodeProfile payload.
Auto Trait Implementations§
impl Freeze for TranscodeProfileBuilder
impl RefUnwindSafe for TranscodeProfileBuilder
impl Send for TranscodeProfileBuilder
impl Sync for TranscodeProfileBuilder
impl Unpin for TranscodeProfileBuilder
impl UnwindSafe for TranscodeProfileBuilder
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