Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Created November 1, 2022 13:50
Show Gist options
  • Save samirsaci/4f0b506b7f1f89e175c0a344bc1fe891 to your computer and use it in GitHub Desktop.
Save samirsaci/4f0b506b7f1f89e175c0a344bc1fe891 to your computer and use it in GitHub Desktop.
Automate Video Editing - Concat
# Second video
start_time = '00:00:43'
end_time = '00:00:58'
t1, t2 = convert_seconds(start_time), convert_seconds(end_time)
video_unload3 = myclip.subclip(t1, t2)
# Concat
video_unload4 = concatenate_videoclips([video_unload1, video_unload3])
video_unload4.write_videofile("step_12.mp4", fps=25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment