fixed ffmpeg errors and added cli

This commit is contained in:
janis
2023-03-15 12:21:28 +01:00
parent 945e3edfb0
commit 0e15c2a31b
23 changed files with 155 additions and 7 deletions

View File

@@ -71,17 +71,18 @@ class Handler:
else:
print("OS CURRENTLY UNSUPPORTED!")
return False
os.system(self.command)
print("photo upscaled")
else:
if self.os_type == "linux":
self.command = f"wine {fsrpath} -Scale {quality_setting} {self.filepath} {output_path}"
self.command = f"wine {fsrpath} -Scale {quality_setting} {quality_setting} {self.filepath} {output_path}"
elif self.os_type == "win32":
self.command = f"{fsrpath} -Scale {quality_setting} {self.filepath} {output_path}"
self.command = f"{fsrpath} -Scale {quality_setting} {quality_setting} {self.filepath} {output_path}"
else:
print("OS CURRENTLY UNSUPPORTED!")
return False
print( self.command )
os.system(self.command)
print("photo upscaled")