Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
moviepystackvideos.py
from moviepy.editor import VideoFileClip, clips_array, vfx
clip11 = VideoFileClip("cat1.mp4").margin(10)
clip21 = VideoFileClip("cat2.mp4").margin(10)
clip12 = clip11.fx( vfx.mirror_x)
clip22 = clip21.fx( vfx.mirror_y)
final_clip = clips_array([[clip11, clip21],
[clip12, clip22]])
final_clip.resize(width=480).write_videofile("stacked_vid.mp4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment