INFO - ffmpeg version N-103679-g7bbad32d5a-20210918 Copyright (c) 2000-2021 the FFmpeg developers
INFO - built with gcc 10-win32 (GCC) 20210408
INFO - configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-
...
INFO - [libx264 @ 0000010cf15da6c0] ref B L1: 97.3% 2.7%
INFO - [libx264 @ 0000010cf15da6c0] kb/s:134.12
""
But note the "" at the end of the output, I still can't get the output in the variable output and it still contains an empty string.
Why for simple command, the output is captured in a variable. But for complex command, it doesn't do this. Is this inconsistence a bug? How can I store the command output in a variable when the command is kinda complex? Thank.
I'm using version 1.2.2 and I have the following program.
When I run it, I can get the expected result like:
When I change the command
ls -la
to more complex one (which probably takes several seconds to complete), I get empty output.Output is:
But can I find the produced output file of the ffmpeg command, which indicates the command did run. If I enabled the logger like this:
I can get the ffmpeg output in the console:
But note the
""
at the end of the output, I still can't get the output in the variableoutput
and it still contains an empty string.Why for simple command, the output is captured in a variable. But for complex command, it doesn't do this. Is this inconsistence a bug? How can I store the command output in a variable when the command is kinda complex? Thank.