INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


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

Forum Index -> Video -> Editing Printer-friendly version
Goto page Previous  1, 2
Reply to topic
Author Message
ChibiBoi
Member


Joined: 22 Jan 2006
Location: United States

Post Posted: Jan 25, 2006 20:13 Posts Comp View users profile Send private message Reply with quote

ok, i'll try that. thanks

mgy999a
Member


Joined: 16 Jun 2004
Location: TN, USA

Post Posted: Apr 21, 2006 11:28 Posts Comp View users profile Send private message Reply with quote

Nice guide. Wish it would work for me. sad.gif I tried it out on TVLand’s alpha-blended logo. I can get it to erase the logo on ‘frame2’ but it does not work on the rest of the video clip. On frames with a light colored background, the logo is unaffected. On darker backgrounds, the logo tends to ‘fade’ some. The darker the background, the more it fades but it never entirely disappears, even on a black background.

Am I doing something wrong or is it the nature of the video clip I am using? The clip was first recorded in XP mode on a dvd recorder, then imported into VirtualDubMod and saved as an AVI file using PICVideo MJPEG set to 19 and then re-imported back into VirtualDubMod before trying Delogo. I have experimented quite a bit using different settings, different masks, different frames, off-white colors for ‘frame1’, etc but doesn’t help.
confused.gif Suggestions?


Barnabas
Member


Joined: 29 Dec 2001
Location: US

Post Posted: Apr 25, 2006 11:24 Posts Comp View users profile Send private message Reply with quote

Try making up several masks to use. Also, you may need to adjust the white to more of an off white. That's worked for me on tough logos.

spanky123
Member


Joined: 30 Oct 2006
Location: Australia

Post Posted: Oct 31, 2006 09:23 Posts Comp View users profile Send private message Reply with quote

Can anyone please explain how to setup the avs script for delogo?
I'm using gordian knot
Havin some troubles


Barnabas
Member


Joined: 29 Dec 2001
Location: US

Post Posted: Oct 31, 2006 10:01 Posts Comp View users profile Send private message Reply with quote

Delogo is a VirtualDub filter.

spanky123
Member


Joined: 30 Oct 2006
Location: Australia

Post Posted: Oct 31, 2006 10:04 Posts Comp View users profile Send private message Reply with quote

Gordian Knot uses virtualdub and avisynth scripts. Can't I do it through Gordian Knot ? I can edit the avs script in there

Here's a script from a few post back
http://forum.videohelp.com/viewtopic.php?p=1376541#1376541
I'm just unsure bout how to put it together


AlanHK
Member


Joined: 25 Apr 2006
Location: Hong Kong

Post Posted: Nov 01, 2006 00:51 Posts Comp View users profile Send private message Reply with quote

spanky123 wrote:
Gordian Knot uses virtualdub and avisynth scripts. Can't I do it through Gordian Knot ? I can edit the avs script in there

Here's a script from a few post back
http://forum.videohelp.com/viewtopic.php?p=1376541#1376541
I'm just unsure bout how to put it together


I just worked through it.

First get and install the delogo filter in Vdub.
The address wasn't given, it's at http://neuron2.net/delogo132/delogo.html
Then follow the instructions in the first post in the thread using VDUB.
In the delogo screen, save the four mask bitmaps in the same directory as your AVI file, using the names "deblend.bmp", "alpha.bmp", "color.bmp", "repair.bmp".
Then take note of the numbers on the sliders of the "repair parameters" to plug into your script.

eg, my Avisynth script for MPEG encoding was:

AVISource("tw-103.avi",false)
ConvertToRGB()
LoadVirtualDubPlugin("P:\VirtualDubMod\plugins\delogo.vdf","delogo")
delogo(0, "", "deblend.bmp", "alpha.bmp", "color.bmp", "repair.bmp", 15, 40, 0, 0)
ConvertToYV12()
LanczosResize(720,576,0,0,640,352)


The number "15" corresponds to a "repair depth" of 1.5, the "40" to "repair power" of 4.0 as was generated by the analysis.


spanky123
Member


Joined: 30 Oct 2006
Location: Australia

Post Posted: Nov 01, 2006 04:01 Posts Comp View users profile Send private message Reply with quote

Thanks heaps for that.
I'll give it a shot soon and see how it goes.


homersimpson123
Member


Joined: 14 Dec 2006
Location: america

Post Posted: Dec 14, 2006 22:16 Posts Comp View users profile Send private message Reply with quote

good filter. thanks alot.

PUBLICENEMY
Member


Joined: 17 Nov 2007
Location: Iran, Islamic Republic of

Post Posted: Nov 17, 2007 04:41 Posts Comp View users profile Send private message Reply with quote

hi
i can't make it work
in order to enable the filter, the video tab in virtualdub's main vindow must be in "full processing mode" option.right?
well i can load delogo and proceed and see in preview of it that the logo is blurred
but when i hit ok and want to save avi and choose "direct stream copy" in video drop bar, the result is the same as input video and if i choose "full processing mode" video size gets realy huge
so what am doin wrong?


AlanHK
Member


Joined: 25 Apr 2006
Location: Hong Kong

Post Posted: Nov 17, 2007 05:08 Posts Comp View users profile Send private message Reply with quote

PUBLICENEMY wrote:
when i hit ok and want to save avi and choose "direct stream copy" in video drop bar, the result is the same as input video and if i choose "full processing mode" video size gets realy huge
so what am doin wrong?


"Direct stream copy" is unfiltered.
To see the results of filters, you need "full processing".

And then you probably want to compress it, so the button below "full processing mode" in the "save as" dialogue click "change" and choose your output format (eg, DivX 5) and the settings for that govern the quality and file size.


PUBLICENEMY
Member


Joined: 17 Nov 2007
Location: Iran, Islamic Republic of

Post Posted: Nov 17, 2007 08:07 Posts Comp View users profile Send private message Reply with quote

sorry for askin again
but theres only 1 option for savin which is "save as avi". on the other hand in video drop bar theres a botton "compression" which u can choose between compression formats or stay uncompressed,
my file is xvid but when i choose xvid it gives me "stats not found" error
what should i do?
also whats the average time for you to complete delogo-ing


jimmalenko
VH Veteran


Joined: 27 Aug 2003
Location: Down under

Post Posted: Nov 22, 2007 21:57 Posts Comp View users profile Send private message Reply with quote

"statsfile not found" means your XVID codec is not configured properly. You need to set the statsfile location to .\video.pass (you can do this by selecting XVID and pressing the configure button).
_________________
If in doubt, google it.


Click Here


incrediblej
Member


Joined: 03 Aug 2007
Location: Australia

Post Posted: Mar 08, 2008 09:25 Posts Comp View users profile Send private message Reply with quote

LOL, I am stuck on the first step, can someone tell me how to get the all white background the same size as the video (tut is not very specific).l

Do I just make a white .bmp image in photshop?

I dont get it... thanks
_________________
[size=9]Zhare Your Info Article Publisher
R5DVD.com Support Team
VLCPlayer.info - My Favourite Media Player


AlanHK
Member


Joined: 25 Apr 2006
Location: Hong Kong

Post Posted: Mar 08, 2008 11:12 Posts Comp View users profile Send private message Reply with quote

incrediblej wrote:
Do I just make a white .bmp image in photshop?


Yes.
Simplest way: make a screencap (you need several anyway), copy it, fill with white.


vhelp
..Semi Neutral..


Joined: 31 Mar 2001
Location: New York

Post Posted: May 26, 2008 00:53 Posts Comp View users profile Send private message Reply with quote

I've been researching how to remove (de-logo) watermarks in my videos. I've D/L'ed other
peoples images with watermarks to use as examples -- there's so many types of logos on
stations these days. Anyway.

I'm building a tool to remove logos. I"ve been interested in it for quite some time, prob since
I first came across this discussion back in Sept/2005 but had many other things going on.

The one thing that has stopped me many of times in this endeavor was the fact that there
doesn't seem to be any tutorials on the machanics of logo removal. I mean, I searched for
all kinds of keywords and phrases and still can't come up with any to this day. So, I've
decided to just attempt at it from scratch. Ok, even though this topic does not cover the
mechanics (algos) of how to remove, this discussion is the closest I've come to it and am
just mainly trial 'n error 'ing it as I go.

