mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add download ffmpeg error output
This commit is contained in:
parent
08c4e30a06
commit
3d145b021b
1 changed files with 4 additions and 1 deletions
|
|
@ -340,6 +340,7 @@ async fn download_ffmpeg(
|
|||
};
|
||||
|
||||
let mut ffmpeg = Command::new("ffmpeg")
|
||||
.stdout(Stdio::null())
|
||||
.stderr(Stdio::piped())
|
||||
.arg("-y")
|
||||
.args(input_presets)
|
||||
|
|
@ -350,7 +351,9 @@ async fn download_ffmpeg(
|
|||
.spawn()?;
|
||||
|
||||
let _progress_handler = progress!("Generating output file");
|
||||
ffmpeg.wait()?;
|
||||
if !ffmpeg.wait()?.success() {
|
||||
bail!("{}", std::io::read_to_string(ffmpeg.stderr.unwrap())?)
|
||||
}
|
||||
info!("Output file generated");
|
||||
|
||||
if let Some(mut stdout_file) = stdout_tempfile {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue