pub struct TranscodeBuilder { /* private fields */ }Expand description
Builder-style API for spinning up simple ffmpeg jobs.
Implementations§
Source§impl TranscodeBuilder
impl TranscodeBuilder
Sourcepub fn with_binaries(self, binaries: &FfmpegBinaryPaths) -> Self
pub fn with_binaries(self, binaries: &FfmpegBinaryPaths) -> Self
Use pre-discovered binaries instead of searching PATH every call.
Sourcepub fn with_locator(self, locator: &FfmpegLocator) -> Self
pub fn with_locator(self, locator: &FfmpegLocator) -> Self
Pin the builder to a specific locator.
Sourcepub fn video_codec(self, codec: impl Into<String>) -> Self
pub fn video_codec(self, codec: impl Into<String>) -> Self
Desired video codec (e.g. libx264).
Sourcepub fn audio_codec(self, codec: impl Into<String>) -> Self
pub fn audio_codec(self, codec: impl Into<String>) -> Self
Desired audio codec (e.g. aac).
Sourcepub fn video_bitrate(self, kbps: u32) -> Self
pub fn video_bitrate(self, kbps: u32) -> Self
Target video bitrate in kbps.
Sourcepub fn audio_bitrate(self, kbps: u32) -> Self
pub fn audio_bitrate(self, kbps: u32) -> Self
Target audio bitrate in kbps.
Sourcepub fn frame_rate(self, fps: f64) -> Self
pub fn frame_rate(self, fps: f64) -> Self
Target frame rate.
Sourcepub fn add_filter(self, filter: VideoFilter) -> Self
pub fn add_filter(self, filter: VideoFilter) -> Self
Push a filter into the video filter graph.
Sourcepub fn extra_arg(self, arg: impl Into<OsString>) -> Self
pub fn extra_arg(self, arg: impl Into<OsString>) -> Self
Pass a raw argument for advanced cases.
Trait Implementations§
Source§impl Debug for TranscodeBuilder
impl Debug for TranscodeBuilder
Source§impl Default for TranscodeBuilder
impl Default for TranscodeBuilder
Source§fn default() -> TranscodeBuilder
fn default() -> TranscodeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TranscodeBuilder
impl RefUnwindSafe for TranscodeBuilder
impl Send for TranscodeBuilder
impl Sync for TranscodeBuilder
impl Unpin for TranscodeBuilder
impl UnwindSafe for TranscodeBuilder
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> 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