possible fix + readding FSR

This commit is contained in:
2023-03-28 13:46:49 +02:00
parent c93d866dd4
commit 3ed9781d27
4 changed files with 11 additions and 12 deletions

View File

@@ -120,7 +120,6 @@ class Handler:
print("created dir") print("created dir")
if self.os_type == "linux": if self.os_type == "linux":
print("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.png"
elif self.os_type == "win32": 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.png\""

BIN
bin/lib/FidelityFX_CLI.exe Normal file

Binary file not shown.

View File

@@ -12,18 +12,18 @@ import bin.handler
import os import os
import multiprocessing 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__': 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(); multiprocessing.freeze_support();
if ( os.path.exists( args.outputfile ) ): if ( os.path.exists( args.outputfile ) ):
if ( input( 'File already exists. Do you want to replace it? (y/n) ' ).lower() == 'y' ): if ( input( 'File already exists. Do you want to replace it? (y/n) ' ).lower() == 'y' ):