fix shell popping up with ffmpeg

This commit is contained in:
Milan Kolar 2020-08-18 15:56:09 +02:00
parent 62379ee6b1
commit bd6717fe20
6 changed files with 13 additions and 328 deletions

View file

@ -224,7 +224,7 @@ class ExtractBurnin(pype.api.Extractor):
self.log.debug("Executing: {}".format(args))
# Run burnin script
output = pype.api.subprocess(args)
output = pype.api.subprocess(args, shell=True)
self.log.debug("Output: {}".format(output))
for filepath in temp_data["full_input_paths"]:
@ -964,7 +964,7 @@ class ExtractBurnin(pype.api.Extractor):
args = [executable, scriptpath, json_data]
self.log.debug("Executing: {}".format(args))
output = pype.api.subprocess(args)
output = pype.api.subprocess(args, shell=True)
self.log.debug("Output: {}".format(output))
repre_update = {

View file

@ -83,7 +83,7 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
# run subprocess
self.log.debug("{}".format(subprocess_jpeg))
pype.api.subprocess(subprocess_jpeg)
pype.api.subprocess(subprocess_jpeg, shell=True)
if "representations" not in instance.data:
instance.data["representations"] = []

View file

@ -175,7 +175,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
# run subprocess
self.log.debug("Executing: {}".format(subprcs_cmd))
output = pype.api.subprocess(subprcs_cmd)
output = pype.api.subprocess(subprcs_cmd, shell=True)
self.log.debug("Output: {}".format(output))
output_name = output_def["filename_suffix"]
@ -342,6 +342,12 @@ class ExtractReview(pyblish.api.InstancePlugin):
"-i \"{}\"".format(temp_data["full_input_path"])
)
if temp_data["output_is_sequence"]:
# Set start frame
ffmpeg_input_args.append(
"-start_number {}".format(temp_data["output_frame_start"])
)
# Add audio arguments if there are any. Skipped when output are images.
if not temp_data["output_ext_is_image"]:
audio_in_args, audio_filters, audio_out_args = self.audio_args(
@ -1482,7 +1488,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
# run subprocess
self.log.debug("Executing: {}".format(subprcs_cmd))
output = pype.api.subprocess(subprcs_cmd)
output = pype.api.subprocess(subprcs_cmd, shell=True)
self.log.debug("Output: {}".format(output))
# create representation data

View file

@ -186,7 +186,7 @@ class ExtractReviewSlate(pype.api.Extractor):
# run slate generation subprocess
self.log.debug("Slate Executing: {}".format(slate_subprcs_cmd))
slate_output = pype.api.subprocess(slate_subprcs_cmd)
slate_output = pype.api.subprocess(slate_subprcs_cmd, shell=True)
self.log.debug("Slate Output: {}".format(slate_output))
# create ffmpeg concat text file path
@ -221,7 +221,7 @@ class ExtractReviewSlate(pype.api.Extractor):
# ffmpeg concat subprocess
self.log.debug("Executing concat: {}".format(concat_subprcs_cmd))
concat_output = pype.api.subprocess(concat_subprcs_cmd)
concat_output = pype.api.subprocess(concat_subprcs_cmd, shell=True)
self.log.debug("Output concat: {}".format(concat_output))
self.log.debug("__ repre[tags]: {}".format(repre["tags"]))