Remove self.entry in VideoTranscoder
authorvijeth-aradhya <vijthaaa@gmail.com>
Sun, 27 Aug 2017 17:42:46 +0000 (23:12 +0530)
committervijeth-aradhya <vijthaaa@gmail.com>
Sun, 27 Aug 2017 17:42:46 +0000 (23:12 +0530)
mediagoblin/media_types/video/processing.py
mediagoblin/media_types/video/transcoders.py

index 114c505714217336bfb6cf5028b9a6607c506690..c07aa3031286ed9f4b4148b098c17a2acf623edb 100644 (file)
@@ -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,
index a2c8f4316e382feac64dcc0716d633cfea321ec7..437b0bf8daf41cdec4f2c65852af96c4637682d9 100644 (file)
@@ -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