FastFlix icon indicating copy to clipboard operation
FastFlix copied to clipboard

Add Grain

Open thunderclap82 opened this issue 3 years ago • 3 comments

With Hollywood using DNR more and more to “sharpen” images it’s causing films to look less organic. An added open to add grain to heavily DNR’d films would be a nice feature, such as light, medium, and heavy. While it won’t bring back the detail lost it can help mitigate the plastic/wax look.

thunderclap82 avatar Feb 01 '22 19:02 thunderclap82

The two main issues with this is:

  1. There is no simple filter for it with FFmpeg. Most of the ways to tackle it I see with a fast search are rather complex / multiple commands.
  2. I hate grain (almost as much as I hate when they mutilate the source material, like DNR, so I feel ya.)

Marking as "help wanted" as this is something I won't tackle myself, but if someone provides a PR with a good implementation of it I wouldn't turn it away. Thanks for the idea, as it is truly something I wouldn't think of myself 🙂

cdgriffith avatar Feb 01 '22 22:02 cdgriffith

Dunno if is technically achievable, but @EleonoreMizo's "Realistic film grain generator" (ChickenDream) port - it's a Vapoursynth and Avisynth+ plugin - would be great.

MarcoRavich avatar Apr 22 '22 08:04 MarcoRavich

I wouldn’t encourage people to use ChickenDream for this use. It’s a very CPU-intensive model (takes several seconds per frame on a high-end CPU), and for light grain, you probably would not tell the difference with a simple gaussian noise applied in linear light.

BTW FFmpeg has a noise filter. Not tested, but could be useful here.

EleonoreMizo avatar Apr 25 '22 07:04 EleonoreMizo