Meta.Vlc icon indicating copy to clipboard operation
Meta.Vlc copied to clipboard

Add alpha channel to a video using a PNG mask

Open GianniRusso86 opened this issue 6 years ago • 3 comments

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.

GianniRusso86 avatar Mar 06 '18 17:03 GianniRusso86

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

devkanro avatar Mar 30 '18 10:03 devkanro

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

GianniRusso86 avatar Mar 30 '18 14:03 GianniRusso86

Is the problem solved?

peter-wwj avatar May 18 '20 09:05 peter-wwj