diff --git a/video_encoder.py b/video_encoder.py index c225a31..d307f3e 100644 --- a/video_encoder.py +++ b/video_encoder.py @@ -101,11 +101,12 @@ def execute( int(float(units[2]) * 1000) if duration and progress_callback: - progress_callback( - float(progress_match.group(1)) * 1000, - duration - ) + units = progress_match.group(1).split(":") + progress = (int(units[0]) * 60 * 60 * 1000) + \ + (int(units[1]) * 60 * 1000) + \ + int(float(units[2]) * 1000) + progress_callback(progress, duration) else: header += line else: