couleurm / smooth-mode

(Concept idea) Frame blending shader plugin for OBS Studio
GNU General Public License v3.0
5 stars 0 forks source link

⚠ This is just a concept draft, nothing real yet

OBS Smooth Mode

Frame blending shader plugin for OBS Studio

This is a long awaited alternative to the painstakingly slow and inconvenient use of Premiere's Frame Blending and VEGAS's Smart resampling effects in video editing programs.

~ Design:

When configurated for a 60 FPS output video:

  1. accumulate all frames captured from source in the last 1/60 second
  2. average (blend) each buffered frames into one
  3. pass that single frame to the encoder

+ Pros:

- Cons:

Resources

Here's an agregation of open-source frame blending implementations

CPU-accelerated (Software)

These solutions are slower but simpler

temporal mix

ffmpeg filter, example useage:

ffmpeg -i input.mp4 -c:v libx264 -vf tmix=frames=4 output.mp4

video-blender

by luminance, chad did it in assembly

vs-frameblender

For smoothie-rs I now use faster code (which I honestly admit don't understand much) which makes use of vs-akarin

flowfps

very primitive as it decodes individual image files rgb

code: https://github.com/martinjungblut/flowfps

GPU-accelerated solutions (Shader)

OBS shader plugins

bxt-rs

replay system addon for half-life, uses vulkan and shaders

Frameblend.fx

This has an interesting quirk: it dynamically blends whatever FPS your game's getting in the last 1/60th of a second (for 60FPS).

ReShade lets you overlay shaders on games

recording-mod

experimental minecraft demo system

it has a "Blend Factor" option

https://github.com/ayoeo/recording_mod/tree/master/src/main/resources/assets/minecraft/shaders/program

danser!

osu demo system

https://github.com/Wieku/danser-go/blob/master/assets/shaders/blend.fsh