Log in

View Full Version : AnimeIVTC() - All-in-one solution for interlacing and blending - v2.00 [2010-01-07]


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [24] 25

ianken
30th May 2011, 21:54
Well, I got my MT/SetMTMode issues sorted out...

To test mode 4 (hybrid) I dusted off a known hybrid title (avatar- last airbender) and ran it through a very simple script. The result was a file that was un-smooth and a timecodes file that was essentially empty with the exception of a single entry for a single film-rate segment. A plain TFM/TDecimate run results in a much larger timecodes file and much smoother video playback.

What am I not getting right here?

K.A.S
4th August 2011, 19:39
I have some trouble with AnimeIVTC

this is my source:
http://demo.ovh.com/download/c0cb5792d006ac6945c5426510461e3f/Toriko%27s%20END.ts

and my script is:
Import("C:\Program Files (x86)\AviSynth 2.5\plugins\srestore.avs")
DGDecode_Mpeg2Source("C:\KAS Files\Toriko\ep16\Toriko-16.d2v")
trim(43793,45590)

AnimeIVTC (1,aa=4,precision=3,killcomb=2,ifade=true,chrfix=true,blend=true,dark=1,thin=10,sharp=150,smooth=-1,stabilize=true,tradius=3,aapel=4,aaov=8,aablk=16)
Spline36Resize(1280,720,2.5,1.5,-2.5,-1)

help me if something is incorrect

Leinad4Mind
29th November 2011, 16:03
How can I deinterlace this kind of TVRip Source?

http://www.mediafire.com/?jseydgmb6t4qcom

I've tried:

tfm(clip2=nnedi3)

edeintted = nnedi3(field=-2)
TDeint(edeint=edeintted,order=-1,mode=2,sharp=true,mtnmode=3,full=false,tryWeave=false,type=1,emask=TMM(mode=1))

interp = nnedi3(field=1)
tdeint(mode=0,order=1,field=1,edeint=interp,slow=2,emask=TMM(mode=0,order=1,field=1))


QTGMC( Preset="Slower")
#With and Without SRestore...
SRestore(25).AssumeFPS(25000,1000)

I haven't try with AnimeIVTC...

If anyone could deinterlace this properly, I would appreciate.

Thanks!

manono
29th November 2011, 19:55
The first three scripts won't work because it's field-blended. The fourth is peculiar because you're having SRestore unblend it to 25fps before slowing it to film speed, but since it was converted from 24fps, that's incorrect also. Try the default:

QTGMC( Preset="Slower")
SRestore()

There is still leftover blending, and maybe someone else has a fix for that, but the blends are often in consecutive fields and I don't know how to fix that entirely. I doubt AnimeIVTC can fix it, but never having used it myself I can't be sure of that.

aNToK
24th December 2011, 00:33
Is there anywhere to download Set's rewrite of awarpsharp2? The link in the package isn't working and I haven't been able to find it anywhere

cretindesalpes
24th December 2011, 00:43
aWarpSharp2 (http://www.mediafire.com/?6d2bw7xd0ehzchy)

aNToK
24th December 2011, 01:12
aWarpSharp2 (http://www.mediafire.com/?6d2bw7xd0ehzchy)

Ah, thanks so much cretindesalpes! I've been looking forward to trying this on an old 70's anime dvd set I bought that I want to improve to put up on my widescreen!

aNToK
24th December 2011, 06:44
Hmm... I've got all the requirements in place but while trying to run a first pass I get this error:

I don't know what "sfthr" means
(AnimeIVTC 2.00.avsi, line 151)

The series reads as hybrid (mostly film) in megui's analyzer and mediainfo puts it as 29.97 ntsc TFF interlaced. Any thoughts on what I'm missing?


Script: DGDecode_mpeg2source("E:\gatchaman workspace\GATCHAMAN_VOL_5\VIDEO_TS\Ep 25.d2v", info=3)

animeivtc(mode=4,ifade=true,killcomb=3,aa=4,smooth=-1,stabilize=true,aapel=2,omode=1,credconv="mocomp",search=4,nnedi2pel=true,pass=1)

Nightshiver
25th December 2011, 02:43
Please upload your copies of AnimeIVTC and the filters required to run animeivtc. I think you may have the wrong version of certain filters and/or AnimeIVTC v2.00\

sfthr is built into the function smartfade inside of AnimeIVTC, and smartfade has been activated in your script because you are using mode=4 and ifade. Please also post a short, unprocessed video sample.

aNToK
25th December 2011, 05:22
Will do. I went through both the 1.06 and the 2.0 versions with different plugin folders and neither worked. I'll up them when I get back from Christmas with the family. How long a clip would be needed?

Gavino
26th December 2011, 01:59
sfthr is built into the function smartfade inside of AnimeIVTC, and smartfade has been activated in your script because you are using mode=4 and ifade.
However, sfthr is passed into smartfade the first time it is called, without having been previously set:
usefm = mode==1 || (mode==4 && (pass==2 || creds || omode==1))
...
fm = usefm ? ifade ? fm.smartfademod(sfthr, sfshow, cache) : fm : nop()
(from AnimeIVTC 2.00.avsi)

Undead Sega
5th January 2012, 22:19
Hi guys, hope you've had a Merry Christmas and a Happy New Year.

Just a quick question, can someone remind me how to do a 2:3 pulldown removal? Meaning that 24p source with added pulldown (2:3 if I'm correct?) to convert it to 25p.

manono
5th January 2012, 22:47
Does this have anything to do with AnimeIVTC? Anyway, it's not 2:3 pulldown you want to remove. 2:3 (or 3:2) pulldown takes a progressively encoded 23.976fps video and adds the TFF/RFF flags so that it outputs interlaced 29.97fps. If you're sure your source is 24fps converted to 25fps by the addition of two duplicate fields every second, then one way (using TIVTC) to remove the dupe fields is:

TFM()
TDecimate(Mode=0,Cycle=25,CycleR=1)

After TFM does the field matching, TDecimate removes that (now) one duplicate frame in every 25 frames. If that doesn't work for some reason, please make a short sample available.

And in case I've misunderstood the question, if it really is an NTSC source with hard pulldown, then:

TFM().TDecimate()

returns it to 23.976fps. To speed it up to 25fps (why?) add:

AssumeFPS(25)

Or, if making this for DVD and you want to keep the 24fps within a PAL DVD, after encoding for progressive 23.976fps, run the resulting MPV through DGPulldown with the custom box checked and 23.976->25.

Undead Sega
5th January 2012, 23:22
Well, just to be on the safe side, here is a sample of what I was given (looks familiar? :D):

http://www.filesonic.com/file/OHGPOiH

I'm pretty sure it is what I've described, cause it was from a PAL VHS tape, and he animation is of course made at 24 frames per second, plus I'm quite certain as well that this is hard telecined too :D

manono
6th January 2012, 19:15
Yes, it's as I said in my first script. TFM() used alone does the field matching after which you'll find one duplicate frame in every 25. After adding TDecimate(Mode=0,Cycle=25,CycleR=1), all the dupe frames are removed, leaving you with a 24fps video.

Oh, since it's animation you may want to use TDecimate(Mode=1,Cycle=25,CycleR=1) for those cases when the animation is drawn at less than 24fps. The TDecimate doc explains more about Mode=1.

Gerry62
20th January 2012, 11:21
However, sfthr is passed into smartfade the first time it is called, without having been previously set:
usefm = mode==1 || (mode==4 && (pass==2 || creds || omode==1))
...
fm = usefm ? ifade ? fm.smartfademod(sfthr, sfshow, cache) : fm : nop()
(from AnimeIVTC 2.00.avsi)

Ive just comeup with the same issue, unzipped every dll from the pack and started afresh, still same error this chap has, has anyone solved it yet?


Oh I may be stupid but does this process keep the interlace? I know im creating a 23.976 Progressive file in the end, BUT does it blend or something the Feilds, I need both feilds you see, More definition you see..!

Gerry62
20th January 2012, 11:33
Well, just to be on the safe side, here is a sample of what I was given (looks familiar? :D):

http://www.filesonic.com/file/OHGPOiH

I'm pretty sure it is what I've described, cause it was from a PAL VHS tape, and he animation is of course made at 24 frames per second, plus I'm quite certain as well that this is hard telecined too :D

Yes it does look familiar!
I'm currently Restoring it for Mr Gilchrist, Cleaning By hand, Frame by frame!

Gerry62
20th January 2012, 11:49
function smartfademod(clip c,
As you may have noticed, this option somehow ended up untested after being modified and I was unable to do so until now. Sorry for the trouble.

To eplain why i dredged this up..
If you want to use 'ifade=True' option then you need to have a look over some posts over at page 40ish for some corrected code and change your avsi script, after doing that a couple of times it then comes with the error

I Don't Know What "C" Means
Line 504 abs(avg) > sfthr ? interleave(sep.selecteven(),sep.selectodd()).weave().daa() : last")
Line 153 fm = usefm ? ifade ? fm.smartfademod(sfthr, sfshow, cache) : fm : nop()


So I take it we can't use smartfade then?
Anyone found a fix for the smartfade sfthr prob yet?

Gavino
20th January 2012, 13:04
Anyone found a fix for the smartfade sfthr prob yet?
I don't use AnimeIVTC, so haven't tested this, but from looking at the code of function 'smartfademod', I believe it should be changed to this:
function smartfademod(clip c, float "sfthr", bool "sfshow", int "cache") {

global sfthr = default ( sfthr, 0.4 ) # Threshold for fade detection.
show = default ( sfshow, false ) # Displays luma difference between fields without processing anything.
cache = default ( cache, 10 ) # Cache the frames to help seeking and other functions requesting many frames

show ? scriptclip(c, "subtitle(string(abs( separatefields().selectodd().averageluma() \
- separatefields().selecteven().averageluma())))") : \
scriptclip(c, "sep = separatefields() \
...

EDIT: In fact, I see that's exactly what thetoof was saying in posts #880 and #882.

Gerry62
20th January 2012, 13:32
I don't use AnimeIVTC, so haven't tested this,

EDIT: In fact, I see that's exactly what thetoof was saying in posts #880 and #882.

Opps, Missed that one, thetoof might want to make a Ver2.1!

Thanks for the help! and out of interest what would you use?

Gavino
20th January 2012, 14:05
out of interest what would you use?
The reason I don't use it is simply that I rarely work with anime or sources that require IVTC.
So I'm not in a position to say if there is anything better.

parent5446
23rd January 2012, 21:47
Is there a script similar to this that deals with non-anime sources?

Emulgator
24th January 2012, 10:19
AIVTC will handle other content too.

parent5446
24th January 2012, 16:27
Awesome. I was kind of thinking it could be used for other stuff considering the filter is fairly generic enough, but I'm nowhere near an expert enough at Avisynth to know that for sure. One more quick question: what will happen if you use AnimeIVTC on a pure interlaced source? Will it hurt the quality of the source since technically it's not telecined at all?

Emulgator
24th January 2012, 19:36
It depends on the nature (generation, conversion) of your source and what you need to achieve (final delivery format).

As the name AnimeIVTC suggests, inverse telecine is the goal.
You want to have the progressive frames back as they were shot.

Generic interlaced footage coming unaltered from a video camera will not profit from IVTCing.

A proper Film 23.976p on NTSC 29.97i hard pulldown can easily be reverted without AIVTC.
SelectEvery() is your friend.

But if the pulldown pattern changes, shifts, capturing missed something, normconversion was underneath,
then AIVTC comes in handy. And in hardest cases, YATTA...

And there is a PAL species of pure interlaced material that came from progressive frames.
24p Film that had been scanned with a Rota-prism scanner on PAL25i is such a case.
This can be IVTCed with AIVTC.

If 24p on 25i hard Euro-pulldowned with fixed pattern shall go back to 24p,
then SelectEvery(...) may be better.

No matter if NTSC or PAL: Find out the nature of your source.

AssumeTFF().SeparateFields().Spline36Resize(width, height)
AssumeBFF().SeparateFields().Spline36Resize(width, height)

Step through the fields. Don't give up.
Start, end, scenecuts
Do this in every place, even if it takes hours.
(Sometimes I had so scrambled material to restore,
it took more than just hours to assess field cadence throughout the clips.)

Rheffera
25th January 2012, 03:50
I have read through the readme but cant get this script to work. all i get is Aviscript error:"Mistake in i1,e1 parameters..."

AnimeIVTC(mode=4,omode=2,pass=1,killcomb=1,e1=43369,i1=45328)

as far as i know this is correct syntax.

even if i set e1=1,i1=2 it still gives me the error. Any idea?

i havent touched the script. all i have done is load dependencies. Im using the latest stable avisynth.

The clip in question is definetley film and then interlaced for the credits. DecomIVTC mad the content look good, but the credits a jerky interlaced mess. Plain yadif made the credits look great, but the content jerky. Its clear to me that it is hybrid.

frenshprince
5th February 2012, 08:11
Hi there,

First message on this forum, but longtime reader, hello everyone :)

I'm finally posting today, beacuse I dont understand what I'm doing wrong.

I have a telecine NTSC video 29.97, that I would like to IVTC.
In order to obtain a PAL 720*576 23.976 vidéo.

I used the TIVTC plugins, with one of this script
tfm(order=0).tdecimate(mode=1)
or
tfm(order=0).tdecimate(mode=1,hybrid=1)
And the result is almost perfect.

Almost, because there are still some frames whiche are not deinterlaced.
And its not good to see.

Here's some pics of what I mean
http://desmond.imageshack.us/Himg407/scaled.php?server=407&filename=loki1.jpg&res=medium
http://desmond.imageshack.us/Himg72/scaled.php?server=72&filename=loki2.jpg&res=medium
http://desmond.imageshack.us/Himg651/scaled.php?server=651&filename=loki3.jpg&res=medium


Ive just tried anime ivtc, and noting is working but a simple script as "AnimeIVTC(mode=4,omode=1)

I could post a part of the video, if lt's needed.




Your help would be really appreciated :o

Thanks

manono
5th February 2012, 08:48
Got a small sample that shows the problem when IVTC'd?

Bloax
5th February 2012, 09:45
Yeah, I know I'm useful as hell.

But that reminds me a lot of what happens if you tried to deinterlace Polavision (http://forum.doom9.org/showthread.php?t=163574).

frenshprince
6th February 2012, 18:16
I tried with ifade= true, and it fixed the issue :D

But now I'm trying the mode 2
AnimeIVTC(mode=2,bbob=4,normconv=true)

and I have this error "there is no function named "srestore".

What I a m doing wrong ?

Emulgator
6th February 2012, 20:15
Download srestore and put it in your plugins folder.

frenshprince
6th February 2012, 20:55
It works !

Thanks very much ;)

Undead Sega
21st February 2012, 05:23
Yes it does look familiar!
I'm currently Restoring it for Mr Gilchrist, Cleaning By hand, Frame by frame!

That means you're Ade Gregg right?!?!? :D

ENAJonas
27th February 2012, 00:35
Can someone please weigh in on my post http://forum.doom9.org/showthread.php?t=164267 ? Is this all I need to do?

TheFluff
27th February 2012, 09:45
animeivtc is most likely much too slow to run in realtime, so it won't be of much use to you.

horrormaster34
4th March 2012, 02:43
anybody know what the requirements are for just SharpAAMCmod?

GMJCZP
10th March 2012, 20:32
anybody know what the requirements are for just SharpAAMCmod?

horrormaster34, you should seek the help that is included in the package animeivtc (see first post).

Now I tell them my question:

In help file of AnimeIVTC recommend avoiding SetMTMode instead recommend something that I modified as follows:

SetMemoryMax (512)
# SetMTMode (5)
mpeg2source ("Cap.d2v", cpu = 4, moderate_h = 20, moderate_v = 40)
# SetMTMode (2)

s = AnimeIVTC (mode = 2, bbob = 4). YLevelsC (0, 0.75, 245, 0, 255)
threads = 2
partition = int (framecount (s) / threads)
a = trim (s, 0, partition)
b = trim (s, partition +1,0)
a # load this script in vdub and save as rendering1, Then change a to b and save as rendering2, ideally on a different HDD ... etc etc

Then I put the two pieces in VirtualDubMod simultaneously to process, this would not damage my hard drive?
I have a single hard disk with two partitions.

Mr. Keska
14th March 2012, 13:05
thanks . . .


^_^

GMJCZP
15th March 2012, 14:40
Then I put the two pieces in VirtualDubMod simultaneously to process, this would not damage my hard drive?
I have a single hard disk with two partitions.

There's someone I can clarify my doubt?

Boulder
15th March 2012, 14:49
Why would it damage your HD? In normal use, there are reads and writes all the time even though you may not notice it. Having one HD and performing multiple HD-intensive operations simultaneously only means that they get slower as the drive heads need to seek more.

GMJCZP
16th March 2012, 00:20
Thank you, Boulder

eriler
12th June 2012, 15:54
Hi,
I'm having several problems with using AnimeIVTC - It simply just doesn't allow some parameters to be set.
Firstly, when trying to set the i1, e1, p1, etc. parameter it doesn't allow me to set anything if i don't have e1 somewher ein the script. i.e. "p1=40407, i1=43279, p2=44096" doesn't work, however "p1=40407, e1=43279, p2=44096" works. Same if you replace the p's with i's. I get the error message "Mistake in entering i1, e1..... parameters. Please check."

Secondly, "ifade=true" does not work, i get the error "I don't know what "sfthr" means". I made the changes to AnimeIVTC 2.00.avsi as explained in post #1169.

These are just some errors which i get when i change settings around. The current avs line i have now is as follows (This one works):
AnimeIVTC (mode=1, ifade=false, killcomb=3, aa=0, p1=40407, e1=43279, p2=44096, omode=2, pass=1)

The video im encoding has progressive video for the intro, main part and for the preview (Anime), and i think it has interlaced for the ending song (Video of real people).

Nightshiver
12th June 2012, 23:57
Hi,
I'm having several problems with using AnimeIVTC - It simply just doesn't allow some parameters to be set.
Firstly, when trying to set the i1, e1, p1, etc. parameter it doesn't allow me to set anything if i don't have e1 somewher ein the script. i.e. "p1=40407, i1=43279, p2=44096" doesn't work, however "p1=40407, e1=43279, p2=44096" works. Same if you replace the p's with i's. I get the error message "Mistake in entering i1, e1..... parameters. Please check."


Well yeah, that's how it's supposed to work. You can't just pick and choose, it has to be a complete section. Can't have e2 without an e1 first and vice versa.

eriler
13th June 2012, 10:06
Well yeah, that's how it's supposed to work. You can't just pick and choose, it has to be a complete section. Can't have e2 without an e1 first and vice versa.

I think you've misunderstood; I don't want to have an e1 or e2 at all. I want it to be p1, i1, p2. But that doesn't work.

raido
28th June 2012, 13:19
I installed animeivtc 2.00 and it keeps asking for an output mode. I'm assuming I want omode=1 for most purposes? What is omode=2 for? When would I need vfr?

x265
31st January 2013, 20:47
Should i use AnimeIVTC or TIVTC on anime DVD's?

Guest
31st January 2013, 21:06
There's no universal answer for all videos. You have to base your decision in each case on the character of the specific video.

x265
6th February 2013, 22:06
http://img46.imageshack.us/img46/2214/capturelpr.png << What have i done wrong?

vdcrim
6th February 2013, 22:49
Off-topic, but you can copy the error as text in Edit -> Miscellaneous -> Copy AviSynth error to clipboard.

Overdrive80
6th February 2013, 23:48
eedi3 not is a option in official version, in mod version yes, but this version has issues.