pub struct ExportOptions {
pub out_path: PathBuf,
pub encoder: String,
pub crf: u32,
pub preset: String,
pub backend: Backend,
pub out_size: Option<(u32, u32)>,
pub scaler: String,
pub frames: FrameSource,
pub metadata: Vec<(String, String)>,
}Fields§
§out_path: PathBuf§encoder: String“auto” or an ffmpeg encoder name (see Settings.encoder).
crf: u32§preset: String§backend: Backend§out_size: Option<(u32, u32)>Output size when it differs from the project (frames are rendered at project size and scaled by
ffmpeg -vf scale=W:H:flags=<scaler>); None = project size.
scaler: Stringffmpeg scale flags: “neighbor” | “bilinear” | “bicubic” | “lanczos” | “area” | “spline”.
frames: FrameSourceCPU compositor, or the UI thread’s GPU renderer (so exports match the preview exactly).
metadata: Vec<(String, String)>Container metadata to write, as (key, value). Empty = strip everything (-map_metadata -1),
which is the default: exports carry no title/encoder/creation-time unless asked for.
Trait Implementations§
Source§impl Clone for ExportOptions
impl Clone for ExportOptions
Source§fn clone(&self) -> ExportOptions
fn clone(&self) -> ExportOptions
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ExportOptions
impl RefUnwindSafe for ExportOptions
impl Send for ExportOptions
impl Sync for ExportOptions
impl Unpin for ExportOptions
impl UnwindSafe for ExportOptions
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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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