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

trevaaar
20th February 2009, 12:59
I live in PAL-land so anime DVDs without awful fieldblending are about as common as confirmed Bigfoot sightings. Normally AnimeIVTC(mode=2, iregion="PAL", oregion="NTSC", aa=0) works well enough but I've run into two examples where I still have problems:

Elfen Lied (sample from the end of an episode at http://www.mediafire.com/?gzjmvdwztxj): The credits look like 25i while the rest of the episode has tons of blended fields, not all of which get removed after AnimeIVTC.

Perfect Blue (the start is at http://www.mediafire.com/?gemzmgyoidy): I think this is a weird chroma problem but wouldn't have the first idea what's going on or how to fix it.

Anyone got any recommendations?

JediNight
20th February 2009, 21:41
Just a comment about trying to work with the script:
It would be a lot more helpful for all the DLLs and files to be in the same folder for extraction, instead of in separate folders. As well as a Default AVS with all the Import and Load calls provided.

It's taking a very long time to pick all the DLLs out of their separate folders and make sure im loading them all properly to even get the script to run...

trevaaar
21st February 2009, 04:00
As far as I'm aware the reason they're kept in separate folders is to comply with the licenses (distributing source with the release, keeping everything together, etc.) or to allow different versions for different systems (e.g. SSE3/SSE4 builds of mvtools).

thetoof
22nd February 2009, 21:28
You'll have fun with that Elfen Lied clip. Solution imo is to get the original NTSC video stream.

If you can't:
Identification of the source : interlacing on every frame of the credits, meaning that you must bob them (tgmc if you feel quality crazy) and do a framerate conversion to anything you'd like.
When bobbed, the panning scene in the train has 30 good frames in 50 (30p blend-converted to 25i), so
tempgaussmc()
srestore(frate=29.97) #or 30, you'll have to test further on your stream
and then you see that some sections are 30p and others are 24t (film blend telecined to 30p). I don't know any good deblenders that'd do blend-IVTC of hybrid material and handle well the 30p sections (you could post a request in the "another restore function" thread or simply leave it at 29.97
apply that deblending filtering to the ep and the bobbing + framerate conversion on the credits to 29.97 or 23.976, splice everything back in it's place. Do a lossless rendering pass of all that and throw at it your favorite VFR decimation (or CFR if you leave the "telecine blends" as-is).

For Perfect Blue, same advice, get the NTSC version or:
The chroma problem only seem to occur in odd fields, so a dumb way to solve it is: selecteven(), but this way you remove some clear frames. Again, this is worth a help request in MOmonster's thread, as it is a tricky blend removal issue.... one day I may learn how to code deblending, but heh, not now.

Thanks for your samples, it helped me learn more about norm conversions and will surely improve AnimeIVTC.

However, any further development and my participation in this forum will be halted for an undetermined period of time (I guess you noticed that I had almost stopped posting lately) because I have to deal with some serious issues at home that have already taken most of my time since last November (+ a few work rushes). If anyone wants to pick up where I left, PM me to get the unfinished 1.07, the to-do lists and the samples/screenshots to use for the guide.

I hope to find a solution soon enough to get back and release what I said I would. (more AnimeIVTC and the guide)

Laters,
Ismaëll-Antoine Gaumond

Nightshiver
22nd February 2009, 22:16
Sorry to hear that, toof :( Hope you can sort out your problems soon.

RsVolcom
22nd February 2009, 22:18
Good Luck!

n2k3
23rd February 2009, 22:42
:(
Good luck toof

Codex0nz
24th February 2009, 10:05
damn toof :( we need you

Codex0nz
24th February 2009, 22:59
Ok new problem -_- but first

Two people that i think would be perfect to take over until toof sorts out his personal life, MOmonster & mp4 guy, i hope one of them sees this and jumps at it :D since both are very knowledgeable and helpful whenever someone requests god like help lol

Now the problem

At the moment i am trying to deblend hack roots, so 25fps pal source trying to restore to 24fps

using this line:

animeivtc(mode=2, aa=0, iregion="PAL", oregion="NTSC", mt=true)

Although i keep getting ghosted frames like, a scene where theyre talking, her mouth will be closed but you can still see like 50% of the mouth open from the previous frame as if it has been laid over in photoshop at 50%

Also ghosting in scene changes, entire change but you could still see the faint colour of the monster from the previous scene overlaying the current frame.

I will post pictures if need be and a sample

Any help is appreciated :)

Codex0nz
28th February 2009, 05:34
Series: .hack//ROOTS
Source: Madman Australia
Problems: Field blending...that's about it as far as i can tell :S

Although i keep getting ghosted frames, eg, a scene where theyre talking, her mouth will be closed but you can still see like 50% of the mouth open from the previous frame as if it has been laid over in photoshop at 50%

Also ghosting in scene changes, entire change but you could still see the faint colour of the monster from the previous scene overlaying the current frame.

The current script im using:
DGDecode_mpeg2source("D:\Convert\Hack Roots\Test 2\vts_06_1.d2v", info=3)
ColorMatrix(hints=true, threads=0, interlaced=true)
#deinterlace

animeivtc(mode=2, aa=0, iregion="PAL", oregion="NTSC", mt=true)

crop( 4, 4, -4, -4)

BicubicResize(720,400,0,0.5) # Bicubic (Neutral)
oregion set to ntsc because im trying to restore it back to 24fps

Sample:
http://www.megaupload.com/?d=FVX6S4R0

Results:
http://img201.imageshack.us/img201/5066/picture2r.png
http://img23.imageshack.us/img23/3993/picture3s.png
http://img23.imageshack.us/img23/4992/picture4c.png
http://img23.imageshack.us/img23/8998/picture5a.png
http://img23.imageshack.us/img23/3858/picture7ipe.png


Any help is appreciated -_-;
copied here too

alc0re
12th March 2009, 00:51
These may be a dumb questions...forgive me, I'm pretty new to this stuff.

"What it does:
- High quality adaptative field matching for hard telecine"

1) Does that mean that AnimeIVTC will give me a better looking picture for just doing an IVTC on a hard telecined source than tfm(order=1).tdecimate() would?

2) I see AnimeIVTC uses McBOB. I use McBOB, but the newest modified one (v0.3u2) that uses NNEDI and MVTools2 branch...its called via MCBob2() as opposed to MCBob(). If I wanted to use that modified version with AnimeIVTC, can I just edit the avsi of the modified mcbob at the beginning where it says function MCBob2 and change it to function MCBob so that AnimeIVTC will work with it? Or are there other parts of the avsi I would have to edit?

Codex0nz
12th March 2009, 00:59
Toof has gone afk with life, so development has stopped until he returns :(

alc0re
12th March 2009, 01:04
Toof has gone afk with life, so development has stopped until he returns :(

Yah I read that...but my questions were not pertaining to new development. They are questions about its current level of functionality...

Nightshiver
12th March 2009, 20:23
Your questions are kind of easy to answer. High quality adaptive field matching for hard telecine. This doesn't mean Animeivtc has some secret super filter that will blow others away, it just uses the same filters you can find around the forum and puts it into an easy to use function. As for you second question, the script (AnimeIVTC) would have to updated for use with the new MCBob as well as use with mvtools2. You can't just rename things to make it work, it's more complicated than that. And if you read the faq, you would know that animeivtc uses more than mcbob. You can choose which bobber you want to use, e.g., tgmcb.

alc0re
13th March 2009, 02:07
Thanks

ikarad
13th March 2009, 16:54
Animeivtc is multithread or not?

Overdrive80
18th March 2009, 20:55
Animeivtc is multhread in some plugins, no in general.

The roof, luck and thanks for you wonderful work.

Great Dragon
22nd March 2009, 15:27
Hi
I have some problem with "true interlaced credits". Script do some kind of "rain drop effect".
http://openimage.ru/images/jnoyg1j8heaf9t1bo0zc_thumb.png (http://openimage.ru/viewer.php?file=jnoyg1j8heaf9t1bo0zc.png)

I've used this setting:
AnimeIVTC(mode=3,aa=3,omode=1,mix=4,estart1=0,eend1=30743,istart1=30744, iend1=32308, estart2=32309, eend2=32819)

Overdrive80
23rd March 2009, 21:28
One problem that detected is that this filter no detect interlaced in one plane if the video is composited of three planes o layers.

Nightshiver
24th March 2009, 20:47
Great Dragon - post a video sample.

Great Dragon
25th March 2009, 12:21
http://rapidshare.com/files/213304232/VTS_01_2.m2v

TheRyuu
30th March 2009, 09:11
What I could do with the sample:
http://www.mediafire.com/?odnd4yigyfm

#part1:
Mpeg2Dec3_Mpeg2Source("C:\Anime\Stuff\sample.d2v")
SetPlanarLegacyAlignment(true)

trim(855,0) #trim out credits

assumetff()
TempGaussMC_beta1mod(edimode="nnedi",MT=true)
Save to lags

#part2:
AVISource("C:\Anime\Stuff\sample-60p.avi")

p60to24p()
Save to lags, splice into final result.

Just some stuff I did cause I was bored apparently. I have no idea how AnimeIVTC does it.

ghscreenki
6th April 2009, 03:15
hi, kinda new to this stuff and basically, i'm a complete novice and i'm having trouble understanding some of your posts since English is not my primary language and i'm not used to the jargon you're using. Pardon me for sounding silly.

I read the documentation but I can't really understand "mix", "start/end" parameters. What I'm trying to accomplish is to create a VFR MKV and as far as I can understand, I just simply input the start and end frames of the OP and the ED. The problem is, I don't know where to put the start and end frames of the OP and ED into their correct placements.

Thanks

trevaaar
6th April 2009, 14:33
This time I'm trying to tackle the PAL Gilgamesh set and it's proving annoying as well. Credits are (annoyingly) a rather blurry 25i much like the Elfen Lied but I can't figure out how to tell what framerate the main episode/opening sequence is supposed to be in. How am I supposed to tell how many clean fields there are every second with there being so many frame repeats?

Great Dragon
6th April 2009, 17:21
TheRyuu, thanx i'll test it.

Nightshiver
6th April 2009, 21:45
hi, kinda new to this stuff and basically, i'm a complete novice and i'm having trouble understanding some of your posts since English is not my primary language and i'm not used to the jargon you're using. Pardon me for sounding silly.

I read the documentation but I can't really understand "mix", "start/end" parameters. What I'm trying to accomplish is to create a VFR MKV and as far as I can understand, I just simply input the start and end frames of the OP and the ED. The problem is, I don't know where to put the start and end frames of the OP and ED into their correct placements.

Thanks

No. You do not need to state the op and ed frames for vfr. To do VFR with animeivtc, you do this.

animeivtc(aa=0,mode=5,pass=1) (you can change aa to whatever you want.)

Load this into MeGUI. Then, press the "Queue Analysis Pass".
Let MeGUI run until it says the job is done. What this will have done is create some .txt files in the directory you specified for the output. Don't do anything to them.

Next, you will change your script to that it is
animeivtc(aa=0,mode=5,pass=2)

Load this into MeGUI. Do not press "Queue Analysis Pass". Encode as you would normally. There, all finished.

Umi
7th April 2009, 16:14
Hi, how can I fix this error?
Actually, I got this error on almost every plugin, but moving every DLL-file to the Plugins directory fixed the problem. But MVDegrain2 isn't a DLL-file so...

http://img26.imageshack.us/img26/1691/errorvey.jpg

@Tron@
7th April 2009, 18:14
Who knows when some planned to resume AnimeIVTC under MVTools 2?? it's been a very long time and no one took up the project???

Author or he threw back the draft???

In 2009 go out MVTools 2 AnimeIVTC or no ???

ghscreenki
8th April 2009, 00:11
No. You do not need to state the op and ed frames for vfr. To do VFR with animeivtc, you do this.

animeivtc(aa=0,mode=5,pass=1) (you can change aa to whatever you want.)

Load this into MeGUI. Then, press the "Queue Analysis Pass".
Let MeGUI run until it says the job is done. What this will have done is create some .txt files in the directory you specified for the output. Don't do anything to them.

Next, you will change your script to that it is
animeivtc(aa=0,mode=5,pass=2)

Load this into MeGUI. Do not press "Queue Analysis Pass". Encode as you would normally. There, all finished.
I used VirtualDub 1.6.17 because my laptop doesn't have one and I was offline trying to work on this so I didn't get megui.

Aside from that, I followed your instructions and still I didn't get the required result. After doing pass=2, I got this timecodes:

# timecode format v1
Assume 29.970030
# TDecimate v1.0.3 by tritical
# Mode 5 - Auto-generated mkv timecodes file
0,1015,23.976024
1016,1018,17.982018
1019,1802,23.976024
1803,1805,17.982018
1806,17537,23.976024
17538,17540,17.982018
17541,34066,23.976024
# vfr stats: 100.00% film 00.00% video
# vfr stats: 42588 - film 0 - video 42588 - total
# vfr stats: longest vid section - 0 frames
# vfr stats: # of detected vid sections - 0

The source is not 100% film. The source I have is undoubtedly a hybrid source and upon checking the encode, VirtualDub decimated the video segment into a 23.976 fps clip making the OP jerky. This is not what I want.

Nightshiver
8th April 2009, 03:32
@ghscreenki
Get MeGui. I know that it works 100% in MeGUI because I have done it before. I have not done an entire episode/movie VFR with Vdub. Could you send me a sample for the whole episode?

@Umi
What is mt set at? Do you have mt=true or mt=false? And what aa are you using?

@Tron
We are all waiting for someone to pick the job up. It'll get done when it gets done. I would do it myself but have no experience in writing avisyinth code/creating complex scripts.

ghscreenki
8th April 2009, 19:04
@ghscreenki
Get MeGui. I know that it works 100% in MeGUI because I have done it before. I have not done an entire episode/movie VFR with Vdub. Could you send me a sample for the whole episode?
It still doesn't work. AnimeIVTC's timecodes still reads the episode as 100% pure film.

I used a different approach though, I used tritical's tdecimate and I got the right output. Framerate is 29.976 and the OP is not jerky at all and the episode does not contain any duplicate frames. Strange thing is animeivtc works on other sources except this one.

Still want the the entire ep? It's 1.4+ GB big.

There's one problem though, how do I make... how do I say this. On MPC, Press F10 > Details. FPS is at 29.976 and do I make a VFR encode run at 23.976 without loosing the frames? Saw lots of anime DVD rips and they all run at 23.976 and I can't replicate it.

Nightshiver
8th April 2009, 22:37
Yes, I would still like to have the entire episode.

ghscreenki
9th April 2009, 13:21
@Nightshiver:

I hope you don't mind Megaupload.

http://www.megaupload.com/?d=GE0LBRVB
http://www.megaupload.com/?d=MQMDWKBQ
http://www.megaupload.com/?d=OL13T41F
http://www.megaupload.com/?d=6YQI96KA

4-parts. It also contains the d2v file. In case you're gonna ask, I ripped it using DVDecrypter and meGUI for the d2v.

Umi
9th April 2009, 20:53
@Umi
What is mt set at? Do you have mt=true or mt=false? And what aa are you using?

mt=false gives the same error and mt=true gives this error:
http://img185.imageshack.us/img185/8826/error2.jpg

I get those errors whatever aa I am using.

Nightshiver
10th April 2009, 01:08
Do you have the right versions of mvtools for those?
MT=true should be the official branch (not made by Fizick) 1.9.7.7
mt=false should be fizick's branch version 1.11.4.3

The mvanalysemulti error is something to do with mvtools. Check those please.

synmais
10th April 2009, 08:38
Hi, I have some issues with this (http://www.mediafire.com/download.php?ninygznyvzg).
The best result gives the mode=2, but credits became jerky.
If I use mix, then it gives some artefacts no matter what settings I use to.
I tryed TempGauss, but it was so slow(2nd pass with animeivtc with mode=1 & mt=true takes about 1,5 hour and tgauss with mt=true takes about 1-2 days)
please, help me=)

Umi
10th April 2009, 14:19
Do you have the right versions of mvtools for those?
MT=true should be the official branch (not made by Fizick) 1.9.7.7
mt=false should be fizick's branch version 1.11.4.3

The mvanalysemulti error is something to do with mvtools. Check those please.
Since I downloaded the Requirements.7z, I suppose I have the right versions.

Nightshiver
10th April 2009, 15:41
Yes, but please still check :) Also, could you post the entire script you are using? As another side note, if you do infact have the correct versions, then the only thing I would suggest is clearing out your plugins folder of avisynth, re-downloading the requirements package for animeivtc and only installing the plugins that make animeivtc work. I know for a fact that error you are getting is from mvtools, so something has to be wrong with it.

EDIT:

@synmais
Quality costs speed. Do a lossless rendering pass before you encode, as that will significantly increase the speed. As for the artefacts, try this script. It seemed to work for me. Note: It even the lossless file and the encoding thereafter will be slow ON THE CREDITS section because of the way that the credits have to be bobbed/decimated.

MPEG2Source("D:\test.d2v", cpu=0)
raw=MPEG2Source("D:\test.d2v", cpu=0)
a=raw.telecide().Decimate().trim(0,273)
source=raw.mcbob()
backward_vec = source.MVAnalyse(isb = true, pel=4, idx=1,search=3, overlap=6)
forward_vec = source.MVAnalyse(isb = false, pel=4, idx=1,search=3, overlap=6)
b=source.MVFlowFps(backward_vec, forward_vec, num=24000, den=1001, ml=100, idx=1).trim(274,2266)
c=raw.telecide().Decimate().trim(2267,0)
a+b+c

There were no artefacts that I could see in the credits. The trim parts work like the estart/istart portions of animeivtc. The first trim (a) goes like this (0,x) where x is the last frame before the credits start. The second trim (b) goes (x,x) where the first x is the first frame of the credits and the other x is the last frame of the credits. The third trim goes (x,0) where x is the start of the preview.


@ghscreenki
I also tried doing a vfr with animeivtc and it gave me the same odd results. But at least you found a method that works.

ghscreenki
10th April 2009, 22:01
@Nightshiver:

But how do I set the framerate to 23.976 and not 29.976? Without decimating, of course. Saw lots of VFR rips and they are set to 23.976.

Nightshiver
10th April 2009, 23:19
I'm not quite sure about that. Why would you want to? Is there something wrong in the playback of your 29.976 encode?

ghscreenki
11th April 2009, 05:34
Well, it's really nothing. Just a matter of personal preference. :)

Umi
12th April 2009, 00:19
Yes, but please still check :) Also, could you post the entire script you are using? As another side note, if you do infact have the correct versions, then the only thing I would suggest is clearing out your plugins folder of avisynth, re-downloading the requirements package for animeivtc and only installing the plugins that make animeivtc work. I know for a fact that error you are getting is from mvtools, so something has to be wrong with it.


LoadPlugin("C:\DGDecode.dll")
MPEG2Source("C:\VTS_01_1.d2v")
AnimeIVTC(aa=0, mode=5)

I also cleared out the plugins folder and installed the plugins for animeivtc, but then I get the "there is no function named nnedi" error.

synmais
12th April 2009, 18:30
@Nightshiver
Thx, I'll try it.

Nightshiver
13th April 2009, 00:09
@Umi
Well, that shouldn't be happening, as the requirements folder has nnedi. You re-downloaded the requirements package and put all necessary plug-ins in? If so, I can't imagine why you keep getting that error. Only other thing I can suggest is re-installing avisynth.

Umi
13th April 2009, 21:38
I tried to re-install avisynth, but that didn't seem to help either and I also tried on a different computer too, but I got the same error, so now the only thing I think of must be that I've done something wrong.
So, I uploaded a screenshot of the plugins folder.
http://img22.imageshack.us/img22/7348/monitorh.jpg

Does something look wrong?
Btw, I'm using the latest Avisynth 2.5.8, I have Visual C++ installed and I have put the avsrecursion.dll in the right folder (SysWOW64).

Maccara
13th April 2009, 23:53
By any chance, would registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AviSynth\plugindir2_5 point to incorrect location? Check that.

I had this issue (on xp x64) when I updated to avisynth 2.5.8 - for some reason it reseted the plugindir to the normal 64bit program files instead of the program files(x86) it was supposed to point to.

I just changed it manually and all was well.

Nightshiver
14th April 2009, 01:17
You should not have folders inside the plugins folder. Extract the actual plug-ins/scripts from the folders.

Umi
14th April 2009, 14:58
It works now.
Thank you!

Haunther
15th April 2009, 18:52
Hello,
i've got an anime (Naruto Shippuuden) with a VFR on 28.867457 and i'd like to change it on 23.976 through AnimeIVTC! Could you tell me how i set the line in the the script of avisynth?
These settings are correct: AnimeIVTC(mode=6, check=2, omode=1,killcomb=2, precision=3, overlap=8, aa=4)
Thank you so much!

Nightshiver
15th April 2009, 20:35
Unfortunately, I need more information. What is the file type and what is the source?