Skip to content

Commit

Permalink
cargofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hatomist committed Nov 25, 2024
1 parent 99c6064 commit 2a8502f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/ffmpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@ pub fn combine_with_video(

pub fn extract_from_video(video_path: &str, output_path: &str) -> Result<(), FFmpegError> {
let status = std::process::Command::new("ffmpeg")
.args(["-dump_attachment:t:0", output_path, "-i", video_path, "-f", "null", "/dev/null"])
.args([
"-dump_attachment:t:0",
output_path,
"-i",
video_path,
"-f",
"null",
"/dev/null",
])
.status()
.map_err(|e| FFmpegError::FFmpeg(e.to_string()))?;

Expand Down

0 comments on commit 2a8502f

Please sign in to comment.