From 4694c557ec73f0a18a558d0720401c5924d3bdb3 Mon Sep 17 00:00:00 2001 From: K4YT3X Date: Sun, 13 Dec 2020 17:13:03 -0500 Subject: [PATCH] added a none option for -tune to address #401 --- src/video2x_gui.py | 9 ++++++--- src/video2x_gui.ui | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/video2x_gui.py b/src/video2x_gui.py index 3cf79c4..191718d 100755 --- a/src/video2x_gui.py +++ b/src/video2x_gui.py @@ -4,7 +4,7 @@ Creator: Video2X GUI Author: K4YT3X Date Created: May 5, 2020 -Last Modified: September 13, 2020 +Last Modified: December 13, 2020 """ # local imports @@ -33,7 +33,7 @@ from PyQt5.QtGui import * from PyQt5.QtWidgets import * import magic -GUI_VERSION = '2.8.0' +GUI_VERSION = '2.8.1' LEGAL_INFO = f'''Video2X GUI Version: {GUI_VERSION}\\ Upscaler Version: {UPSCALER_VERSION}\\ @@ -692,7 +692,10 @@ class Video2XMainWindow(QMainWindow): self.config['ffmpeg']['assemble_video']['output_options']['-vcodec'] = self.ffmpeg_assemble_video_output_options_video_codec_line_edit.text() self.config['ffmpeg']['assemble_video']['output_options']['-pix_fmt'] = self.ffmpeg_assemble_video_output_options_pixel_format_line_edit.text() self.config['ffmpeg']['assemble_video']['output_options']['-crf'] = self.ffmpeg_assemble_video_output_options_crf_spin_box.value() - self.config['ffmpeg']['assemble_video']['output_options']['-tune'] = self.ffmpeg_assemble_video_output_options_tune_combo_box.currentText() + if self.ffmpeg_assemble_video_output_options_tune_combo_box.currentText() == 'none': + self.config['ffmpeg']['assemble_video']['output_options']['-tune'] = None + else: + self.config['ffmpeg']['assemble_video']['output_options']['-tune'] = self.ffmpeg_assemble_video_output_options_tune_combo_box.currentText() if self.ffmpeg_assemble_video_output_options_bitrate_line_edit.text() != '': self.config['ffmpeg']['assemble_video']['output_options']['-b:v'] = self.ffmpeg_assemble_video_output_options_bitrate_line_edit.text() else: diff --git a/src/video2x_gui.ui b/src/video2x_gui.ui index 23ec3cc..1828586 100644 --- a/src/video2x_gui.ui +++ b/src/video2x_gui.ui @@ -2289,6 +2289,11 @@ ssim + + + none + +