Skip to content

Commit

Permalink
added a none option for -tune to address #401
Browse files Browse the repository at this point in the history
  • Loading branch information
k4yt3x committed Dec 13, 2020
1 parent 33d96bc commit 4694c55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/video2x_gui.py
Expand Up @@ -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
Expand Down Expand Up @@ -33,7 +33,7 @@
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}\\
Expand Down Expand Up @@ -692,7 +692,10 @@ def resolve_driver_settings(self):
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:
Expand Down
5 changes: 5 additions & 0 deletions src/video2x_gui.ui
Expand Up @@ -2289,6 +2289,11 @@
<string>ssim</string>
</property>
</item>
<item>
<property name="text">
<string>none</string>
</property>
</item>
</widget>
</item>
</layout>
Expand Down

0 comments on commit 4694c55

Please sign in to comment.