(FFmpeg) How to Invert the Colors of a Video?

FFmpeg has a very simple filter, negate, that inverts the colors of the input. The train station looks really futuristic with this filter on.

Figure 60.0: inverted video

Although this filter is simplistic in use, it has a great effect, below is the command as seen in figure 60.0:

  $ ffmpeg -i input.mp4 -vf "negate" output.mp4  

Love FFmpeg? Grab a copy of FFmpeg For Beginners on Kindle or Paperback to learn over 120 ways to master FFmpeg!

buy now on amazon