From 4b4dc46ebb361744e8c4efcf47e1de00a8d51daa Mon Sep 17 00:00:00 2001 From: janis Date: Wed, 29 Mar 2023 18:21:23 +0200 Subject: [PATCH] swich to bmp images --- bin/__pycache__/handler.cpython-310.pyc | Bin 7119 -> 7119 bytes bin/handler.py | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/__pycache__/handler.cpython-310.pyc b/bin/__pycache__/handler.cpython-310.pyc index 83095d10e46f10329d07190d3e20aec02c96f518..f429df0315c3feb4fb316bde2a1d54b6b3b66552 100644 GIT binary patch delta 89 zcmX?ae%_obpO=@50SKavHgcWdlSs-fC=vj2tC$p&s<=}tR1GXr^niksU-20;1L@5Q f{HGbEfDDByRt4Qmpd$X_UL*kIRxv3kRdJ_Qs2W(L=m7;Mzv44y2GW}q g_)jxR0T~KatO~lBKt=q;$uXJfFm;<*1y6AS086kLi2wiq diff --git a/bin/handler.py b/bin/handler.py index ae79cd3..01058c1 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -107,9 +107,9 @@ class Handler: print( '\n==> Created directory' ) if self.os_type == "linux": - self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.png" + self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.bmp" elif self.os_type == "win32": - self.command = f"ffmpeg -i {str(self.filepath)} \"{self.tmppath}ex%08d.png\"" + self.command = f"ffmpeg -i {str(self.filepath)} \"{self.tmppath}ex%08d.bmp\"" else: print("OS CURRENTLY UNSUPPORTED!") return False @@ -126,9 +126,9 @@ class Handler: for self.file in self.filelist: self.number += 1 if ( self.os_type == 'win32' ): - self.file_list.append( f"{self.tmppath}{self.file} {self.tmppath}sc\\ig{str(self.number).zfill(8)}.png " ); + self.file_list.append( f"{self.tmppath}{self.file} {self.tmppath}sc\\ig{str(self.number).zfill(8)}.bmp " ); else: - self.file_list.append( f"{self.tmppath}{self.file} {self.tmppath}sc/ig{str(self.number).zfill(8)}.png " ); + self.file_list.append( f"{self.tmppath}{self.file} {self.tmppath}sc/ig{str(self.number).zfill(8)}.bmp " ); if ( self.os_type == 'win32' ): self.maxlength = 8000 @@ -213,9 +213,9 @@ class Handler: # reassemble Video print( '\n\n==>Reassembling Video... with framerate @', self.framerate, '\n\n' ) if self.os_type == 'linux': - self.command = f'ffmpeg -framerate {self.framerate} -i {self.tmppath}sc/ig%08d.png {output_path} -i {self.tmppath}audio.aac' + self.command = f'ffmpeg -framerate {self.framerate} -i {self.tmppath}sc/ig%08d.bmp {output_path} -i {self.tmppath}audio.aac' elif self.os_type == 'win32': - self.command = f'ffmpeg -framerate {self.framerate} -i \"{self.tmppath}sc\\ig%08d.png\" {output_path} -i {self.tmppath}audio.aac' + self.command = f'ffmpeg -framerate {self.framerate} -i \"{self.tmppath}sc\\ig%08d.bmp\" {output_path} -i {self.tmppath}audio.aac' else: print( 'OS CURRENTLY UNSUPPORTED!' ); return False