Quality issues

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Sora no Honou 空の炎
Joined: Sun Apr 05, 2009 9:52 pm
Status: The Sky Flame
Location: St. Louis, MO
Org Profile

Quality issues

Post by Sora no Honou 空の炎 » Sat Jan 09, 2010 7:42 am

I finally created my avi clips, and I noticed this problem. I get some weird color... lines... I don't really know what to call them. You can see it pretty clearly in the screenshot, especially on the sleeve, etc. How can I fix this?
Image

Here is my avisynth script... I have been having so many problems with this.

Code: Select all

MPEG2Source("C:\Users\Brandon\Videos\AMVs\Amv Creation\indexed\Samurai Champloo ep1.d2v",cpu=4)
TFM(d2v="C:\Users\Brandon\Videos\AMVs\Amv Creation\indexed\Samurai Champloo ep1.d2v",order=-1,mode=5,PP=7,field=-1,slow=2)
TDecimate()
Spline36Resize(848,480)
dfttest(sigma=14)
lsfmod(strength=100)
Image

User avatar
Emotive
...the Meditant
Joined: Sat Nov 04, 2006 12:20 pm
Org Profile

Re: Quality issues

Post by Emotive » Sat Jan 09, 2010 8:06 am

Inb4 mirkosp comes and really solves the issue, but have you tried removing each line of the script one by one in case one of them is to blame?
Image

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

Re: Quality issues

Post by mirkosp » Sat Jan 09, 2010 10:27 am

That's banding. Likely dfttest's doing, banding happens when denoising. Use gradfun2dbmod at the end of the script and you're done.
You'll need the gradfun2dbmod avsi, the gradfun2db dll, addgrainc 1.4 and masktools 2.0 and the removegrain 1.0. Last two should come with the amvapp so I think you already have them. Not sure, though.
Image

User avatar
Sora no Honou 空の炎
Joined: Sun Apr 05, 2009 9:52 pm
Status: The Sky Flame
Location: St. Louis, MO
Org Profile

Re: Quality issues

Post by Sora no Honou 空の炎 » Sun Jan 10, 2010 5:47 pm

So I clicked on the first link, the grandfun2db mod avsi, and am not sure what to do. Do I copy and past everything that is in the code, or do I leave out part of it? The reason I wonder this is because at the top of the code it says just who made it and when, and it is in a box of #s. So when I copy the code, I just put it in the notepad and name it grandfun2dbmod.avsi? Thanks. So after I do that I download the other things and paste them all in the avisynth plugins folder, and after that I can just put "Grandfun2dbmod()" at the end of my script and be done? Are there any variables that I should put in the ()s, or any plugins that must be added to the script? Thanks Mirko.

Image
Image

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

Re: Quality issues

Post by mirkosp » Sun Jan 10, 2010 5:53 pm

http://latoninf.free.fr/d9/GF/GradFun2DBmod.v1.5.avsi

That's the avsi that you need. :P The link was right after the bulk of explanations.
Anyway, calling it by default would be fine, however I suggest you to call it like this:

Code: Select all

gradfun2dbmod(temp=100)
Which tells it to generate calm grain, easier to compress than the default setting but still works well as a complexity mask to preserve the gradients. Dithering is the only way to ensure that gradients do not get fucked up when encoding to lossy most of the time. :(
Image

User avatar
Sora no Honou 空の炎
Joined: Sun Apr 05, 2009 9:52 pm
Status: The Sky Flame
Location: St. Louis, MO
Org Profile

Re: Quality issues

Post by Sora no Honou 空の炎 » Sun Jan 10, 2010 8:10 pm

I downloaded the zip folders, and saw that there are multiple files in them.
Image
Do I take all of them and put them into the avisynth plugins folder, or just some of them? Also in the grandfun2db one there were folders within folders. Again, which of these do I need. Thanks. Cant wait to finish this and get to editing.
Image

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

Re: Quality issues

Post by Scintilla » Sun Jan 10, 2010 10:18 pm

The only files you should really need are AddGrainC.dll (the actual plugin) and AddGrain.txt (the help file). The others look like source files, which would be useful if you wanted to see how it was coded, or compile it yourself, or change some of the code, or whatever. Most users won't care about those.

I thought there was only one file for GradFun2DBmod, the .AVSI...?
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

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

Re: Quality issues

Post by mirkosp » Sun Jan 10, 2010 10:35 pm

Scintilla wrote:I thought there was only one file for GradFun2DBmod, the .AVSI...?
Well, it needs some other stuff to work. :P But yeah, gradfun2dbmod has only the .avsi. However, he was talking about the plain gradfun2db, which is used by the gradfun2dbmod. It's the same as the addgrainc, you'll need only the dll and maybe the helpfile (which should be a .txt or .html) if you wish to keep it.
Image

User avatar
Sora no Honou 空の炎
Joined: Sun Apr 05, 2009 9:52 pm
Status: The Sky Flame
Location: St. Louis, MO
Org Profile

Re: Quality issues

Post by Sora no Honou 空の炎 » Mon Jan 11, 2010 12:00 am

Ok, I got granfun working. No more banding now. It looks a little grainy, but like you said, it's the only way that it can work. Is there anyway to fix this? If not, that's fine. It really isn't that bad. Thanks for dealing with all of the trouble mirko. Hopefully this will be the last time I have to.

Before
Image
After
Image
No filters
Image
Image

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

Re: Quality issues

Post by mirkosp » Mon Jan 11, 2010 1:16 am

Well, tecnically you can even just deband without introducing noise, but that kind of defies the point of debanding before encoding altogether. The final encode would entroduce banding again, the grain makes sure that the amount of banding introduced from the final lossy encode is cut down by a huge amount. The banding that makes it through with the lossy encode can just be easily removed with ffdshow's deband during playback, though.
Image

Locked

Return to “AviSynth Help”