percent_increment = percent - self.progress_percentage
self.progress_percentage = percent
if self._progress_callback:
- self._progress_callback(percent_increment/self.num_of_resolutions)
+ if ACCEPTED_RESOLUTIONS[self.default_resolution] == self.destination_dimensions:
+ self._progress_callback(percent_increment/self.num_of_resolutions, percent)
+ else:
+ 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