I am unable to convert video from 16 bit thermal camera into 8-bit for viewing, for example, with a basic pipeline:
"v4l2src device=/dev/video0 ! video/x-raw,format=GRAY16_LE ! videoconvert ! video/xraw,format=GRAY16_LE ! autovideosink"
The following error is produced:
Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
I have tried to manually convert the frames by adding a buffer probe and shifting the 16 bit values to 8 bit, but the pipeline still displays the image as all gray, does anyone know a way to convert the 16 bit frames to 8 bit using gstreamer?