mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-03-03 13:02:13 +00:00
1.0.1 Added ability to specify temp directories
This commit is contained in:
parent
6deaefcce0
commit
a51f8204c8
@ -4,7 +4,7 @@
|
|||||||
Name: Video2x Config Generator
|
Name: Video2x Config Generator
|
||||||
Author: K4YT3X
|
Author: K4YT3X
|
||||||
Date Created: October 23, 2018
|
Date Created: October 23, 2018
|
||||||
Last Modified: November 26, 2018
|
Last Modified: February 8, 2019
|
||||||
|
|
||||||
Licensed under the GNU General Public License Version 3 (GNU GPL v3),
|
Licensed under the GNU General Public License Version 3 (GNU GPL v3),
|
||||||
available at: https://www.gnu.org/licenses/gpl-3.0.txt
|
available at: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
@ -15,7 +15,7 @@ from avalon_framework import Avalon
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
VERSION = '1.0.0'
|
VERSION = '1.0.1'
|
||||||
|
|
||||||
|
|
||||||
def get_path(text):
|
def get_path(text):
|
||||||
@ -46,6 +46,16 @@ def enroll_settings():
|
|||||||
if settings['ffmpeg_hwaccel'] == '':
|
if settings['ffmpeg_hwaccel'] == '':
|
||||||
settings['ffmpeg_hwaccel'] = 'cuda'
|
settings['ffmpeg_hwaccel'] = 'cuda'
|
||||||
|
|
||||||
|
settings['extracted_frames'] = Avalon.gets('Temporary directory for extracted frames (empty for mkdtemp): ')
|
||||||
|
if settings['extracted_frames'] == '':
|
||||||
|
settings['extracted_frames'] = False
|
||||||
|
|
||||||
|
settings['upscaled_frames'] = Avalon.gets('Temporary directory for upscaled frames (empty for mkdtemp): ')
|
||||||
|
if settings['upscaled_frames'] == '':
|
||||||
|
settings['upscaled_frames'] = False
|
||||||
|
|
||||||
|
settings['preserve_frames'] = Avalon.ask('Preserve extracted or upscaled frames')
|
||||||
|
|
||||||
return settings
|
return settings
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
Name: Video2X Setup Script
|
Name: Video2X Setup Script
|
||||||
Author: K4YT3X
|
Author: K4YT3X
|
||||||
Date Created: November 28, 2018
|
Date Created: November 28, 2018
|
||||||
Last Modified: November 29, 2018
|
Last Modified: February 8, 2019
|
||||||
|
|
||||||
Licensed under the GNU General Public License Version 3 (GNU GPL v3),
|
Licensed under the GNU General Public License Version 3 (GNU GPL v3),
|
||||||
available at: https://www.gnu.org/licenses/gpl-3.0.txt
|
available at: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
(C) 2018 K4YT3X
|
(C) 2018-2019 K4YT3X
|
||||||
|
|
||||||
Description: This script helps installing all dependencies of video2x
|
Description: This script helps installing all dependencies of video2x
|
||||||
and generates a configuration for it.
|
and generates a configuration for it.
|
||||||
@ -31,7 +31,7 @@ import zipfile
|
|||||||
# later in the script.
|
# later in the script.
|
||||||
# import requests
|
# import requests
|
||||||
|
|
||||||
VERSION = '1.0.0'
|
VERSION = '1.0.1'
|
||||||
|
|
||||||
|
|
||||||
class Video2xSetup:
|
class Video2xSetup:
|
||||||
@ -115,6 +115,9 @@ class Video2xSetup:
|
|||||||
settings['ffmpeg_path'] = '{}\\video2x\\ffmpeg-4.1-win64-static\\bin'.format(os.getenv('localappdata'))
|
settings['ffmpeg_path'] = '{}\\video2x\\ffmpeg-4.1-win64-static\\bin'.format(os.getenv('localappdata'))
|
||||||
settings['ffmpeg_arguments'] = []
|
settings['ffmpeg_arguments'] = []
|
||||||
settings['ffmpeg_hwaccel'] = 'cuda'
|
settings['ffmpeg_hwaccel'] = 'cuda'
|
||||||
|
settings['extracted_frames'] = False
|
||||||
|
settings['upscaled_frames'] = False
|
||||||
|
settings['preserve_frames'] = False
|
||||||
|
|
||||||
with open('video2x.json', 'w') as config:
|
with open('video2x.json', 'w') as config:
|
||||||
json.dump(settings, config, indent=2)
|
json.dump(settings, config, indent=2)
|
||||||
|
Loading…
Reference in New Issue
Block a user