Issues with bayer format

I’m having issues with The Imaging Source DFK 37BUR0521 camera on Linux using GStreamer.

Camera details:

  • Outputs raw Bayer GRBG format according to v4l2-ctl
  • Getting “grbgle” format error in GStreamer pipeline
  • Camera works through manufacturer’s SDK but need GStreamer for application

Current pipeline attempt:

gst-launch-1.0 v4l2src device=/dev/video0 ! \
video/x-bayer,format=grbg,width=1920,height=1080,framerate=30/1 ! \
bayer2rgb ! videoconvert ! autovideosink

Issue appears to be mismatch between how v4l2 reports format ("GRBG") and what GStreamer expects for Bayer format negotiation.

Tried various format strings but getting "v4l2src0 can't handle caps" errors. Anyone familiar with The Imaging Source cameras or Bayer format handling in GStreamer pipelines?

Debug output shows v4l2src trying to use "grbgle" format which seems incorrect.

Any help appreciated! Happy to provide more debug info if needed.

You may post the output of:

v4l2-ctl -d0 --list-formats-ext
v4l2-ctl -d0 -a

Gstreamer element bayer2rgb may only support 8 bits bayer formats, so better set your camera beforehand to 8 bits bayer format.

Starting from 1.24, bayer2rgb also support 10/12/14/16 bits Bayer.

This might be fixing your issue.

It’s part of 1.24.10