mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merged in tokejepsen/pype/feature/extract_review_better_logging (pull request #224)
Log output from ffmpeg process.
This commit is contained in:
commit
e8dfd87af4
1 changed files with 13 additions and 4 deletions
|
|
@ -136,12 +136,21 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
# run subprocess
|
# run subprocess
|
||||||
self.log.debug("{}".format(subprcs_cmd))
|
self.log.debug("{}".format(subprcs_cmd))
|
||||||
sub_proc = subprocess.Popen(subprcs_cmd)
|
sub_proc = subprocess.Popen(
|
||||||
sub_proc.wait()
|
subprcs_cmd,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
|
stdin=subprocess.PIPE,
|
||||||
|
cwd=os.path.dirname(output_args[-1])
|
||||||
|
)
|
||||||
|
|
||||||
|
output = sub_proc.communicate()[0]
|
||||||
|
|
||||||
if not os.path.isfile(full_output_path):
|
if not os.path.isfile(full_output_path):
|
||||||
raise FileExistsError(
|
raise ValueError(
|
||||||
"Quicktime wasn't created succesfully")
|
"Quicktime wasn't created succesfully: "
|
||||||
|
"{}".format(output)
|
||||||
|
)
|
||||||
|
|
||||||
# create representation data
|
# create representation data
|
||||||
repre_new.update({
|
repre_new.update({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue