Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th January 2010, 11:53   #61  |  Link
kool
Registered User
 
Join Date: Nov 2009
Posts: 79
Hi LaTo, thanks for this wonderful script, my first time using it, need your suggestion. Here is small clip of source, I have tried with

MCTemporalDenoise(settings="medium")
GradFun2DBmod()

What will be your suggestion here?
kool is offline   Reply With Quote
Old 28th January 2010, 12:33   #62  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by kool View Post
Hi LaTo, thanks for this wonderful script, my first time using it, need your suggestion. Here is small clip of source, I have tried with

MCTemporalDenoise(settings="medium")
GradFun2DBmod()

What will be your suggestion here?
GradFun2DBmod is integrated in MCTemporalDenoise, so you should see "enhance" option instead (faster)...

Last edited by LaTo; 28th January 2010 at 14:39.
LaTo is offline   Reply With Quote
Old 28th January 2010, 12:53   #63  |  Link
kool
Registered User
 
Join Date: Nov 2009
Posts: 79
ah, That is why my encoding was slow . Would you suggest to use MCTemporalDenoise(settings="medium") and I will get GradFun2DBmod to work with defaults, or I should touch any params?

If I want to make some changes to GradFun2DBmod, how I would do that with MCTemporalDenoise, and what are the most important param to play with?

Thanks in advance.
kool is offline   Reply With Quote
Old 28th January 2010, 14:16   #64  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by kool View Post
ah, That is why my encoding was slow . Would you suggest to use MCTemporalDenoise(settings="medium") and I will get GradFun2DBmod to work with defaults, or I should touch any params?

If I want to make some changes to GradFun2DBmod, how I would do that with MCTemporalDenoise, and what are the most important param to play with?

Thanks in advance.
It's in the .avsi of MCTemporalDenoise:

Code:
### +---------+
### | ENHANCE |
### +---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
### | enhance : Enable GradFun2DBmod post processing to enhance flat areas (may avoid banding & blocking when encoding too)                                               |
### | GFthr   : Gradfun2db threshold [1.0=off,...]                                                                                                                        |
### | AGstr   : AddGrain strength  [0.0=off,...]                                                                                                                          |
### | bias    : Brightness bias for adaptative grain mask (the higher, the less grain in dark areas & the more grain in bright areas) [-1=off,0=input,1...254,255=invert] |
### | temp    : Temporal stabilization for grain (the higher, the more calm) [0=nervous,...,100=static]                                                                   |
### +---------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Last edited by LaTo; 28th January 2010 at 14:40.
LaTo is offline   Reply With Quote
Old 6th February 2011, 12:54   #65  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,364
One year since last post, but I think it might be for good on the filter.

Its actually 2 things. Im having some ghosting problems on an anime source. Its in the sides of black strokes in a fast motion scene, I discarded mask, radius,mode.... I can upload example if you want.
The second one is more a petition, since this dither is going to be encoded in some way, it will mostly convert into annoying blocking. Maybe it could better fit a film grain type of noise rather than the actual small random pixels, but I know that that doesn't depend on you since gradfun calls addgrain, but maybe adding the grain size parameter could help.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 12th February 2011, 01:35   #66  |  Link
egrimisu
Registered User
 
egrimisu's Avatar
 
Join Date: Jan 2008
Location: Romania - neighbor of Dracula
Posts: 327
why addgrain and not grainfactroy3? grainfactory seems more nice.
__________________
I7 920 @ 3.60GHz + Thermalright Ultra 120 Extreme
Asus P6T Deluxe, 6GB Corsair XMS3 1600MHZ 8-8-8-24
2x1TB Samsung + 1x500GB Samsung,
Corsair 520W, Thermaltake Soprano DX
GeForge GTX280
egrimisu is offline   Reply With Quote
Old 12th February 2011, 16:44   #67  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,364
my bad, I just discovered grainfactory3 in the first page Im trying to pass it through mask=true, does it work?
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 12th February 2011, 17:01   #68  |  Link
SilaSurfer
Registered User
 
SilaSurfer's Avatar
 
Join Date: Oct 2009
Posts: 212
With mask=true you are dihtering parts where there is susceptibility that banding will occur. Why use GrainFactory's silver grain affect only in those areas, when in my opinion should be used in whole picture since it really fools your eyes that there is more detail in it.
SilaSurfer is offline   Reply With Quote
Old 12th February 2011, 18:46   #69  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,364
Why bother dithering if compression will band it again? Answer would be, use a better/different dithering or use a better/different compressor. Well, at the moment I'm looking at the first, to use grainfactory for dithering, since my target is grain free anime.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 25th April 2011, 07:36   #70  |  Link
Nekomander
Registered User
 
Nekomander's Avatar
 
Join Date: Feb 2011
Posts: 4
any suggestion/s with this? the source itself has banding issues.



source: here or here

Last edited by Nekomander; 25th April 2011 at 13:50.
Nekomander is offline   Reply With Quote
Old 26th April 2011, 03:48   #71  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
Source practically perfect. Nothing you can do with it.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 27th April 2011, 04:51   #72  |  Link
Nekomander
Registered User
 
Nekomander's Avatar
 
Join Date: Feb 2011
Posts: 4
if you look closely (bottom right) theres banding. i just can't figure out a way to get rid of it without taking away too much details.
Nekomander is offline   Reply With Quote
Old 27th April 2011, 11:52   #73  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
You want to disguise the noise using for this? By smoothing you get nothing, when coding, since color space contains only 8 bits.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 27th April 2011, 13:03   #74  |  Link
Nekomander
Registered User
 
