use std::path::Path;
use std::process::Command;
pub fn to_audio(inputfile: &Path, outputfile: &Path) {
Command::new("ffmpeg")
.arg("-i")
.arg(inputfile)
.arg("-vn") .arg("-loglevel")
.arg("quiet") .arg(outputfile)
.output()
.expect("Please install ffmpeg to convert the file into audio.");
}
pub fn ts_to_mp4(inputfile: &Path, outputfile: &Path) {
Command::new("ffmpeg")
.arg("-i")
.arg(inputfile)
.arg("-acodec")
.arg("copy")
.arg("-vcodec")
.arg("copy")
.arg("-loglevel")
.arg("quiet") .arg(outputfile)
.output()
.expect("Please install ffmpeg to convert the file into MP4.");
}