View Full Version : Using VirtualDub - Removing Logos
jmet
21 Dec 2005, 10:39 AM
In this guide I will show you how to remove logos and other watermark images (such as the Fox logo on TV) with VirtualDub and the De-logo Filter.
Software you will need:
<a href="http://www.digital-digest.com/dvd/downloads/showsoftware_virtualdub_346.html">VirtualDub</a>
<a href="http://files.digital-digest.com/downloads/files/virtualdub/delogo132.zip">De-logo Filter</a> (to install, extract the delogo.vdf to your VirtualDub "plugins" directory, eg. "c:\program Files\VirtualDub\plugins")
<a href="http://www.corel.com/servlet/Satellite?pagename=Corel3/Trials/Login&pid=1047025487586&cid=1047025490241&trkid=googlepsp">Paint Shop Pro</a> or similar photo editing program
<hr size="2">
Start up VirtualDub and load your avi file that has the logo you wish to remove. After you have loaded it, click "File", then "File Information...". Write down the size of the video (red box). Then click "OK". (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo1.png
<hr>
You will need 3 good images of the video.
The first one is very simple, just open your photo imaging program (I used Paint Shop Pro but, almost any will do such as "Paint"). Create a new image the exact same size as what you wrote down earlier (red). Make it all white (blue). Name it "frame1" and save it as a .BMP file. (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo2.png http://www.digital-digest.com/~jmet/vdubremlogo/Frame1.bmp
jmet
28 Dec 2005, 03:40 PM
Now its time to create the second image you will need. For the second image we just need a good clean shot of the logo on a black background. In the VirtualDub window, move the slider until you see a good image of the logo on a black background. Once you find one, click "Video", then click "Copy source frame to clipboard". (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo3.png
<hr>
After that open your imaging program and click "Edit", then click "Paste" or "Paste as a New Image". Then name it "frame2" and save it as a .BMP file. (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo4.png
jmet
28 Dec 2005, 04:15 PM
Now we need to make our third and final image needed to remove the logo. Here we are going to take the last image made and color in the logo "red". What I did was open the image in Paint Shop Pro and I zoomed in at %1500. That way I could replace just the logo pixels with a "red" pixel and not get in to the movie frame but, a red box over the logo will also work. It just won't look as good. (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo5.png
<hr>
After you finish, your image should look like this or similar. Be sure to save it with this filename "analysisframe" and save as .BMP . (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/analysisframe.bmp
jmet
28 Dec 2005, 04:31 PM
Now go back to your VirtualDub screen, click "File", then click "Close video file". (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo6.png
<hr size="1">
jmet
29 Dec 2005, 01:57 PM
After you click "Close video file" it will return you back to the main VirtualDub screen. From here, click "File" again, then click "Open video file..." and select the first frame you created (red) then click "OK" (blue). (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo7.png
<hr>
Now click "Video" at the top, then click "Filters...". The "Filters" screen will now pop up (red), from here click the "Add" button (blue) and select "DeLogo 1.3.2" (green), then click "OK" (gold) . (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo8.png
jmet
29 Dec 2005, 02:43 PM
The DeLogo filter screen should now pop up. There is a few things we need to do here. First is load the "analysisframe.bmp" you made earlier in the "Analyse" box via the "Load" button (red). After that, click the "Show Preview" (The button will say "Hide Preview" when Show Preview is activated) button at the bottom left (blue). After that, click the "Sample frame" button (green). After that, use the preview browse window to move one frame forward (you can press this key to automatically move forward one frame - black) (gold), then press sample frame again (green). (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo9.png
<hr>
After you get done with the previous step, make sure you "Save" each "Mask Property" before you do anything else! Just click the "Save as..." button and save it somewhere on your hard drive. (red). *Important* Next slide the "Alpha to repair" slider to the left until it says "0" (blue). Now with the preview window still showing, slide the "DeBlend shift" & "DeBlend falloff" until the logo disappears (green). When you get finished, click the "Close" button (gold), then click the "OK" button on the next screen. (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo10.png
jmet
29 Dec 2005, 04:28 PM
Well, we only took the logo off 1 frame. We need to do the whole video now. Go ahead and click "File", then "Open video file" and open up your file that you are removing the logo from. When you first open it up, it may appear the logo is already gone but, its not gone from all the frames. To get rid of the logo in all frames, we need to scan through the video and make note of where the logo appears and when it disappears for a commercial or whatever if your video has commercials etc.
The logo in my video started at frame 29 and ended at frame 4220. So I clicked "Video" at the top, then "Filters", then I clicked on "DeLogo" , then the "Configure" button. Here I set the frames I wanted to remove the logo from, (ie. 29-4220) (red). Then I clicked "Close" (blue). (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo11.png
If the video file has commercials or the logo appears then disappears at certain spots, just write down where the logo appears and at what frame it disappears and enter it in accordingly. If the logo starts at frame 400 and is on the screen until frame 10000 we will note this as 400-10000. Now say it comes back from commercial and the logo re-appears at 13500 and stays there until 22356 when there is another commercial break. Note this as well and keep going until you've covered the whole video. Now go to "video" again, choose "filters" click on Delogo (it's already applied) and where it says "on frames" we will type in the frames we want processed. In our example the logo began on frame 400 to 10000. Enter it as 400-1000, then a comma, and the next set. Our example would look like this: 400-10000,13500-22356, etc etc.
<hr>
DO NOT modify anything!! Do not click any button before you click the "Close" button. Don't reload the analyze frame or ANY other of the masks we saved earlier. DO NOT preview the video and press the "sample frame" button, if you do, it will mess up all the work we have done and you will have to start over!
Ok, now press "close", then press "OK" and check out your logo less video. You may now cut out your commercials or whatever else you may need to do.
DONE! Enjoy your logo less video! (Screen Shot Below)
http://www.digital-digest.com/~jmet/vdubremlogo/vdubremlogo12.png
anonymez
29 Dec 2005, 08:38 PM
jmet, i apologize if i'm not supposed to post in this thread (in that case, please delete this post :) )
but could you post links to larger before-after images?
jmet
30 Dec 2005, 03:34 AM
I don't have the orginial image anymore. I will try to create another one. :)
(posting in this thread is fine) :)
anonymez
30 Dec 2005, 07:36 AM
here's some from another method, using 'X-logo' with virtualdub. in aus we get translucent watermarks, makes for almost perfectly clean removal. don't know much about foreign networks and their logos though :)
http://img507.imageshack.us/img507/2483/original5dk.jpg
http://img507.imageshack.us/img507/7249/fixed1jj.jpg
http://img507.imageshack.us/img507/7527/original21aa.jpg
http://img507.imageshack.us/img507/5472/fixed29bd.jpg
this uses bitmap on pure black
awsome thread, I will give this a try later tonight.
South
1 Jun 2006, 08:03 PM
Is it ok to ask questions here about this topic/thread?
LT. Columbo
2 Jun 2006, 02:06 AM
.
(posting in this thread is fine) :)
South
2 Jun 2006, 02:53 PM
Sorry iīve missed what "jmet" wrote about posting.
Iīve tried to follow the guide to the end,but i must have done something wrong.So if someone could help me through this guide step by step,i would be glad.
First i can say that i have captured this original flash video and i have saved it as (avi).
My problem is that i would like to remove some logos/marks,take a look at it and tell me what you think about my thoughts.
http://img97.imageshack.us/img97/8670/visning13nm.png
anonymez
2 Jun 2006, 03:00 PM
the logo at the bottom-right can be improved, the other two don't stand much of a chance, unless you're happy with a big blurry, colourful mess in place of them.
if this is a one-off thing, ie you won't need to remove the same logo again, imho it's not worth the effort preparing a logo bmp for it, but:
first question: is there a scene in the video where the logo is on uniform black?
South
2 Jun 2006, 04:22 PM
first question: is there a scene in the video where the logo is on uniform black?
You can see the original here. http://bil.feber.se/2006/05/video_ferrari_5.html
South
4 Jun 2006, 07:13 PM
No response at all,what happened?
anonymez
5 Jun 2006, 08:31 AM
at 2:37 in the video the ("youtube") logo is surrounded in black. take a screenshot of it, crop off all but the logo, leaving a border of about 3-5 pixels (make sure vertical & horizontal res are even numbers). open it up in a photo editing application, use an eyedropper tool to select the black colour used and paint around the logo, so that the black is uniform.
download virtualdub & the x-logo filter, open in virtualdub-- applying the filter should be self-explanatory
South
5 Jun 2006, 01:17 PM
at 2:37 in the video the ("youtube") logo is surrounded in black. take a screenshot of it, crop off all but the logo, leaving a border of about 3-5 pixels (make sure vertical & horizontal res are even numbers). open it up in a photo editing application, use an eyedropper tool to select the black colour used and paint around the logo, so that the black is uniform.
download virtualdub & the x-logo filter, open in virtualdub-- applying the filter should be self-explanatory
http://www.compression.ru/video/logo_removal/index_en.html
http://neuron2.net/
anonymez
5 Jun 2006, 01:22 PM
not sure what you want me to do with those links http://img438.imageshack.us/img438/9108/huh9yj.gif
i have suggested the method that i believe works best (though i use avisynth in place of vdub for filtering). if you find another method you like better, by all means use it.
but opaque logo removal requires interpolation, which just creates a rectangluar blur, i'd rather have the logo there
South
5 Jun 2006, 01:25 PM
at 2:37 in the video the ("youtube") logo is surrounded in black. take a screenshot of it, crop off all but the logo, leaving a border of about 3-5 pixels (make sure vertical & horizontal res are even numbers). open it up in a photo editing application, use an eyedropper tool to select the black colour used and paint around the logo, so that the black is uniform.
download virtualdub & the x-logo filter, open in virtualdub-- applying the filter should be self-explanatory
x-logo filter?did you mean this?i canīt find anything else.
http://www.compression.ru/video/logo_removal/index_en.html
Nothing here.
http://www.virtualdub.org/virtualdub_filters
I donīt question your advice i canīt find the filter.
anonymez
5 Jun 2006, 01:30 PM
the avisynth filter is avilalbe here http://www.avisynth.org/warpenterprises
but for ease of use you'll probably want the vdub filter, which is attached (although an older version)
South
5 Jun 2006, 02:13 PM
take a screenshot of it, crop off all but the logo, leaving a border of about 3-5 pixels (make sure vertical & horizontal res are even numbers).
Is this ok to start with?
http://img68.imageshack.us/img68/9072/hhhh3ed.png
anonymez
5 Jun 2006, 02:15 PM
crop the grey border completely, and fill in the blue/whitish gap at the bottom with the same black
edit: lol just realised it was a screenshot of the editing app http://img407.imageshack.us/img407/9051/happy2bb.gif
well the latter applies, paint over the gap
South
5 Jun 2006, 02:36 PM
crop the grey border completely, and fill in the blue/whitish gap at the bottom with the same black
edit: lol just realised it was a screenshot of the editing app http://img407.imageshack.us/img407/9051/happy2bb.gif
well the latter applies, paint over the gap
Something like this?I just donīt understand why there is 2 images,i just opened 1 in vdub?
http://img106.imageshack.us/img106/6015/cropoffvdub8fn.png
anonymez
5 Jun 2006, 04:47 PM
you also need to paint over the brown bit on the left.
I just donīt understand why there is 2 images,i just opened 1 in vdub?
you open the VIDEO in vdub. then go video-->filters and add the x-logo filter
South
5 Jun 2006, 05:13 PM
Like this maybe?
http://img104.imageshack.us/img104/9141/b2lz.png
I forgot to resize the image,thatīs why i couldnīt see the brown.
http://img240.imageshack.us/img240/8325/cropoff9cp.png
anonymez
5 Jun 2006, 06:56 PM
that looks about right. load the file, position it and click "zero". adjust the white balance (usual ranges are 230-260) so it looks good to you
South
5 Jun 2006, 08:01 PM
that looks about right. load the file, position it and click "zero". adjust the white balance (usual ranges are 230-260) so it looks good to you
Nothing works here,i have no idea whatīs going to happen.
Iīve never done this before so i need a step by step guide in how to do things.
anonymez
5 Jun 2006, 08:20 PM
do you have the video on your hard disk?
South
5 Jun 2006, 08:29 PM
do you have the video on your hard disk?
Yes (avi)
anonymez
5 Jun 2006, 08:36 PM
open the avi with vdub, go video-->filters, select the x-logo filter, point it to the logo mask you created, click the preview button, then "zero", adjust the X and Y values so as to position it over the logo
South
5 Jun 2006, 09:15 PM
open the avi with vdub, go video-->filters, select the x-logo filter, point it to the logo mask you created, click the preview button, then "zero", adjust the X and Y values so as to position it over the logo
http://img244.imageshack.us/img244/9480/12mf.png
Do you understand why i canīt see anything in the prewiev-window?
anonymez
5 Jun 2006, 09:20 PM
means there's a problem with the logo image. make sure the vertical & horizontal res are even numbers.
usually the cause is an incomplete border around the image-- open up the image in an editing app, and make sure the outermost pixels in the image are all one colour. so use the eyedrop tool again to get the black colour and paint that colour over the edges
South
5 Jun 2006, 09:34 PM
means there's a problem with the logo image. make sure the vertical & horizontal res are even numbers.
usually the cause is an incomplete border around the image-- open up the image in an editing app, and make sure the outermost pixels in the image are all one colour. so use the eyedrop tool again to get the black colour and paint that colour over the edges
Maybe iīm having some problems understanding (english) sometimes.It isnīt my first language.
http://img233.imageshack.us/img233/76/23zz.png
Do you mean for example that "84" width should be "85" and that "38" hight should be "40"?
anonymez
5 Jun 2006, 09:36 PM
no, those numbers are fine
South
5 Jun 2006, 09:45 PM
no, those numbers are fine
http://img96.imageshack.us/img96/2674/36ah.png
Maybe there is to much black between the letter "y" and the left side.
If i cut the image where the yellow line is?
Iīll try your advice about the incomplete border.
partymasterdave
13 Nov 2007, 03:09 AM
Now its time to create the second image you will need. For the second image we just need a good clean shot of the logo on a black background. In the VirtualDub window, move the slider until you see a good image of the logo on a black background. Once you find one, click "Video", then click "Copy source frame to clipboard". (Screen Shot Below)
I got to this step with my video and when i tried to move the slider over i got the error message xvidcore.dll not found please help and i'm not sure if there is a part in my movie where the logo is on complete black for the second image because this is a big watermark http://img111.imageshack.us/my.php?image=dscn0940fg6.jpg (http://img111.imageshack.us/my.php?image=dscn0940fg6.jpg)<!-- m -->
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.