Announcement: Our new CyberLink Feedback Forum has arrived! Please transfer to our new forum to provide your feedback or to start a new discussion. The content on this CyberLink Community forum is now read only, but will continue to be available as a user resource. Thanks!
CyberLink Community Forum
where the experts meet
| Advanced Search >
New tool for creating custom PiP masks available! Mask Converter 2.0
CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
Hello folks,

I am not affiliated with CyberLink. I'm just a software developer and a fan of PowerDirector 7.

Below is a link to where you can download my new "Mask Converter" utility. This tool allows you to convert a bitmap image into a PiP mask for use in PowerDirector 7's PiP Designer.

I am offering this for FREE. However, I ask that you please consider a donation, because I did spend considerable time on this. Even if you just donate $1, at least donate something to say you appreciate it.

Here are some screenshots:





Note: The most important thing to remember when creating your bitmap is to disable antialiasing and dithering. Only pure white pixels (#FFFFFF) will be used as transparent areas. All other colors will be masked out.

Here's the link to download it...

Download Mask Converter 2.0 (build 2.0.4)

And here's a link to the latest HOW TO video...

How to create a custom PiP Mask

HAPPY MASK CREATING!!!

Respectfully,
Charles Forsyth

Moderator notation: A contribution of $5 to $10 is a good figure, it is a thank you for a super tool.

This message was edited 10 times. Last update was at Jul 31. 2009 03:24

Antiekeradio
Newbie Location: Netherlands, EU Joined: Oct 20, 2008 06:24 Messages: 22 Offline
[Post New]
One thing I wonder about; how does PD use these SD mask files for HD content??

Georg (VI)
Senior Contributor Location: Korschenbroich / Deutschland Joined: Mar 18, 2007 09:27 Messages: 1309 Offline
[Post New]
WOW

I am ready to translate the text for german users - if you wish!

This message was edited 3 times. Last update was at May 02. 2009 09:03

Viele Gruesse Georg
babindia
Senior Contributor Location: India Joined: Aug 16, 2007 06:11 Messages: 884 Offline
[Post New]
Brilliant is all that there to say ! PC specs :
OS Windows 10.0 Pro
MB - AS rock Z77 extreme 11
Intel 3770K @ 4.0 Ghz OC
Gskill 32 GB RAM 1800 Mhz
6 TB HDD, SSD bootable
nVidia ASUS GTX 660 Ti
BenQ 22" LCD monitor 1920x1080

CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
Quote: WOW

I am ready to translate the text for german users - if you wish!


Thank you for your generous offer. If you provide the text, I'll see what I can do to build a version for German users.
CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
Quote: One thing I wonder about; how does PD use these SD mask files for HD content??


It is my assumption that PD probably does support higher resolution masks. I just went with those mask resolutions because they were the first I found to be divisible by 16. 1080 is not. (you can't define a half pixel)

I don't think the resolution of your mask needs to be that high anyway. It's just a mask. The image coming through the mask is still HD.

The only place you notice the mask's resolution is at round or diagnal edges. If your resolution is high enough, the human eye can't see it without magnification.

I believe the resolution I picked for 16:9 masks is high enough that circular and diagnal lines don't appear "stepped" or jagged.

Though if you want to do the math, give me dimensions for higher resolution that are divisible by 16 and I'll add them to the list of possible resolutions.

In a future version I might just allow any resolution, as long as it's divisible by 16. One thing I noticed already is that there are no "portrait" mask layouts. They are all "landscape."

I have photos that I take at 90 degrees (portrait) so they are 3:4, not 4:3.
Support for this will definitely be in the next version.
Dafydd B [Avatar]
Senior Contributor Joined: Aug 26, 2006 08:20 Messages: 11973 Offline
[Post New]
Well done Charles.

The first test I carried out didn't work while the second test was fine.

In my first test I used a black background 16:9 image with a "few" squiggles and a 50% soft edge. The display just gave me a clear mask.
On my second test I used a beige background with a crisp white shape. Charles' Mask Converter worked a treat.

I think Charles asked about a gradient edge earlier in this post, that was the reason for my test I just wanted to see the result.

Microsoft .net is required for the Mask Converter to function.

Dafydd

This message was edited 3 times. Last update was at May 02. 2009 13:30

Georg (VI)
Senior Contributor Location: Korschenbroich / Deutschland Joined: Mar 18, 2007 09:27 Messages: 1309 Offline
[Post New]
1) A little donate is on the way

2) I make a little workflow for german users on my board. It is very easy to use, so I think I will wait for question from german users. Viele Gruesse Georg
Antiekeradio
Newbie Location: Netherlands, EU Joined: Oct 20, 2008 06:24 Messages: 22 Offline
[Post New]
Quote: The only place you notice the mask's resolution is at round or diagnal edges. If your resolution is high enough, the human eye can't see it without magnification.


