diff options
| author | tassaron | 2022-05-03 14:10:53 -0400 |
|---|---|---|
| committer | tassaron | 2022-05-03 14:10:53 -0400 |
| commit | c158b75945d172007735e6f4d6c9b6ee5af7944d (patch) | |
| tree | 362cd036068199aa231096d4c21ed6d1efed3275 /src/components/spectrum.py | |
| parent | 7513d1c13b337c1679f44030da553a79c55b91af (diff) | |
cast int to str all over the place.
This Qt settings object needs to be treated like dynamite, apparently :)
Diffstat (limited to 'src/components/spectrum.py')
| -rw-r--r-- | src/components/spectrum.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/spectrum.py b/src/components/spectrum.py index 91f2afb..1b4f8cf 100644 --- a/src/components/spectrum.py +++ b/src/components/spectrum.py @@ -134,7 +134,7 @@ class Component(Component): command = [ self.core.FFMPEG_BIN, '-thread_queue_size', '512', - '-r', self.settings.value("outputFrameRate"), + '-r', str(self.settings.value("outputFrameRate")), '-ss', "{0:.3f}".format(startPt), '-i', self.core.junkStream @@ -219,7 +219,7 @@ class Component(Component): display = 'rlog' filter_ = ( 'ahistogram=r=%s:s=%sx%s:dmode=separate:ascale=%s:scale=%s' % ( - self.settings.value("outputFrameRate"), + str(self.settings.value("outputFrameRate")), w, h, amplitude, display ) @@ -245,7 +245,7 @@ class Component(Component): filter_ = ( 'showcqt=r=%s:s=%sx%s:count=30:text=0:tc=%s,' 'colorkey=color=black:similarity=0.1:blend=0.5 ' % ( - self.settings.value("outputFrameRate"), + str(self.settings.value("outputFrameRate")), w, h, str(self.tc), ) @@ -256,7 +256,7 @@ class Component(Component): '[atrash] anullsink; ' '[vtmp1] colorkey=color=black:similarity=0.1:blend=0.5, ' 'crop=in_w/8:in_h:(in_w/8)*7:0 ' % ( - self.settings.value("outputFrameRate"), + str(self.settings.value("outputFrameRate")), w, h, ) ) |
