Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to composite a video with a alpha channel? #317

Closed
WaterThin opened this issue Sep 24, 2016 · 2 comments
Closed

is there a way to composite a video with a alpha channel? #317

WaterThin opened this issue Sep 24, 2016 · 2 comments

Comments

@WaterThin
Copy link

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.

@Zulko
Copy link
Owner

Zulko commented Sep 24, 2016

Try loading video1 with:

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

@WaterThin
Copy link
Author

thank you , my problem has solved^_^

@Zulko Zulko closed this as completed Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants