Skip to content

Instantly share code, notes, and snippets.

@SqrtRyan
Created January 20, 2026 10:16
Show Gist options
  • Select an option

  • Save SqrtRyan/951316676364e75c4bf4b8a03b34413b to your computer and use it in GitHub Desktop.

Select an option

Save SqrtRyan/951316676364e75c4bf4b8a03b34413b to your computer and use it in GitHub Desktop.
from rp import *
from rp.git.CommonSource.projects.mask_generator.random_video_mask_generator import get_random_video_mask
def megamask():
S=10
minimasks=[get_random_video_mask() for x in range(S*S)]
video=tiled_videos(minimasks)
video=slowmo_video_via_rife(video)
video=slowmo_video_via_rife(video)
video=slowmo_video_via_rife(video)
video=slowmo_video_via_rife(video)
return video
for _ in eta(range(10000)):
video=megamask()
video_name='random_mask_videos_10x10_'+random_namespace_hash(4)
save_video_mp4(video,video_bitrate='high')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment