diff options
| author | tassaron | 2022-04-28 19:26:31 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-28 19:26:31 -0400 |
| commit | 1fda5fbe8121f15f7a6e13ddedefb0cf07ae5d48 (patch) | |
| tree | 755db1e54e726cfef187a94d893247f063d7e205 /src/toolkit | |
| parent | 4e6159725227de952f0c578595423aa51d9a0b34 (diff) | |
cast int to str in ffmpeg command
Diffstat (limited to 'src/toolkit')
| -rw-r--r-- | src/toolkit/ffmpeg.py | 9 |
1 files changed, 3 insertions, 6 deletions
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 |
