From: Subject: Removing Logos using DeLogo vdub filter - VideoHelp.com Date: Thu, 13 Sep 2007 20:32:17 -0500 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----=_NextPart_000_0000_01C7F645.2D546370" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C7F645.2D546370 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://forum.videohelp.com/topic280003.html Removing Logos = using DeLogo vdub filter - VideoHelp.com
Sponsors 
DVD-R Blank Media

BoxWave=20 Accessories

Magic ISO
Maker


DVD=20 Duplicator

DVD Replication

DVD=20 Duplication

DVD Authoring

DVD=20 Duplicators

CD/DVD Media in Europe

DVD=20 Duplicator

Free Codecs

cdfreaks.com


Site layout:=20
Default
Blue
=20
Cookies must be enabled.


3Dp
Printer
Friendly


=A91999-2007
videohelp.= com
dvdrhelp.com
vcdhelp.com
svcdhelp.com

Contact Us
Privacy=20 Policy


INDEX  F.A.Q.  SEARCH  LATEST=20 POSTS  =20   Rules  = ;Register<= /A>  Profil= e  No = new=20 messages  Logout = [ neuron2=20 ]


Search =20 all forums or =20 this forum: Advanced=20 search
Removing Logos=20 using DeLogo vdub filter

Forum = Index ->=20 Video ->=20 E= diting,=20 cutting and joining Printer-friendly version
Goto page = 1, 2  = Next
Author Message
Matt D
Member


Joined: 15 Jan = 2003
Location: USA
=20
Posted: Sep=20 21, 2005 16:35   Posts: 304', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DMatt = D"> OS: = xp
CPU: 2.8
Memory: 512
HardDrive: 80GB
VideoCard: Geforce = 4
CaptureCard: AverMedia DVD Ezmaker
MotherBoard:
DVD/CD: =
DVDPlayer: Apex AD-800a
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member56600.html">

Who=20 doesn't hate those annoying logos that networks love = to place=20 over TV shows? If it's a white semi transparent logo, = it can=20 be removed from an AVI file. DeLogo doesn't work with = MPG, so=20 don't waste your time.

First step is to = install the=20 DeLogo filter for vdub. Next we will = open our AVI=20 and find suitable frames to work with.

You = will need 3=20 frames as shown below. The first is easy, just a pure = white=20 frame the same size as the video you are working with. = It=20 doesn't have to be from the video, just the EXACT same = size,=20 and pure white. The second is a good clean shot of the = logo to=20 be removed against a black background. Be sure to save = these=20 as BMP with names like frame1 & frame2 so that we = can load=20 them as a sequence later in vdub.




Now we need to create a frame = to use for=20 analysis. Use the same black background frame, and use = a paint=20 program to color in the logo area with pure red as = shown=20 below. Going outside the lines is ok, just making a = red box=20 will work, just not as well. Name this something like=20 analysisframe and save as BMP.




Now we can close out the = video, and load=20 the 2 frames in vdub. Just "open = video file"=20 and browse to their folder and open the first image. = Vdub will = automatically load=20 the second in the sequence. Now open the "video" tab = and=20 select "filters". Here is where you load the DeLogo = plugin, do=20 so and double click it to load.

Here is the = DeLogo=20 screen:



1. Under "mask properties" you = will see a=20 button to load your analyse frame, do so.
2. Press = show=20 preview.
3. Press sample frame
4. Use the = preview=20 browse window to move one frame forward to frame 2. = Press=20 sample frame again.

Voila, your logo is now = gone, and=20 masks created!




Before doing anything else, = save the=20 deblend, alpha, color and repair masks to disk. They = can be=20 used again. Also, TURN OFF "alpha to repair" slider! = All the=20 way to zero, as it will blur your video, not good. =
Now,=20 while previewing the black background frame, play with = the=20 "deblend shift" and "deblend falloff" sliders until = the logo=20 area blends in as close to perfect as possible. Make = sure you=20 do this now! When done, click "close" and then "Ok".=20


