MattMcManis / Axiom

An FFmpeg GUI for Windows
https://axiomui.github.io
GNU General Public License v3.0
1.44k stars 114 forks source link

[SUGGESTION] FFMpeg's noise reduction #73

Open MarcoRavich opened 3 years ago

MarcoRavich commented 3 years ago

I recently encoded an old documentary thas has a "disturbing" grain, so I believe that would be great for encoder GUI to let users exploit denoise algorithms available in FFMpeg (as HandBrake already does):

Hope that inspires.

MattMcManis commented 3 years ago

I will work on adding this, thanks.

MattMcManis commented 3 years ago

Example commands of each noise filter:

-vf nlmeans=h=10:range=5:temporal=3

-vf atadenoise=s=7:p=7:0a=0:0b=0:1a=0:1b=0:2a=0:2b=0

-vf hqdn3d=0:0:8:8

-vf vaguedenoiser=2:2:6:85:15

For now I might have to do simple presets for each, Heavy, Medium, Light, as it will be difficult and take some time to add the parameter controls for each value, such as threshold, luma, chroma, planes.

MarcoRavich commented 3 years ago

Yes, almost all GUIs uses presets...

MattMcManis commented 3 years ago

I've added the noise filters nlmeans, hqdn3d, vaguedenoiser, removegrain with light, medium, strong presets.
Let me know how they work out.


I did not add atadenoise yet, if you can find any good presets for light, medium, strong, post them.

I found the other presets here:
nlmeans https://forum.handbrake.fr/viewtopic.php?f=4&t=30135&p=139077 hqdn3d https://mattgadient.com/in-depth-look-at-de-noising-in-handbrake-with-imagevideo-examples/


I also added the deblock filter with weak and strong.
https://ffmpeg.org/ffmpeg-filters.html#deblock


Press the update arrow in Axiom or download new version here.

MarcoRavich commented 3 years ago

Someone suggested to implement accellerated nlmeans_opencl @ FastFlix, wich sounds a really good idea:

https://github.com/cdgriffith/FastFlix/issues/202

Hope that inspires !