Skip to content

Instantly share code, notes, and snippets.



Created Apr 21, 2020
What would you like to do?
Add Coffin Dancing Meme and Astronomia To Any Short Video
from moviepy.editor import VideoFileClip, AudioFileClip, concatenate_videoclips
dropstart = 19
audio = AudioFileClip('astronomia.mp3')
dance = VideoFileClip('dance.mp4')
clip = VideoFileClip('fail.mp4')
audiostart = max(0, dropstart-clip.duration)
audio = audio.subclip(audiostart, dropstart + dance.duration)
finalclip = concatenate_videoclips([clip, dance], method="compose").set_audio(audio)

This comment has been minimized.

Copy link
Owner Author

@mburst mburst commented Apr 21, 2020

Requires the song in mp3 form, the dancing pallbearers in mp4 and then the video you want to have it appended to. Since the drop starts at 19s, the video needs to be less than 19s. Haven't tested with longer fails though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.