From 1fda5fbe8121f15f7a6e13ddedefb0cf07ae5d48 Mon Sep 17 00:00:00 2001 From: tassaron Date: Thu, 28 Apr 2022 19:26:31 -0400 Subject: cast int to str in ffmpeg command --- src/toolkit/ffmpeg.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/toolkit/ffmpeg.py b/src/toolkit/ffmpeg.py index 3298c04..37c1511 100644 --- a/src/toolkit/ffmpeg.py +++ b/src/toolkit/ffmpeg.py @@ -55,7 +55,7 @@ class FfmpegVideo: core.Core.FFMPEG_BIN, '-thread_queue_size', '512', '-r', str(self.frameRate), - '-stream_loop', self.loopValue, + '-stream_loop', str(self.loopValue), '-i', self.inputPath, '-f', 'image2pipe', '-pix_fmt', 'rgba', @@ -229,12 +229,9 @@ def createFfmpegCommand(inputFile, outputFile, components, duration=-1): # INPUT VIDEO '-f', 'rawvideo', '-vcodec', 'rawvideo', - '-s', '%sx%s' % ( - Core.settings.value('outputWidth'), - Core.settings.value('outputHeight'), - ), + '-s', f'{Core.settings.value("outputWidth")}x{Core.settings.value("outputHeight")}', '-pix_fmt', 'rgba', - '-r', Core.settings.value('outputFrameRate'), + '-r', str(Core.settings.value('outputFrameRate')), '-t', duration, '-an', # the video input has no sound '-i', '-', # the video input comes from a pipe -- cgit v1.2.3