View Full Version : Removal logo


Eisuke
1st April 2011, 11:12
Hi everybody,
I have a problem with logo removal.

I want to remove this logo :

http://s3.noelshack.com/uploads/images/3121529185863_vlcsnap2011040111h59m52s195.png

I have test this script, but doesnt work (Say Crop : Desintation width is 0 or less)

LoadPlugin("C:\Documents and Settings\Makunoshi\Mes documents\Téléchargements\RemoveGrain\RemoveGrainS.dll")
LoadPlugin("C:\Documents and Settings\Makunoshi\Mes documents\Téléchargements\medianblur084\medianblur.dll")
LoadPlugin("C:\Documents and Settings\Makunoshi\Mes documents\Téléchargements\TTempSmoothv094\TTempSmooth\TTempSmooth.dll")
LoadPlugin("C:\Documents and Settings\Makunoshi\Mes documents\Téléchargements\fft3dfilter211\FFT3DFilter.dll")
LoadPlugin("C:\Documents and Settings\Makunoshi\Mes documents\Téléchargements\masktools-v2.0a48\mt_masktools-26.dll")
LoadPlugin("C:\Documents and Settings\Makunoshi\Mes documents\Téléchargements\exinpaint01\exinpaint.dll")
DirectShowSource("C:\Documents and Settings\Makunoshi\Bureau\Pocket Monsters\Raw\Original\[Mazunoki-Raws] Pocket Monsters - Original Series 161 - Miltank! Revenge Battle!! (KIDS x264 640x480 AAC-DTS).mkv", fps=29.970, audio=false, convertfps=true).AssumeFPS(30000,1001)
#deinterlace
#crop
#resize
#denoise
LoadcPlugin("C:\Documents and Settings\Makunoshi\Mes documents\Téléchargements\AVSInpaint-2008.02.23\AVSInpaint.dll")
Import("C:\rm_logo.avs")
rm_logo(last,logomask="C:\lol.bmp",loc="br",par=4.0/3.0,mode="both",percent=20,pp=1)
crop( 0, 0, 0, 0)

Gavino
1st April 2011, 16:43
The logo mask needs to be the same size as your clip.
See http://forum.doom9.org/showthread.php?p=1392034#post1392034.

Another possibility is that rm_logo suffers from the same bug that affected InpaintFunc (see later in that same thread). It's not clear to me from reading that thread whether the bug fix from InpaintFunc was also applied to rm_logo (which as I understand it is a similar, but independent, function from a different author).

StainlessS
2nd April 2011, 04:18
The logo mask needs to be the same size as your clip.

Note, InpaintFunc modifies the entire frame based upon
the alpha mask derived from the intial test phase, ie
the whole frame can be modified (in RGB). The "corner" you
specify does not seem to limit the extend of change.
Suggest ignoring the corner
cut out type stuff and cut them out yourself and deal with
the cut-out using the inpaint stuff, ie keep the majority
of the frame in the original color space without any alteration,
and fix only the affected parts. Then layer then back
together. I am personally enthused by neither
InpaintFunc or Rm_logo scripts, both have problems,
(at least when last I tried them). Reuf Toc does not seem
to be around, dont have the faintest idea when he was last
around (InPainFunc). So, I have started, converting the AvsInpaint.dll
to C++, just so I can understand its workings.
The overhead of the C interface to Avisynth is very obscuring
and even though I dont have a clue about the C interface,
I chose to try and convert in "the dark", the source,
so I can perhaps, perceive in the light. (Not really a huge
fan of C++, but in the Avisynth case, the interface is
a lot less "in your face").
Rm_logo is not without bugs either, I stopped using it because
of strange green (alpha, I think) masks that happened now and again. I just did not trust it.
If I ever do convert the AvsInpaint.dll to c++, I shall then tackle
the InPaintFunct script to see if it can be forced to perform
in a YUV color space, and/or at least not modify the entire frame.

jmac698
3rd April 2011, 07:46
I have a new idea for delogo, has anyone used fft based methods before? If not this is a new concept.