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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th April 2022, 17:46   #1  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
ChickenDream: realistic film grain generator

I wrote a plug-in for realistic film-grain rendering:

>>> chickendream-r2.zip <<<


Original | mild grain | excessively huge grain

The plug-in supports Vapoursynth and Avisynth+.

Beware, the processing is extremely slow, a few seconds for a single FHD frame (with multi-threading). Note: ChickenDream supports AVSTP threading.

There is also a Git repository.
__________________
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; 2nd June 2022 at 13:46. Reason: r2
cretindesalpes is offline   Reply With Quote
Old 12th April 2022, 00:21   #2  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
avstp still error with mvtool2, i think need update for fix it
kedautinh12 is offline   Reply With Quote
Old 12th April 2022, 21:52   #3  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 703
Quote:
Originally Posted by cretindesalpes View Post
I wrote a plug-in for realistic film-grain rendering:

>>> chickendream-r1.zip <<<


Original | mild grain | excessively huge grain

The plug-in supports Vapoursynth and Avisynth+.

Beware, the processing is extremely slow, a few seconds for a single FHD frame (with multi-threading). Note: ChickenDream supports AVSTP threading.

There is also a Git repository.
Awesome! Just curious what kind of references did you use for this? Why is it so slow, because of the distribution of grain over the different frequencies? I know this is a difficult task thats why im so interested. Greatly appreciated!
anton_foy is offline   Reply With Quote
Old 12th April 2022, 22:14   #4  |  Link
DTL
Registered User
 
Join Date: Jul 2018
Posts: 1,065
Natural photon shot noise have Gaussian distribution (at medium and high levels). Do it have Gaussian distribution or other ? We need some source of Gauss distributed noise generator to test denoise processing with closeer to natural noise (I think AddNoise() plugin do not have Gauss distribution ?).
DTL is online now   Reply With Quote
Old 13th April 2022, 00:11   #5  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
anton_foy:

It is slow because it is more or less a downscaler having to filter potentially hundreds or thousands grains per pixel.

This is an optimised implementation of the model and algorithm described in the following papers:DTL:

AddGrainC uses a gaussian distribution. But the ChickenDream model works differently. Check the papers for more details.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote
Old 2nd June 2022, 13:50   #6  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
ChickenDream r2:
  • Allowed larger grain radius when using large standard deviation values.
  • Added a draft parameter.
  • Changed the configure options to compile with Clang.
  • Fixed a crash when the picture width is not a multiple of 8 (thanks to MonoS for the report).
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote
Old 1st March 2023, 22:19   #7  |  Link
ognirats
Registered User
 
Join Date: Sep 2021
Posts: 30
https://forum.videohelp.com/threads/...n-generator%29

help. linked videohelp thread
ognirats 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 12:04.


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