The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 135 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Trying to access array offset on null - Line: 14 - File: inc/plugins/cookielaw.php(272) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/cookielaw.php(272) : eval()'d code 14 errorHandler->error_callback
/inc/plugins/cookielaw.php 272 eval
/inc/class_plugins.php 142 cookielaw_global_intermediate
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Trying to access array offset on null - Line: 14 - File: inc/plugins/cookielaw.php(272) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/cookielaw.php(272) : eval()'d code 14 errorHandler->error_callback
/inc/plugins/cookielaw.php 272 eval
/inc/class_plugins.php 142 cookielaw_global_intermediate
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once



This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

GrainFactory3 support for AviSynth ??
#1
Lightbulb 
Is there a reason it isn't included? I could have sworn it used to be but I could be mistaken.

I tested it and it works. It has "texture" variables that control how the grain looks, that Vapoursynth doesn't. (g1tex, g2tex, g3tex)

It works for both YV12 and YV24.

Works on both 32 and 64 bit AviSynth.

http://avisynth.nl/index.php/GrainFactory3

Import("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\GrainFactory3.avsi")
LoadPlugin("C:\PROGRA~1\Hybrid\64bit\Avisynth\AVISYN~1\AddGrainC.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\64bit\Avisynth\AVISYN~1\masktools2.dll")
ConvertToYV24(interlaced=false)
GrainFactory3(g1str=7,g2str=5,g3str=3,g1size=1.00,g2size=.80,g3size=.65)



There is a mod which is more like Vapoursynth in that it allows grain settings for chroma, and also can use f3kdb instead of AddGrainC as a grain generator.

I tested it and it also works. (Avoid any leading 0's in the settings, i.e., use .90, not 0.90)

It works for both YV12 and YV24.

Works on both 32 and 64 bit AviSynth.

https://github.com/dsamahentai/AviSynth_..._v1.2.avsi

Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\GrainFactory3mod_v1.2.avsi")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\AddGrainC.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\flash3kyuu_deband.dll")
ConvertToYV24(interlaced=false)
GrainFactory3mod(g1str=7,g2str=5,g3str=3,g1size=1.00,g2size=.80,g3size=.65)



Finally there's another mod "with stacked 16-bit input/output support", "processing in 16-bit precision".

I tested it and it also works. This one doesn't have the "texture" variables. It's "strength" settings are different in that they are much weaker, so higher settings are needed to get equivalent results to the versions above, and even higher for f3kdb grain (>100).

It only works for YV12, but I edited the script and changed lines 239 and 453 from YV12 to YV24 and it seems to work fine with YV24. (I lack the skill to make the script support both.)

Works on both 32 and 64 bit AviSynth.

https://github.com/dsamahentai/AviSynth_..._v1.2.avsi

This script also needs another script that isn't in Hybrid: f3kgrain_v0.4.avsi

Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\GrainFactoryLite_v1.2.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\f3kgrain_v0.4.avsi")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\AddGrainC.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\dither.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\flash3kyuu_deband.dll")
ConvertToYV12(interlaced=false)
GrainFL(g1str=-350,g2str=-200,g3str=-100,g1size=1.50,g2size=1.10,g3size=.90)

(Can have ConvertToYV24 if script is edited as specified above.)
Reply
#2
Quote:Is there a reason it isn't included?
Me not really using Avisynth.
Noboody asking for it to be supported.
My limited free time.
Folks don't add grain that often explitly their content afaik. I usually don't.
I'm not too keen on Avisynth, since it's basically Windows only (there are Linux, MacOS versions, but at least nowadays they are no alternative) and at least to me doesn't offer any gain over Vapoursynth.

Quote: I could have sworn it used to be but I could be mistaken.
Nope, I only added it for Vapoursynth. Unless filters are not maintainable I usually don't remove them.

Okay, so question are:
  • Since you named three filters: Which one would you like to be added to Hybrid? Not planning to add them all, since it's a pain to add lots of filters with tons of parameters. Smile
  • Since you noticed that the documentation doesn't seem to be correct:
    Which color spaces (YV8, YV12,YV16,YV24, RGB) and bit depth are (8,10,12,16bit) are really supported by the filters?
    (all paramters need to be tested)
  • Are the parameters of the filter documented?
side note: there are guite a few Avisynth grain filters, see: http://avisynth.nl/index.php/External_filters

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Wink 
It's actually pretty common for people to want to denoise, then put a little film grain back in afterwards. Film grain <> noise.

The reason you see "grain" when you watch film is that that's what the celluloid is actually made out of. It's not an overlay. You see it more on dark areas and less on bright areas. GrainFactory is one of the only plugins I know of for AviSynth/Vapoursynth that does a pretty good job imitating that and looking more genuine. So it's worth it IMHO to have it for AviSynth as well.

If you're only going to put one in at some point in the future, I'd probably go with the last one (GrainFactoryLite_v1.2.avsi) because it has the best precision and finest control. Most people don't use the "texture" options anyway.
Reply
#4
Okay, I'll try to find time next week or weekend to implement support for GrainFactoryLite.

I should probably add support for:
https://github.com/realfinder/AVS-Stuff/...y3mod.avsi
since it seems to be based on the version you linked to bug has high bit depth support.
##################################################
###                                            ###
###              GrainFactoryLite              ###
###                                            ###
###      by 06_taro - astrataro@gmail.com      ###
###                                            ###
###            v1.2 - 06 April 2012            ###
###               2020.04.06 mod               ###
###                                            ###
##################################################
###
### Luma adaptive grain generating filter in 8-bit precision
###
### Based on Didée's GrainFactory3 script
###
###
### +-------------+
### |  CHANGELOG  |
### +-------------+
###
### 2020.04.06
###      - HBD for avs+
###
### v1.2 - 06 April 2012
###      - Added support for generating f3kdb based grain ( set negative value for g*str to use f3kdb based grain )
###
### v1.1 - 13 March 2012
###      - Add chroma grain support
###      - Add RemoveGrain requirement
###      - Use float for "ontop_grain" instead of int
###      - Synchronize version number with GrainFactoryLite
###
### v0.3 - 28 May 2011
###      - Split "constant" into "g*const"
###
### v0.2 - 27 May 2011
###      - Use float for "g*str" instead of int
###
### v0.1 - 22 May 2011
###      - First release, able to generate completely constant grain
###

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
Send you a link to a new dev version for testing via pm.
(have just checked general funcionality not all parameters&co)

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)