Tool/software:
Hello Team,
We are using monochrome sensor which is giving Y10 data. We have successfully set media-ctl command to set pipeline topology for Y10 data.
Using below gst-pipeline we are trying to capture video data using format= GRAY16_LE but, we are getting failed.
Pipeline log:
gst-Pipeline: ============= root@am62axx-evm:/data# root@am62axx-evm:/data# gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 ! video/x-raw, width=1920, height=1200, framerate=120/1, format=GRAY16_LE ! fakesink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: ../gstreamer-1.20.7/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) Execution ended after 0:00:00.000785529 Setting pipeline to NULL ... Freeing pipeline ... root@am62axx-evm:/data# root@am62axx-evm:/data# root@am62axx-evm:/data#
- Here, we want to convert monochrome data in to JPEG using JPEG hardware encoder which is not possible directly as jpeg encoder is only supporting NV12 format as input. So we need to convert this Y10 data to NV12 using "videoconvert" plugin which accept the data in "GRAY16_LE" format and provide NV12 output.
But as per above output we are not able to get data when use format as GRAY16_LE. If we use RGGB10 format as below command then we are able to get 10 bit image data but here "videoconvert" plugin will not accept the bayer data.
Working pipeline:
gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 ! video/x-bayer, width=1920, height=1200, framerate=120/1, format=rggb10 ! fakesink
Please let us know why above pipeline is not working.
Note: We don't want to process data from the ISP to reduce image output latency.
Media-ctl log:
Media-ctl log: =============== root@am62axx-evm:/data# media-ctl -p Media controller API version 6.1.46 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:30102000.ticsi2rx hw revision 0x1 driver version 6.1.46 Device topology - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE] pad2: Source -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE] pad3: Source -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE] pad4: Source -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE] pad5: Source -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE] pad6: Source -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE] - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:Y10_1X10/1920x1200 field:none] <- "ar0235 4-0036":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:Y10_1X10/1920x1200 field:none] -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source pad3: Source pad4: Source - entity 15: ar0235 4-0036 (1 pad, 1 link, 0 route) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [stream:0 fmt:Y10_1X10/1920x1200 field:none] -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE] - entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video4 pad0: Sink <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video5 pad0: Sink <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video6 pad0: Sink <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE] - entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video7 pad0: Sink <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE] - entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video8 pad0: Sink <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE] root@am62axx-evm:/data# root@am62axx-evm:/data#
Thanks,
Jaimin