Skip to content

Instantly share code, notes, and snippets.

@SqrtRyan
Created April 6, 2025 22:48
Show Gist options
  • Save SqrtRyan/cd498b85826d97b408fd511025b580e6 to your computer and use it in GitHub Desktop.
Save SqrtRyan/cd498b85826d97b408fd511025b580e6 to your computer and use it in GitHub Desktop.
frames = load_video(
"https://www.shutterstock.com/shutterstock/videos/1024890566/preview/stock-footage-aerial-time-lapse-in-motion-or-hyperlapse-over-echo-park-of-downtown-los-angeles-california.webm",
use_cache=True,
)
while True:
for i, f in enumerate(frames):
display_image_in_terminal_color(f)
_terminal_move_cursor_to_top_left()
w = get_terminal_width()
print(
unicode_loading_bar(i / (len(frames) - 1) * w * 8, chars="▏▎▍▌▋▊▉█").ljust(w)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment