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

Undead Sega
13th August 2009, 16:35
heey, i know this may sound silly, but isnt it possible just to have TempGaussMC_beta1mod to do all the work? instead of having MCBob, Yadif/mod and etc?

thetoof
13th August 2009, 21:32
For the bobbing process? Sure, but imo a function is better when it has speed/quality options.

Undead Sega
13th August 2009, 22:54
well, to actually remove the hardtelecine and not let all the other stuff really get in the way, whereas TempGaussMC_beta1mod can do all the jobs, correct me if i am wrong on this.

thetoof
13th August 2009, 23:37
Hard telecine = field matching
Double hard telecine = bobbing
Field blending = bobbing
Interlaced credits = bobbing
Progressive credits = blending

Where bobbing is not required, TGMC is more likely to harm than help.

thewebchat
14th August 2009, 02:10
By "progressive credits," I assume you mean progressive credits on telecined background. In this case, why can't you just bob it like with the interlaced credits?

thetoof
14th August 2009, 02:44
They could be bobbed.selecteven, but in my early tests, it was faster and visually nicer to do this:
dbl = mt_average(c.nnedi(1),c.nnedi(0),U=3,V=3)
dblD = mt_makediff(c,dbl,U=3,V=3)
shrpD = mt_makediff(dbl,dbl.removegrain(11),U=3,V=3)
DD = shrpD.repair(dblD,13)
dbl.mt_adddiff(DD,U=3,V=3)
"Blending" is actually "Average of a nnedi interpolation of every field with contra-sharpening which does minimal harm to the progressive elements and transforms the interlacing of the telecined background into blending".
This was the sample I had at that time: http://www.mediafire.com/download.php?mmmkmy03zmd
If you find something better, many here would be very happy.

thewebchat
14th August 2009, 06:08
I think we're taking the wrong approach here. Now, if I had a video with progressive credits on a telecined shot, what I would do is field-match the telecined parts and then blend the now-interlaced credits. I can't imagine how any credits could possibly be so awesome as to warrant destroying the actual content in the scene.

Here's what I did on the clip you linked: I applied the Telecide pattern "pcccp" and postprocessing "+---+". Then, I called TDeint with hints enabled to clean up the messed up credit scroll. Finally, I used mvtools2 to return the clip to 24fps. This link (http://www.sendspace.com/file/ioew2q) contains the Telecide override and AviSynth script. Perhaps my solution is to your liking?

manono
14th August 2009, 06:22
manono:
Agreed, I also prefer that when I'm doing something, it does only what it's supposed to do. However, for this particular case, not using nnedi, tdeint and tmm during ivtc meant not being able to solve the issue of those tricky frames without applying afterwards an AA filter (and maybe a few others) on the whole clip, not to mention the mess on the door's sign.
Right. I didn't mean to denigrate AnimeIVTC, which has proven to be a godsend for much of the difficult-to-encode anime out there. And maybe I shouldn't have even given that answer since DoctorM posted in your thread and was looking for an AnimeIVTC solution. Sure, some anime is difficult to encode properly, but a lot isn't. For the vast majority of hard/soft telecine mixes out there I would guess that a simple IVTC would be plenty, without any artifacts appearing only on the formerly interlaced frames. DoctorM didn't provide a sample with which to test so we could be sure. Nor has he returned to mention that the IVTC didn't solve all his problems.

Me, I prefer a KISS approach. It's only when that's not working that I'll go and look at more complex (and much slower) solutions.

thetoof
14th August 2009, 08:08
manono,
Good point... Having worked on more tricky than good streams, I have the bad habit of going overkill causing major slowdowns "just in case I miss that little moth********* problematic section that I always notice after waiting hours for the encode to be done".

I think we're taking the wrong approach here. ... I can't imagine how any credits could possibly be so awesome as to warrant destroying the actual content in the scene.Absolutely and utterly true.
Your approach is more than worth looking into... Since the beginning, I have always hated how screwed up the background could become for some damned creds. Never took the time to learn and think about overrides and such.
Now what would be crazy = apply something similar to fix the interlaced creds while ivtcing the background. On a (semi)-inactive background, bob to 59.97 + mflowfps to 23.976 looks great (but slow as hell)... but as soon as there's some motion... ouch. Try this one (was in post 281 of this thread): http://www.mediafire.com/download.php?ygwo1u2jhlh
I tried crazy stuff like masking the creds to apply a framerate conversion only on them, ivtc the background and then overlaying the converted creds on the decimated background, but if something neater and simpler could fix it all.... :D

