FiniteSingularity / obs-composite-blur

A comprehensive blur plugin for OBS that provides several different blur algorithms, and proper compositing.
GNU General Public License v2.0
319 stars 27 forks source link

[FEATURE] - Filter: Temporal Blur (frame blending) #100

Open couleurm opened 2 months ago

couleurm commented 2 months ago

Hey, I've wrote up a suggestion for anyone to pick up if they find it interesting:

An OBS video filter that does frame blending, aka doing motion blur with the excess frames that are captured with e.g. a Game Capture source.

People have been doing this effect for video game footage in post with NLEs for years, and a filter doing it before it even gets encoded would eliminate the huge burden of encoding, storing and processing high framerate footage.

The earliest mention of something like this in OBS: https://ideas.obsproject.com/posts/835/add-frame-blending-option-to-game-capture-faux-motion-blur

I generated an OBS plugin template that has the same goal, and in the README linked a bunch of implementations in other software for people to get familiar with the concept:

https://github.com/couleurm/smooth-mode

FiniteSingularity commented 2 months ago

Sounds like a great idea. I'd bring this in as a "temporal" blur option. To do this, we'd need to add an option for a prior number of frames to blur in. I'd also think it'd be worth having different options for the weighted average of the prior frames, e.g.- Uniform, Linear falloff, exponential falloff, etc. I think I might be able to use an algorithm similar to what I used with the BSM Alpha Wipe do do this efficiently.