21 lines
719 B
Python
21 lines
719 B
Python
"""
|
|
* FSRImageVideoUpscalerFrontend - fsrimagevideoupscaler-cli.py
|
|
*
|
|
* Created by Janis Hutz 03/15/2023, Licensed under the GPL V3 License
|
|
* https://janishutz.com, development@janishutz.com
|
|
*
|
|
*
|
|
"""
|
|
|
|
import argparse
|
|
import bin.handler
|
|
|
|
ap = argparse.ArgumentParser(description="FSRImageVideoUpscaler - CLI")
|
|
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")
|
|
args = ap.parse_args()
|
|
|
|
handler = bin.handler.Handler()
|
|
|
|
handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', '2x', args.outputfile ) |