[GStreamer] Unable to convert 16-bit thermal to 8-bit

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?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

This problem is related to your camera. nothing to do with deepstream sdk.

You can refer this link for v4l2 camara.

Or Give me more information and I might be able to give you some advice

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.