pub struct FFmpegBuilder<M: Mode + ?Sized> { /* private fields */ }
Implementations§
Source§impl FFmpegBuilder<Normal>
impl FFmpegBuilder<Normal>
Sourcepub fn start(&mut self) -> Result<FFmpegCommand>
pub fn start(&mut self) -> Result<FFmpegCommand>
Start a new FFmpeg child process
Sourcepub fn start_listen_progress(
self,
progress_rx: &mut Option<Receiver<FFmpegProgress>>,
) -> Result<FFmpegCommand>
pub fn start_listen_progress( self, progress_rx: &mut Option<Receiver<FFmpegProgress>>, ) -> Result<FFmpegCommand>
Start a new FFmpeg child process & listen to the progress
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_pipe( self, pipe: &mut Option<Pipe>, ) -> Result<FFmpegBuilder<IO>>
pub fn output_with_pipe( self, pipe: &mut Option<Pipe>, ) -> Result<FFmpegBuilder<IO>>
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> Freeze for FFmpegBuilder<M>where
M: ?Sized,
impl<M> !RefUnwindSafe for FFmpegBuilder<M>
impl<M> Send for FFmpegBuilder<M>
impl<M> Sync for FFmpegBuilder<M>
impl<M> Unpin for FFmpegBuilder<M>
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