Ajatt-Tools/videoclip

Apply current video filters

LampPrinter opened this issue · 3 comments

This https://github.com/ekisu/mpv-webm has the option to apply current video filters.
I am mainly looking to apply brightness, contrast, saturation etc settings to the output.

apply brightness, contrast, saturation

I think if you pass them as parameters to the mpv encoder command, they will be applied.

Adding these line did the trick.

font_size = 24,
filters = 'brightness=0.0:contrast=1.0:saturation=1.0:gamma=1.0',

'--vf-add=format=yuv420p',
table.concat { '--vf-add=lavfi-eq=', config.filters },

Now you can add a config option to let the user apply filters.