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

stpdrgstr
9th November 2008, 17:33
All right, gime a minute (well, depending on my connection :P).

EDIT: Meh, it will take an hour or more. Just another thing. This contains 24p footage after the credits. So, it goes like: e1+i1+e2.

EDIT2: There it is: http://www.mediafire.com/?0nqjj1yybyl

Shiznadnaz
9th November 2008, 22:19
O.o Was this really broadcasted??? If it was, I'll add a new mode for AnimeIVTC (I had only seen this on noobish encodes before, so I didn't think something "official" could be encoded this way)
You have a blend-deinterlaced telecined source encoded as progressive 30fps video.

For now:
#you can use another pp if you want... see srestore.txt for more info
srestore(omode="pp3", cache=10, other settings)
decimate()

I'd like to have a sample of the credits for that source to help the dev of animeivtc's new mode ((blend-de)interlaced credits on top of blend-deinterlaced telecined source).

I don't actually cap them myself but a friend does and I have no clue how he does it, he says he uses WinTV. Everytime I make a .d2v, it always says "A field order transition was detected." Anyways, here are the credits - http://www.mediafire.com/?n2ztizjmmjk and also what do I need in my plugins folder for srestore to work.

thetoof
10th November 2008, 02:11
EDIT2: There it is: http://www.mediafire.com/?0nqjj1yybylFor some reason I can't download it... sorry but could you reupload it (the other poster's sample works like wonders)

Anyways, here are the credits Oh, k... well... I was looking for scrolling credits.. do you have some in that ep?

stpdrgstr
10th November 2008, 04:39
That's weird, I can download it. No problem, I'll have it up again.

thetoof
10th November 2008, 04:44
Oh well, it works now... I look at it a bit later.

Aprel
11th November 2008, 00:05
Hi! I have used this script AnimeIVTC (mode = 1, aa = 2) have since emerged jerks. It is possible to correct ?

thetoof
11th November 2008, 00:23
Probably the wrong mode for your source... sample?

Aprel
11th November 2008, 01:04
If not difficult to see Sample (http://rapidshare.com/files/162592254/sample.rar.html) Thx

thetoof
12th November 2008, 08:19
Hi! I have used this script AnimeIVTC (mode = 1, aa = 2) have since emerged jerks. It is possible to correct ?
Jerks = the framerate for the jerky scenes is more than 24p... so it's most likely 30p, so you have a hybrid source. Use mode=5.

And this is my script for mode=7 pass=1, to do the video analysis passThis script outputs this timecode:
# timecode format v1
Assume 29.970030
# TDecimate v1.0.3 by tritical
# Mode 5 - Auto-generated mkv timecodes file
0,51,23.976024
# vfr stats: 18.68% film 81.32% video
# vfr stats: 65 - film 283 - video 348 - total
# vfr stats: longest vid section - 0 frames
# vfr stats: # of detected vid sections - 0
meaning that frame 0 to 51 will run @ 23.976fps and that the rest (credits) will run @ 29.97fps, so I can't replicate your issue. Do you have the latest version of every plugin?
Also, are you sure that you need mode=6 (is your episode (not credits) hybrid or simply hard telecined?)

Aprel
12th November 2008, 11:10
Thanks for response but in one place missing jerks and in other places have appeared If it is interesting here is the result (http://rapidshare.com/files/163006720/test.avi.html)

and the text infiltrating:

http://s50.radikal.ru/i130/0811/ac/7220a69efd57.png

Use: AnimeIVTC(mode=5,aa=2)

thetoof
12th November 2008, 16:30
Under "Function description", you can see all the possible modes and the settings that should be used with them. When you click on "Mode=5, 6 or 7 (VFR decimation)", it sends you to this info:

pass : Processing a hybrid clip requires two passes. The file you must use for your final encode/subsequent filtering must be the one generated by pass=2.

* 0 : Special pass to process your stream in mode=3, 4 or 6 without decimating by doing a lossless rendering pass. You can then reload the resulting file as avisource("yournewfile.avi").animeivtc(mode=7, pass=1, other vfr settings) to apply vfr decimation. It helps reducing overall processing time. (default for mode=3, 4 and 6)
* 1 : Open with vdub, file-run video analysis pass, wait until the end, close vdub. (default for mode 5 and 7) Using this for mode=3, 4 or 6's rendering pass combines the rendering pass and the analysis pass for VFR decimation.
* 2 : Reload the same script with pass=2 and do a lossless rendering pass. Encode. Then, take the "timecode.txt" file and add it as the timecode for the video stream in mkvmerge.
This means that you must run the analysis pass (default for mode=5) and then reload the script with pass=2 to decimate properly.

stpdrgstr
12th November 2008, 18:47
so I can't replicate your issue. Do you have the latest version of every plugin?
Also, are you sure that you need mode=6 (is your episode (not credits) hybrid or simply hard telecined?)

Megui says it's an hybrid source. And yeah, I have the latest version of every plugin :(. Well, I'm gonna have to try again. Thanks thetoof.

thetoof
12th November 2008, 19:56
A very very very important element in the docs is: do not trust automated detection, as it often fails to properly identify what should be done.
There's a good change your source is declared as hybrid because of the interlaced credits. There is more info in the docs about how do detect the type of source you have (and feel free to ask questions/post a m2v sample in this thread if something is not clear)

Aprel
13th November 2008, 00:02
This means that you must run the analysis pass (default for mode=5) and then reload the script with pass=2 to decimate properly.

Thank You helped, only now video with 24.113fps but it is necessary to 23.976 this can be corrected or to use ChangeFPS(23.976) ?

And how do you have learned that video hybrid source MeGUI says it's an source type Film :)

thetoof
13th November 2008, 00:33
Refer to my previous post & the docs.... Learn how to trust your eyes to detect your type of source.

What I did was:
- check the stream frame by frame in vdub
- noticed there was a 3:2 pulldown
- searched a bit more to see where jerks could have been introduced
- found out a zoom out section with motion in every frame (around 0:24.458) & no interlacing artifacts (30p)
- ran an analysis pass with mode=5
- changed the script to pass=2
- loaded it in vdub
- checked the timecode created
- noticed that a few sections were declared as video and the rest was decimated = problem solved

The framerate is not Constant Frame Rate=24.113fps, but Variable Frame Rate=some sections @ 23.976 & others @ 29.97. Using convert/changefps will mess everything up and assumefps will cause audio desync. Encoding without associating a timecode to the video (as if it was CFR) is also wrong (so you need to use .mkv for your encode).
If you absolutely need 23.976, you'll have to blend the 30p sections into 24p, which is not very good imo. I had not made it an option (like omode=1 or 2 for the credits) because I believe VFR is the way to go with hybrid. I can add it in the next release...

Aprel
13th November 2008, 01:33
Thank you for a detailed response.

If you absolutely need 23.976

I need fps for stationary dvd player, and I've read that dvd players can only play 23.976 or 29.97 fps :(

Comatose
13th November 2008, 13:59
Well, then you're left with blending to 24 fps, or just leaving it all at 30 fps.

bigdog660
13th November 2008, 23:05
Anyone have an idea what's causing this error?

http://www.etnwx.com/images/VDubError001.jpg

All of the Required plugins are in the plugin directory.

Here is my script:

LoadPlugin("C:\Program Files\AutoGK\DGMPGDec\DGDecode.dll") # 1.5.0
mpeg2source("VTS_01_1.d2v")
AnimeIVTC(mode=1, aa=2)

TIA!

Adub
14th November 2008, 02:38
You need one of the MaskTools V1.xx versions. Get it here:
http://manao4.free.fr/MaskTools-v1.5.8.zip

fleon
14th November 2008, 20:13
@the_toof

I cant wait for the next relase of AnimeIVTC() that will fix mine and rsvolcom issue, is there are release date?:)

thetoof
14th November 2008, 22:36
I'm deep into exams, term papers, exam corrections (teacher assistant) and a few other thingies... I can't give any estimation. (School's over in a month... but I'll try to do it before)

fleon
15th November 2008, 05:14
ok I understand, I will wait for your release thanks!

bigdog660
15th November 2008, 06:31
You need one of the MaskTools V1.xx versions. Get it here:
http://manao4.free.fr/MaskTools-v1.5.8.zip

Thanks, that did the trick!

@Tron@
18th November 2008, 20:46
Hi all!

Please explain why AnimeIVTC () does not work with masktools-v2.0a35 and gives a error???

Since mvtools-v2.1.0 he refuses to work - issues in the crash with this version although the MVTools_V1.9.7.7 works! How fix it ??? plz help :cry:

RsVolcom
18th November 2008, 23:53
I'm deep into exams, term papers, exam corrections (teacher assistant) and a few other thingies... I can't give any estimation. (School's over in a month... but I'll try to do it before)

ugh...me too I couldn't use it now if you made it.

Good luck

thetoof
19th November 2008, 03:51
masktools2?? nothing can possibly go wrong with that...

MVTools 2, yes, there is a syntax change and the next release will be compatible with it (including mods for MCBob and TempGaussMC_beta1). I have to work more than 12 hours a day for the next three weeks, so unless I do it to get as far as I can from social sciences, it won't be done for a little while.

On another note, thx RSVolcom and good luck to you too :)

@Tron@
19th November 2008, 04:43
masktools2?? nothing can possibly go wrong with that...

but it probably is wrong ... but that could theoretically cause a mistake????

MVTools 2, yes, there is a syntax change and the next release will be compatible with it (including mods for MCBob and TempGaussMC_beta1). I have to work more than 12 hours a day for the next three weeks, so unless I do it to get as far as I can from social sciences, it won't be done for a little while.

On another note, thx RSVolcom and good luck to you too :)

As well be time to update))), all in anticipation %)

Adub
19th November 2008, 04:44
@Tron@
AnimeIVTC is not compatible with that version of mvtools yet. Use this version if you want: http://avisynth.org.ru/mvtools/mvtools-v1.11.4.5.zip

Your masktools version should be working correctly. However, if you don't even provide the error that was generated, we certainly can't help you. Please don't come here screaming for help, and then provide no information.

Please provide the error, your script, and what exactly you are trying to do with the script that causes the error.

Yutari
19th November 2008, 07:03
I love this, it works wonders.

Except I've been getting an error with mode=6:
http://img201.imageshack.us/img201/9042/vinverseerrorjf1.jpg

And the avs file:
LoadPlugin("C:\Documents and Settings\Yotsuba\Desktop\dgmpgdec153\DGDecode.dll")

MPEG2Source("GL_OVA.d2v")
Crop(4,0,-2,0)
Lanczos4Resize(720,480)
AnimeIVTC(mode=6, aa=2, killcomb=2, MT=false, precision=3, pass=0)

It's only occured with mode=6 (with any settings). Mode=5 previews fine in VDub, with the exception of the interlaced credits. All the dll files are in the AviSynth plugins folder. I get the feeling that I might be overlooking something, but I can't think of what.

thetoof
19th November 2008, 07:23
You must tell the function how to deal with the interlaced credits.
mix= istart/endx= estart/endx=
I'll update the error messages.

Yutari
19th November 2008, 10:54
Ah, see, I knew it was gonna be something simple that I missed. Just proves that I should do this stuff in the early hours of the morning when I'm only half awake.

Thanks so much for your fast reply!

Leinad4Mind
20th November 2008, 23:22
Well, i have try to use animeivtc, but this ask many filters to load... i have load all .dll, and import some avsi, and now it ask for the reduceflicker, I have already load the plugin, but he says that he is unbale to open it. what can i do?

soulstaker
20th November 2008, 23:30
Well, i have try to use animeivtc, but this ask many filters to load... i have load all .dll, and import some avsi, and now it ask for the reduceflicker, I have already load the plugin, but he says that he is unbale to open it. what can i do?

Leave everything on the plugins folder of Avisynth.

Shiznadnaz
24th November 2008, 22:14
I tried to use srestore but got an error in AvsP saying
http://i33.tinypic.com/5poa5d.jpg

Adub
24th November 2008, 22:49
Did you import it? And why are you posting this here?

Shiznadnaz
24th November 2008, 22:56
Did you import it? And why are you posting this here?

No I did not. I posted here because thetoof suggested I use srestore for my source.

Adub
24th November 2008, 23:23
Okay.

Well, all you need to do is add Import("C:\Program Files\Avisynth 2.5\plugins\srestore.avs") to the top of your script and you should be fine.

lansing
24th November 2008, 23:29
toof, for creating a vfr clip, it would be more convenient if the function can auto generate a mix upon user input of xstartn/xendn etc, follow it by a little auto frame number conversion for the check mode on user inputted source type, it would save time and confusions.

