diff options
| -rw-r--r-- | core.py | 7 | ||||
| -rw-r--r-- | video_thread.py | 4 |
2 files changed, 5 insertions, 6 deletions
@@ -56,9 +56,8 @@ class Core(): im = im.resize((1280, 720), Image.ANTIALIAS) self._image = ImageQt(im) - + self._image1 = QtGui.QImage(self._image) - painter = QPainter(self._image1) font = titleFont font.setPointSizeF(fontSize) @@ -97,7 +96,7 @@ class Core(): imBottom = imTop.transpose(Image.FLIP_TOP_BOTTOM) - + im = Image.new("RGB", (1280, 720), "black") im.paste(image, (0, 0)) im.paste(imTop, (0, 0), mask=imTop) @@ -114,7 +113,7 @@ class Core(): '-ac', '1', # mono (set to '2' for stereo) '-'] in_pipe = sp.Popen(command, stdout=sp.PIPE, stderr=sp.DEVNULL, bufsize=10**8) - + completeAudioArray = numpy.empty(0, dtype="int16") while True: diff --git a/video_thread.py b/video_thread.py index 6bad504..1c466fc 100644 --- a/video_thread.py +++ b/video_thread.py @@ -40,7 +40,7 @@ class Worker(QtCore.QObject): imBackground = None self.progressBarUpdate.emit(0) - + completeAudioArray = self.core.readAudioFile(inputFile) # test if user has libfdk_aac @@ -72,7 +72,7 @@ class Worker(QtCore.QObject): ffmpegCommand.append('-2') ffmpegCommand.append(outputFile) - + out_pipe = sp.Popen(ffmpegCommand, stdin=sp.PIPE,stdout=sys.stdout, stderr=sys.stdout) |
