This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

J784S4XEVM: Problem with integration of dcc files of imx490

Part Number: J784S4XEVM

Tool/software:

I'm trying to integrate DCC files with my custom camera driver. I read through https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1080175/tda4vm-adding-a-new-sensor-driver-invalid-camera-id-received-when-a-new-sensor-driver-is-in-corporated, but I'm still unsure about what's missing to make the driver correctly match the DCC files I'm generating.

Below are the errors I'm encountering:

gst-launch-1.0 v4l2src device=/dev/video12 ! video/x-bayer, width=2880, height=1860, framerate=30/1, format=rggb12 ! queue leaky=2 ! tiovxisp target=1 sink_0::device=/dev/v4l-subdev7 dcc-isp-file=/opt/imaging/imx490/wdr/dcc_viss_wdr.bin sink_0::dcc-2a-file=/opt/imaging/imx490/wdr/dcc_2a_wdr.bin format-msb=11 ! queue ! video/x-raw,format=NV12 ! filesink location=output_image.yuv -ev
APP: Init ... !!!
   477.306675 s: MEM: Init ... !!!
   477.306708 s: MEM: Initialized DMA HEAP (fd=8) !!!
   477.306806 s: MEM: Init ... Done !!!
   477.306817 s: IPC: Init ... !!!
   477.342620 s: IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
   477.350055 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
   477.350148 s:  VX_ZONE_INIT:Enabled
   477.350158 s:  VX_ZONE_ERROR:Enabled
   477.350167 s:  VX_ZONE_WARNING:Enabled
   477.350859 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Ad[  467.951645] imx490 9-001a: imx490: Set stream
ded target MPU-0 
   477.350975 s:  VX_ZONE_INIT:[tivxPlatformC[  467.959029] imx490 9-001a: imx490:  Start stream
reateTargetId:124] Added target MPU-1 
   477.351072 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2 
   477.351162 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3 
   477.351174 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
   477.351539 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXIspPad:sink_0: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXMisoPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2880, heig[  468.238813] imx490 9-001a: imx490: Set stream
ht=(int)1860
/GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink[  468.244615] imx490 9-001a: imx490:  Stop stream
: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
 Invalid Camera Id 219
   477.650556 s:  VX_ZONE_ERROR:[TI_2A_wrapper_create:176] dcc_update returned -1 
   477.657980 s:  VX_ZONE_ERROR:[ownContextSendCmd:885] Command ack message returned failure cmd_status: -1
   477.657995 s:  VX_ZONE_ERROR:[ownNodeKernelInit:592] Target kernel, TIVX_CMD_NODE_CREATE failed for node node_110
   477.658003 s:  VX_ZONE_ERROR:[ownNodeKernelInit:593] Please be sure the target callbacks have been registered for this core
   477.658011 s:  VX_ZONE_ERROR:[ownNodeKernelInit:594] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
   477.658020 s:  VX_ZONE_ERROR:[ownGraphNodeKernelInit:620] kernel init for node 0, kernel com.ti.hwa.vpac_viss ... failed !!!
   477.658031 s:  VX_ZONE_ERROR:[vxVerifyGraph:2254] Node kernel init failed
   477.658039 s:  VX_ZONE_ERROR:[vxVerifyGraph:2311] Graph verify failed
   477.658451 s:  VX_ZONE_ERROR:[ownReleaseReferenceInt:594] Invalid reference
ERROR: from element /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0: Unable to init TIOVX module
Additional debug info:
/usr/src/debug/edgeai-gst-plugins/1.0.0/gst-libs/gst/tiovx/gsttiovxmiso.c(1512): gst_tiovx_miso_negotiated_src_caps (): /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0
Execution ended after 0:00:00.302346630
Setting pipeline to NULL ...
Freeing pipeline ...
   477.744259 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfddb68 of type 00000816 at external count 1, internal count 0, releasing it
   477.744273 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_99) now as a part of garbage collection
   477.744336 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfddd90 of type 00000816 at external count 1, internal count 0, releasing it
   477.744346 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_100) now as a part of garbage collection
   477.744392 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd110c90 of type 00000813 at external count 1, internal count 0, releasing it
   477.744401 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_102) now as a part of garbage collection
   477.744415 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfde1e0 of type 00000816 at external count 1, internal count 0, releasing it
   477.744422 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_103) now as a part of garbage collection
   477.744436 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd110e38 of type 00000813 at external count 1, internal count 0, releasing it
   477.744444 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_104) now as a part of garbage collection
   477.744456 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd000be8 of type 00000817 at external count 1, internal count 0, releasing it
   477.744464 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=raw_image_105) now as a part of garbage collection
   477.746851 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd110fe0 of type 00000813 at external count 1, internal count 0, releasing it
   477.746887 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_106) now as a part of garbage collection
   477.746901 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfde408 of type 00000816 at external count 1, internal count 0, releasing it
   477.746909 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_107) now as a part of garbage collection
   477.746922 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd111188 of type 00000813 at external count 1, internal count 0, releasing it
   477.746930 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_108) now as a part of garbage collection
   477.746977 s:  VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd03d030 of type 0000080f at external count 1, internal count 0, releasing it
   477.746985 s:  VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=image_109) now as a part of garbage collection
   478.076048 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:120] De-Initialization Done for HOST !!!
   478.080411 s:  VX_ZONE_INIT:[tivxDeInitLocal:206] De-Initialization Done !!!
