use list or arguments in extract trimming video where all arguments are known

This commit is contained in:
iLLiCiTiT 2021-09-16 14:25:14 +02:00
parent 81830145d3
commit 70872c240f

View file

@ -75,7 +75,7 @@ class ExtractOTIOTrimmingVideo(openpype.api.Extractor):
output_path = self._get_ffmpeg_output(input_file_path)
# start command list
command = ['"{}"'.format(ffmpeg_path)]
command = [ffmpeg_path]
video_path = input_file_path
frame_start = otio_range.start_time.value
@ -86,17 +86,17 @@ class ExtractOTIOTrimmingVideo(openpype.api.Extractor):
# form command for rendering gap files
command.extend([
"-ss {}".format(sec_start),
"-t {}".format(sec_duration),
"-i \"{}\"".format(video_path),
"-c copy",
"-ss", str(sec_start),
"-t", str(sec_duration),
"-i", video_path,
"-c", "copy",
output_path
])
# execute
self.log.debug("Executing: {}".format(" ".join(command)))
output = openpype.api.run_subprocess(
" ".join(command), logger=self.log
command, logger=self.log
)
self.log.debug("Output: {}".format(output))