pub struct EncodeSpec {
pub video: VideoSpec,
pub audio: Option<AudioSpec>,
pub faststart: bool,
pub two_pass: bool,
pub passthrough: bool,
pub audio_only: bool,
}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).
Trait Implementations§
Source§impl Clone for EncodeSpec
impl Clone for EncodeSpec
Source§fn clone(&self) -> EncodeSpec
fn clone(&self) -> EncodeSpec
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 moreSource§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