|
|
|
@ -269,10 +269,10 @@ class FfxController():
|
|
|
|
|
commandSequence += self.generateOutputTokens(targetPath,
|
|
|
|
|
targetFormat)
|
|
|
|
|
|
|
|
|
|
self.__logger.debug(f"FfxController.runJob() commandSequence:{' '.join(commandSequence)}")
|
|
|
|
|
self.__logger.debug(f"FfxController.runJob(): Running command sequence")
|
|
|
|
|
|
|
|
|
|
if not self.__context['dry_run']:
|
|
|
|
|
executeProcess(commandSequence, niceness=self.__niceness, cpu_percent=self.__cpuPercent)
|
|
|
|
|
executeProcess(commandSequence, context = self.__context)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if videoEncoder == VideoEncoder.VP9:
|
|
|
|
@ -294,13 +294,13 @@ class FfxController():
|
|
|
|
|
|
|
|
|
|
commandSequence1 += FfxController.NULL_TOKENS
|
|
|
|
|
|
|
|
|
|
self.__logger.debug(f"FfxController.runJob() commandSequence1:{' '.join(commandSequence1)}")
|
|
|
|
|
|
|
|
|
|
if os.path.exists(FfxController.TEMP_FILE_NAME):
|
|
|
|
|
os.remove(FfxController.TEMP_FILE_NAME)
|
|
|
|
|
|
|
|
|
|
self.__logger.debug(f"FfxController.runJob(): Running command sequence 1")
|
|
|
|
|
|
|
|
|
|
if not self.__context['dry_run']:
|
|
|
|
|
executeProcess(commandSequence1, niceness=self.__niceness, cpu_percent=self.__cpuPercent)
|
|
|
|
|
executeProcess(commandSequence1, context = self.__context)
|
|
|
|
|
|
|
|
|
|
commandSequence2 = (commandTokens
|
|
|
|
|
+ self.__targetMediaDescriptor.getImportFileTokens()
|
|
|
|
@ -319,10 +319,10 @@ class FfxController():
|
|
|
|
|
commandSequence2 += self.generateOutputTokens(targetPath,
|
|
|
|
|
targetFormat)
|
|
|
|
|
|
|
|
|
|
self.__logger.debug(f"FfxController.runJob() commandSequence2:{' '.join(commandSequence2)}")
|
|
|
|
|
self.__logger.debug(f"FfxController.runJob(): Running command sequence 2")
|
|
|
|
|
|
|
|
|
|
if not self.__context['dry_run']:
|
|
|
|
|
out, err, rc = executeProcess(commandSequence2, niceness=self.__niceness, cpu_percent=self.__cpuPercent)
|
|
|
|
|
out, err, rc = executeProcess(commandSequence2, context = self.__context)
|
|
|
|
|
if rc:
|
|
|
|
|
raise click.ClickException(f"Command resulted in error: rc={rc} error={err}")
|
|
|
|
|
|
|
|
|
@ -349,4 +349,4 @@ class FfxController():
|
|
|
|
|
str(length),
|
|
|
|
|
path]
|
|
|
|
|
|
|
|
|
|
out, err, rc = executeProcess(commandTokens, niceness=self.__niceness, cpu_percent=self.__cpuPercent)
|
|
|
|
|
out, err, rc = executeProcess(commandTokens, context = self.__context)
|
|
|
|
|