|
4 | 4 | Creator: Video2X GUI |
5 | 5 | Author: K4YT3X |
6 | 6 | Date Created: May 5, 2020 |
7 | | -Last Modified: June 7, 2020 |
| 7 | +Last Modified: June 8, 2020 |
8 | 8 | """ |
9 | 9 |
|
10 | 10 | # local imports |
|
34 | 34 | from PyQt5.QtWidgets import * |
35 | 35 | import magic |
36 | 36 |
|
37 | | -GUI_VERSION = '2.7.0' |
| 37 | +GUI_VERSION = '2.7.1' |
38 | 38 |
|
39 | 39 | LEGAL_INFO = f'''Video2X GUI Version: {GUI_VERSION}\\ |
40 | 40 | Upscaler Version: {UPSCALER_VERSION}\\ |
@@ -1173,21 +1173,24 @@ def start(self): |
1173 | 1173 | # load driver settings for the current driver |
1174 | 1174 | self.driver_settings = self.config[AVAILABLE_DRIVERS[self.driver_combo_box.currentText()]] |
1175 | 1175 |
|
1176 | | - self.upscaler = Upscaler(input_path=input_directory, |
1177 | | - output_path=output_directory, |
1178 | | - driver_settings=self.driver_settings, |
1179 | | - ffmpeg_settings=self.ffmpeg_settings, |
1180 | | - gifski_settings=self.gifski_settings) |
1181 | | - |
1182 | | - # set optional options |
1183 | | - self.upscaler.driver = AVAILABLE_DRIVERS[self.driver_combo_box.currentText()] |
1184 | | - self.upscaler.scale_ratio = self.scale_ratio_double_spin_box.value() |
1185 | | - self.upscaler.processes = self.processes_spin_box.value() |
1186 | | - self.upscaler.video2x_cache_directory = pathlib.Path(os.path.expandvars(self.cache_line_edit.text())) |
1187 | | - self.upscaler.extracted_frame_format = self.config['video2x']['extracted_frame_format'].lower() |
1188 | | - self.upscaler.image_output_extension = self.image_output_extension_line_edit.text() |
1189 | | - self.upscaler.video_output_extension = self.video_output_extension_line_edit.text() |
1190 | | - self.upscaler.preserve_frames = bool(self.preserve_frames_check_box.isChecked()) |
| 1176 | + self.upscaler = Upscaler( |
| 1177 | + # required parameters |
| 1178 | + input_path=input_directory, |
| 1179 | + output_path=output_directory, |
| 1180 | + driver_settings=self.driver_settings, |
| 1181 | + ffmpeg_settings=self.ffmpeg_settings, |
| 1182 | + gifski_settings=self.gifski_settings, |
| 1183 | + |
| 1184 | + # optional parameters |
| 1185 | + driver=AVAILABLE_DRIVERS[self.driver_combo_box.currentText()], |
| 1186 | + scale_ratio=self.scale_ratio_double_spin_box.value(), |
| 1187 | + processes=self.processes_spin_box.value(), |
| 1188 | + video2x_cache_directory=pathlib.Path(os.path.expandvars(self.cache_line_edit.text())), |
| 1189 | + extracted_frame_format=self.config['video2x']['extracted_frame_format'].lower(), |
| 1190 | + image_output_extension=self.image_output_extension_line_edit.text(), |
| 1191 | + video_output_extension=self.video_output_extension_line_edit.text(), |
| 1192 | + preserve_frames=bool(self.preserve_frames_check_box.isChecked()) |
| 1193 | + ) |
1191 | 1194 |
|
1192 | 1195 | # run upscaler |
1193 | 1196 | worker = UpscalerWorker(self.upscaler.run) |
|
0 commit comments