thewebchat
14th August 2009, 17:19
[Previously, there was wrong information here]

On that clip, I simply ignored the presence of the credits, used field matching, then TDeint to fix the credits, and then decimated to 24p. Alternatively, I could have bobbed to 60p which would be slightly smoother on the interlaced crossfade in the middle and on the credit scroll, but 60p is dumb and my processor cycles are limited. See: this. (http://www.sendspace.com/file/d4qdl8)

Undead Sega
14th August 2009, 19:15
couldnt one add TempGaussMC_beta1mod with NNEDI2, would that make things any better?

thewebchat
14th August 2009, 22:48
Make what better? Is this the "throw in names of cool things because it makes everything more awesome" thread? If you want to use TGMC to bob the segment to 60p, then why are you even posting in a thread about IVTC? If you want to use it to do postprocessing on the interlaced parts, I highly doubt anybody will notice, much less care about it.

Edit: It seems my approach to handling the first clip was wrong. Will refrain from posting further comments from now on.

tengo6dedos
15th August 2009, 01:56
hello, im using this to fix a hard telecine + progressive credits

animeIVTC(mode=3, omode=1, mix=9, aa=1, pstart1=0, pend1=#, estart1=#, eend1=#, pstart2=#, pend2=#)

but when i check the credits i see the image of the credits blended except when i add "check=3", then it looks good, do i have to worry about this? this mean this is fixed while encoding?


thank you

thetoof
15th August 2009, 23:02
If you want to use TGMC to bob the segment to 60p, then why are you even posting in a thread about IVTC?Because a slightly modded TGMC is used in AnimeIVTC to bob the clip and that TGMC_b1mod uses nnedi atm. Undead Sega, yes it will be changed.

hello, im using this to fix a hard telecine + progressive credits
Hey, if you can wait for a little while, the new v won't be that messed up with all those p/i/estart/end1/2/3. I should have some free time to finish writing it, but now I just got out of surgery so I need to rest.

tengo6dedos
16th August 2009, 01:05
the new v won't be that messed up with all those p/i/estart/end1/2/3

Thanks, looking forward to that.

It does perfect job but only when adding "check=3", if not blends appear in previews of the credits. Is this normal or fixed with a simple change in my line up there? why this happens?


saluts

Nightshiver
16th August 2009, 16:11
Hope your surgery went well and glad to hear about the work on the new ver. :)

thetoof
16th August 2009, 16:32
Oh, just checked your line *facepalm*. omode=1 converts the 30p sections into 24p, which is prone to artifacts. If you want blend free creds, use omode=2 to create a vfr clip. Check the docs for more info and if you are too confused ask for help in this thread.

tengo6dedos
16th August 2009, 20:21
hello, sorry to bother with this but is there a way of doing whatever "check=3" does but without the info screen, because I checked omode=1 with check 3 on the creds and they are all good, removing check 3 goes bad in some frames

omode=1
omode=1 + check=3


saluts

thetoof
16th August 2009, 21:59
Wait, are you sure you have progressive creds? These look like static to me (i.e. the creds are not moving in any direction). Try a simple mode=1 and see what it does.

tengo6dedos
16th August 2009, 22:53
yes you are correct, im sorry i thought progressive credits ment no interlaced credits with interlaced background

saluts

Ramscoop
17th August 2009, 02:33
I just started using AnimeIVTC 1.06 and am having a heck of a time getting it to function.

I too am having the problems with error from Avisynth claiming that it can not locate the "Reduceflicker" plugin (even though it and all the other required .dll's are in the correct directory). I am also receiving the error from VirtualDub that the msvcr71.dll is missing as well.

I have tried the following solutions based on the responses to this problem throughout this thread:

- reinstalling AnimeIVTC
- leaving ONLY the filters that AnimeIVTC needs to function in the plugins directory
- double, triple and quadruple checking that AvsRecursion.dll is in my system32 directory
- Downloading msvcr71.dll and placing it in my system32 directory

I am lost and in despair. :mad:

Revgen
17th August 2009, 09:34
^The author is MIA right now due to surgery. He will fix the problems later.

Chengbin
21st August 2009, 03:00
I'm getting this error.

Avisynth open failure:
Evaluate:Unrecognized exception!
AnimeIVTC - v1.06.avsi, line 426
AnimeIVTC - v1.06.avsi, line 366

lansing
21st August 2009, 06:26
make sure you're opening a d2v file, and not a vob or m2v or any other

Chengbin
21st August 2009, 13:03
It doesn't support sources from directshowsource?

EDIT: Nevermind, I found the problem, it doesn't work with resizers.

tengo6dedos
25th August 2009, 16:00
Hello, does truly interlaced solution of animeivtc have average speed? can someone put an example line of doing this with it? tried with the manual but my english is not good

thanks

Undead Sega
2nd September 2009, 23:25
Im also having this ReduceFlicker problem, ive changed the SSE versions and still no luck, ive even got the RemoveGrain pre-released SSE3 fix package and still no luck.

what could be the problem?

by the way, i am runing Windows 7 x64, just to let you know.

lansing
3rd September 2009, 17:11
Im also having this ReduceFlicker problem, ive changed the SSE versions and still no luck, ive even got the RemoveGrain pre-released SSE3 fix package and still no luck.

what could be the problem?

by the way, i am runing Windows 7 x64, just to let you know.

Next time maybe you should first search this thread (http://forum.doom9.org/showthread.php?p=1185637#post1185637)before anything for you problem. Put the Avscursion.dll file into your system32 folder and it should be fine.

And as for RemoveGrain, IIRC the latest one should be "1.0b beta"

Undead Sega
3rd September 2009, 18:43
i have done so, but strangely i still get the same problem, and i am using the latest RemoveGrain build "1.0b beta"

:(

lansing
3rd September 2009, 19:44
i have done so, but strangely i still get the same problem, and i am using the latest RemoveGrain build "1.0b beta"

:(

what is the error message that you get? Also post your script.

Undead Sega
3rd September 2009, 19:53
Script seems to be correct, ive doubled checked the path names for ReduceFlicker and RemoveGrain:

LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\awarpsharp_25_dll_20030203\aWarpSharp.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\dup230\Dup.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\EEDI2v092\EEDI2\EEDI2.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\EEDI2v092 multithreaded\EEDI2_imp.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\MaskTools-v1.5.8\MaskTools-v1.5.8\MaskTools.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\masktools-v2.0a35\mt_masktools-26.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\MT=true - MVTools_V1.9.7.7\Intel10-Core2-SSE3\mvTools.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\nnedi2\nnedi2.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\ReduceFlicker05\ReduceFlickerSSE3.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\RemoveGrain\RemoveGrainSSE3.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\RemoveGrain\RepairSSE3.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\RemoveGrain\RSharpenSSE3.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\TDeintv11\TDeint\TDeint.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\TIVTCv105\TIVTC\TIVTC.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\TMMv1\TMM\TMM.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\warpsharppackage_25_dll_20031103\warpsharp.dll")
LoadCPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\yadif09\yadif.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\vinverse.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\SangNom.dll")
LoadPlugin("C:\Downloads\VirtualDub-1.8.6\Requirements\Toon-v1.0.dll")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\MCBob.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\R_pack\Cdeblend_v1.1b.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\LimitedSharpenFaster.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\TempGaussMC_beta1mod.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\AnimeIVTC_-_v1.06.1.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\R_pack\bob_repair.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\R_pack\Interlacing2Reader.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\R_pack\mrestore_v23e.avsi")
Import("C:\Downloads\VirtualDub-1.8.6\Requirements\R_pack\srestore.avsi")
MPEG2Source("C:\TEMP\XXX.d2v")
ConvertToYV12()
AnimeIVTC(mode=1, aa=1, precision=3, edimode="nnedi2")

Nightshiver
3rd September 2009, 20:25
I'm not sure this version of AnimeIVTC can use nnedi2.... and you definitely should not have to use all those Import and Loadplugin commands if they are all were they should be.

Undead Sega
3rd September 2009, 22:21
well not even the original NNEDI was working, NNEDI2 was a recent input, and i assume it will give much clarific results :)

Nightshiver
4th September 2009, 01:35
Have you tried emptying the plug-ins folder of everything except for the things animeivtc needs to run?

Undead Sega
4th September 2009, 15:43
that would be very confusing, plus ive had this script for a long time and used it on a couple of movies, its only recently and especially since migrating to a 64bit operating system that i have had this problem. :(

kemuri-_9
4th September 2009, 15:52
that would be very confusing, plus ive had this script for a long time and used it on a couple of movies, its only recently and especially since migrating to a 64bit operating system that i have had this problem. :(

every instruction that told you to "move/copy x.dll to system32" is now "move/copy x.dll to sysWOW64",
all the x86 dlls you use can't be used with avisynth x86_64 (whether if you have it installed or not),
and avisynth x86 does not work in anything that is x86_64
keep to 32bit versions of programs.

Chengbin
8th September 2009, 17:27
I'm trying to do an IVTC and AA on a video.

I'm using animeivtc(mode=3, omode=1, aa=4) so far. But Virtual Dub tells me I need to set the mix function.

It seems that I should use the check function, which I have no idea to use, because it never works. I wrote animeivtc(mode=3, omode=1, check=3)

I just want to IVTC and then AA the entire video. How do I do that?

Nightshiver
8th September 2009, 18:04
If you want to "just" IVTC, don't use mode=3. That mode is for hard telecined episode with pure interlaced credits.

thewebchat
9th September 2009, 01:17
I'm trying to do an IVTC and AA on a video.

I'm using animeivtc(mode=3, omode=1, aa=4) so far. But Virtual Dub tells me I need to set the mix function.

It seems that I should use the check function, which I have no idea to use, because it never works. I wrote animeivtc(mode=3, omode=1, check=3)

I just want to IVTC and then AA the entire video. How do I do that?

Telecide().Decimate().AntiAlias()

Same thing except slower:

AnimuIVTC(0,aa=blah)

Chengbin
9th September 2009, 12:51
Ahh, that works.

A funny effect it made is it made some objects that are supposed to be jagged "bushes for example" smooth. I guess I can't AA it.

egrimisu
9th October 2009, 13:42
dumb question, my anime contains hardtelecine scenes and fully interlaced scenes, cand these be found automaticly by animeivtc and deinterlace them?

thewebchat
9th October 2009, 15:21
Yes, it can. That is because AnimuIVTC is nothing more than a (bad) wrapper around TIVTC, and TIVTC is already fully able to handle mixes of progressive, telecined, and interlaced content.

egrimisu
10th October 2009, 18:02
Yes, it can. That is because AnimuIVTC is nothing more than a (bad) wrapper around TIVTC, and TIVTC is already fully able to handle mixes of progressive, telecined, and interlaced content.

No it does not handle telecine mixed with fully interlace scenes only telecine with fully progressive scnees.

thewebchat
10th October 2009, 19:17
Uh, what? Yes it does. What do you think the pp, clip2, MI, and mic parameters are for.

egrimisu
10th October 2009, 20:08
Uh, what? Yes it does. What do you think the pp, clip2, MI, and mic parameters are for.

my bad, i have read the tdecimate and not tfm, anyway i could use some help, i would apreciate if you could write an example script for a anime that contain telecined frames and fully interlaced scenes. Thanks in advance.

egrimisu
10th October 2009, 20:17
for the fully intelaced sceens i believe i need one of the 3 folowing settings:
5 - motion-adaptive blend deinterlacing
6 - motion-adaptive cubic interpolation deinterlacing
7 - motion-adaptive modified-ela deinterlacing
what is the diference between these?

thewebchat
10th October 2009, 20:27
Well, in general, I don't recommend using the automatic deinterlacing functions for real interlaced stuff because they kind of suck. The best way would be to handle it manually. That said, what you must first do is 1) adjust the MI setting so that all the interlaced frames are detected as interlaced (use display=true to confirm) and then 2) set a pp mode (mode=6 is guaranteed to look bad, mode=5 is blend deinterlacing, mode=7 is pretty good, but not as good as a dedicated deinterlacer) or an alternate clip to pull deinterlaced frames from (must have same length). So, you could do something like this:

TFM(clip2=TDeint(edeint=nnedi2),mi=X)

Deinterlaced sections are obviously not 24fps, so you would also need to set TDecimate to a hybrid mode.

egrimisu
10th October 2009, 20:41
ok, i'll do some test monday morning at work :) , is there a way to automaticly deal with a anime that has hardtelecine scenes and double hard telecine scenes?

thewebchat
10th October 2009, 23:18
Double telecine is the same thing as pure interlaced.

Esc
11th October 2009, 03:17
I'm trying to use
AnimeIVTC(mode=4,omode=1,mix=4,estart1=0,eend1=30714,istart1=30715,iend1=33402,estart2=33403,eend2=34255,aa=0)
It's doing miracles but is slow as hell. What makes me wonder, why the whole script is slowed down and not just the double-telecined part? My encoding time got 4 times longer, which makes up 20 hours, which makes me a very sad panda.

upd: Also, I get this error (see attached file) half of the times when I try to open my script in MeGUI. And other half of times it works okay.