mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
make sure ffmpeg output is printed out
This commit is contained in:
parent
d37f4a041f
commit
0709da0fd6
1 changed files with 15 additions and 2 deletions
|
|
@ -299,8 +299,21 @@ class ModifiedBurnins(ffmpeg_burnins.Burnins):
|
|||
)
|
||||
print("Launching command: {}".format(command))
|
||||
|
||||
proc = subprocess.Popen(command, shell=True)
|
||||
print(proc.communicate()[0])
|
||||
proc = subprocess.Popen(
|
||||
command,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
shell=True
|
||||
)
|
||||
|
||||
_stdout, _stderr = proc.communicate()
|
||||
if _stdout:
|
||||
print(_stdout.decode("utf-8"))
|
||||
|
||||
# This will probably never happen as ffmpeg use stdout
|
||||
if _stderr:
|
||||
print(_stderr.decode("utf-8"))
|
||||
|
||||
if proc.returncode != 0:
|
||||
raise RuntimeError(
|
||||
"Failed to render '{}': {}'".format(output, command)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue