| Top |  |  |  |  | 
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstBaseTransform ╰── GstVideoFilter ╰── GstChromaHold
The chromahold element will remove all color information for all colors except a single one and converts them to grayscale.
Sample pipeline:
| 1 2 3 | gst-launch-1.0 videotestsrc pattern=smpte75 ! \ chromahold target-r=0 target-g=0 target-b=255 ! \ videoconvert ! autovideosink \ | 
This pipeline only keeps the red color.
| plugin | coloreffects | 
| author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 
| class | Filter/Effect/Video | 
| name | sink | 
| direction | sink | 
| presence | always | 
| details | video/x-raw, format=(string){ ARGB, BGRA, ABGR, RGBA, xRGB, BGRx, xBGR, RGBx }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ] | 
| name | src | 
| direction | source | 
| presence | always | 
| details | video/x-raw, format=(string){ ARGB, BGRA, ABGR, RGBA, xRGB, BGRx, xBGR, RGBx }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ] | 
“target-b” property“target-b” guint
The Blue target.
Flags: Read / Write
Allowed values: <= 255
Default value: 0
“target-g” property“target-g” guint
The Green target.
Flags: Read / Write
Allowed values: <= 255
Default value: 0
“target-r” property“target-r” guint
The Red target.
Flags: Read / Write
Allowed values: <= 255
Default value: 255
“tolerance” property“tolerance” guint
Tolerance for the target color.
Flags: Read / Write
Allowed values: <= 180
Default value: 30