Moviepy: is there a way to composite a video with a alpha channel?

Created on 24 Sep 2016  路  2Comments  路  Source: Zulko/moviepy

I have two videos
video1 : have a alpha channel, RGBA
video2 :dont have a alpha channel, RGB

I try to put video1 top on the video2,
I am using CompositeVideoClips([video1, video2]), but not work
and I try to use the video mask
but i read wiki the mask is only have 1and0 for is value?

is there any way to use the video's alpha channel?
if CompositeVideoClips can support this ,will be the best.

Most helpful comment

Try loading video1 with:

video1 = VideoFileClip("myvideo1.mp4", has_mask=True)

All 2 comments

Try loading video1 with:

video1 = VideoFileClip("myvideo1.mp4", has_mask=True)

thank you , my problem has solved^_^

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cquintini picture cquintini  路  4Comments

Swiffers picture Swiffers  路  4Comments

buddhashrestha picture buddhashrestha  路  3Comments

arianaa30 picture arianaa30  路  4Comments

Gicehajunior picture Gicehajunior  路  3Comments