Log in

View Full Version : DeLogo and Avisynth ?


neutrogenik
12th April 2006, 12:06
I've been searching on the forum a way to use the DeLogo filter for VirtualDub in Avisynth and i found Didiee's DeLogo package (here (http://forum.doom9.org/showthread.php?t=105049&highlight=delogo)) but as i'm not very friendly with german i'm looking for some english help :)

Basicly what i'm doing now :

Importing this script on virtualdub :

LoadPlugin("Tdeint.dll")
LoadPlugin("AutoCrop.dll")
LoadPlugin("mpasource.dll")
video=mpeg2source("nat.d2v", idct=5 , cpu=4)
audio=MPASource("nat.mpa")
AudioDub(video,audio)
Tdeint(order=1)
AutoCrop(mode=0, threshold=30, samplestartframe=2060, sampleendframe=2065)

Then on VirtualDub i load the DeLogo plugin and i follow the DeLego guide to remove the 2 logos from the TV video.

The problem is that the DeLogo filter is used after cropping so the frames do not have the same size and i can't use the same mask pictures for 2 different videos of the same TV channel (because they are cropped differently)

There are 2 logo in the source videos : 1 alpha-blended and 1 opaque.

Here are the mask pictures i used for each logo in 1 of my vids :

Alpha blended logo : analyse mask (http://img134.exs.cx/img134/623/logofrtlvision5ne.png) & repair mask (http://img134.exs.cx/img134/9374/logofrtlvisionrepair9lt.png) & the others generated masks

Opaque logo : repair mask (http://img134.exs.cx/img134/5919/logosidaction6au.png)

So what I'd like to do is having something like this :

LoadPlugin("Tdeint.dll")
LoadPlugin("AutoCrop.dll")
LoadPlugin("mpasource.dll")
video=mpeg2source("nat.d2v", idct=5 , cpu=4)
audio=MPASource("nat.mpa")
AudioDub(video,audio)
Tdeint(order=1)

Delogo(type=alpha blended, analyse_mask=analyse.bmp, repair_mask=repair.bmp, others generated mask loading..., pixel_aspect=1:1047, alpha_to_repair=233, power=5, depth=3)

Delogo(type=Opaque, repair_mask=another_repair_mask.bmp, power=5, depth=3)

AutoCrop(mode=0, threshold=30, samplestartframe=2060, sampleendframe=2065)

I'm also looking for a way to transform the MPA audio source to MP3 192kbit/s but that's another thing ^^

:thanks: for any help