Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Created November 1, 2022 13:53
Show Gist options
  • Save samirsaci/82d4175d5c9db55c600e5a263e86dbac to your computer and use it in GitHub Desktop.
Save samirsaci/82d4175d5c9db55c600e5a263e86dbac to your computer and use it in GitHub Desktop.
Automate Video Design - Stack
# Third Video
start_time = '00:01:10'
end_time = '00:01:25'
t1, t2 = convert_seconds(start_time), convert_seconds(end_time)
video_unload5 = myclip.subclip(t1, t2)
# Fourth Video
start_time = '00:01:47'
end_time = '00:02:02'
t1, t2 = convert_seconds(start_time), convert_seconds(end_time)
video_unload6 = myclip.subclip(t1, t2)
Stacking
final_clip = clips_array([[video_unload1.volumex(0), video_unload3.volumex(0)],
[video_unload5.volumex(0), video_unload5.volumex(0)]])
final_clip.write_videofile("stack.mp4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment