Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd August 2016, 20:32   #1  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
IVTC Problem

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-VVor6...kYdR0y5-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
DenKudo is offline   Reply With Quote
Old 23rd August 2016, 01:54   #2  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
Have you tried the latest yadifmod2?
burfadel is offline   Reply With Quote
Old 23rd August 2016, 02:24   #3  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
yadifmod2
http://forum.doom9.org/showthread.php?t=173316
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 24th August 2016, 08:55   #4  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
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.

Last edited by manono; 24th August 2016 at 08:58.
manono is offline   Reply With Quote
Old 24th August 2016, 12:51   #5  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
Quote:
Originally Posted by manono View Post
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-...B9oxhpuijZbOsQ
Simple TFM + tdecimate and AAA doesn't get rid of it.
DenKudo is offline   Reply With Quote
Old 24th August 2016, 12:57   #6  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
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)
DenKudo is offline   Reply With Quote
Old 24th August 2016, 18:02   #7  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,869
tfm(mode=1,pp=5,slow=2,micmatching=2,clip2=tdeint(mode=2,type=3))
tdecimate()
FranceBB is offline   Reply With Quote
Old 24th August 2016, 19:26   #8  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
Quote:
Originally Posted by FranceBB View Post
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?
DenKudo is offline   Reply With Quote
Old 24th August 2016, 20:14   #9  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
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/zndxk804kh...Test2.mp4?dl=0

Last edited by manono; 24th August 2016 at 20:18.
manono is offline   Reply With Quote
Old 24th August 2016, 21:20   #10  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
Quote:
Originally Posted by manono View Post
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/zndxk804kh...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.
DenKudo is offline   Reply With Quote
Old 24th August 2016, 22:51   #11  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
I didn't see the sample yet, but I have sanimebob you can try it

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

try this

Code:
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
__________________
See My Avisynth Stuff

Last edited by real.finder; 25th August 2016 at 02:08.
real.finder is offline   Reply With Quote
Old 25th August 2016, 08:32   #12  |  Link
kuchikirukia
Registered User
 
Join Date: Oct 2014
Posts: 476
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.
kuchikirukia is offline   Reply With Quote
Old 25th August 2016, 16:08   #13  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
Thank you for all the suggestions, but none of the scripts work. I officialy am over this butchered anime
DenKudo is offline   Reply With Quote
Old 25th August 2016, 20:31   #14  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by DenKudo View Post
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/f2f...fa5dcd97da9b8a
__________________
See My Avisynth Stuff

Last edited by real.finder; 25th August 2016 at 21:37.
real.finder is offline   Reply With Quote
Old 26th August 2016, 18:34   #15  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
Quote:
Originally Posted by real.finder View Post
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?
DenKudo is offline   Reply With Quote
Old 26th August 2016, 18:43   #16  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
http://avisynth.nl/index.php/AnimeIVTC

Quote:
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|
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 26th August 2016 at 18:46.
StainlessS is offline   Reply With Quote
Old 26th August 2016, 20:33   #17  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
Quote:
Originally Posted by StainlessS View Post
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.ph...1&d=1444791968) apparently I get this error: QTGMC does not have a named argument "lsb" but I think that correlates with smam()

Last edited by DenKudo; 26th August 2016 at 20:42.
DenKudo is offline   Reply With Quote
Old 26th August 2016, 21:10   #18  |  Link
AzraelNewtype
Registered User
 
AzraelNewtype's Avatar
 
Join Date: Oct 2007
Posts: 135
That's from a newer modded QTGMC too. I think this is the latest. Most of that work isn't on this forum anymore.
AzraelNewtype is offline   Reply With Quote
Old 26th August 2016, 21:11   #19  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
I'm still having this annoying Script error: QTGMC does not have a named argument "lsb"

Any help?
DenKudo is offline   Reply With Quote
Old 26th August 2016, 21:15   #20  |  Link
DenKudo
Registered User
 
Join Date: Aug 2016
Posts: 12
Quote:
Originally Posted by AzraelNewtype View Post
That's from a newer modded QTGMC too. I think this is the latest. 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".
DenKudo is offline   Reply With Quote
Reply

Tags
anime, avs script, ivtc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:39.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.