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

Add alpha channel to a video using a PNG mask #264

Open
GianniRusso86 opened this issue Mar 6, 2018 · 3 comments
Open

Add alpha channel to a video using a PNG mask #264

GianniRusso86 opened this issue Mar 6, 2018 · 3 comments

Comments

@GianniRusso86
Copy link

How can I set a .png mask as a vlc player property?

There are two instances of vlc one superimposed on the other.
The first instance of vlc start the video "background_video.mp4"

background

The second instance of vlc start the video "foreground_video.mp4"
foreground

I would like to apply a transparent mask (mask.png) like this to the second instance of vlc
mask

So I get this result:
composite

How do I apply a transparent mask to the second vlc player?

I tried to do:
player2.LoadMediaWithOptions(@"C:\foreground_video.mp4", new String[] { "--alphamask-mask=mask.png" });

Not Working.

Visual studio 2013 - WPF Application

Any ideas?
Thanks in advance.

@devkanro
Copy link
Owner

There are too many options for Vlc
As I know, some option is different for new Vlc() and new VlcMedia()
Maybe you can try :alphamask-mask but not --alphamask-mask, it just a example, maybe other something

@GianniRusso86
Copy link
Author

unfortunately it does not work.
Can you give me a suggestion to reach my goal?

@peter-wwj
Copy link

Is the problem solved?

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

3 participants