From 759a3c7c96b6e861f2d68856044c67df8aad0d23 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Tue, 12 May 2020 20:30:59 -0400 Subject: [PATCH] updated FFmpeg parameters, moved debug info --- src/upscaler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/upscaler.py b/src/upscaler.py index e11f68b..b645611 100755 --- a/src/upscaler.py +++ b/src/upscaler.py @@ -404,7 +404,7 @@ class Upscaler: self.driver_object.load_configurations(self) # initialize FFmpeg object - self.ffmpeg_object = Ffmpeg(self.ffmpeg_settings, self.image_format) + self.ffmpeg_object = Ffmpeg(self.ffmpeg_settings, image_format=self.image_format) # define processing queue self.processing_queue = queue.Queue() @@ -512,6 +512,7 @@ class Upscaler: # get average frame rate of video stream framerate = float(Fraction(video_info['streams'][video_stream_index]['r_frame_rate'])) + Avalon.info(_('Framerate: {}').format(framerate)) # self.ffmpeg_object.pixel_format = video_info['streams'][video_stream_index]['pix_fmt'] # extract frames from video @@ -531,7 +532,6 @@ class Upscaler: Avalon.error(_('Unsupported pixel format: {}').format(self.ffmpeg_object.pixel_format)) raise UnsupportedPixelError(f'unsupported pixel format {self.ffmpeg_object.pixel_format}') - Avalon.info(_('Framerate: {}').format(framerate)) # width/height will be coded width/height x upscale factor # original_width = video_info['streams'][video_stream_index]['width']