pub struct EncodeSpec {
pub video: VideoSpec,
pub audio: Option<AudioSpec>,
pub faststart: bool,
pub two_pass: bool,
pub passthrough: bool,
pub audio_only: bool,
pub dpi: Option<u32>,
pub keep_metadata: bool,
pub tags: Vec<(String, String)>,
}Expand description
The full encode recipe.
Fields§
§video: VideoSpec§audio: Option<AudioSpec>None means -an (no audio).
faststart: bool§two_pass: bool§passthrough: boolStream-copy remux only: the source already fits, so never re-encode
(and never inflate). video/audio are ignored when set.
audio_only: boolPure-audio encode: emit -vn and use audio only (video is ignored).
dpi: Option<u32>Target DPI for a document’s embedded images (see ShrinkOpts::dpi).
Document engines only; ignored by the media engine.
keep_metadata: boolCopy metadata + mtime from the source (see ShrinkOpts::keep_metadata).
Explicit container tags written to the output (creation_time,
location, make, model, date) — the capture metadata re-stated
in the form Apple’s readers (Photos, Finder) actually understand.
Trait Implementations§
Source§impl Clone for EncodeSpec
impl Clone for EncodeSpec
Source§impl Debug for EncodeSpec
impl Debug for EncodeSpec
Source§impl PartialEq for EncodeSpec
impl PartialEq for EncodeSpec
impl StructuralPartialEq for EncodeSpec
Auto Trait Implementations§
impl Freeze for EncodeSpec
impl RefUnwindSafe for EncodeSpec
impl Send for EncodeSpec
impl Sync for EncodeSpec
impl Unpin for EncodeSpec
impl UnsafeUnpin for EncodeSpec
impl UnwindSafe for EncodeSpec
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