This script still good ?

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
Heavy amv
Joined: Tue Nov 25, 2008 10:16 am
Location: FRANCE
Org Profile

This script still good ?

Post by Heavy amv » Sun Jan 02, 2011 3:12 pm

A long time ago i used this script full of oldies... and i guess today a better job can be made for it :

Code: Select all

directshowsource("g:\xxxxx.mkv", audio=false)
ConvertToYV12()
undot()
Spline64Resize(848,636)
ConvertToYV12()
DeHalo_alpha(brightstr=2, ss=5.0)
ConvertToYV12()
aWarpSharp(depth=30.0, blurlevel=4)
convertToYV12()
undot()
My source is a DVD NTSC that i want to upscale in 848x636 to reach the 480p. The colors are pretty good, but too much halo and huge borders...

User avatar
Pwolf
Friendly Neighborhood Pwaffle
Joined: Thu May 03, 2001 4:17 pm
Location: Some where in California, I forgot :\
Contact:
Org Profile

Re: This script still good ?

Post by Pwolf » Sun Jan 02, 2011 5:40 pm

it depends on the source. you can't use the same script for everything.

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: This script still good ?

Post by mirkosp » Sun Jan 02, 2011 6:35 pm

Don't use directshowsource to load MKVs, use FFVideoSource instead (you need to get ffms2).
There's a uselessly redundant amount of converttoyv12 for no good reason (chances are high that your input is yv12 to begin with, actually).
The awarpsharp depth is absolutely insane...
Removegrain(1) is now used instead of undot() I guess, and why putting it twice anyway? Use it only before the resize.
Are you using avisynth 2.6a OR a previous (and stable) version? Because spline64 is slightly bugged (or so I was told) in versions of avisynth prior to 2.6a, so you should be using spline36resize instead if you're on 2.5.8 or earlier (but if you're on a earlier version, you should look into upgrading to 2.5.8).
The amount of dehaloing seems quite strong, you'll rarely need such high amounts of dehaloing. For anime, you'll almost always want to set the darkstr to 0 and leave the brightstr alone or increase it just slightly (2 is quite high and there is a serious risk of killing detail, although with the amount of supersampling you're doing it might not be that noticeable).
I guess this is all I have based just on the script itself, I'll echo Pwolf with the "depends on the source" for the actual usefulness of it.
Image

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: This script still good ?

Post by Mister Hatt » Mon Jan 03, 2011 1:42 am

This source will look a lot better if you don't use avisynth at all and just feed your mkv into whatever editor instead, guaranteed.

User avatar
Pwolf
Friendly Neighborhood Pwaffle
Joined: Thu May 03, 2001 4:17 pm
Location: Some where in California, I forgot :\
Contact:
Org Profile

Re: This script still good ?

Post by Pwolf » Mon Jan 03, 2011 1:52 am

Mister Hatt wrote:This source will look a lot better if you don't use avisynth at all and just feed your mkv into whatever editor instead, guaranteed.
He means convert it to a lossless source first then feed it into what ever editor you use.

Heavy amv
Joined: Tue Nov 25, 2008 10:16 am
Location: FRANCE
Org Profile

Re: This script still good ?

Post by Heavy amv » Mon Jan 03, 2011 8:21 pm

Yeah maybe, maybe not. The footage is quite bad, above all when you know that it can look much better with somme filters. The problem i have for this source is the same for everyone who try to ajust a DVD NTSC source. I know there is some really usefull filters which enable me to improve the quality. I dont expect a bluray or a true 480p anime quality. So let me show you samples with a new script :

Code: Select all

convertToYV12()
Removegrain(1)
Spline64Resize(848,636)
ConvertToYV12()
aWarpSharp(depth=20.0, blurlevel=2)
DeHalo_alpha(brightstr=1.5, ss=4.0)
BlindDeHalo3( rx=2.0, ry=2.0, strength=150, 
 \            lodamp=2.0, hidamp=2.0, sharpness=0.0, tweaker=0.0,
 \            PPmode=0, PPlimit=0, interlaced=false)
WarpSharp()
Ever if it'is not meant for it, awarpsharp can reduce the halo edge. Thats why it is before Dehalo and Blind dehalo3. I used one by one, but together they make a good result for me. Maybe im wrong, just tell me what you think. At right the original ajusted to the left one, the filtered footage.

Image Image Image

I dont really care about the details, cause the edit rythm will be quite fast and some effects will be added.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: This script still good ?

Post by Scintilla » Mon Jan 03, 2011 9:04 pm

Heavy amv wrote: Image
When even *I* think the characters' faces look awful, you've probably used too much warpsharpening. Just sayin'.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: This script still good ?

Post by Mister Hatt » Tue Jan 04, 2011 2:02 am

OK, Avatar. AWESOME. You have selected a DVD known for being one of the most horrendously mastered discs EVER. I actually wrote a filterchain that fixes it as best as possible a while ago, I am fairly certain it was for this forum, mirkosp would probably have the link.

As far as your actual filtering goes there, your warpsharpening (both awarpsharp and warpsharp) is making the problems significantly worse, don't use it at all. The YV12 conversion is not required. Your resizing should be done AFTER all the rest of it, and not with spline64, use spline36 instead. I have no idea how good that dehaloing is working for you but it is far too strong. All in all, after looking at those shots, IMO it looks worse after you've finished with it.

I strongly suggest using the actual DVD instead of random MKVs as well, you will get much better results. The show has some odd ghosting effects which you cannot remove if you don't have the DVD, and the person who ripped it to that MKV obviously has no idea what they're doing. I know you said you don't care about detail but you have actually DEFORMED lineart there. It is also blurry and aliased and line thickness varies. Look up that other thread and run the filters there on the DVD, maybe with some review and updating of it.

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: This script still good ?

Post by Mister Hatt » Tue Jan 04, 2011 2:10 am

Update: this thread here http://www.animemusicvideos.org/forum/v ... 5&t=100217

Seems the haloing is caused by whatever idiot made that MKV for the most part. Grab the DVD from somewhere and run the script in that thread. Should be pretty much fine as is. That thread has some generally interesting info on ghosting and temporal faggotry in bad DVD masters, so I recommend reading it in general anyway.

If someone could join these two posts?~

Heavy amv
Joined: Tue Nov 25, 2008 10:16 am
Location: FRANCE
Org Profile

Re: This script still good ?

Post by Heavy amv » Tue Jan 04, 2011 9:50 am

Thanks a lot for the link. Im "getting" the dvd releases...

Locked

Return to “AviSynth Help”