Skip to content

Instantly share code, notes, and snippets.

@SqrtRyan
Created November 12, 2025 00:51
Show Gist options
  • Save SqrtRyan/1d0a88afcb761021c21e0c7093ff7638 to your computer and use it in GitHub Desktop.
Save SqrtRyan/1d0a88afcb761021c21e0c7093ff7638 to your computer and use it in GitHub Desktop.
from rp.git.Figures.film_strip.film_strip import film_strip
video='/Users/ryan/CleanCode/Projects/Google2025_Paper/OverleafGit/figures_src/download - 2025-07-02T172224.702.mp4'
video=load_video(video,use_cache=True)
before=video[:,65:-40,:720]
after=video[:,65:-40,-720:]
frames=3
vert=False
before=film_strip(before,frames,vertical=vert)
after=film_strip(after,frames,vertical=vert)
before=crop_image_zeros(before)
after=crop_image_zeros(after)
for output in [before,after]:
display_image(output)
copy_image_to_clipboard(output)
input('>>>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment