[FFmpeg-user] Remove everything but a single color (range)

Michael Koch astroelectronic at t-online.de
Sun Mar 15 15:26:54 EET 2020

Am 15.03.2020 um 11:13 schrieb Dan Bridges:
>> Is it possible to "remove" everything in a video except a specific
> color (or maybe a range... ie close to a specific color. By "remove" I
> mean covert every that is NOT the color(s) I want to black or
> transparent. I have a video that contains a yellowish box that moves
> about the screen. I want to isolate ONLY the yellowish box. Everything
> else should become black or transparent.
> Try the colorhold filter:
>  From http://paulbourke.net/miscellaneous/ffmpeg/FFmpeg_Book.pdf

You'd better use the original link to my book. Then you always get the 
latest version:

In this case the colorkey filter is the better solution, because the 
original poster wanted the background black or transparent.


More information about the ffmpeg-user mailing list