
LoadPlugin("F:\AVISynth\dlls\DGDecode.dll")
LoadPlugin("F:\AVISynth\dlls\MedianBlur.dll")

LoadPlugin("F:\AVISynth\dlls\LoadPluginEx2.dll")
LoadPlugin("F:\AVISynth\dlls\LogoTools.dll")

B=ImageSource("logo.bmp").ConvertToYUY2()###Works in YUY2
MPEG2Source("Movie.d2v")
ConvertToYUY2()
A=Last
#Return A
NoLogoAuto(A,B,164947)###Simplest, but not usually most effective. Frame number is the one saved for the ImageSource BMP
#NoLogo(A,B,164733,2,72,44,168,28)
#NoLogoM(A,B,164733,2,72,44,168,28,1.05,210,0)###When done correctly, gives the best results
#ConvertToYV12()

You can also create a feathering mask for blurring the results a little, which often have some 'crud' remaining, and then for blending back into main video. And for adding noise if you like. And for adjusting the brightness and/or contrast, if necessary.

#A=Last
#B=A.MedianBlur(2,2,2)#.Tweak(Sat=0,Coring=False)
#Mask=ImageSource("Logo2.bmp")###Your feathering mask
#Overlay(A,B,0,0,Mask)

