Moviepy: Different size videos

Created on 13 Dec 2016  路  1Comment  路  Source: Zulko/moviepy

Great library, thanks. I just started using it and am having trouble when using the concatenate function.

If I specify multiple clips the first will always be fine but the following ones will play weird. The code I'm using is:

from moviepy.editor import *

clip = VideoFileClip("C:/Users/Me/Desktop/forMovs/Portrait.mp4") # Change paths and filenames
clip2 = VideoFileClip("C:/Users/Me/Desktop/forMovs/Car.mp4")

clip3 = concatenate_videoclips([clip,clip2])

clip3.write_videofile("C:/Users/Me/Desktop/forMovs/Portrait&Car.mp4")
print ("done")

I believe it's because the files aren't the same size but I may be wrong.
I attach the two source clips and the final. You'll see that the car clip is displaying weirdly.
Clips.zip

Thank you!

Most helpful comment

concatenate_videoclips(clips, method="compose")
This "compose" argument will put the clips with smaller size in the center of biggest clip size.

>All comments

concatenate_videoclips(clips, method="compose")
This "compose" argument will put the clips with smaller size in the center of biggest clip size.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wayn picture wayn  路  4Comments

djevo1 picture djevo1  路  3Comments

tburrows13 picture tburrows13  路  3Comments

bobozar picture bobozar  路  4Comments

RahulPrasad picture RahulPrasad  路  4Comments