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,
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))
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