I will try some diagonal lines, that was exactly the reason I asked.

(want to do a PiP with diagonal division of the whole screen)

This message was edited 1 time. Last update was at May 02. 2009 16:38

[Post New]
Great work Charles – you have certainly moved at lightning speed to provide an answer to the question you asked only a few days ago. Staggering speed and a pretty definitive answer to your own question.

29 April, ’09: Charles asks the question.
“Is it possible to create and use a custom mask in the PiP designer for PD7?”

30 April, ’09: Time 1:50:12 – Charles posts a mask.
“Confirmed. I was able to build a 16:9 ratio mask that masks out the entire left half.”
Time 16:07:15 – Charles completes Converter version 1.
“Ok, the BMP to MSK Converter Utility v1.0 (beta) is done!”

1 May, ’09: Charles completes Converter version 2.
“Below is a link to where you can download my new "Mask Converter" utility. This tool allows you to convert a bitmap image into a PiP mask for use in PowerDirector 7's PiP Designer. This is version 2.0 and that means major improvements over 1.0.”

I’m away from home right now & PowerDirector didn’t come with me this time (!) – so, when we’re reunited , I’ll test the converter utility and post results.

Once again – well done Charles.


Cheers -

Tony Tread gently and you'll hear the daisies grow...
CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
Quote: I think Charles asked about a gradient edge earlier in this post, that was the reason for my test I just wanted to see the result.

The key (perhaps I didn't put enough emphasis on this) is that only pixels with an RGB color value of #FFFFFF (pure white) will appear as transparent. Any other color should be masked out.

So if you use dithering or antialiasing your results will not be as clean as you hope.

I was told (I did not confirm) that PowerDirector7 does not support gradient values for each byte. So that means: Each pixel, defined in the finished mask file, can be either true [FF] (transparent) or false [00] (masked).

So, with that said...

I suggest that when creating your drawing using an line, oval or rectangle tool, make sure that you disable antialiasing. And if you resize your image, make sure you disable dithering. Resizing an image often uses dithering algorithms to help with distortion. This technique often change the colors of individual pixels. So areas that used to be white #FFFFFF, get changed to some other color.

Well, I hope this information has been usefull.

CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
Quote: 1) A little donate is on the way
Thank you very much!

Quote: 2) I make a little workflow for german users on my board. It is very easy to use, so I think I will wait for question from german users.
Great! Thank you.
Would you like to perform voiceover (auf Deutsch) for the video? (Just kidding)
Cranston
Senior Contributor Location: USA Joined: Aug 17, 2007 02:26 Messages: 1667 Offline
[Post New]
Hi CharlesF,

Just wanted to join the chorus of praise. Excellent work! Click here PDtoots for a collection of PowerDirector Tutorials and Tips
Georg (VI)
Senior Contributor Location: Korschenbroich / Deutschland Joined: Mar 18, 2007 09:27 Messages: 1309 Offline
[Post New]
Would you like to perform voiceover (auf Deutsch) for the video? (Just kidding)

