View Full Version : Moving graphics messing up my IVTC
NerdWithNoLife
2nd October 2008, 03:44
Every so often, an animated graphic at 30p, layered over pulled down 24p material, messes up TIVTC. Here is a sample (http://rapidshare.com/files/150128119/sample.m2v). I wanted to include two instances, with the graphic in different regions of the screen so there is an edit in the clip. If you need a larger sample, let me know. Here is the script I used:
MPEG2Source("sample.d2v")
TFM(d2v="sample.d2v").Tdecimate()
BicubicResize(720,480)
Using the script, frames 23 and 24, and 66 and 67 were duplicate frames. Perhaps I could run a 1st pass, excluding the offending areas of the screen from decimation decisions, then run a 2nd pass with the full frame? I'm not sure how to implement that, and likely someone else has a better idea.
Sagekilla
2nd October 2008, 04:11
I think in those cases you need to use AnimeIVTC() because it can properly handle instances of 24p + 30p in the same frame.
manono
2nd October 2008, 13:10
Perhaps I could run a 1st pass, excluding the offending areas of the screen from decimation decisions, then run a 2nd pass with the full frame?
I'm not sure this will correct the problem, but there's already a feature like that in the TFM portion of TIVTC:
y0/y1 -
These define an exclusion band which excludes the lines between y0 and y1 from
being included in the field matching decision. An exclusion band can be used
to ignore subtitles, a logo, or other things that may interfer with the matching.
y0 sets the starting scan line and y1 sets the ending line, all lines in between
y0 and y1 (including y0 and y1) will be ignored. Set y0 equal to y1 to disable.
Default: y0 - 0 (int)
y1 - 0 (int)
neuron2
2nd October 2008, 13:14
I'm not sure this will correct the problem, but there's already a feature like that in the TFM portion of TIVTC: That capability was first implemented in Decomb. TFM/Tdecimate borrowed a lot of stuff from Decomb.
NerdWithNoLife
2nd October 2008, 14:24
I don't think the exclusion band would work since the band changes from the top and bottom throughout. I installed AnimeIVTC and got AviSynth to not crash, but it's hard for me to decipher the guide. I'm thinking AnimeIVTC(mode=3,omode=1) but now it wants me to set a mix value, from 1 to 22. The graphics probably appear 12 times throughout the video. Do I have to manually go through and set a range for the offending sections?
NerdWithNoLife
2nd October 2008, 17:35
Okay, I got it to work the good old fashioned way: manual override. Did TFM without TDecimate, then logged the offending frames into correction.txt, which contains this:
30 -
84 -Then, I put it all together with this:
MPEG2Source("sample.d2v")
TFM(d2v="sample.d2v").TDecimate(ovr="correction.txt")
It's probably easier searching for the animations and logging dups than getting AnimeIVTC to work. I hate 1080i.
thetoof
2nd October 2008, 17:36
The modes dealing with progressve on top of telecined were originally designed for credits and therefore the possible mix modes are based on the assumption that you can't have more than 2 instances of 30p on top of 24t.
So yes, you have to set manually each section.
It is meant to prevent jerks in the credits, but if it's ok for you to have jerks in the 30p elements` movement, take the y0/y1 path.
Also, omode=1 does a framerate conversion, so watch out for artifacts. (i.e. I recommend going for VFR)
If someone could find a way to build a mask for the 30p elements, do the framerate conversion only on them to then overlay those elements on a properly ivtced clip, it'd prevent using blends for mo-comp (which is simply bad... but I didn't find anything else to keep the full temporal resolution of the 30p elements).
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.