Okay, so we took the logo off one frame, = let's do=20 the entire video! Please be SURE that you have not = edited=20 anything out using vdubs delete selection feature. If = you do=20 edit before applying DeLogo it will get frames = confused. Go to=20 "file" and select "open video file". Browse to your = AVI and=20 open it. Once it opens, you should see that the logo = has been=20 removed, but the frames without a logo may look like = they have=20 a cookie cutter hole in the logo's shape. To get rid = of this=20 we need to scan through the video and make note of = where the=20 logo appears and when it disappears for a commerical = or=20 whatever.
If the logo starts at frame 400 and is = on the=20 screen until frame 10000 we will note this as = 400-10000. Now=20 say it comes back from commerical and the logo = re-appears at=20 13500 and stays there until 22356 when there is = another=20 commerical break. Note this as well and keep going = until=20 you've covered the whole video.
Now go to "video" = again,=20 choose "filters" click on Delogo (it's already = applied) and=20 where it says "on frames" we will type in the frames = we want=20 processed. In our example the logo began on frame 400 = to=20 10000. Enter it as 400-1000, then a comma, and the = next set.=20 Our example would look like this: = 400-10000,13500-22356, etc=20 etc.

DO NOT play with anything. Don't reload = the=20 analyze frame or ANY other of the masks we saved = earlier. DO=20 NOT preview the video and press the "sample frame" = button, it=20 will screw up your work.

Ok, now press = "close", press=20 "ok" and check out your logoless video. You may now = cut out=20 your commericals or whatever and frameserve to your = favorite=20 MPEG2 encoder.


=20 =20 =20 =20
Stormin Norman
Made in U.S.A.
3D""=20

Joined: 22 Feb=20 2005
Location: = Michigan
=20
Posted: Sep=20 21, 2005 17:30   Posts: 336', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DStormin = Norman"> OS: = xp sp2
CPU: p4 2.53ghtz
Memory: 1024 corsair
HardDrive: 320 of = wd caviar
VideoCard: geforce fx5900 ultra
CaptureCard: hauppauge = pvr pci
MotherBoard: msi ms-6577
DVD/CD: pioneer = dvr108
DVDPlayer: panasonic dvd-rv32
DVDRecorder:
Other: = Pioneer DVR-220-S');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member130589.html">

Nice,=20 never really figured out how to use the de-logo. Will = give a=20 try soon since just about every friggin cable channel = displays=20 logo identifications now.

Will it work with Avisynth? I dont = like vdub.=20
_________________
Quality is my policy. =


=20 =20 =20 =20
gadgetguy
Contestant
3D""=20

Joined: 14 Feb=20 2002
Location: Michigan,=20 USA
=20
Posted: Sep=20 21, 2005 19:28   Posts: 2350', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3Dgadgetguy">= OS: = Win2k
CPU: 2.4 P4
Memory: 512 MB
HardDrive: 120 GB SATA, 160GB = Capture, 10 GB System, 4 GB Pag
VideoCard: On Board
CaptureCard: =
MotherBoard: Albatron PX845GE
DVD/CD: NEC ND-3550
DVDPlayer: =
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member25649.html">

Matt D,=20
I gave your method a try and it works as well as = I've ever=20 been able to do using long range samples from the = target=20 video. This is definately a quicker method. However, I = still=20 find the results unacceptable with the logos I tested. = Anywhere that the logo fades in or out creates = distracting=20 artifacts and if the logo is not completely = semi-transparent,=20 the results to me are more distracting than the logo = itself.=20 But that's not the fault of your methodology, but = inherent to=20 the filter. This definately makes the testing process = of=20 whether using the DeLogo filter will work or not a lot = faster.=20 Thanks

Norman,
I have not yet figured out = how to=20 use this filter in AviSynth. (But I'm = by no means=20 an expert 3Dwink.gif=20 )
_________________
"Shut up = Wesley!"
--=20 Captain Jean-Luc Picard


=20 =20 =20 =20
lordsmurf
Unavailable
3D""=20

Joined: 10 Jun=20 2003
Location: Mostly offline = these=20 days
=20
Posted: Sep=20 21, 2005 20:18   Posts: 19106', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3Dlordsmurf">= OS: = WinXP (Pro)
CPU: Intel P4 2.8, AMD 2700+
Memory: 1GB RDRAM, 512 = DDR
HardDrive: about 1200GB total
VideoCard: ATI AIW cards = (7200)
CaptureCard: ATI AIW (MMC 8.7,9.0)
MotherBoard: Intel = D850GB, VIA KT600
DVD/CD: Pioneer 109, BTC1004/1008, = NEC1300
DVDPlayer: Toshiba 2800, LiteOn 5001/5104
DVDRecorder: JVC = DRM10/100, Panasonic E80H/ES10, others
Other: JVC 9800/SRV10U/3800, = TBC-1000/AVT-8710, Elite BVP4, SignVideo DR-1000');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member71824.html">

A lot of=20 stations also move the logo every time it comes back = from=20 commercial. And let's not forget those special promos = banners=20 and logos that pop up on screen. Or rotating logos = that do=20 something here and there.

For general use, = something=20 like this is useless. Your video has to meet certain=20 conditions that are just not that typical, not anymore = at=20 least.

And when put into motion, you often end = up with=20 these blobs that are more irritating than just having = left the=20 logo alone.
_________________
digitalFAQ.com
= Guides for=20 video capturing, restoring, authoring, burning. ATI = AIW help.=20
NoMoreCoasters.com How to=20 avoid burning bad discs. Blank media FAQ. =

=20 =20 =20 =20
shiet
Member


Joined: 15 Aug = 2005
Location: coocoo
=20
Posted: Sep=20 21, 2005 21:17   Posts: 35', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3Dshiet"> OS: = xp1
CPU: 1800mzh
Memory: 256
HardDrive: 80gb
VideoCard: =
CaptureCard:
MotherBoard:
DVD/CD:
DVDPlayer: =
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member140615.html">

would=20 this work realtime with ffdshow? =

=20 =20 =20 =20
Matt D
Member


Joined: 15 Jan = 2003
Location: USA
=20
Posted: Sep=20 21, 2005 23:23   Posts: 304', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DMatt = D"> OS: = xp
CPU: 2.8
Memory: 512
HardDrive: 80GB
VideoCard: Geforce = 4
CaptureCard: AverMedia DVD Ezmaker
MotherBoard:
DVD/CD: =
DVDPlayer: Apex AD-800a
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member56600.html">

Norman-=20 It should work with avisynth. Haven't = tried it=20 myself, but I'm sure someone has.

Gadgetguy- = Some=20 logos just can't be taken off cleanly. It's usually = due to=20 their construction, or even crappy source video. Some = fault=20 may rest with the plugin, but these two reasons are = usually=20 the culprit. Thankfully you understand that like any = tool,=20 sometimes DeLogo is useful, sometimes it's not. =

Smurf-=20 Yes, we've gone around on this again and again. If you = must=20 have every millisecond of logo off, most channels have = you=20 beat. That Spike example only works during the 97% of = the show=20 where the logo isn't moving or sparkling gold. I'd = rather have=20 100%, but c'est la vie.

Put into motion, there = are no=20 blobs if you do it right, and the logo is removable. = There are=20 some instances of artifacting, but it's only = occasional, and=20 off to one corner, which is not the part of the tube = most=20 people watch.

If anyone would like to see a = moving=20 example of DeLogo, right click this link and save as. I = will leave=20 this up a few days. Be warned, it's 10 megs, and to = save space=20 I encoded the video at 1/2 D1, so there is some minor = noise.=20 Who can tell me what logo I took off?


=20 =20 =20 =20
Barnabas
Member
3D""=20

Joined: 29 Dec=20 2001
Location: US
=20
Posted: Sep=20 22, 2005 00:38   Posts: 958', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DBarnabas"><= IMG=20 alt=3DPosts=20 = src=3D"http://forum.videohelp.com/templates/videohelp/imagesclassic/lang_= english/icon_search2.gif"=20 border=3D0> OS: = Windows XP Home
CPU: 2 GHZ Althon 64
Memory: 1 Gig
HardDrive: = 240 Gigs
VideoCard: ATI Radeon X300se
CaptureCard: Hauppauge WinTV = PVR-250, Canopus ADVC-55
MotherBoard: Gigabyte
DVD/CD: Pioneer = DVR-105
DVDPlayer: Pioneer DV-250,Apex 500W, Apex = 600A
DVDRecorder: Lite-On 5006
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member22124.html">

Matt D,=20

Great guide! I have gotten pretty good at = removing=20 logos with DeLogo, but thought I needed a white = background=20 WITH the logo, which is HARD to find so this will make = it REAL=20 easy!

I think you removed the TBS logo btw.=20


=20 =20 =20 =20
phelix
Member


Joined: 30 Dec = 2001
Location: United States
=20
Posted: Sep=20 22, 2005 03:33   Posts: 76', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3Dphelix"> OS: = private
CPU: private
Memory: private
HardDrive: = private
VideoCard:
CaptureCard:
MotherBoard:
DVD/CD: =
DVDPlayer:
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member22208.html">

Matt D = wrote:
Norman- It should work with avisynth. = Haven't tried=20 it myself, but I'm sure someone has.=20


Here's the script to use it = in avisynth. First, = run it in virtualdub to = generate the four=20 masks and figure out the best settings. Then you can = use the=20 following code in avisynth:

Code:

#Delogo.  After all the=20 pictures, the numbers are:
# = Repair-depth: =20 x*10
# Repair Power:  x*10
#=20 interlaced:    1 (true) or 0 (false) =
#=20 Pixel Ratio:   0
ConvertToRGB()=20 =
LoadVirtualDubPlugin("\path\to\VirtualDub\plugins\delogo.vdf","delogo= ")=20
delogo(0, "", "deblend.bmp", "alpha.bmp",=20 "color.bmp", "repair.bmp", 20, 44, 0, 0)=20


=20 =20 =20 =20
Barnabas
Member
3D""=20

Joined: 29 Dec=20 2001
Location: US
=20
Posted: Sep=20 22, 2005 11:46   Posts: 958', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DBarnabas"><= IMG=20 alt=3DPosts=20 = src=3D"http://forum.videohelp.com/templates/videohelp/imagesclassic/lang_= english/icon_search2.gif"=20 border=3D0> OS: = Windows XP Home
CPU: 2 GHZ Althon 64
Memory: 1 Gig
HardDrive: = 240 Gigs
VideoCard: ATI Radeon X300se
CaptureCard: Hauppauge WinTV = PVR-250, Canopus ADVC-55
MotherBoard: Gigabyte
DVD/CD: Pioneer = DVR-105
DVDPlayer: Pioneer DV-250,Apex 500W, Apex = 600A
DVDRecorder: Lite-On 5006
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member22124.html">

Here is=20 a link to some samples of the before and after results = of=20 DeLogo using Matt D's method.

http://www.videohelp.com/forum/viewtopic.php?t=3D275574&am= p;highlight=3D=20

Although a few stubborn people on the forums = like to=20 insist that removing logos will look worse that = keeping them=20 in, when viewing the captures that the samples posted = in the=20 link above are taken from on 52 inch TV, NO one I = showed the=20 captures to could tell me where the logo had even = been! NO=20 "Blobs" are left using this method, but there is = increased=20 noise where the logo was.


=20 =20 =20 =20
gadgetguy
Contestant
3D""=20

Joined: 14 Feb=20 2002
Location: Michigan,=20 USA
=20
Posted: Sep=20 22, 2005 12:32   Posts: 2350', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3Dgadgetguy">= OS: = Win2k
CPU: 2.4 P4
Memory: 512 MB
HardDrive: 120 GB SATA, 160GB = Capture, 10 GB System, 4 GB Pag
VideoCard: On Board
CaptureCard: =
MotherBoard: Albatron PX845GE
DVD/CD: NEC ND-3550
DVDPlayer: =
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member25649.html">

Matt D,=20
Quote:
Who can tell me what logo I took = off?

I can't=20 tell at all on that clip. I'm not familiar with the = show and=20 can't guess what network it was on. Nice job.=20

Barnabas,
It wasn't my intention to = badmouth the=20 filter, I think it's a good filter. But it does have=20 limitations and it seems that the shows that I want to = capture=20 usually have difficult logos to remove, and as such I = find it=20 less distracting to leave the logo as is. That is not = to say=20 that I think it looks "better", only less distracting. = (Or=20 maybe I'm just paranoid and you weren't referring to = me as one=20 of the "stubborn" ones.)

phelix,
Thanks = for the AviSynth script. = I've been=20 trying to figure this out without any success and I, = for one,=20 appreciate you sharing it. =
_________________
"Shut up=20 Wesley!"
-- Captain Jean-Luc Picard


=20 =20 =20 =20
dphirschler
Ut
3D""=20

Joined: 29 Aug=20 2001
Location: Kennesaw, GA -=20 USA
=20
Posted: Sep=20 22, 2005 13:21   Posts: 1509', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3Ddphirschler= "> OS: = Win XP SP2
CPU: Intel Pentium 3.0 GHz
Memory: 1 GB (512 + 512), PC = 3200
HardDrive: c:WD 160 GB, d: WD 160 GB
VideoCard: PNY GeForce = FX 5500 AGP 8x
CaptureCard: Pinnacle PCTV Pro
MotherBoard: ECS = 848P-A
DVD/CD: Sony DRU500a
DVDPlayer: Pioneer = DV563A-S
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member14424.html">

Matt D = wrote:
Who can tell me what logo I took = off?

TBS.=20 Nice work.


Darryl


=20 =20 =20 =20
Barnabas
Member
3D""=20

Joined: 29 Dec=20 2001
Location: US
=20
Posted: Sep=20 22, 2005 23:32   Posts: 958', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DBarnabas"><= IMG=20 alt=3DPosts=20 = src=3D"http://forum.videohelp.com/templates/videohelp/imagesclassic/lang_= english/icon_search2.gif"=20 border=3D0> OS: = Windows XP Home
CPU: 2 GHZ Althon 64
Memory: 1 Gig
HardDrive: = 240 Gigs
VideoCard: ATI Radeon X300se
CaptureCard: Hauppauge WinTV = PVR-250, Canopus ADVC-55
MotherBoard: Gigabyte
DVD/CD: Pioneer = DVR-105
DVDPlayer: Pioneer DV-250,Apex 500W, Apex = 600A
DVDRecorder: Lite-On 5006
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member22124.html">

Here is=20 a before and after example of using DeLogo on an = Alpha-Blended=20 logo. While not perfect, I have not found ANY other VirtualDub filter = that removes=20 alpha-blended logos as well as DeLogo does. =

Capture=20 with logo intact



Capture with logo removed by = DeLogo=20



=20 =20 =20 =20
Matt D
Member


Joined: 15 Jan = 2003
Location: USA
=20
Posted: Sep=20 23, 2005 00:32   Posts: 304', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DMatt = D"> OS: = xp
CPU: 2.8
Memory: 512
HardDrive: 80GB
VideoCard: Geforce = 4
CaptureCard: AverMedia DVD Ezmaker
MotherBoard:
DVD/CD: =
DVDPlayer: Apex AD-800a
DVDRecorder:
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member56600.html">

Yes, it=20 was the TBS logo. Good eyes IMO!

Gadgetguy- = The clip=20 was a Family Guy parody of the old tv show "Taxi". I'm = glad=20 you found the removal pleasing on the eye. =

Barnabus-=20 Good work there! Hopefully more people like us that DO = have a=20 use for DeLogo will find this guide useful. =


=20 =20 =20 =20
Barnabas
Member
3D""=20

Joined: 29 Dec=20 2001
Location: US
=20
Posted: Sep=20 23, 2005 10:17   Posts: 958', WIDTH, 125);"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/search.php?search_author=3DBarnabas"><= IMG=20 alt=3DPosts=20 = src=3D"http://forum.videohelp.com/templates/videohelp/imagesclassic/lang_= english/icon_search2.gif"=20 border=3D0> OS: = Windows XP Home
CPU: 2 GHZ Althon 64
Memory: 1 Gig
HardDrive: = 240 Gigs
VideoCard: ATI Radeon X300se
CaptureCard: Hauppauge WinTV = PVR-250, Canopus ADVC-55
MotherBoard: Gigabyte
DVD/CD: Pioneer = DVR-105
DVDPlayer: Pioneer DV-250,Apex 500W, Apex = 600A
DVDRecorder: Lite-On 5006
Other: ');"=20 onmouseout=3D"return nd();"=20 = href=3D"http://forum.videohelp.com/member22124.html">

Here is=20 a good example of just how well DeLogo can work on an=20 Alpha-Blended logo versus LogoAway

In this = example,=20 note the vertical lines. With LogoAway, an ugly = "smudge" is=20 left where the logo was, but the same image processed = by=20 DeLogo shows NO smudge, and even reveals the details = in the=20 area behind the logo, in this case, note vertical = folds the=20 curtains, and the vertical lines of the item sitting = just to=20 the left of the vase.

Original frame without = any=20 filtering



Same frame processed with DeLogo=20



Same frame processed with LogoAway =



Delogo can truly do a remarkable = job of=20 restoring the image behind an Alpha-Blended logo when = used=20 correctly.


=20 =20 =20 =20