Log in

View Full Version : TFM not matching correctly


xxxyzzzz
23rd August 2008, 17:42
Hi,

Here is a clip from Avatar: The Last Airbender:
http://www.mediafire.com/?zyjsl19ps9w

I am doing a two pass intended for VFR encoding

avisynth script pass 1:
tfm(movie,mode=0,pp=7,mi=40,output="tfm.txt").tdecimate(mode=4,output="stats.txt")

avisynth script pass 2:
tfm(movie,mode=0,pp=7).tdecimate(mode=5,hybrid=2,dupThresh=1.0,input="stats.txt",\
tfmin="tfm.txt",mkvout="timecodes.txt")

The problem: TFM doesn't seem to be matching the fields properly.

I have used YATTA to manually match the fields, and every one has a perfect match. I am just not insane enough to use YATTA on 61 episodes (yet.)

I have played around with many of the options in the TFM manual; micmatch, mode, pp, etc. The only thing that helps is pp set to 2 or 5 - but that is because it uses blend deinterlacing which makes the cartoon kind of 'gooey'.

Is there a way to get tfm to match properly?

Thanks,
Z

xxxyzzzz
9th October 2008, 06:58
Well,

I have done more testing and I haven't had much luck yet.

Has anyone else been able to look at this?

Thanks,
Z

thetoof
9th October 2008, 12:23
Have you tried animeivtc(mode=5)?

DigitalDeviant
9th October 2008, 13:55
Sorry, misread the post. Looks like you already tried it.

xxxyzzzz
11th October 2008, 05:01
Have you tried animeivtc(mode=5)?

Yes, I just did. TFM still doesn't match properly in your script; however, the script does seem to blend away the mismatched frames decently. You can still notice it though. Neat script.

Z

thetoof
11th October 2008, 06:23
I can't download your clip... could you use mediafire?

xxxyzzzz
11th October 2008, 17:02
When you click on the link, there is a big brown button that syas 'download'. Click it and 'captcha' request replaces it. Enter the 4 characters it asks and click 'get'.

If it still fails, I can re-uploaded elsewhere.

Z

Edit: It doesn't work, it only downloads a piece. Here is a new location for it:
http://www.mediafire.com/?zyjsl19ps9w

thetoof
11th October 2008, 22:37
I don't see any frames that are not matched well... can you either give me the frame # in the stream you uploaded, or upload a different one?

xxxyzzzz
12th October 2008, 02:37
My apologies,

You are right - using AnimeIVTC(), the frames do match correctly. (I was mistaking the oversharpening of the source during some of the movement as bad fields.)

I see what you did - using tdeint(2)'s interlace detecting methods instead of TFM's internal ones allowed TFM to match much better. Pretty smart. That does solve my problems. Thanks.

Now if I could just get the de-haloing to my liking for that darn oversharpening....

Z

thetoof
12th October 2008, 04:18
I remember seeing a thread not so long ago about Avatar's haloing... ah, here it is (http://forum.doom9.org/showthread.php?t=141433)
mt_convolution is a very useful tool for halos; see here and below (http://forum.doom9.org/showthread.php?p=1177901#post1177901) for a practical example + some theory