New Logo Removal filter
I just posted my LogoTools plugin. It replaces LogoBlend as well as adds a number of other helper filters.
New Filters: NoLogo - replaces LogoBlend NoLogoM - like NoLogo but with better control over the removal - great for problem logos. AddLogo - add a logo IfLogo - logo detection IfNoLogo - logo overcorrection detection (what if I removed the logo when it wasn't there?) LogoMask - mix two frames based using the logo as a mask. You can get the filter at: http://www.geocities.com/mrtibsvideo/Logotools.html |
AddLogo ! Great ! A lot of people claimed for taht also.
Congratulation. |
I admit that it seems stupid but perhaps someone may need it. I included it because the code was already there and one way to remove a logo is to cover it up with another logo.
Uses for AddLogo include: 1. Add the logo where it is missing to make removal easier. 2. Add a second logo and remove both for situations where multiple logos appear at different times. 3. Create a "inverted" logo and add it to the frame to help with removal. 4. Cover up a Kafka removal with a logo to hide the errors. |
Thanks for these logo removal tools Mr Tibs im off to download them now. :)
|
One more filter added to the DLL:
NoLogoAuto - same as NoLogo with no fiddling - requires the logo to be on a completely black frame. Example: NoLogoAuto(clip,logoclip,framenumber) |
Quote:
:?: What specifically replaces "logoclip"? :roll: I know these must seem like dumb questions. I have a sample of 10 frames. The name of the sample film is "tenframes.avi". The 5th frame is white logo on black. LoadPlugin("C:\aa\MPEG2Dec3.dll") LoadPlugin("C:\aa\old\loadpluginex2.dll") LoadPlugin("C:\aa\old\LogoTools.dll") avisource("c:\aa\tenframes.avi") #NoLogoAuto(clip,logoclip, logo frame number) NoLogoAuto(clip,"C:\aa\tenframes.avi", 5) I get TMPGEnc error: 'I don't know what "clip" means' |
Clip is the default video clip.
I.E. Quote:
Personally, I usually trim my original video capture and make short video sample with the logo on a black frame then save it as a huffy clip like "abc_logo.avi". My logo script would look something like this: Quote:
Then to filter out the logo: Quote:
|
Quote:
MPEG2Source("C:\My Documents\noisy.d2v") Trim(33333,44444) Undot() Limiter() converttoYUY2(interlaced=true) video = SeparateFields().BicubicResize(480, 240) evenfield = SelectEven(video).TemporalSoften(1,5,8,5,2).peachs moother().Unfilter(60,0) oddfield = SelectOdd(video).TemporalSoften(1,5,8,5,2).peachsm oother().Unfilter(60,0) Interleave(evenfield,oddfield) Weave() Letterbox(16,16,16,16) Limiter() |
Here is the modifed script:
Quote:
You could try this, but I don't know if it will work: Quote:
|
MrTibbs, I'm trying...................
My actual script is below. It does run, but does not remove logo. The logo is on a black frame #20070. I had to put "clip" in several statements [undot(clip), etc] to get it to run. I tried both NoLogoAuto statements and even included frame 20070 within clip itself.
LoadPlugin("c:\video\dlls\MPEG2DEC3.dll") LoadPlugin("C:\video\dlls\old\loadpluginex2.dll") LoadPlugin("C:\video\dlls\old\LogoTools.dll") LoadPlugin("c:\video\dlls\undot.dll") LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l") LoadPlugin("c:\video\dlls\peachsmoother.dll") clip=Mpeg2source("H:\fut16\fut16.d2v").converttoYU Y2(interlaced=true) logoclip=Trim(clip,20070,20071) clip=trim(clip,3067,20056)+Trim(clip,25940,49383)+ Trim(clip,20070,20071) Undot(clip) Limiter(clip) #NoLogoAuto(clip,clip,20070) NoLogoAuto(clip,logoclip,1) video = SeparateFields(clip).BicubicResize(352, 239) evenfield = SelectEven(video).TemporalSoften(1,5,8,5,2).peachs moother().Unfilter(60,0) oddfield = SelectOdd(video).TemporalSoften(1,5,8,5,2).peachsm oother().Unfilter(60,0) Interleave(evenfield,oddfield) Weave(clip) Letterbox(16,16,16,16) Limiter(clip) |
Your script will not only not remove the logo but would also not apply most of your filters. Here is what you script should look like:
Quote:
|
Sorry, I go to link but dont see how to get Avisynth 2.5 version. I see it says to use LoadPluginEx.dll, but where is that.
I click on how to and it takes me to a page which says see zip file. Does that mean the zip file for avisynth 2.0 file? |
that means that there is no Avisynth 2.5 version. you have to use the 2.0 version for 2.5 through the plugin "LoadPluginEx.dll", which can be downloaded somewhere else.
|
Quote:
Getting TMPGEnc error: Evaluate: Unrecognized exception! (H:\testtibb\testtibb16.AVS, line 17) And a couple questions (please stay patient, I am learning and do appreciate your aid): :?: Is it possible to process in two steps? In other words, to produce a filtered mpg or m2v as I have been doing, then run again, without affecting compression, etc, and removing the logo in a second process. I guess what I'm asking is whether you can process a previously encoded mpg and remove the logo without affecting anything else. :?: Or can you delogo process a capture without affecting the existing encoding, then encode with filters to produce the final mpg? |
Well until now I didn't try my filtering routine in combination with MrTips Delogo routine ... so I can't give you a solution immideately.
But ... Quote:
I had these Problems too when Avisynth got "too hot" (sound stupid but I don't know how to explain using other words *g*) during much tryings and changings. What happens when you load this last script in Vdub??? Also same Error? MOMENT!! STOP now I see! Code:
LoadPlugin("c:\video\dlls\MPEG2DEC3.dll") So .... after this threre doesn't exist anymore a self based mpeg2source-line which provide the frames to the following filter routines! Im thinking right !??? :? Maybe Im confused but this sounds logical ... I would like to attend, but at work (where I'm now) I'm working on a MAC :wink: |
Hm...
Once NoLogo is called, it returns the filtered clip back to the default clip. Clearly, Undot and Limiter don't have trouble so I'm not sure why the problem. Perhaps NoLogo isn't returning the clip properly. You could try this: Quote:
|
Quote:
Also, I have been testing requant with a mpg from this script and same source. Requant is fine up to 82.5% compression, so you might want to experiment with it some. It's fast and simple to use. :?: Is there any way to delogo an encoded mpg without affecting the size, bitrates, etc? Like things I've encoded in the past and didn't keep the large capture files? Really appreciate everything - NickSteel |
[quote="MrTibs"]Hm...
Perhaps NoLogo isn't returning the clip properly. You could try this: Quote:
|
OK, now we are getting somewhere.
Change the frame number in NoLogoAuto to a negative. This will put NoLogoAuto into debug mode and show you where it thinks the logo is. Quote:
|
Sorry, MrTibbs
Quote:
TMPGEnc gives "Evaluate: Unrecognized exception! (H:\testtibb\testtibb16.AVS, line 17" LoadPlugin("c:\video\dlls\MPEG2DEC3.dll") LoadPlugin("C:\video\dlls\old\loadpluginex2.dll") LoadPlugin("C:\video\dlls\old\LogoTools.dll") LoadPlugin("c:\video\dlls\undot.dll") LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l") LoadPlugin("c:\video\dlls\peachsmoother.dll") clip=Mpeg2source("H:\fut16\fut16.d2v").converttoYU Y2(interlaced=true) logoclip=Trim(clip,20070,20071) clip=trim(clip,3067,20056)+Trim(clip,25940,49383)+ Trim(clip,20070,20071) #NoLogoAuto(clip,logoclip,-1) #we no longer need to specify our default clip. clip=NoLogoAuto(clip,logoclip,-1) Undot(clip) Limiter() video = SeparateFields().BicubicResize(352, 239) evenfield = SelectEven(video).TemporalSoften(1,5,8,5,2).peachs moother().Unfilter(60,0) oddfield = SelectOdd(video).TemporalSoften(1,5,8,5,2).peachsm oother().Unfilter(60,0) Interleave(evenfield,oddfield) Weave() Letterbox(16,16,16,16) Limiter() |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.