From fa5faf86cb6274075de0f9ef62a8e50e00de70a4 Mon Sep 17 00:00:00 2001 From: simplePCBuilding <98422316+simplePCBuilding@users.noreply.github.com> Date: Mon, 12 Sep 2022 13:49:21 +0200 Subject: [PATCH] Changed from jpg to png MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I mean why in the world was I using .jpg instead of .png… this is now fixed and as such the quality should be improved by a lot --- bin/handler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/handler.py b/bin/handler.py index 1ff43c2..2db9420 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -100,9 +100,9 @@ class Handler: if self.os_type == "linux": print("linux") - self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}thumb%08d.jpg" + self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}thumb%08d.png" elif self.os_type == "win32": - self.command = f"{ffmpegpath} -i {str(self.filepath)} {self.tmppath}thumb%08d.jpg" + self.command = f"{ffmpegpath} -i {str(self.filepath)} {self.tmppath}thumb%08d.png" else: print("OS CURRENTLY UNSUPPORTED!") return False @@ -117,7 +117,7 @@ class Handler: self.number = 0 for self.file in self.filelist: self.number += 1 - self.files += f"{self.tmppath}{self.file} {self.tmppath}upscaled/USImage{str(self.number).zfill(8)}.jpg " + self.files += f"{self.tmppath}{self.file} {self.tmppath}upscaled/USImage{str(self.number).zfill(8)}.png " self.maxlength = 32000 self.pos = 1 @@ -213,9 +213,9 @@ class Handler: # reassemble Video print("Reassembling Video... with framerate @", self.framerate) if self.os_type == "linux": - self.command = f"ffmpeg -framerate {self.framerate} -i {self.tmppath}upscaled/USImage%08d.jpg {output_path} -i {self.tmppath}audio.aac" + self.command = f"ffmpeg -framerate {self.framerate} -i {self.tmppath}upscaled/USImage%08d.png {output_path} -i {self.tmppath}audio.aac" elif self.os_type == "win32": - self.command = f"{ffmpegpath} -framerate {self.framerate} -i {self.tmppath}upscaled/USImage%08d.jpg {output_path} -i {self.tmppath}audio.aac" + self.command = f"{ffmpegpath} -framerate {self.framerate} -i {self.tmppath}upscaled/USImage%08d.png {output_path} -i {self.tmppath}audio.aac" else: print("OS CURRENTLY UNSUPPORTED!") return False