Tool/software:
Hello Team,
We are using below gstreamer pipeline for GRAY8 data. camera sensor provided monochrome data and that we are trying to pass in ISP using bayer format but ISP getting failed to output GRAY8 data.
Below pipeline failed for GRAY8 output in tiovxisp:
gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import ! video/x-bayer, width=1920, height=1200, framerate=60/1, format=rggb ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 ! video/x-raw, format=GRAY8, wid
th=1920, height=1200 ! fakesink
Working pipeline for NV12 output in tiovxisp:
gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import ! video/x-bayer, width=1920, height=1200, framerate=60/1, format=rggb ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 ! video/x-raw, format=NV12, wid
th=1920, height=1200 ! fakesink
Error log:
root@am62axx-evm:/usr/sbin#
root@am62axx-evm:/usr/sbin# gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import ! video/x-bayer, width=1920, height=1200, framerate=60/1, format=rggb ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 ! video/x-raw, format=GRAY8, wid
th=1920, height=1200 ! fakesink
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=6) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
8935.369247 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
8935.369359 s: VX_ZONE_INIT:Enabled
8935.369374 s: VX_ZONE_ERROR:Enabled
8935.369389 s: VX_ZONE_WARNING:Enabled
8935.370185 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
8935.370316 s: VX_ZONE_INIT:[tivxHostInitLocal:101] 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)1920, height=(int)1200, framerate=(fraction)60/1, format=(string)rggb, interlace-mode=(string)progressive, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-bayer, width=(int)1920, height=(int)1200, framerate=(fraction)60/1, format=(string)rggb, interlace-mode=(string)progressive, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXIspPad:sink_0: caps = video/x-bayer, width=(int)1920, height=(int)1200, framerate=(fraction)60/1, format=(string)rggb, interlace-mode=(string)progressive, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-bayer, width=(int)1920, height=(int)1200, framerate=(fraction)60/1, format=(string)rggb, interlace-mode=(string)progressive, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXMisoPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1920, height=(int)1200
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1920, height=(int)1200
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1920, height=(int)1200
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, width=(int)1920, height=(int)1200
8935.749007 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:601] Invalid reference
ERROR: from element /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0: Unable to init TIOVX module
Additional debug info:
../git/gst-libs/gst/tiovx/gsttiovxmiso.c(1508): gst_tiovx_miso_negotiated_src_caps (): /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0
Execution ended after 0:00:00.370444909
Setting pipeline to NULL ...
Freeing pipeline ...
8936.051869 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ee95350 of type 00000816 at external count 1, internal count 0, releasing it
8936.051920 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=user_data_object_108) now as a part of garbage collection
8936.052065 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ee95570 of type 00000816 at external count 1, internal count 0, releasing it
8936.052092 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=user_data_object_109) now as a part of garbage collection
8936.052176 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ef352f8 of type 00000813 at external count 1, internal count 0, releasing it
8936.052202 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=object_array_111) now as a part of garbage collection
8936.052249 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ee959b0 of type 00000816 at external count 1, internal count 0, releasing it
8936.052272 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=user_data_object_112) now as a part of garbage collection
8936.052307 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ef35498 of type 00000813 at external count 1, internal count 0, releasing it
8936.052330 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=object_array_113) now as a part of garbage collection
8936.052364 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9eea3700 of type 00000817 at external count 1, internal count 0, releasing it
8936.052386 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=raw_image_114) now as a part of garbage collection
8936.052420 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ef35638 of type 00000813 at external count 1, internal count 0, releasing it
8936.052443 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=object_array_115) now as a part of garbage collection
8936.052478 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ee95bd0 of type 00000816 at external count 1, internal count 0, releasing it
8936.052500 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=user_data_object_116) now as a part of garbage collection
8936.052534 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9ef357d8 of type 00000813 at external count 1, internal count 0, releasing it
8936.052556 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=object_array_117) now as a part of garbage collection
8936.052590 s: VX_ZONE_WARNING:[vxReleaseContext:1144] Found a reference 0xffff9eec7708 of type 0000080f at external count 1, internal count 0, releasing it
8936.052613 s: VX_ZONE_WARNING:[vxReleaseContext:1146] Releasing reference (name=image_118) now as a part of garbage collection
8936.052768 s: VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
8936.057370 s: VX_ZONE_INIT:[tivxDeInitLocal:193] De-Initialization Done !!!
APP: Deinit ... !!!
REMOTE_SERVICE: Deinit ... !!!
REMOTE_SERVICE: Deinit ... Done !!!
IPC: Deinit ... !!!
IPC: DeInit ... Done !!!
MEM: Deinit ... !!!
DDR_SHARED_MEM: Alloc's: 20 alloc's of 18823304 bytes
DDR_SHARED_MEM: Free's : 20 free's of 18823304 bytes
DDR_SHARED_MEM: Open's : 0 allocs of 0 bytes
MEM: Deinit ... Done !!!
APP: Deinit ... Done !!!
root@am62axx-evm:/usr/sbin#
root@am62axx-evm:/usr/sbin#
root@am62axx-evm:/usr/sbin#
Any idea why ISP failed to output GRAY8 ?
Thanks,
Jaimin