for example, if I have a clip combination of 50i+50e+50i, upon entering xstartn/xendn, the function can auto generate a mix for it, and also during checking of framerate changes on the 50e, the function can auto convert the frame number from 29.98fps back to 23.976fps for this section based on inputted x, so I don't have to switch check mode back and forth.

Shiznadnaz
25th November 2008, 20:08
Thanks, that worked but there is still interlaced frames. :confused:

thetoof
25th November 2008, 22:44
lansing, good point. I'll look into that in a few weeks.
Thanks, that worked but there is still interlaced frames. :confused:
You never had (at least in the samples posted) any interlacing. You had double blends.
Please post your complete script and the problematic section.

Codex0nz
26th November 2008, 03:07
im now wondering if this script would help about my situation (http://forum.doom9.org/showthread.php?t=143053) the main thing i can't get my head around is trying to derainbow, and which type of blending is going on -_-

thetoof
26th November 2008, 03:26
It is indeed field blending, so you could try
AnimeIVTC(mode=2, iregion="PAL")
Out of curiosity, what is the lenght of 1 episode (with opening, ending and preview)?
For derainbowing, you could add tcomb(settings) before animeivtc, or strong FFT3Dfilter on plane=3 afterwards (maybe with a little saturation boost to correct washed out colors)
imo, you should also add some temporal denoising (maybe mvtools or dfttest) to improve overall quality and remove a few remains of the blend artifacts

Codex0nz
26th November 2008, 11:44
It is indeed field blending, so you could try
AnimeIVTC(mode=2, iregion="PAL")
Out of curiosity, what is the lenght of 1 episode (with opening, ending and preview)?
For derainbowing, you could add tcomb(settings) before animeivtc, or strong FFT3Dfilter on plane=3 afterwards (maybe with a little saturation boost to correct washed out colors)
imo, you should also add some temporal denoising (maybe mvtools or dfttest) to improve overall quality and remove a few remains of the blend artifacts

wow thank you so much, i will be trying this right away! :D

the exact length of that episode is 24 minutes and 54 seconds, most episodes are just under 25 minutes

how would i go about adding the saturation?

You have to remember, you guys are the masters and im the newbie :P

Adub
26th November 2008, 17:31
Tweak(sat=x)

Codex0nz
29th November 2008, 09:40
Trying to run this script at the moment, having some trouble though, first i couldnt get it running because i completely skimmed over getting tyhe resource pack, so i have done that now and it's all installed correctly, but now i am getting an error :(

"Avi Synth Script Error
Evaluate: System exception - Illegal Instruction
(Anime IVTC - v1.06, line 148)"

what have i done wrong?

EDIT: The lines are:


147: #HT decimation
148: htdecim = matched.tdecimate()

EDIT2: After replacing mvtools with the core 2 sse3 version instead of the ss4 version it worked, but now it fails to load "ReduceFlickerSSE3.dll" even though it is present :/

EDIT3: adding it to manually load worked, now to fix my syntax

Shiznadnaz
2nd December 2008, 22:42
Script
Import("C:\Program Files\AviSynth 2.5\plugins\Srestore.avs")
DGDecode_MPEG2Source("C:\Users\Saddam\Desktop\Bleach Episode 86 English Dubbed.d2v", cpu=0)
srestore(omode="pp3", cache=10)
decimate()


This a random image I spotted in the video while looking for interlaced frames (this one has srestore applied to it) - http://i35.tinypic.com/2vvqt4y.png

This is the original image - http://i35.tinypic.com/zkhc06.png

Here is a sample if you need it - http://www.mediafire.com/?iydbjy0m1rb

thetoof
3rd December 2008, 04:00
Are you sure the frame you uploaded is in the sample available? I can't see it. Actually, the sample you provided contains only blends... no combing at all.

Shiznadnaz
3rd December 2008, 17:42
The image I uploaded was from the .d2v file. Here is a sample from the mpg file http://www.mediafire.com/?dkumm02ztmm

thetoof
3rd December 2008, 23:14
Again, I see blends but no combing... could you give me the exact frame # that matches the screenshot provided?

Shiznadnaz
4th December 2008, 00:14
Strange, I just checked the samples to find the frame # but there seem to be no interlaced frames there but when I check the d2v file there are interlaced frames, why is that?