mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-01 10:29:09 +00:00
fixed config generation bug, issue by @gmonteir
This commit is contained in:
parent
ad39e12d49
commit
2ef2407203
@ -33,7 +33,14 @@ def enroll_settings():
|
|||||||
|
|
||||||
settings['waifu2x_path'] = get_path('waifu2x-caffe-cui.exe path: ')
|
settings['waifu2x_path'] = get_path('waifu2x-caffe-cui.exe path: ')
|
||||||
settings['ffmpeg_path'] = get_path('ffmpeg binaries directory: ')
|
settings['ffmpeg_path'] = get_path('ffmpeg binaries directory: ')
|
||||||
settings['ffmpeg_arguments'] = Avalon.gets('Extra arguments passed to ffmpeg: ')
|
|
||||||
|
settings['ffmpeg_arguments'] = []
|
||||||
|
while True:
|
||||||
|
argument = Avalon.gets('Extra arguments passed to ffmpeg (empty when done): ')
|
||||||
|
if argument:
|
||||||
|
settings['ffmpeg_arguments'].append(argument)
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
settings['ffmpeg_hwaccel'] = Avalon.gets('ffmpeg hardware acceleration method (cuda): ')
|
settings['ffmpeg_hwaccel'] = Avalon.gets('ffmpeg hardware acceleration method (cuda): ')
|
||||||
if settings['ffmpeg_hwaccel'] == '':
|
if settings['ffmpeg_hwaccel'] == '':
|
||||||
|
@ -113,7 +113,7 @@ class Video2xSetup:
|
|||||||
|
|
||||||
settings['waifu2x_path'] = '{}\\video2x\\waifu2x-caffe\\waifu2x-caffe-cui.exe'.format(os.getenv('localappdata'))
|
settings['waifu2x_path'] = '{}\\video2x\\waifu2x-caffe\\waifu2x-caffe-cui.exe'.format(os.getenv('localappdata'))
|
||||||
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'
|
||||||
|
|
||||||
with open('video2x.json', 'w') as config:
|
with open('video2x.json', 'w') as config:
|
||||||
|
Loading…
Reference in New Issue
Block a user