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

invert colors toggle #488

Open
Zedroid opened this issue Aug 29, 2022 · 6 comments
Open

invert colors toggle #488

Zedroid opened this issue Aug 29, 2022 · 6 comments

Comments

@Zedroid
Copy link

Zedroid commented Aug 29, 2022

I do not know where to add video filters to negate the luma in the config files
i am not sure whether to edit mpvnet or mpv config

@Zedroid
Copy link
Author

Zedroid commented Aug 29, 2022

$ cat ~/.config/mpv/input.conf
I cycle-values vf "sub,lavfi=negate" ""
how do i do this for windows to add a toggle?

i am able to use --vf=lavfi=[negate] in mpv conf
ok sorry nevermind I replaced I with k and pasted it in the input conf

it was already used for something else in mpv.net so that was why it did not work

@Zedroid Zedroid changed the title invert colors invert colors toggle Aug 29, 2022
@hooke007
Copy link
Collaborator

hooke007 commented Aug 30, 2022

You inverted all planes including luma and chroma.

negate the luma

vf toggle negate=components=y

https://mpv.io/manual/master/#command-interface-vf-%3Coperation%3E-%3Cvalue%3E

@Zedroid
Copy link
Author

Zedroid commented Aug 30, 2022

Thank you so much @hooke007 ! I just wanted dark mode for watching online lectures. Your improvement is perfect! I can keep the other colors now.

@Zedroid
Copy link
Author

Zedroid commented Aug 30, 2022

sorry it says changing filters failed when i added it in my input conf
i tried adding it to mpv conf as well

@Zedroid
Copy link
Author

Zedroid commented Aug 30, 2022

k cycle-values vf negate=components=y does nothing but it just says video filters: negate [components=y]

update: i saw your reddit post and did this to make it work now thanks https://www.reddit.com/r/mpv/comments/ut55hu/comment/i97om9v/
vf=lutyuv=y=negval in my mpv.conf
k cycle-values vf=lutyuv=y=negval in my input.conf

update 2:
ok I saw your comment below me. I didnt know a key was supposed to be there so now I put this in input.conf and nothing in mpv.conf and toggling works
k vf toggle lutyuv=y=negval

@hooke007
Copy link
Collaborator

hooke007 commented Aug 31, 2022

#488 (comment)
What I wrote is <key> vf toggle <filtername> not <key> cycle-values vf=<filtername>

Read the previous link I post first and then check https://mpv.io/manual/master/#command-interface-cycle-values .
The stynax of input.conf is diff from mpv.conf.

In input.conf:

In mpv.conf:
vf is just a filter-option, which could only be combined with those Suffixes. e.g. vf-set=<filter>

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

No branches or pull requests

3 participants