web space | free website | Business Hosting | Free Website Submission | shopping cart | php hosting

avisynth ghost removal & clipping on small desktops guides;
note;increase "brightness" of your monitor if you don't see ghosts on these images....


start tmpgenc....load your source .avi with "video source"[browse]
(doesn't do auto appending of vdub segmented avi's so just load 1 segment and
try to find a frame(with the slider below the image itself) where you can easily see the ghosts....probably one with
large uniform dark areas,as i did....)
now click "setting" and then "MPEG Setting" window appears:

 


select "advanced"(as i did in the image above),double-click on "ghost reduction".....now u see this:

hit "add" and you have "layer1"......and now:
choose method-"brightness",crank up the "strength",move the "position" slider
until you cover the ghost...like this....

...just for a play you can now
decrease "strength" and watch this ghost dissapear (in case your ghosts are
brighter than a picture (unlike my sample) then you'll crank down the
"strength" first,and increase it to see ghost dissapear)...also perhaps
you'll find a link between this "strength" setting of tmpgenc and "float
strength" of warpsharp.dll

now you know where's the ghost and you have a value for "float position" of
warpsharp.dll:full syntax is;
"EraseGhost(
string mode = default("y") or "u" or "v", # specifie which you wanna
processing on
float position1, float strength1,
float position2, float strength2, ...) "
(warpsharp.dll doesnt seem to have "blur" option which might come handy...)

experiment a bit with second figure (aka."float strength") (few reloads of
your avs script to vdub will do..) and in the end line that removes the ghost
says:

EraseGhost("y",25,45)

if you have more than one ghost,then simply "add" more layers in tmpgenc with appropriate button....also add another pairs numbers to eraseghost syntax:

EraseGhost("y", 126,168, 125,165, 122,-149, 48,-147, 123,-138, 365,129, 306,122, 193,-120, 197,118, 364,113, 303,-111, 49,-108, 51,106, 331,104, 296,102, 196,102, 351,97, 330,97, 318,97, 280,-97, 352,93, 297,93, 194,-90, 226,-86, 64,-86, 319,84, 315,-84, 220,81)

(this one's actual result of "searchghost()" feature of warpsharp.dll filter,but as you see it doesn't work so well.....)

here you see the difference between unprocessed and processed video....

that's it.........wasn't it simple?(lol!)

[you should put "eraseghost" somewhere near the top of your script...right after teleciding or deinterlacing....]


note2:you can also use some other way to see the ghost offset (for example,there are plugins for vdub that have previews too) but i choose this one;guess what...768x576 doesn't fit your desktop too well if desktop is 800x600 (yeap people...i have 15" monitor!)

 

i also use tmpgenc (just select "clip frame" option in "advanced" mpeg settings and check top,botom,right and left masking checkboxes...) when i need to crop the 768x576...but that's not often though....but consider this image(consider it well...lol!):

tmpgenc "clip frame" told me to crop this in this way:

crop(0,144,496,288)

so i did it (film is junk,diaz is ok):

(my explanation of avs crop syntax is:
#remove what's not
#needed/8leftcrop,72topcrop,horiz.endsize,vert.endsize/
#values in description crop(8,72,572,320)->palplus "ghost dog" example)

resulting 496x288 video is directly encoded to divx (no,"nuked" i won't use zoomplayer in 4:3 AR mode to watch this...don't worry....),black borders that are left will be covered with border control in a solid border/fade combination.....something like;

#BorderControl(YBF=10,YTF=10)
#BorderControl(XLF=3,XRF=3)
BorderControl(YBB=6,YTB=0,YTF=4,YBF=10)
(last line is the usual setting for 512x384(or less) vhs-rips with junk on the bottom)


i used this stuff:tmpgenc plus 2.5 (version 2.59.47.155), avisynth 2.52,warpsharp_1004.zip package (warpsharp.dll from 04.10.2002) ,loaded this "legacy" avs filter with the means of: #loadplugin("D:\Video\AVISYNTH252 scripts+filters_\loadexplugin-dll\LoadPluginEx2.dll")
#loadplugin("D:\Video\warpsharp.dll"
( "LoadPluginEx2.dll" can be found here , but also in newer warpsharp packages......)


02.09.2003. by i4004