Nekomander's Avatar
 
Join Date: Feb 2011
Posts: 4
i just want to remove the artifact and have a result from this>

to this>
Nekomander is offline   Reply With Quote
Old 28th April 2011, 05:45   #75  |  Link
Vitaliy Gorbatenko
viterra
 
Join Date: Feb 2003
Location: St. Peterburg, Russia
Posts: 142
Then you need to store videos in lossless format. I'll say it again - can not save the video in h264 or divx and have the picture without this artifact. All you can do - to mask its noise and no more.
Vitaliy Gorbatenko is offline   Reply With Quote
Old 28th April 2011, 12:46   #76  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
The picture is perfectly colorbanding-free in YV12 colorspace. The culprit is the final YUV to RGB converter in your player. See the difference:
Code:
AVCSource ("00005.dga")
Interleave (ConvertToRGB24 ().Subtitle ("ConvertToRGB24"),
\           yv12torgb24hq () .Subtitle ("yv12torgb24hq"))
To achieve a better result, all you have to do is just adding a bit of noise. This will smooth the steps created by the RGB conversion.
Code:
AddGrainC (var=1.2, uvar=1.2)
If adding noise makes your encode too big or too noisy, try this instead:
Code:
GradFun3 (thr=0.35, ampo=2.0)
Edit : typo
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding

Last edited by cretindesalpes; 29th April 2011 at 12:54.
cretindesalpes is offline   Reply With Quote
Old 29th April 2011, 07:11   #77  |  Link
Nekomander
Registered User
 
Nekomander's Avatar
 
Join Date: Feb 2011
Posts: 4
true. switched back to my usual renderer (madvr) and it was flawless, not so with evr custom. thanks for the script/s
Nekomander is offline   Reply With Quote
Old 17th June 2013, 09:58   #78  |  Link
DeNeDe
Registered User
 
Join Date: Apr 2010
Posts: 11
hey guys,i'm trying to use this script, but can't make Megui to load it. everytime it says that "Object reference is not set to an instance of an object"

the script that i use is:

Code:
LoadPlugin("C:\Users\DeNeDe\Downloads\MeGUI_2356_x86\tools\avs\directshowsource.dll")
DirectShowSource("C:\Users\DeNeDe\Downloads\RDG_2.ts", fps=29.970, audio=false, convertfps=true).AssumeFPS(30000,1001)
#deinterlace
#crop
LanczosResize(1280,720) # Lanczos (Sharp)
#denoise
#Trim
Trim(420, 8361) ++ Trim(10160, 21338) ++ Trim(23137, 48371) ++ Trim(50170, 50768)

ConvertToYV12()

#Debanding
Import("C:\Program Files (x86)\AviSynth 2.5\plugins\GradFun2DBmod.v1.5.avsi")
GradFun2DBmod(thr=3,str=0,mask=false)
and the plugins directory from avisynth looks like this


http://i.imgur.com/jNMVQV4.png
DeNeDe is offline   Reply With Quote
Old 3rd November 2019, 17:31   #79  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Maybe somebody can help me with this error.

Code:
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\AddGrainC\AddGrainC.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\Average\Average.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\AVS\DCTFilter\DCTFilter.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\AVS\Deblock\Deblock.dll")
Import("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\Deblock_QED\Deblock_QED.avsi")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\DFTTest\dfttest.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\EEDI2\EEDI2.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\FFT3DFilter\fft3dfilter.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\FFT3DGPU\FFT3dGPU.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\AVS\GradFun2DB\gradfun2db.dll")
Import("D:\Projekte\VB\staxrip\bin\Apps\Plugins\AVS\GradFun2DB\GradFun2DBmod.avsi")
Import("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\LSFmod\LSFmod.avsi")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\masktools2\masktools2.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\mvtools2\mvtools2.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\RgTools\RgTools.dll")
LoadPlugin("D:\Projekte\VB\staxrip\bin\Apps\Plugins\both\ffms2\ffms2.dll")
Import("D:\Projekte\VB\staxrip\bin\Apps\Plugins\avs\MCTemporalDenoise\MCTemporalDenoise.avsi")
FFVideoSource("D:\Samples\Test.mkv", cachefile="D:\Samples\Test_temp\Test.ffindex")
MCTemporalDenoise(settings="medium")

Code:
Script Error

Script error: expected "val", "bool", "int", "float", "string", "array", or "clip"
(D:\Projekte\VB\staxrip\bin\Apps\Plugins\AVS\GradFun2DB\GradFun2DBmod.avsi, line 137, column 0)
(D:\Samples\Test_temp\Test_new.avs, line 11)
Code:
AddGrainC                   1.7.1
Average                     0.94
DCTFilter                   0.5.0
Deblock                     2013-12-03
Deblock_QED                 2011-11-29
DFTTest                     -
EEDI2                       0.9.2.0
FFT3DFilter                 2.6.7
FFT3DGPU                    0.8.2.0
GradFun2DB                  2010-03-29
GradFun2DBmod               1.5
LSFmod                      1.9
masktools2                  2.2.18
mvtools2                    2.7.41
RgTools                     0.98
ffms2                       2019-08-30 StvG
MCTemporalDenoise           1.4.20
stax76 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.