Reduce to 2 colors only (black+white) based on threshhold (x-raw GRAY8 format)?

HermannSW hermann at
Sat Nov 18 20:52:42 UTC 2017

I get GRAY8 format by either of these lines on my Pi Zero:
$ gst-launch-1.0 rpicamsrc ! video/x-raw,format=GRAY8,width=640,height=480 !
videoconvert ! ...
$ gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert !
video/x-raw,format=GRAY8,width=640,height=480 ! ...

I need to convert GRAY8 format image to a black+white only (still GRAY8
format) for a specified threshold and searched on google for a long time.
says "This pipeline converts the image to black and white by setting the
saturation to 0.0.".
But it only converts to GRAY which I already have with GRAY8 format.

Is there is a plugin for allowing black+white(threshold) conversion, or do I
need to code a new plugin for that?


Sent from:

More information about the gstreamer-devel mailing list