pub struct FfmpegBuilder<'a> {
pub options: Vec<Parameter<'a>>,
pub inputs: Vec<File<'a>>,
pub outputs: Vec<File<'a>>,
pub ffmpeg_command: &'a str,
pub stdin: Stdio,
pub stdout: Stdio,
pub stderr: Stdio,
}
Expand description
The main struct which is used to set up ffmpeg.
Fields§
§options: Vec<Parameter<'a>>
The global options.
inputs: Vec<File<'a>>
The input files.
outputs: Vec<File<'a>>
The output files.
ffmpeg_command: &'a str
The command that’s run for ffmpeg. Usually just ffmpeg
stdin: Stdio
Passed as Command::stdin
stdout: Stdio
Passed as Command::stdout
stderr: Stdio
Passed as Command::stderr
Implementations§
Source§impl<'a> FfmpegBuilder<'a>
impl<'a> FfmpegBuilder<'a>
Source§impl<'a> FfmpegBuilder<'a>
impl<'a> FfmpegBuilder<'a>
Sourcepub fn new() -> FfmpegBuilder<'a>
pub fn new() -> FfmpegBuilder<'a>
Gets a FfmpegBuilder with nothing set
Sourcepub fn to_command(self) -> Command
pub fn to_command(self) -> Command
Turns it into a command, consuming the builder.
This has to consume the builder for stdin, etc to work
Note that usually you want to use Self::run()
, not call this directly
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FfmpegBuilder<'a>
impl<'a> RefUnwindSafe for FfmpegBuilder<'a>
impl<'a> Send for FfmpegBuilder<'a>
impl<'a> Sync for FfmpegBuilder<'a>
impl<'a> Unpin for FfmpegBuilder<'a>
impl<'a> UnwindSafe for FfmpegBuilder<'a>
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