减少output频率

This commit is contained in:
Jerry Yan 2022-05-17 16:51:15 +08:00
parent 05f421767a
commit 9bdd4cdcb6

View File

@ -189,7 +189,7 @@ def handle_ffmpeg_output(stderr: IO[bytes]) -> str:
if line.startswith(b"speed="):
speed = line.replace(b"speed=", b"").decode().strip()
_i += 1
if _i % 60 == 30:
if _i % 120 == 90:
print("[>]Speed:", out_time, "@", speed)
print("[ ]Speed:", out_time, "@", speed)
return out_time