Skip to content

Commit

Permalink
feat: show seconds in live mode
Browse files Browse the repository at this point in the history
  • Loading branch information
melchor629 committed May 26, 2024
1 parent 18ea971 commit 7bc46da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dvd/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def main():
took = end_frame_time - start_frame_time
tt = took.seconds + took.microseconds / 1000000
if (end_frame_time - last_print).seconds >= 1:
print(f'\r{i * 100 // total_points}% {i}: ({int(x)}, {int(y)}) - {tt}s \033[7D', end='')
print(f'\r{i * 100 // total_points}{' seconds,' if args.live else '%'} {i}: ({int(x)}, {int(y)}) - {tt}s \033[7D', end='')
last_print = end_frame_time
i += 1

print(f'\r{i * 100 // total_points}% {i}: ({int(x)}, {int(y)}) - {tt}s ')
print(f'\r{i * 100 // total_points}{' seconds,' if args.live else '%'} {i}: ({int(x)}, {int(y)}) - {tt}s ')
print('Waiting to ffmpeg to finish')
ffmpeg.stdin.close()
ffmpeg.wait()
Expand Down

0 comments on commit 7bc46da

Please sign in to comment.