Log in

View Full Version : IVTC Problem


DenKudo
22nd August 2016, 20:32
Hello!

I'm trying to backup - encode some of my anime and I'm having difficulties with IVTC processing. It's a hybrid anime with OP and ED progressive 29.97 and everything else is hard telecined with some postprocessing effects. I decided to encode OP and ED separately, so that's not a huge problem. I'm just having difficulties with IVTC. I've tried many scripts, but none of them work smoothly - there is some "shimmering" motion on panning and the annoying "mouth flaps". Here is a sample clip of the footage: https://mega.nz/#!TZl3gSTY!Lqf-VVor62FnT4-R9gqGNCdqRqEZ7kYdR0y5-j8NSBQ

I've used TFM().Tdecimate() but there are still a lot of interlaced frames left, which is especially annoying on panning. I've fiddled with the settings but to no avail. I've even tried Anime IVTC but got nowhere. YATTA is very time consuming so I would rather use a script.

Interesting thing is that VLC player plays the file just fine with no noticable artifacts (with internal IVTC), so i'm curious about the algorithm used in VLC.

Well, if you have any suggestions I would be happy and grateful to hear them :)

burfadel
23rd August 2016, 01:54
Have you tried the latest yadifmod2?

Sparktank
23rd August 2016, 02:24
yadifmod2
http://forum.doom9.org/showthread.php?t=173316

manono
24th August 2016, 08:55
With a simple:

TFM().TDecimate(Mode=1)

I found no problems. Some aliasing (maybe the 'shimmering' you mentioned) but no IVTC problems. Have you checked the sample, or is the episode itself having the problem? The reason I ask is that maybe you changed the field order when separating out the beginning and ending and you should add an AssumeTFF/BFF.

DenKudo
24th August 2016, 12:51
With a simple:

TFM().TDecimate(Mode=1)

I found no problems. Some aliasing (maybe the 'shimmering' you mentioned) but no IVTC problems. Have you checked the sample, or is the episode itself having the problem? The reason I ask is that maybe you changed the field order when separating out the beginning and ending and you should add an AssumeTFF/BFF.

The problem is not limited to the sample and it persists through the whole episode. As I mentioned, when I play the sample or the whole VTS in VLC with IVTC enabled, the "shimmering" is gone and I don't think VLC has antialising filter automatically enabled in its core IVTC.

Manono, is this what you call aliasing? https://mega.nz/#!7YdGQIDT!Ht893hgh-WZ4AqC6wmI0hQqQ23nEtB9oxhpuijZbOsQ
Simple TFM + tdecimate and AAA doesn't get rid of it.

DenKudo
24th August 2016, 12:57
Yadifmod also doesn't get rid of the issue, I'm using this script:

clip1=last.nnedi2()
dt=last.yadifmod2(edeint=clip1)
TFM(clip2=dt,pp=3)
TDecimate(mode=1)

FranceBB
24th August 2016, 18:02
tfm(mode=1,pp=5,slow=2,micmatching=2,clip2=tdeint(mode=2,type=3))
tdecimate()

DenKudo
24th August 2016, 19:26
tfm(mode=1,pp=5,slow=2,micmatching=2,clip2=tdeint(mode=2,type=3))
tdecimate()

I tried that also, but it still doesn't work. The output is not smooth, just look at the panning scene with the teacher, when the students raise their hands - the faulty frames still persist (example frame is in my previous post).

Any other suggestions?

manono
24th August 2016, 20:14
I don't know what the picture is showing. I don't know what VLC Player does as I don't use it.

You stated in your opening post there was interlacing left after the IVTC and that is simply not true. See if you like this any better, but since I don't understand your problem (except for some aliasing), I don't know if this helps.

QTGMC()
BlendBob()
TDecimate(Mode=1)

https://www.dropbox.com/s/zndxk804kh6idrw/Test2.mp4?dl=0

DenKudo
24th August 2016, 21:20
I don't know what the picture is showing. I don't know what VLC Player does as I don't use it.

You stated in your opening post there was interlacing left after the IVTC and that is simply not true. See if you like this any better, but since I don't understand your problem (except for some aliasing), I don't know if this helps.

QTGMC()
BlendBob()
TDecimate(Mode=1)

https://www.dropbox.com/s/zndxk804kh6idrw/Test2.mp4?dl=0

Since I know this anime is older and butchered with postprocessing I don't know if it's actually possible to perfectly restore it to 23.976 fps. I was just trying to say that only tfm+tdecimate is probably not enough, that's all.

I'm aware of the script you posted with QTGMC and it does work to some extent, but it introduces some interpolated/blended frames and is pretty slow, but thank you nonetheless. I just stated that VLC does IVTC on the fly and is amazing for this source, while I haven't found an avisynth script that does the same and I wonder if it actually can be done.

real.finder
24th August 2016, 22:51
I didn't see the sample yet, but I have sanimebob (http://forum.doom9.org/showpost.php?p=1750019&postcount=77) you can try it

edit: I see it now, the panning move in 60i (I think)

try this


AnimeIVTC(1,0,5, ediandnn=3, repwithtdeint=true, tfmm=0, micmatching=0, o3025cfr=true).TDecimate(1)
smam()


