pub struct FFmpeg { /* private fields */ }Expand description
FFmpeg operations wrapper
Implementations§
Source§impl FFmpeg
impl FFmpeg
Sourcepub fn with_paths(ffmpeg_path: String, ffprobe_path: String) -> Self
pub fn with_paths(ffmpeg_path: String, ffprobe_path: String) -> Self
Create FFmpeg wrapper with custom paths
Sourcepub async fn probe_audio_file(&self, path: &Path) -> Result<QualityProfile>
pub async fn probe_audio_file(&self, path: &Path) -> Result<QualityProfile>
Probe audio file and extract quality information
Sourcepub async fn concat_audio_files(
&self,
concat_file: &Path,
output_file: &Path,
quality: &QualityProfile,
use_copy: bool,
encoder: AacEncoder,
) -> Result<()>
pub async fn concat_audio_files( &self, concat_file: &Path, output_file: &Path, quality: &QualityProfile, use_copy: bool, encoder: AacEncoder, ) -> Result<()>
Concatenate audio files using FFmpeg
Sourcepub async fn convert_single_file(
&self,
input_file: &Path,
output_file: &Path,
quality: &QualityProfile,
use_copy: bool,
encoder: AacEncoder,
) -> Result<()>
pub async fn convert_single_file( &self, input_file: &Path, output_file: &Path, quality: &QualityProfile, use_copy: bool, encoder: AacEncoder, ) -> Result<()>
Convert a single audio file to M4A/M4B
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FFmpeg
impl RefUnwindSafe for FFmpeg
impl Send for FFmpeg
impl Sync for FFmpeg
impl Unpin for FFmpeg
impl UnwindSafe for FFmpeg
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more