Changes between Version 1 and Version 2 of Ticket #9759
- Timestamp:
- May 1, 2022, 2:18:33 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9759 – Description
v1 v2 1 1 Summary of the bug: 2 In my code (written in Rust) I'm running an ffmpeg command and checking if stderr contains text. But when I run a command successfully text is always output to stderr and nothing comes from stdout. Other command line tools I've used behave normally with regards to stdout and stderr that my code uses, so this appears to be a problem with ffmpeg rather than Rust. 2 3 In my code (written in Rust) I'm running an ffmpeg command and checking if stderr contains text. But when I run a command successfully text is always output to stderr and nothing comes from stdout. Other command line tools I've used behave normally with regards to stdout and stderr that my code uses, so this appears to be a problem with ffmpeg rather than Rust. 3 4 4 5 How to reproduce: 5 I run this command to combine a video and audio file: 6 7 I run this command to combine a video and audio file: 6 8 7 9 `ffmpeg -i 'bruh_video.mp4' -i 'bruh_audio.mp4' -c:v copy -c:a aac 'bruh.mp4'` 8 10 9 In Rust that code looks like11 In Rust that code looks like 10 12 11 `` `13 `` 12 14 let output = 13 15 Command::new("sh") //(Command is std::process::Command) … … 19 21 let stdout = String::from_utf8(output.stdout).unwrap(); 20 22 let stderr = String::from_utf8(output.stderr).unwrap(); 21 `` `23 `` 22 24 23 25 The stdout will be empty but stderr will contain all the normal output text.


