View Full Version : TGMC almost perfect with crappy source, but...


Itness
8th September 2009, 02:09
I've been attempting to encode a crappy DVD source (which I own), and have tried many methods of deinterlacing. TempGaussMC seems to do the best job, but there is still some residual aliasing inherited from the source that I can't get rid of. I tried various antialiasing scripts, including sangnom, Soulhunter's SAA, and SpikeSpiegel's script. No dice.

Here is a 10 sec. sample of the source, plus an avi made using TGMC (6 MB):

http://rapidshare.com/files/277034184/itness-IVNF.rar

Here are two screencaps of the same frame (#150), first from the source, the second from the TGMC'ed avi:

http://img196.imageshack.us/img196/4249/frame150source.th.png (http://img196.imageshack.us/i/frame150source.png/) http://img80.imageshack.us/img80/8600/frame150tgmc.th.png (http://img80.imageshack.us/i/frame150tgmc.png/)

The picture is surprisingly stable with TGMC, but there are two problem areas with aliasing that are still shimmering in the vid: the left front edge of the desk, and the notebooks on the back counter. They are most noticeable when the woman is sitting down and the few seconds afterward.

Anybody have any suggestions for further calming/stabilizing those areas?


For the record, I tried MCBob, TDeint w. nnedi2, yadifmod w. nnedi2, yadif, and LeakKernelDeint, but nothing came close to TGMC.

Here's the script I used:

Import("C:\Program Files\AviSynth 2.5\plugin\TempGaussMC_beta1mod.avs")

mpeg2source("C:\Videos\clip.d2v")

TempGaussMC_beta1mod().selecteven()

thewebchat
8th September 2009, 04:50
I do not see any aliasing remaining in your second screenshot (http://img80.imageshack.us/i/frame150tgmc.png/). Perhaps you could describe it better or draw a circle over it?

Edit: I downloaded your clip and determined that it is not even interlaced to begin with. Look at the fields. You will see that there is only motion on every other field.

Edit2: It doesn't show in your screenshot, but I see the shimmering you are referring to. Part of the problem is that your source has been upscaled somewhat so the aliasing is blurry (see thread "SharpAAMCMod: Is it an antialiasing script" by Chengbin). Reducing the resolution to about 432x284 kills most of the jagged edges. For the flickering, I have no idea what to do. You can't recover the edges using a spatial filter because if you look at the frame, it has been totally lost. Perhaps some motion compensation can bring it back, but I think you're hosed there.

Itness
8th September 2009, 07:12
Thank you for taking the time to answer. I guess I made a false assumption, since it was field-based and had lots of jaggies, that it was interlaced.

Looking more closely at the whole film, the odd thing is that it's really only a few short scenes that have the bad aliasing. The rest looks okay.

The 2nd screenshot I posted above (of the TGMC'ed avi) doesn't show the aliasing, but if you watch the short avi clip I included with the source clip you can see it.

Regardless, TGMC does a nice job on this footage, better than no filters at all, and better than any others I've tried.

Any other suggestions for reducing the aliasing/shimmering that remains?

7ekno
12th September 2009, 04:38
Just for completeness give TomsMoCo() a try ... have found it occasionally gives better results than TGMC on strange sources ...

7ek

shoopdabloop
12th September 2009, 05:39
Wait, so there is only motion on every other field, but aliasing?
If so, perhaps try separatefields().selecteven().nnedi2(dh=true)

Of course there is probably a reason to the aliasing that could be resolved without discarding half the spatial resolution but I do not know what it could be.

Forteen88
12th September 2009, 15:04
Try
TempGaussMC_beta1mod(EdiMode="NNEDI2").SelectEven()