Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply current video filters #16

Open
LampPrinter opened this issue Apr 22, 2023 · 3 comments
Open

Apply current video filters #16

LampPrinter opened this issue Apr 22, 2023 · 3 comments

Comments

@LampPrinter
Copy link

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.

@tatsumoto-ren
Copy link
Member

apply brightness, contrast, saturation

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

@LampPrinter
Copy link
Author

LampPrinter commented Apr 23, 2023

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 },

@tatsumoto-ren
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants