Hi,
im using virtualdub and the logo filter by Donald Graft. I want to put a logo but with transparent background. Since the filter only allows bmp files i cant import an image with the background already transparent so i have to make it disappear by tweaking the filter settings. There is an alpha mask checkbox which i checked after creating an alpha image. However the background doesnt go. The alpha image is the same color as the background i want to make transparent. Is supposed to be another color or why is it not working?
Thank you.
+ Reply to Thread
Results 1 to 24 of 24
-
-
-
Thanks for the link. So if the background is white then the alpha image has to be white? but what about if the background is blue or something else? what color should i use?
Thank you. -
Last edited by sambat; 26th May 2012 at 04:51. Reason: image
-
The alpha image is a transparency map. Where the alpha image is white the logo image shows. Where the alpha image is black the logo is transparent. Shades of gray in between are different levels of transparency. That allows you to have aliased edges. If you use "transparent color" mode you can't get good antialiasing.
To use an alpha mask with Donald Graft's logo filter you need a separate grayscale image with the letter A appended to the base name: For example, if you are using LOGO.BMP as the logo, the alpha mask image should be LOGOA.BMP.
+
=
logo.bmp + logoa.bmp = resultLast edited by jagabo; 26th May 2012 at 07:04.
-
Hi,
i had already tried the transparent color option but the borders look bad. Now i tried with an alpha image and the borders look better but still not as good as i expected. Is it a limitation of the filter or am i doing something wrong?
Thank you. -
-
My logo is gold with a white border. Whats the best color to use on the alpha image? i used black. Thanks.
-
What are you trying to do? Get rid of the white outline around the gold logo? Get rid of a few black pixels around the edges of the white outline?
-
The problem with this method is that the anti-aliased edge of the logo interacts with the anti-aliased transition on the alpha image.
If you overlay your logo onto a solid white video, I'd expect a grey outline at the edge of the logo where the alpha transition is.
A way to get round this is to put the main logo image on a solid white background instead of black. -
But what about the borders? they are white. If i put the logo on a white background they would disappear. Wouldn't they?
-
-
top: using original images (bad edge transition)
middle: using ass_02.bmp with assA.bmp
bottom: same as middle, but overlaid on a grey background/video.
I don't use virtualdub so I might be diagnosing the wrong problem, but what you describe is a common issue with alpha overlays. So much so that major TV networks quite often get it wrong. -
Do like I said, blur the mask, then darken and contrast stretch it -- so that white remains white but darker shades get darker. That has the effect of slightly "shrinking" the mask away from the edges. Compare this mask to your original. Or you can paint the mask by hand but that's a PITA.
Last edited by jagabo; 26th May 2012 at 09:30.
-
Intracube, Thanks. However the video background is blue in movement. Will it work too?
Jagabo, i really dont understand the part about darkening the mask since the mask is already black. What do you mean? anyway, i used the image you attached but still, it looks the borders look kinda fuzzy. -
Last edited by intracube; 26th May 2012 at 09:41.
-
No, that example is with jagabo's. I have a question about yours. I have to use the image you attached plus the first alpha image i posted?
Thanks. -
You want to keep the white parts white but darken all the gray shades. That has the effect of "shrinking" the white portion of the mask.
If you want it less antialliased increase the contrast until the edge of the mask gets very sharp.
Another approach you can take is make the entire border around the logo white instead of black. Then the mask doesn't have to match the logo perfectly.Last edited by jagabo; 26th May 2012 at 09:59.
-
It looks much better now. Next time i will know what to do. Thanks both of you!
-
This method is going to be difficult for supercain; get the mixture of blurring and contrast adjustment wrong and the edge of the logo will be blurred or aliased. On top of that, shrinking the edge of the alpha image will eat into the white border he wants to keep.
As I mentioned, there are some bad scaling artefacts on the image in post #16. jagabo - might virtualdub be incorrectly set to use nearest neighbour scaling? This could be at least half of the problem. -
-
Similar Threads
-
VirtualDub - removing logo off a not-black background
By LukeGuldan in forum EditingReplies: 2Last Post: 20th Nov 2009, 20:31 -
:?: how to produce a transparent logo in VDub?
By 3thman in forum EditingReplies: 5Last Post: 8th Oct 2009, 11:24 -
DVD logo with a transparent background
By cobra jet in forum Newbie / General discussionsReplies: 4Last Post: 26th Jun 2008, 15:31 -
Subtitle background is not transparent *solved*
By Meriks in forum SubtitleReplies: 3Last Post: 9th Feb 2008, 15:47 -
I want to create transparent background videos for website
By cctaco in forum Newbie / General discussionsReplies: 2Last Post: 3rd Oct 2007, 16:30