Log in

View Full Version : How to remove ghosting for NTSC2PAL src using srestore+tdeint?


rhaz
14th February 2013, 11:01
The source is 25FPS PAL and it is NTSC2PAL transfer (at least that's what I think) it has a lot of ghosting defects in every motion and it is also interlaced.

There's a script I am using, it kinda helped but it still left partial ghosting:

LoadPlugin("DGDecode.dll")
LoadPlugin("UnDot.dll")
LoadPlugin("mt_masktools-26.dll")
LoadPlugin("TDeint.dll")
LoadPlugin("TIVTC.dll")
LoadPlugin("Average.dll")
LoadPlugin("RemoveGrain.dll")
Import("Srestore.avsi")
DGDecode_mpeg2source("test.d2v")
tdeint(mode=1, order=1, field=0, type=2, link=0, mthreshl=6, mthreshc=6, tryweave=false, full=true, sharp=true, denoise=true)
SRestore(frate=23.976)
crop(14, 2, -10, -2)
Lanczos4Resize(640,480) # Lanczos4 (Sharp)
Undot()

Note that I do not know what all these .dlls do, I just read a lot through these forums and put pieces of scripts into one.

Final result (see that stuff around the ear or arm in the right side?):
http://oi48.tinypic.com/15mbn9i.jpg

I also uploaded some .vob sample here (http://www48.zippyshare.com/v/90266521/file.html) (3MB).

Didée
14th February 2013, 12:04
Better is not possible, the source is too bad.

In a nutshell, deblend filters like Srestore or RePal do not "revert" or "undo" any ghosting. It's rather so that normconverter-boxes create a certain "rhythm" of blended-fields and clean-fields ... and the deblending filters reckognize which fields are blended, and select only the neighbouring clean fields.

In your case, the source has additional on-top blending. The picture you show is bobframe#17. Bobframes #16 and #18 are also blended. #17 is one that "should" be free of blending, but alas isn't. Also it is the only frame showing that very motionstate - hence it can't be deleted, that would result in a "skip" in the motion flow.

Srestore is doing "what is possible" with that sample. Blame not the filter for the source being too crappy.

rhaz
14th February 2013, 12:23
So in short I hit the brick wall?

I was also reading about some bobbing up the FPS then applying filters and then restoring it back to 23 with tdecimate or something that might help on removing ghosting but that probably works with non ntsc2pal sources...

I also noticed I get duplicate frames, but not like every 5th or 25th, but randomly like 60 frames ok, then duplicate, then another 5 ok then again duplicate and etc. randomly.

Anyway thanks for fast reply.