pub struct FfmpegArgs { /* private fields */ }Expand description
Builder for constructing FFmpeg command arguments.
ยงExample
use yt_dlp::executor::FfmpegArgs;
let args = FfmpegArgs::new()
.input("/tmp/input.mp4")
.input("/tmp/audio.mp3")
.args(["-map", "0:v", "-map", "1:a"])
.codec_copy()
.output("/tmp/output.mkv")
.build();Implementationsยง
Sourceยงimpl FfmpegArgs
impl FfmpegArgs
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new empty FFmpeg argument builder.
ยงReturns
A new FfmpegArgs with no arguments or output set.
Sourcepub fn codec_copy(self) -> Self
pub fn codec_copy(self) -> Self
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for FfmpegArgs
impl RefUnwindSafe for FfmpegArgs
impl Send for FfmpegArgs
impl Sync for FfmpegArgs
impl Unpin for FfmpegArgs
impl UnsafeUnpin for FfmpegArgs
impl UnwindSafe for FfmpegArgs
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.