输出只展示结束时overall speed

This commit is contained in:
Jerry Yan 2022-05-31 10:51:32 +08:00
parent 1baa6141da
commit 7bdde6781f

View File

@ -136,8 +136,6 @@ def handle_ffmpeg_output(stdout: IO[bytes]) -> str:
if line.startswith(b"speed="): if line.startswith(b"speed="):
speed = line.replace(b"speed=", b"").decode().strip() speed = line.replace(b"speed=", b"").decode().strip()
_i += 1 _i += 1
if _i % 120 == 90:
print("[>]Speed:", out_time, "@", speed)
print("[ ]Speed:", out_time, "@", speed) print("[ ]Speed:", out_time, "@", speed)
return out_time return out_time