diff --git a/bin/__pycache__/handler.cpython-310.pyc b/bin/__pycache__/handler.cpython-310.pyc index b6b5ddd..065f6be 100644 Binary files a/bin/__pycache__/handler.cpython-310.pyc and b/bin/__pycache__/handler.cpython-310.pyc differ diff --git a/bin/handler.py b/bin/handler.py index bc27d34..dc4da3a 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -120,7 +120,6 @@ class Handler: print("created dir") if self.os_type == "linux": - print("linux") self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.png" elif self.os_type == "win32": self.command = f"ffmpeg -i {str(self.filepath)} \"{self.tmppath}ex%08d.png\"" diff --git a/bin/lib/FidelityFX_CLI.exe b/bin/lib/FidelityFX_CLI.exe new file mode 100644 index 0000000..166bd2e Binary files /dev/null and b/bin/lib/FidelityFX_CLI.exe differ diff --git a/fsrimagevideoupscaler-cli.py b/fsrimagevideoupscaler-cli.py index 97d8444..8d84a54 100644 --- a/fsrimagevideoupscaler-cli.py +++ b/fsrimagevideoupscaler-cli.py @@ -12,18 +12,18 @@ import bin.handler import os import multiprocessing -ap = argparse.ArgumentParser( description='FSRImageVideoUpscaler - CLI, a CLI application to upscale videos and images using FSR. ' ) -ap.add_argument( 'inputfile', help='File path for the video / image to be upscaled' ) -ap.add_argument( 'outputfile', help='File path for the video / image that was upscaled' ) -ap.add_argument( '-s', '--scalefactor', help='Scale factor for the video / image' ) -ap.add_argument( '-T', '--threads', help='Thread count to use. Cannot exceed CPU thread count. Scaling non-linear (using 2 threads is not exactly 2x the speed of 1 thread)' ) -args = ap.parse_args() - -handler = bin.handler.Handler() - -go = True; - if __name__ == '__main__': + ap = argparse.ArgumentParser( description='FSRImageVideoUpscaler - CLI, a CLI application to upscale videos and images using FSR. ' ) + ap.add_argument( 'inputfile', help='File path for the video / image to be upscaled' ) + ap.add_argument( 'outputfile', help='File path for the video / image that was upscaled' ) + ap.add_argument( '-s', '--scalefactor', help='Scale factor for the video / image' ) + ap.add_argument( '-T', '--threads', help='Thread count to use. Cannot exceed CPU thread count. Scaling non-linear (using 2 threads is not exactly 2x the speed of 1 thread)' ) + args = ap.parse_args() + + handler = bin.handler.Handler() + + go = True; + multiprocessing.freeze_support(); if ( os.path.exists( args.outputfile ) ): if ( input( 'File already exists. Do you want to replace it? (y/n) ' ).lower() == 'y' ):