Tool/software:
Hello Expert,
I am trying to get 4k resolution video output from using IMX219 cam connected to am62a via arducam v3 link adapter board.
When I try to check the 4k bin files in /opt/imaging/imx219/linear/ seems it is not there. So tried to create bin file using: https://git.ti.com/cgit/processor-sdk/imaging/tree/tools/default_DCC_profile_gen?h=main&id=51cbaf49d1102de1a7a9980258f66c958aad8c7e .By changing the config file width and height. Generated a folder named IMX219 output. There seems a shell script and after its run. Got 3 files dcc_2a.bin, dcc_ldc.bin, dcc_viss.bin and it will copied to the evm. Below is the terminal print of generate_dcc.sh shell script (seems some errors).
$ ./generate_dcc.sh Parsing: [imx219_rgb2rgb_dcc.xml] [OK!] Generating CRC: [18F10844] [OK!] Generating BIN file... [OK!] Parsing: [imx219_h3a_aewb_dcc.xml] [OK!] Generating CRC: [D0295AD2] [OK!] Generating BIN file... [OK!] Parsing: [imx219_viss_nsf4.xml] [OK!] Generating CRC: [41DA95E1] [OK!] Generating BIN file... [OK!] Parsing: [imx219_viss_blc.xml] [OK!] Generating CRC: [3C7EA53F] [OK!] Generating BIN file... [OK!] Parsing: [imx219_cfa_dcc.xml] [OK!] Generating CRC: [31358E23] [OK!] Generating BIN file... [OK!] Parsing: [imx219_viss_gamma_dcc.xml] [OK!] Generating CRC: [AC9866FF] [OK!] Generating BIN file... [OK!] Parsing: [imx219_linear_decompand_dcc.xml] [OK!] Generating CRC: [DC5E70D] [OK!] Generating BIN file... [OK!] Parsing: [imx219_h3a_mux_luts_dcc.xml] [OK!] Generating CRC: [C5BE9ED1] [OK!] Generating BIN file... [OK!] ../../dcc_bins/dcc_viss.bin ../../../../include/dcc_viss_imx219.h dcc_viss_imx219 Converting binary file [../../dcc_bins/dcc_viss.bin] to C array ERROR: Output file [../../../../include/dcc_viss_imx219.h] ./generate_dcc.sh: line 34: 740060 Segmentation fault (core dumped) $DCC_TOOL_PATH/dcc_bin2c ../../dcc_bins/dcc_viss.bin $OUT_PATH/dcc_viss_imx219.h dcc_viss_imx219 Parsing: [imx219_awb_alg_ti3_tuning.xml] [OK!] Generating CRC: [184E603C] [OK!] Generating BIN file... [OK!] Parsing: [imx219_h3a_aewb_dcc.xml] [OK!] Generating CRC: [D0295AD2] [OK!] Generating BIN file... [OK!] ../../dcc_bins/dcc_2a.bin ../../../../include/dcc_2a_imx219.h dcc_2a_imx219 Converting binary file [../../dcc_bins/dcc_2a.bin] to C array ERROR: Output file [../../../../include/dcc_2a_imx219.h] ./generate_dcc.sh: line 42: 740068 Segmentation fault (core dumped) $DCC_TOOL_PATH/dcc_bin2c ../../dcc_bins/dcc_2a.bin $OUT_PATH/dcc_2a_imx219.h dcc_2a_imx219 Parsing: [imx219_mesh_ldc_dcc.xml] [OK!] Generating CRC: [C5D5EAA1] [OK!] Generating BIN file... [OK!] ../../dcc_bins/dcc_ldc.bin ../../../../include/dcc_ldc_imx219.h dcc_ldc_imx219 Converting binary file [../../dcc_bins/dcc_ldc.bin] to C array ERROR: Output file [../../../../include/dcc_ldc_imx219.h] ./generate_dcc.sh: line 49: 740075 Segmentation fault (core dumped) $DCC_TOOL_PATH/dcc_bin2c ../../dcc_bins/dcc_ldc.bin $OUT_PATH/dcc_ldc_imx219.h dcc_ldc_imx219
I checked if it works through running a simple gstreamer pipeline. Seems some error associated with memory allocation.
APP: Init ... !!! 34954.344946 s: MEM: Init ... !!! 34954.345002 s: MEM: Initialized DMA HEAP (fd=8) !!! 34954.345138 s: MEM: Init ... Done !!! 34954.345150 s: IPC: Init ... !!! 34954.362748 s: IPC: Init ... Done !!! REMOTE_SERVICE: Init ... !!! REMOTE_SERVICE: Init ... Done !!! 34954.366878 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 34954.366992 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR 34954.367005 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING 34954.367016 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO 34954.367827 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 34954.368120 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 34954.368372 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 34954.368599 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 34954.368634 s: VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!! 34954.368646 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO 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: Failed to allocate required memory. Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.22.12/sys/v4l2/gstv4l2src.c(950): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Buffer pool activation failed Execution ended after 0:00:00.012682770 Setting pipeline to NULL ... ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: /usr/src/debug/gstreamer1.0/1.22.12/libs/gst/base/gstbasesrc.c(3134): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) (gst-launch-1.0:1732): GStreamer-Video-CRITICAL **: 00:34:41.032: gst_video_info_from_caps: assertion 'caps != NULL' failed 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 Freeing pipeline ... 34954.420453 s: VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffaf987cf0 of type 00000817 at external count 1, internal count 0, releasing it 34954.420485 s: VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=raw_image_81) now as a part of garbage collection 34954.420509 s: VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffafa2ac10 of type 00000813 at external count 1, internal count 0, releasing it 34954.420522 s: VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_82) now as a part of garbage collection 34954.421280 s: VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffafa2adc0 of type 00000813 at external count 1, internal count 0, releasing it 34954.421295 s: VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_84) now as a part of garbage collection 34954.422009 s: VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffafa2af70 of type 00000813 at external count 1, internal count 0, releasing it 34954.422024 s: VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_86) now as a part of garbage collection 34954.422738 s: VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffafa2b120 of type 00000813 at external count 1, internal count 0, releasing it 34954.422754 s: VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_88) now as a part of garbage collection 34954.423429 s: VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffafa2b2d0 of type 00000813 at external count 1, internal count 0, releasing it 34954.423445 s: VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_90) now as a part of garbage collection 34954.424124 s: VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffafa2b480 of type 00000813 at external count 1, internal count 0, releasing it 34954.424139 s: VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_92) now as a part of garbage collection APP: Deinit ... !!! REMOTE_SERVICE: Deinit ... !!! REMOTE_SERVICE: Deinit ... Done !!! 34954.429794 s: IPC: Deinit ... !!! 34954.431167 s: IPC: DeInit ... Done !!! 34954.431215 s: MEM: Deinit ... !!! 34954.431225 s: DDR_SHARED_MEM: Alloc's: 6 alloc's of 49766400 bytes 34954.431236 s: DDR_SHARED_MEM: Free's : 6 free's of 49766400 bytes 34954.431246 s: DDR_SHARED_MEM: Open's : 0 allocs of 0 bytes 34954.431261 s: MEM: Deinit ... Done !!! APP: Deinit ... Done !!!
Please help me to fix the issue.
Warm Regards,
Sajan