pub struct PipeConfig {
pub width: u32,
pub height: u32,
pub fps: f64,
pub duration_in_frames: u32,
pub start_frame: u32,
pub output: PathBuf,
pub concurrency: Option<usize>,
pub crf: u32,
pub preset: String,
pub codec: VideoCodec,
pub audio_tracks: Vec<AudioTrack>,
pub control: RenderControl,
}Expand description
Piped encoding configuration (no intermediate PNG files).
Fields§
§width: u32§height: u32§fps: f64§duration_in_frames: u32§start_frame: u32First composition frame included in the output.
output: PathBufOutput media file path.
concurrency: Option<usize>Number of parallel render workers. None = auto.
crf: u32FFmpeg CRF quality (0–51, lower = better).
preset: StringFFmpeg preset: “ultrafast”, “fast”, “medium”, etc.
codec: VideoCodec§audio_tracks: Vec<AudioTrack>Audio tracks mixed and trimmed to the rendered video duration.
control: RenderControlImplementations§
Source§impl PipeConfig
impl PipeConfig
pub fn new( width: u32, height: u32, fps: f64, duration_in_frames: u32, output: impl Into<PathBuf>, ) -> Self
pub fn with_concurrency(self, n: usize) -> Self
pub fn with_quality(self, crf: u32, preset: impl Into<String>) -> Self
pub fn with_audio_tracks( self, tracks: impl IntoIterator<Item = AudioTrack>, ) -> Self
pub fn with_codec(self, codec: VideoCodec) -> Self
pub fn with_frame_start(self, start_frame: u32) -> Self
pub fn with_control(self, control: RenderControl) -> Self
Trait Implementations§
Source§impl Clone for PipeConfig
impl Clone for PipeConfig
Source§fn clone(&self) -> PipeConfig
fn clone(&self) -> PipeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PipeConfig
impl !UnwindSafe for PipeConfig
impl Freeze for PipeConfig
impl Send for PipeConfig
impl Sync for PipeConfig
impl Unpin for PipeConfig
impl UnsafeUnpin for PipeConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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