So far, they way I've gathered it, removing watermarks requires the use of multiple types of
masks, and then some kind of analysis is performed with these masks and then an end result
image without the watermark logo is gone -- or, almost gone. I am hoping to uncover the
mechanical secrets and ultimately learn how to apply it to my tool, and who knows, a plugin
could be next.

If I get closer to the goal I'll post a screen shot of the tool's progress. So until then..

-vhelp 4698
_________________

VHELP's - Sample Clips [last: 12.29.06],
my YouTube videos


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: May 26, 2008 08:46 Posts Comp View users profile Send private message Reply with quote

@vhelp - You might start by looking at the source code for the DeLogo filter this thread is about. It's available from the same site as the filter itself, (posted above).

For anyone interested...
I use the following AviSynth script to build my filters files.

Code:
A = DirectShowSource("VideoWithLogo.avi", fps = 29.97)

B= BlankClip(A, length=30, color=$FFFFFF, audio_rate = 48000, stereo = true).Subtitle("WHITE")
B= B++ BlankClip(A, length=30, color=$EEEEEE, audio_rate = 48000, stereo = true).Subtitle("GREY0")
B= B++ BlankClip(A, length=30, color=$DDDDDD, audio_rate = 48000, stereo = true).Subtitle("GREY1")
B= B++ BlankClip(A, length=30, color=$CCCCCC, audio_rate = 48000, stereo = true).Subtitle("GREY2")
B= B++ BlankClip(A, length=30, color=$BBBBBB, audio_rate = 48000, stereo = true).Subtitle("GREY3")
B= B++ BlankClip(A, length=30, color=$AAAAAA, audio_rate = 48000, stereo = true).Subtitle("GREY4")
B= B++ BlankClip(A, length=30, color=$999999, audio_rate = 48000, stereo = true).Subtitle("GREY5")
B= B++ BlankClip(A, length=30, color=$888888, audio_rate = 48000, stereo = true).Subtitle("GREY6")
B= B++ BlankClip(A, length=30, color=$777777, audio_rate = 48000, stereo = true).Subtitle("GREY7")
B= B++ BlankClip(A, length=30, color=$666666, audio_rate = 48000, stereo = true).Subtitle("GREY8")
B= B++ BlankClip(A, length=30, color=$555555, audio_rate = 48000, stereo = true).Subtitle("GREY9")
B= B++ BlankClip(A, length=30, color=$444444, audio_rate = 48000, stereo = true).Subtitle("GREYA")
B= B++ BlankClip(A, length=30, color=$333333, audio_rate = 48000, stereo = true).Subtitle("GREYB")
B= B++ BlankClip(A, length=30, color=$222222, audio_rate = 48000, stereo = true).Subtitle("GREYC")
B= B++ BlankClip(A, length=30, color=$111111, audio_rate = 48000, stereo = true).Subtitle("GREYD")

A ++ B


I open the script in VirtualDub, add the delogo filter, and follow the instructions above. This lets me easily try different variations of grey without having to keep several .bmp images on my hard drive.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


vhelp
..Semi Neutral..


Joined: 31 Mar 2001
Location: New York

Post Posted: May 26, 2008 09:33 Posts Comp View users profile Send private message Reply with quote

EDIT: 05.26.08 Mon AM
@ gadgetguy
Unfortunately, the source is c/c++ and I have no strength to contend with that language sick.gif
Thanks for trying to help. I'll stick with pascal and wing it on my own from scratch. I know I'm
missing something in my project and that is part of my problem in finding how its done.

EDIT: 05.26.08 Mon 12:56pm
Rather than continue in this one, I might start a new topic on the subject on the development of a
potential watermark removal tool because its more specific about designing the tool and the functions
that make up the process. This way, I can post my progress as I go. Plus, I think I mgiht be on to
something, finally.

-vhelp 4699
_________________

VHELP's - Sample Clips [last: 12.29.06],
my YouTube videos


Reply to topic All times are GMT - 6 Hours
Goto page Previous  1, 2
Forum Index -> Video -> Editing Page 2 of 2





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics