pub struct FfmpegConvertAudioCommand(/* private fields */);
Available on crate feature
process
only.Expand description
Helper to construct a valid ffmpeg
command that reads from stdin
, converts the input to the
provided format, and sends the output to stdout
. This is useful for performing
post-processing on a media stream that needs to be converted to a different format.
Implementations§
Source§impl FfmpegConvertAudioCommand
impl FfmpegConvertAudioCommand
Sourcepub fn new<S>(format: S) -> Self
pub fn new<S>(format: S) -> Self
Constructs a new FfmpegConvertAudioCommand
.
Sourcepub fn ffmpeg_path<S>(self, path: S) -> Self
pub fn ffmpeg_path<S>(self, path: S) -> Self
Sets the path to the ffmpeg
binary.
Sourcepub fn arg<S>(self, arg: S) -> Self
pub fn arg<S>(self, arg: S) -> Self
Adds an argument to the FfmpegConvertAudioCommand
.
Sourcepub fn args<I, S>(self, args: I) -> Self
pub fn args<I, S>(self, args: I) -> Self
Adds multiple args to the FfmpegConvertAudioCommand
.
Trait Implementations§
Source§impl Debug for FfmpegConvertAudioCommand
impl Debug for FfmpegConvertAudioCommand
Source§impl From<FfmpegConvertAudioCommand> for Command
impl From<FfmpegConvertAudioCommand> for Command
Source§fn from(value: FfmpegConvertAudioCommand) -> Self
fn from(value: FfmpegConvertAudioCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FfmpegConvertAudioCommand
impl RefUnwindSafe for FfmpegConvertAudioCommand
impl Send for FfmpegConvertAudioCommand
impl Sync for FfmpegConvertAudioCommand
impl Unpin for FfmpegConvertAudioCommand
impl UnwindSafe for FfmpegConvertAudioCommand
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