APP: Deinit ... !!!
REMOTE_SERVICE: Deinit ... !!!
REMOTE_SERVICE: Deinit ... Done !!!
   478.081267 s: IPC: Deinit ... !!!
   478.082169 s: IPC: DeInit ... Done !!!
   478.082188 s: MEM: Deinit ... !!!
   478.082277 s: DDR_SHARED_MEM: Alloc's: 15 alloc's of 19243867 bytes 
   478.082287 s: DDR_SHARED_MEM: Free's : 15 free's  of 19243867 bytes 
   478.082294 s: DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes 
   478.082304 s: MEM: Deinit ... Done !!!
APP: Deinit ... Done !!!

  • Hi Carlos,

    That thread is probably for RTOS sensor driver.
    As you are working with Linux driver and gstreamer, please take a look at section "5 Sensor Software Integration" in the app note below.

    https://www.ti.com/lit/pdf/sprad86

    I'm still unsure about what's missing to make the driver correctly match the DCC files I'm generating.

    For the s/w perspective, the only dependency between DCC files (assuming the are all correct) and the sensor driver sensor driver is the camera ID (or DCC ID).
    As long as you used the same ID on both side, you should be fine.

     Invalid Camera Id 219

    Please check if 219 is the right ID we used for IMX490.

  • Hi, thanks for your response. I'm now using the same sensor ID on both sides (IMX219), but I'm still encountering this issue:
    root@j784s4-evm:~# GST_DEBUG=tiovxisp:5,v4l2src:4,*:2 gst-launch-1.0 -v v4l2src device=/dev/video12 ! video/x-bayer, width=2880, height=1860, framerate=30/1, format=rggb12 ! queue leaky=2 ! tiovxisp target=1 sink_0::device=/dev/v4l-subdev7 sensor-name=SENSOR_SONY_IMX219_RPI dcc-isp-file=/root/imx490_dcc_viss_wdr.bin sink_0::dcc-2a-file=/root/imx490_dcc_2a_wdr.bin format-msb=11 ! queue ! video/x-raw,format=NV12 ! filesink location=output_image.yuv -ev
    APP: Init ... !!!
    55.922383 s: MEM: Init ... !!!
    55.922416 s: MEM: Initialized DMA HEAP (fd=8) !!!
    55.922535 s: MEM: Init ... Done !!!
    55.922546 s: IPC: Init ... !!!
    55.956496 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    55.966038 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    55.967604 s: VX_ZONE_INIT:Enabled
    55.967619 s: VX_ZONE_ERROR:Enabled
    55.967625 s: VX_ZONE_WARNING:Enabled
    55.969587 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0
    55.969661 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1
    55.969774 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2
    55.969851 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3
    55.969862 s: VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    55.972701 s: VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    Setting pipeline to PAUSED ...
    0:00:00.382297950 862 0xffff88000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.382353625 862 0xffff88000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    Pipeline is live and does not need PREROLL ...
    0:00:00.382547815 862 0xffff880010b0 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
    0:00:00.382594420 862 0xffff88000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.382617995 862 0xffff88000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    0:00:00.383139925 862 0xffff88000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.383165090 862 0xffff88000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    New clock: GstSystemClock
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    0:00:00.383511870 862 0xffff88000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.383536705 862 0xffff88000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXIspPad:sink_0: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    0:00:00.383868770 862 0xffff88000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.383893710 862 0xffff88000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    0:00:00.383905855 862 0xffff880010b0 WARN v4l2 gstv4l2objec[ 46.668958] imx490 7-001a: imx490: Set stream
    t.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIO[ 46.675655] imx490 7-001a: imx490: Start stream
    C_CROPCAP failed
    0:00:01.010639325 862 0xffff880010b0 WARN v4l2bufferpool gstv4l2bufferpool.c:1334:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool0:src> Driver should never set v4l2_buffer.field to ANY
    /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXMisoPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
    /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
    0:00:01.066719645 862 0xffff880010b0 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed

  • Hi Carlos,

    I am not familiar with gstreamer myself and copy my friend for her comments.

    Are you able to do the following separately?

    1. Stream raw images from sensor to file system, e.g., 

    gst-launch-1.0 -v v4l2src num-buffers=2 device=/dev/video-imx390-cam0 io-mode=dmabuf \
    ! video/x-bayer, width=1936, height=1100, framerate=30/1, format=rggb12 ! multifilesink location="imx390-image-%d.raw"

    2. Load raw image file from file system to VISS and save the output to YUV files, e.g.,

    gst-launch-1.0 multifilesrc stop-index=0 location=imx390-image-0.raw caps="video/x-bayer, width=1936, height=1100, format=rggb16"  \
    ! tiovxisp sensor-name=SENSOR_SONY_IMX390_UB953_D3 dcc-isp-file=/opt/imaging/imx390/wdr/dcc_viss_wdr.bin format-msb=11 \
    sink_0::dcc-2a-file=/opt/imaging/imx390/wdr/dcc_2a_wdr.bin \
    ! filesink location=output_imx390_save.yuv

  • Hi, Thanks 
    Yes, I’m able to stream raw images from the sensor to the file system. However, when I try to load a raw image file from the file system into the VISS and save the output as a YUV file, I encounter the same issue.
    As an update: I changed the resolution format because the DCC files are configured for 2896x1876. With this change, the pipeline runs, but tiovxisp reports an error and the output is still incorrect. The error is as follows:
    GST_DEBUG=tiovxisp:5,v4l2src:3,*:2 gst-launch-1.0 -v v4l2src device=/dev/video12 ! video/x-bayer, width=2896, height=1876, framerate=30/1, format=rggb12 ! queue leaky=2 ! tiovxisp target=1 sink_0::device=/dev/v4l-subdev7 sensor-name=SENSOR_SONY_IMX219_RPI dcc-isp-file=/root/imx490_dcc_viss_wdr.bin sink_0::dcc-2a-file=/root/imx490_dcc_2a_wdr.bin format-msb=11 ! queue ! video/x-raw,format=NV12 ! filesink location=output_image.yuv -ev
    APP: Init ... !!!
    231.436181 s: MEM: Init ... !!!
    231.436516 s: MEM: Initialized DMA HEAP (fd=8) !!!
    231.436616 s: MEM: Init ... Done !!!
    231.436628 s: IPC: Init ... !!!
    231.468982 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    231.475835 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    231.475907 s: VX_ZONE_INIT:Enabled
    231.475916 s: VX_ZONE_ERROR:Enabled
    231.475922 s: VX_ZONE_WARNING:Enabled
    231.476511 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0
    231.476637 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1
    231.476733 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2
    231.476833 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3
    231.476846 s: VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    231.477768 s: VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    Setting pipeline to PAUSED ...
    0:00:00.116009963 953 0xffffa4000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.116074529 953 0xffffa4000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    Pipeline is live and does not need PREROLL ...
    0:00:00.116286264 953 0xffffa40010b0 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
    0:00:00.116316050 953 0xffffa4000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.116354341 953 0xffffa4000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    0:00:00.116848283 953 0xffffa4000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.116875033 953 0xffffa4000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    New clock: GstSystemClock
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-bayer, width=(int)2896, height=(int)1876, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-bayer, width=(int)2896, height=(int)1876, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-bayer, width=(int)2896, height=(int)1876, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    0:00:00.117140855 953 0xffffa4000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.117166030 953 0xffffa4000d30 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-bayer, width=(int)2896, height=(int)1876, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-bayer, width=(int)2896, height=(int)1876, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXIspPad:sink_0: caps = video/x-bayer, width=(int)2896, height=(int)1876, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
    0:00:00.117507244 953 0xffffa4000d30 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.117534414 953 0xffffa4000d30 WA[ 221.921301] imx490 9-001a: imx490: Set stream
    RN aggregator gstaggregator.c:2159:gst[ 221.931129] imx490 9-001a: imx490: Start stream
    _aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    0:00:00.117541049 953 0xffffa40010b0 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
    0:00:00.742138405 953 0xffffa40010b0 WARN v4l2bufferpool gstv4l2bufferpool.c:1334:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool0:src> Driver should never set v4l2_buffer.field to ANY
    /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXMisoPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2896, height=(int)1876
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2896, height=(int)1876
    /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2896, height=(int)1876
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2896, height=(int)1876
    /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2896, height=(int)1876
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2896, height=(int)1876
    Redistribute latency...
    0:00:00.836738691 953 0xffffa40010b0 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
    0:00:00.849457971 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:00.880606905 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:00.933149084 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.016138891 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.099471126 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.182784450 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.266342190 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.349458960 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.432828605 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.516165701 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1
    0:00:01.599439525 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1

  • Hi Carlos,

    Thanks for the update!

    However, when I try to load a raw image file from the file system into the VISS and save the output as a YUV file, I encounter the same issue.

    Are you able to do that for some IMX390 input raw image using the shared command?

  • 0:00:00.836738691 953 0xffffa40010b0 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
    0:00:00.849457971 953 0xffffa4000d30 ERROR tiovxisp gsttiovxisp.c:1918:gst_tiovx_isp_postprocess:<tiovxisp0> Unable to call analog gain ioctl: -1

    BTW, these seem to be issues in your IMX460 sensor driver.

    Do you know if anything goes wrong in cropping and analog gain?