From Avisynth wiki
Jump to: navigation, search
Author Leuf
Version 0.5.2
Download Plugin
Category Logo removal
License GPLv2
Discussion Doom9 Forum


[edit] Description

Based on LogoAway by Chris Wojdon. Interpolate over an unwanted portion of a video, such as a logo or source problem. Adaptively chooses the best direction to interpolate using a best-fit approach while minimizing dramatic gradients between unrelated parts of the frame.

[edit] Requirements

[edit] Syntax and Parameters

Xlogo(Clip, filename, int "X", int "Y", int "ALPHA", int "T1", int "T2", int "T3", int "B1", int "B2", int "B3", \
      int "WHITE", int "SIDE", int "SCENE", int "FEATHER", int "NOISE", bool "BLEND", int "FADEIN", int "FADEOUT")

XlogoRBG(Clip, filename, int "X", int "Y", int "ALPHA", int "T1", int "T2", int "T3", int "B1", int "B2", int "B3", \
      int "WHITE", int "SIDE", int "SCENE", int "FEATHER", int "NOISE", bool "BLEND", int "FADEIN", int "FADEOUT")

        Input clip.

	Filename of the first logo bitmap.  Uses same naming convention as vdub version.  The
	first file must end in 0.bmp or 2.bmp
	Horizontal position of left edge of the bitmap
	Vertical position of top edge of bitmap
	Transparency over range 0-255.  0 gives all interpolated result, 255 gives all 
	transparent processing result.  Default is 255.
	On the first interpolation pass any pixel for which the difference of the two source 
	pixels exceed this threshold will not be processed.  Default is 10.
	Same as T1 but for the second pass.  Default is 25.
	The third pass is done 4 way, unless the 2 pixels differ by more than T3, in which case
	it reverts back to 2 way.  Default is 40.
	Number of blur passes done on the interpolated pixels that pass the first two thresholds.
	Default is 5.
	Number of blur passes done on the remainder of the interpolated pixels.  Default is 20.
	Number of blur passes done on the entire bitmap area.  Default is 10.
	White level, used only for white transparent processing (see vdub docs)  Default is 230.
	Pre-Interpolates one side of the image (see vdub docs)  0 for no side, 1 top, 2 right,
	3 bottom, 4 left.  Default is 0.
	If fewer than this percentage of border pixels have changed by T1 then the previous frame
	is used instead of calculating the new frame.  Helps reduce flicker and decreases processing
	Feathers edges of bitmap blur this number of pixels. Your bitmap should be this number
	of pixels larger than the logo.  Default is 8.
	Adds random noise of this magnitude after blurring to try to make the blurring less 
	obvious.  Default is 0.
	(BOOL) Blends interpolated pixels with the previous frame between 0 and 50% depending on
	amount of change in the border pixels from the previous frame.  The greater the change
	the less influence the previous pixel has.  Setting SCENE=0 and BLEND=TRUE should give
	more natural results but increase encoding time.  Default is true.
	Forces ALPHA=0 starting at frame 0 for this duration.
	Forces ALPHA=0 from last frame for this duration.

[edit] Example

Use "c:/logo_0.bmp" at x=300, y=200, alpha=180 with all others default:

Xlogo("c:/logo_0.bmp", x=300, y=200, alpha=180)

[edit] Notes

Notes: For YUY2 and YV12 clips X-Logo internally processes as RGB by invoking crop to just the bitmap area, converttoRGB32(), processing as RGB, converting back to YUY2 or YV12, and then overlaying the result back on the source. This is much faster than converting the entire frame. However, if you were going to convert to RGB later anyway you aren't going to get any speed improvements from delaying it.

When making your bitmaps for transparent processing if the source is not RGB consider loading it with AviSynth and converttoRGB32() to be sure than the bitmap and the frames fed to X-Logo have been decoded from the source in the same way.

[edit] External Links

  • VideoHelp - Remove an opaque logo using Xlogo in AviSynth tutorial.

Back to External Filters

Personal tools