diff --git a/bin/__pycache__/handler.cpython-310.pyc b/bin/__pycache__/handler.cpython-310.pyc index bfc755a..df39d9e 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 41391a7..f71df90 100644 --- a/bin/handler.py +++ b/bin/handler.py @@ -10,12 +10,17 @@ import os import sys -import bin.lib.ffmpeg + +if ( sys.platform == 'win32' ): + import bin.lib.ffmpeg.ffmpeg + ffmpeg = bin.lib.ffmpeg.ffmpeg +else: + import bin.lib.ffmpeg + ffmpeg = bin.lib.ffmpeg import configparser import time import shutil -ffmpeg = bin.lib.ffmpeg # Loading the config file to get user preferred temp path config = configparser.ConfigParser() diff --git a/fsrimagevideoupscaler-cli.py b/fsrimagevideoupscaler-cli.py index 3e511b0..0714f44 100644 --- a/fsrimagevideoupscaler-cli.py +++ b/fsrimagevideoupscaler-cli.py @@ -18,4 +18,7 @@ args = ap.parse_args() handler = bin.handler.Handler() -handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', '2x', args.outputfile ) \ No newline at end of file +if ( args.scalefactor[ len(args.scalefactor) -1:] == 'x' ): + handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', args.scalefactor, args.outputfile ) +else: + raise NameError( 'Argument Scale does require to be of form 2x!' ) \ No newline at end of file