Log in

View Full Version : Need help deinterlacing some anime


saint-francis
25th September 2008, 21:47
So I'm working on an anime series and I can't seem to deinterlace it properly. Aside from theory I know next to nothing about deinterlacing so I don't know how to begin to tackle it manually. The AviSynth script creator in MeGUI fails on about 1/2 of the episodes and the ones it doesn't fail on come out, strange.

Here is a screenshot of what I'm talking about:

http://i182.photobucket.com/albums/x270/saint-francis-photos/avatarproblem.jpg

Notice the echo of his collar and his fists and, well, around just about everything? What is that?

This is what MeGUI suggests I use to deinterlace the episodes that the analysis finishes on:

DGDecode_mpeg2source("D:\avatar s1e1\VTS_03_1.d2v")
tfm(order=1).tdecimate(hybrid=1)


I asked about this in one of the MeGUI threads since the analysis tool fails on some of these and it was suggested there that it is a hybrid source and I should post a query in the AviSynth usage section....so here I am. Any thoughts?

[MA]Debito
25th September 2008, 22:25
Looks like either some blending or haloing. Without seeing the full clip I'd guess it's a case of Haloing. I'd try out BlindDehalo and see if it looks better.

saint-francis
25th September 2008, 22:55
Debito;1188244'] Without seeing the full clip I'd guess it's a case of Haloing.

Can you suggest a way in which I can make a clip to upload? I'm not sure how to take a clip out of a .VOB.

45tripp
25th September 2008, 23:33
load it into dgindex,
select a scene with [ and ],
'file' -> 'save project and demux'

thetoof
27th September 2008, 15:18
Avatar is a hybrid source, so I'd recommend doing a VFR clip without blending the 30p sections into 24p (which is what might be introducing the artifacts you're seeing)
animeivtc(mode=5,other settings)

saint-francis
28th September 2008, 22:54
Sorry about the delay. I was encoding for several days straight and just finished now.

Here's (http://www.mediafire.com/?sharekey=3916f3e397e1cb0dd2db6fb9a8902bda) a clip.

45tripp
29th September 2008, 01:15
Sorry about the delay. I was encoding for several days straight and just finished now.


you must be exhausted ;)

sygrup
29th September 2008, 03:30
Avatar is a hybrid source, so I'd recommend doing a VFR clip without blending the 30p sections into 24p (which is what might be introducing the artifacts you're seeing)
animeivtc(mode=5,other settings)

I tested this
But , it* didn't dissolve the problem..
what is use your version.

ubertoast
29th September 2008, 03:49
I have been encoding avatar as well, and comming across the same problem. The best result i can get so far is using a dehaloing script.

You can find some using the search function. The one i am using is from didee here

http://forum.doom9.org/showthread.php?t=102794&highlight=haloing&page=3

scroll down a bit.

EDIT:
Here is another better solution, although it is a LOT slower.
http://forum.doom9.org/archive/index.php/t-129774.html
Scroll down to mp4-guys script.

saint-francis
16th November 2008, 18:35
Avatar is a hybrid source, so I'd recommend doing a VFR clip without blending the 30p sections into 24p (which is what might be introducing the artifacts you're seeing)
animeivtc(mode=5,other settings)

Can someone please help me understand how to do this? I'm really weak on this type of thing. I have been reading the animeIVTC documentation but I'm having a hard time wrapping my head around it.

Nightshiver
16th November 2008, 18:53
what do you mean understand? How to use it? When to use it?

He suggested mode=5 because your source is hybrid, and doing VFR will solve the problem.
VFR = Variable Frame Rate

saint-francis
16th November 2008, 19:20
what do you mean understand? How to use it? When to use it?

He suggested mode=5 because your source is hybrid, and doing VFR will solve the problem.
VFR = Variable Frame Rate

The documentation says that two passes are necessary for VFR. So as I understand it, this entail creating a script, running a lossless encode (pass 1) and then running a different script on the resulting file (pass 2). I just don't understand how to conduct the different passes. I don't understand what settings to apply and when.

Adub
16th November 2008, 20:19
No.

Do something like this:

AnimeIVTC(mode=5, pass=1, blah, blah)

Load into Virtualdub, and click "Run Video Analysis Pass".
This should generate some text files in the same directory as your script. That's what we want. Let the (1st) pass finish.

Then go back and change your script to:
AnimeIVTC(mode=5, pass=2, blah, blah)

And load that script into which ever program you want for a lossless encode. I prefer VirtualDub again, with ffdshow's huffyuv encoder. But you can use MeGUI with the pre-render option if you like.

NOTE: Another option to run the first pass is to use the "Queue Analysis" button in MeGUI. What this does is essentially "play" the script as fast as it can.

saint-francis
16th November 2008, 20:35
No.

Do something like this:

AnimeIVTC(mode=5, pass=1, blah, blah)

Load into Virtualdub, and click "Run Video Analysis Pass".
This should generate some text files in the same directory as your script. That's what we want. Let the (1st) pass finish.

Then go back and change your script to:
AnimeIVTC(mode=5, pass=2, blah, blah)

And load that script into which ever program you want for a lossless encode. I prefer VirtualDub again, with ffdshow's huffyuv encoder. But you can use MeGUI with the pre-render option if you like.

NOTE: Another option to run the first pass is to use the "Queue Analysis" button in MeGUI. What this does is essentially "play" the script as fast as it can.

Thanks. I'm working on it right now.

Adub
16th November 2008, 20:49
No problem.

saint-francis
18th November 2008, 15:09
Nope. That didn't work. I also tried it with DeHalo_Alpha. Does anyone have any other suggestions?

thetoof
18th November 2008, 18:45
I suggested AnimeIVTC for the ivtc part of your script (optimal field matching + decimation) since the thread title is "need help deinterlacing some anime"
However, you also need a strong halo remover... try mt_convolution (there's a very informative post by *.mp4 guy here (http://forum.doom9.org/showthread.php?t=140623)) or maybe YAHR (http://forum.doom9.org/showthread.php?p=1205653#post1205653)...

Mug Funky
19th November 2008, 05:25
that sort of vertical halo/aliasing is caused by field-flippage in final cu*t pro being done the wrong way (unfortunately this process is transparent to the user, and it's a real huge pain doing it the right way in this program).

you could mimic it with:

assumetff()
bob(0,.5)
separatefields().selectevery(4,1,2).weave()

unfortunately this method of flipping fields without a spatial or temporal shift is quite lossy.

dehalo_alpha limited to vertical could help, you may need to do it on bobbed video though.

Chainmax
7th July 2009, 18:50
aWarpSharp has the side-effect of doing some dehaloing in addition to its line-thinning. Try adding a default call to your filterchain and see if it helps.

shoopdabloop
8th July 2009, 04:01
aWarpSharp is bleh.. warpsharp.dll 2003 version gives much more sharpening without line-wobbling, but i guess it just comes down to personal preference.

Chainmax
8th July 2009, 05:04
Well, I recommended aWarpSharp for its secondary effect of slight halo removal. Also, bear in mind that SEt is creating a new version that might end up having no bugs at all: it currently no longer suffers for the green smudges on the sides of the screen.