edit: about vlc and IVTC, in frame by frame I see the same artifact in just using tfm in avs, maybe you use post processing in vlc? but in real time play seems fine

kuchikirukia
25th August 2016, 08:32
qtgmc(inputtype=1) will take care of the pan. It will cause ghosting and kill small movements elsewhere, though, so only use it where you need it.

DenKudo
25th August 2016, 16:08
Thank you for all the suggestions, but none of the scripts work. I officialy am over this butchered anime :)

real.finder
25th August 2016, 20:31
Thank you for all the suggestions, but none of the scripts work. I officialy am over this butchered anime :)

this is not work? http://rgho.st/private/7wZtrymrf/f2f6d49d14fb1e4581fa5dcd97da9b8a

DenKudo
26th August 2016, 18:34
this is not work? http://rgho.st/private/7wZtrymrf/f2f6d49d14fb1e4581fa5dcd97da9b8a

I get a lot of errors with that script, do you know what could be wrong?

I get this message: Script error: AnimeIVTC does not have a named argument "ediandnn"

If I delete that and turn it into AnimeIVTC (mode=1) I get this error:
Script error: QTGMC does not have a named argument "lsb"

Any help?

StainlessS
26th August 2016, 18:43
http://avisynth.nl/index.php/AnimeIVTC

II) Function descriptions

General settings
Interlaced or progressive credits
Mode=1 (Hard telecined)
Mode=2 (Field-blended)
Mode=3 (Double hard telecined)
hybrid Mode=4 (Hybrid)

AnimeIVTC (clip i, int "mode", int "aa", int "precision", int "killcomb", int "cache", bool "ifade", float "sfthr"*, bool "sfshow"* , bool "chrfix" , bool "blend" , bool "normconv" , int "pattern" , int "pass", bool "rendering" , int "bbob", int "cbob", string "edimode", int "degrain", int "omode" , int "cthresh"* , int "blockx"* , int "blocky"* , int "MI"* , int "tfmm"* , int "pp"* , int "metric"* , int "micmatching"* , int "i1", int "i2", int "e1", int "e2", int "e3", int "p1", int "p2" , bool "dchr"* , bool "palf"* , bool "tcfv1"* , bool "nvfr"* , bool "real30p"* , bool "autoAssuf"* , int "ediandnn"* , bool "o3025cfr"* , int "overlap", int "pel", int "search", bool "nnedi3pel"** , string "credconv" , bool "mode22"* , clip "ediext* , string "bob4p"* , clip "extbob"* , string "extbobf"* , bool "repwithtdeint"* , float "dark", int "thin", int "sharp", int "smooth", bool "stabilize", int "tradius", int "aapel", int "aaov", int "aablk", string "aatype")

* in mod ver. only.
** nnedi2pel in original ver..

says "* in modified version. only."

EDIT: Here, modified version:- http://forum.doom9.org/showthread.php?p=1673928|

DenKudo
26th August 2016, 20:33
http://avisynth.nl/index.php/AnimeIVTC



says "* in modified version. only."

EDIT: Here, modified version:- http://forum.doom9.org/showthread.php?p=1673928|

I'm using the mod version (http://pastebin.com/UFKyeZjj) but I still get the error.

EDIT: after using this version (http://forum.doom9.org/attachment.php?attachmentid=15061&d=1444791968) apparently I get this error: QTGMC does not have a named argument "lsb" but I think that correlates with smam()

AzraelNewtype
26th August 2016, 21:10
That's from a newer modded QTGMC too. I think this is the latest (http://pastebin.com/TV5YRwyu). Most of that work isn't on this forum anymore.

DenKudo
26th August 2016, 21:11
I'm still having this annoying Script error: QTGMC does not have a named argument "lsb"

Any help?

DenKudo
26th August 2016, 21:15
That's from a newer modded QTGMC too. I think this is the latest (http://pastebin.com/TV5YRwyu). Most of that work isn't on this forum anymore.

Thank you for this. But now a new script error: MDegrain1 does not have a named argument "lsb".

AzraelNewtype
26th August 2016, 21:25
I dare you to google that error.

DenKudo
26th August 2016, 21:35
I dare you to google that error.

Well you know, I'm not that script-savvy, so it's quite hard :S But really, these errors don't end - it's like a continuous loop - I also had this one: there is no function named "Hqdn3dY"

DenKudo
26th August 2016, 22:28
Thank you everyone!

I managed to make the script work that real.finder suggested and it's probably the best one that comes close to being perfect. There are still some aliasing frames left but after additional antialiasing it's barely noticable. Finally some progress :)

real.finder
26th August 2016, 23:04
I'm using the mod version (http://pastebin.com/UFKyeZjj) but I still get the error.

EDIT: after using this version (http://forum.doom9.org/attachment.php?attachmentid=15061&d=1444791968) apparently I get this error: QTGMC does not have a named argument "lsb" but I think that correlates with smam()

this is not the last one, the last one always here http://forum.doom9.org/showthread.php?p=1673955#post1673955

about aliasing, the source it self has it, use maa2() or maa2ee() from here (forum.doom9.org/showpost.php?p=1725500&postcount=69)