Hi,
I have made an addon for the Blender that will generate AviSynth script and do some additional stuff. In advance, I would like to sorry for my English ;/.
This is a small part of the script “film restoration script by videoFreed” (I’m very thankful to him for his script)
Current version restrictions:
-
animation frame must have width and height divided by 2 - for an example 2, 4, 6, 8 and so on (another example ok resolution will be 1280x720, but neither 1279x720 nor 1280x719)
-
the plugin may not work on Linux or other systems than windows (I have only tried on windows)
-
rendering output have to be one of the following:
a) “AVI_RAW” (this is preferred option),
b) “FFmpeg video” - AVI container with codec H.264 and lossless quality (I haven’t tried to use other quality options),
c) PNG (require an FFMPEG installed, but all frames will be connected to AVI file and then it will be processed as input for denoising,
Plans for the future:
- get selected preview frames in the Blender “render result” window,
- more filtering options.
How to use:
-Download and install addon in the Blender,
you can download addon here
https://dl.dropboxusercontent.com/u/26042452/avi/avisynch_script_generator.py
and now the project has an official page on bitbucket
https://bitbucket.org/stefan_wyszynski/blender_addon_denoising_script/src
download additional software
[TABLE=“class: grid, width: 500, align: center”]
program
download link
Add program paths to “path” environment variable
for example
Avisynth
C:\AviSynth
C:\AviSynth\plugins
DOWNLOAD plugins and copy to Avisynth\plugins dir
https://www.dropbox.com/s/xcgvdvqy1e7i2df/plugins.zip?dl=0
Download Virtualdub (used by script to convert video if you want to)
C:\VirtualDub-1.10.4
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
Needed for some plugins
https://www.microsoft.com/en-us/download/details.aspx?id=8328
[/TABLE]
ADITIONAL SOFTWARE HELPFULL BUT NOT REALLY NEEDED (addon will work without it, but it won’t be fully functional)
[TABLE=“class: grid, width: 500, align: center”]
program
download link
Add program paths to “path” environment variable
for example
avsPmod (used by script to display video preview end edit script)
C:\AvsPmod_v2.5.1\AvsPmod
C:\AvsPmod_v2.5.1\AvsPmod ools
FFmpeg (used by script to automatically convert input video to output - if you want to)
https://ffmpeg.zeranoe.com/builds/
C:\ffmpeg-3.2.2-win32\bin
k-lite codecs pack (helpfull codecs needed for many things )
https://www.codecguide.com/download_kl.htm
[/TABLE]
If you won’t download avsPmod you can’t generate movies by it, same as FFmpeg. But you can use VirtualDub which was recommended for downloading. K-lite codecs pack will be useful if I extend plugin functionality to use another kind of input than AVI_RAW
PLUGINS USED BY SCRIPT (you don’t have to download it. This is only for information purposes)
[TABLE=“class: grid, width: 500, align: center”]
MvTools plugins for AviSynth
http://avisynth.nl/index.php/MVTools
SmartSmootherHQ plugin for AviSynth
http://rationalqm.us/hiq/smoothhiq.html
Script is inspired by film restoration script by videoFreed so it uses this:
https://forum.doom9.org/showthread.php?t=144271
[/TABLE]
if you still can’t run denoising script then you could additionally download
Hybrid:
http://www.selur.de/downloads
and you don’t have to install this but just open this exe as a zip archive and copy AviSynth plugins from it to Avisynth\plugins folder
=====================================================================
How to use in the blender:
then you can change some denoising setting and click generate a script
The script will be generated with a name as the avi animation file and extension .avs .
there is a combo box “Run script with” with option how the script will be run.
So you can generate the script and:
- open it with VirtualDub (to make/preview a final movie),
- open it with avsPmod and edit/preview changes,
- generate final raw avi movie from input by using FFmpeg,
- generate final raw avi movie from input by using avs2avi
Finally. As you can see in the screens. There are two methods (known by me) for a good denoising,
first one: render 8 samples (or more if you want to) with compositor filtering node setup (I have given a blender setup scene in dropbox folder - download if you want), and then use denoising script
this method is a base but there will be more blurry result than if you use the second method.
the second one method of denoising: download Lucas denoising build. Render 8 sample (or more) animation with his denoising method and then denoise with script (addon)
To get the best denoising result in animation you could use modified blender version with LWR denoiser from lukasstockner97 as a base for denoising script
compare the screens attached to the thread and you will know what is best.
you can download example movies from my dropbox folder
but please !! don’t watch it online - you won’t see any difference in videos - because of strange filtering in dropbox video preview encoding algorithm
edit: new version available (link is the same - plugins.zip on my dropbox is updated too)
- Added deflicker,
- added dirt remover,
- added stabilization (but currently it’s less useful)
anyway, this version gives better quality because of this changes.
I have tried to denoise new test scene and old script gives weak result so I have added more functionality from the base “Film restoration script by videoFreed”
here is a Gif generated from the result video comparison
https://dl.dropboxusercontent.com/u/…ndAvisynth.gif