|
|
|
@ -46,8 +46,12 @@ class ProgressFfmpeg(threading.Thread):
|
|
|
|
|
if lines:
|
|
|
|
|
for line in lines:
|
|
|
|
|
if "out_time_ms" in line:
|
|
|
|
|
out_time_ms = line.split("=")[1]
|
|
|
|
|
return int(out_time_ms) / 1000000.0
|
|
|
|
|
out_time_ms_str = line.split("=")[1].strip()
|
|
|
|
|
if out_time_ms_str.isnumeric():
|
|
|
|
|
return float(out_time_ms_str) / 1000000.0
|
|
|
|
|
else:
|
|
|
|
|
# Handle the case when "N/A" is encountered
|
|
|
|
|
return None
|
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
def stop(self):
|
|
|
|
|