Struct essi_ffmpeg::FFmpegBuilder
source · pub struct FFmpegBuilder<M: Mode + ?Sized> { /* private fields */ }
Implementations§
source§impl FFmpegBuilder<Normal>
impl FFmpegBuilder<Normal>
sourcepub fn start(&mut self) -> Result<FFmpegCommand, Error>
pub fn start(&mut self) -> Result<FFmpegCommand, Error>
Start a new FFmpeg child process
sourcepub fn inspect_args<F>(self, f: F) -> Self
pub fn inspect_args<F>(self, f: F) -> Self
Inspect FFmpeg arguments
pub fn stdin(self, cfg: impl Into<Stdio>) -> Self
pub fn stdout(self, cfg: impl Into<Stdio>) -> Self
pub fn stderr(self, cfg: impl Into<Stdio>) -> Self
pub fn input_with_file(self, path: PathBuf) -> FFmpegBuilder<IO>
pub fn output_as_file(self, path: PathBuf) -> FFmpegBuilder<IO>
pub fn input(self, buffer: &[u8]) -> Result<FFmpegBuilder<IO>>
pub fn output(self, file: &mut Option<File>) -> Result<FFmpegBuilder<IO>>
sourcepub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self
pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self
Add custom argument to FFmpeg process
Must take into consideration of where this argument is located
source§impl FFmpegBuilder<IO>
impl FFmpegBuilder<IO>
sourcepub fn codec_audio(self, codec: impl AsRef<str>) -> Self
pub fn codec_audio(self, codec: impl AsRef<str>) -> Self
Set audio codec
sourcepub fn codec_video(self, codec: impl AsRef<str>) -> Self
pub fn codec_video(self, codec: impl AsRef<str>) -> Self
Set video codec
pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self
pub fn args<I, S>(self, args: I) -> Self
pub fn done(self) -> FFmpegBuilder<Normal>
Auto Trait Implementations§
impl<M> !RefUnwindSafe for FFmpegBuilder<M>
impl<M: ?Sized> Send for FFmpegBuilder<M>where
M: Send,
impl<M: ?Sized> Sync for FFmpegBuilder<M>where
M: Sync,
impl<M: ?Sized> Unpin for FFmpegBuilder<M>where
M: Unpin,
impl<M> !UnwindSafe for FFmpegBuilder<M>
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