Mpv: reverse colors

Created on 24 Jul 2014  路  11Comments  路  Source: mpv-player/mpv

I would like to watch lecture recordings with inverted colors since

  • my screen burns in bright colors
  • the contrast between video (bright white) and terminal (dark) is quite annoying

So far I did not find an mpv option that allows me to watch videos with reverse colors.

question

Most helpful comment

hey guys, this is better, faint text in video is not buried by the gamma:contrast

$mpv --vf=sub,lavfi="negate" $(xclip -o | awk "{print $1}")

All 11 comments

--vf=eq=1:-1

--vf=eq=1:-1

Not sure what that does, but looks pretty much inverted. So, closing.

Not sure what that does, but looks pretty much inverted. So, closing.

It inverts luma, so only brightness gets inverted, colors remain. Should still solve OP's question.

You could also use --hue=100 (or -100) to invert the colors, but that wouldn't make a bright video dark, which seems to be what OP wants. Or you could use both, which would do something.

Also, vf=eq is apparently really slow and might kill your battery if you're on a netbook with hardware decoding or something.

Thanks qmega, that solved it for me. Pretty well hidden in the manpage though.

hey guys, this is better, faint text in video is not buried by the gamma:contrast

$mpv --vf=sub,lavfi="negate" $(xclip -o | awk "{print $1}")

To negate colors for better visibility use the flag vf-lavfi=[negate]
To negate all videos edit .config/mpv/mpv.conf using a text editor like nano/vim/kwrite/gedit and paste that flag.
To negate one video on the commandline use mpv --vf-lavfi=[negate] <videofile>

This is an old issue. For mpv 0.32 use this:
how to invert colors in mpv
mpv --vf=negate --hwdec=no <videofile>

Also, to toggle with I key in the player itself:

$ cat ~/.config/mpv/input.conf
I cycle-values vf "sub,lavfi=negate" ""

@arbitrary-dev Could you add that to the bottom of the FAQ?

that's nothing for the FAQ.

Was this page helpful?
5 / 5 - 1 ratings

Related issues

532910 picture 532910  路  3Comments

jcowgill picture jcowgill  路  3Comments

lightonflux picture lightonflux  路  4Comments

xanadupark picture xanadupark  路  3Comments

thebunnyrules picture thebunnyrules  路  3Comments