From: vijeth-aradhya Date: Sun, 27 Aug 2017 17:42:46 +0000 (+0530) Subject: Remove self.entry in VideoTranscoder X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7fb50b7a21a95c191e9e76bd0695300514f48eb2;p=mediagoblin.git Remove self.entry in VideoTranscoder --- diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py index 114c5057..c07aa303 100644 --- a/mediagoblin/media_types/video/processing.py +++ b/mediagoblin/media_types/video/processing.py @@ -336,7 +336,7 @@ class CommonVideoProcessor(MediaProcessor): else: _log.debug('Entered transcoder') - self.transcoder.transcode(self.process_filename, tmp_dst, self.entry, + self.transcoder.transcode(self.process_filename, tmp_dst, vp8_quality=vp8_quality, vp8_threads=vp8_threads, vorbis_quality=vorbis_quality, diff --git a/mediagoblin/media_types/video/transcoders.py b/mediagoblin/media_types/video/transcoders.py index a2c8f431..437b0bf8 100644 --- a/mediagoblin/media_types/video/transcoders.py +++ b/mediagoblin/media_types/video/transcoders.py @@ -158,13 +158,12 @@ class VideoTranscoder(object): self.progress_percentage = 0 self.loop = GLib.MainLoop() - def transcode(self, src, dst, entry, **kwargs): + def transcode(self, src, dst, **kwargs): ''' Transcode a video file into a 'medium'-sized version. ''' self.source_path = src self.destination_path = dst - self.entry = entry # vp8enc options self.destination_dimensions = kwargs.get('dimensions', (640, 640)) @@ -371,8 +370,6 @@ class VideoTranscoder(object): self._progress_callback(percent_increment/self.num_of_resolutions) _log.info('{percent}% of {dest} resolution done..' '.'.format(percent=percent, dest=self.destination_dimensions)) - _log.info('{0:.2f}% of all resolutions done' - '...'.format(self.entry.transcoding_progress)) elif message.type == Gst.MessageType.ERROR: _log.error('Got error: {0}'.format(message.parse_error())) self.dst_data = None