If you like, I can try

This message was edited 1 time. Last update was at May 05. 2009 13:06

Viele Gruesse Georg
Dafydd B [Avatar]
Senior Contributor Joined: Aug 26, 2006 08:20 Messages: 11973 Offline
[Post New]
A very useful Mask Creation Tool.

Dafydd
CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
A couple of people have contacted me stating that when they try to save their mask files, a "permission denied" error occurs.

Unfortunately, I don't have a lot of information about this error so all I can do is guess at the cause.

I expect that these users are not administrators on their machines and simply do not have rights to save files into the PowerDirector\Masks folder.

Another scenario might be that these users have installed PowerDirector 7 in a different location, other than the default. And the PowerDirector\Masks path doesn't exist.

If you get this type of error, first try to select a different location when saving. Then, manually move the two files into your PowerDirector\Masks folder, wherever that may be.
Doug [Avatar]
Newbie Joined: Jan 23, 2008 11:11 Messages: 4 Offline
[Post New]
With about a year of PD6 & PD7 under my belt, I guess I'm still a newbie. So, what would I use a PiP mask for/ to do?

Any vidoe examples of a mask that I can see before I get this new tool?
CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
Quote: With about a year of PD6 & PD7 under my belt, I guess I'm still a newbie. So, what would I use a PiP mask for/ to do?

Any vidoe examples of a mask that I can see before I get this new tool?


There are many reasons one would use a PiP mask. One is to simply shape the PiP container.

But the reason I wanted to create a custom PiP mask was for a video in which I had the same person talking to herself. (as if she had a twin).

I shot two videos with the same background (not moving the camera). In the first video she was on the right talking to air on her left. In the second video she was on the left, responding to her questions from before (but still talking to air).

Then I put the first video on the main track and the second video on the PiP track (resizing it to full screen). Then I applied a custom half screen PIP mask to the PiP track which allowed the video from the main track to show through, thus showing the right half of the first track and the left half of the second track symultaneously. And this creates the illusion of the girl talking to her twin (but using only one actor).

Hope that helps.
Ralloh [Avatar]
Newbie Joined: Jan 09, 2010 09:00 Messages: 30 Offline
[Post New]
Does this tool work for PD8 ... and am I understanding correctly this will allow one to make a mask with a soft edge?

Thanks in advance
CharlesF
Member Location: Everett, Washington. U.S.A. Joined: Apr 16, 2009 20:49 Messages: 57 Offline
[Post New]
Quote: Does this tool work for PD8 ... and am I understanding correctly this will allow one to make a mask with a soft edge?

Thanks in advance


Yes, the new version (v 3.0) does work with PD8.

PD8 now supports PNG image files as masks (instead of their own .msk format in PD7).

All the mask converter does is convert white pixels in a bitmap image to fully transparent pixels in a PNG image. It then stores that file in the .../PowerDirector/Masks folder.

The mask converter does not support gradient transparent pixels. You'd have to create your own PNG image with graphics software that supports PNG and transparency opaqueness. (like Adobe Illustrator or Photoshop)

However, even if you had such software, and could make a PNG image of the correct dimensions and with a gradient alpha transparency, I'm not sure that PD8 would support it. I would be surprised if it did. But, I am skeptical.

There is one alternative. If you're careful about how you place your white pixels in your original BMP file, the resulting mask could appear like it has a gradient (faded) edge. But it would be pixelated, not soft. What I mean is, make a latice of pixels. A grid that has spaces between the transparent pixels. The density of transparent individual pixels would be greater toward the edge than closer to the center of the mask.

Sort of like a "halftone." (Google it)

You could try experimenting with different sized PNG files too. The larger it is, the more individual pixels you'll have and the softer the edge will be.

Hope all this makes sense.

Good luck.
Powered by JForum 2.1.8 © JForum Team