Hi experts,
I am using SK-TDA4VM and SDK 9.1 to test DMPAC capability. I followed instruction mentioned in this e2e, and the documentation of SDK 8.5 (https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-sk-tda4vm/08_05_00/exports/docs/dmpac_demos.html ). I modified gstreamer command and used the following command:
gst-launch-1.0 \ filesrc location=/opt/edgeai-gst-apps/data/videos/left-1280x720.avi ! \ avidemux ! h264parse ! v4l2h264dec ! \ video/x-raw, format=NV12 ! queue ! sde.left_sink \ filesrc location=/opt/edgeai-gst-apps/data/videos/right-1280x720.avi ! \ avidemux ! h264parse ! v4l2h264dec ! \ video/x-raw, format=NV12 ! queue ! sde.right_sink \ tiovxsde name=sde ! tiovxsdeviz ! kmssink driver-name=tidss sync=false
This command works.
I resized the images using videoscale and this works for 1280*1024 and 1300*1024.
However, when I try to resize the images to 1500*1024, problems occurs:
root@tda4vm-sk:/opt/edgeai-gst-apps# gst-launch-1.0 \ > filesrc location=/opt/edgeai-gst-apps/data/videos/left-1280x720.avi ! \ > avidemux ! h264parse ! v4l2h264dec ! \ > video/x-raw, format=NV12 ! \ > videoscale ! \ > video/x-raw, width=1500, height=1024 ! \ > queue ! sde.left_sink \ > filesrc location=/opt/edgeai-gst-apps/data/videos/right-1280x720.avi ! \ > avidemux ! h264parse ! v4l2h264dec ! \ > video/x-raw, format=NV12 ! \ > videoscale ! \ > video/x-raw, width=1500, height=1024 ! \ > queue ! sde.right_sink \ > tiovxsde name=sde ! tiovxsdeviz ! multifilesink location=/opt/edgeai-gst-apps/data/output/sde_1500_1024_%d.bmp 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 !!! 660.008512 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 660.008572 s: VX_ZONE_INIT:Enabled 660.008580 s: VX_ZONE_ERROR:Enabled 660.008586 s: VX_ZONE_WARNING:Enabled 660.009276 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!! 660.010162 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!! Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Redistribute latency... Redist[ 654.596406] unclassified data detected! ribute latency... [ 654.603833] unclassified data detected! Redistribute latency... Redistribute latency... [ 654.623471] unclassified data detected! [ 654.635749] unclassified data detected! 660.172622 s: VX_ZONE_ERROR:[ownContextSendCmd:822] Command ack message returned failure cmd_status: -1 660.172678 s: VX_ZONE_ERROR:[ownContextSendCmd:862] tivxEventWait() failed. 660.172686 s: VX_ZONE_ERROR:[ownNodeKernelInit:584] Target kernel, TIVX_CMD_NODE_CREATE failed for node node_136 660.172692 s: VX_ZONE_ERROR:[ownNodeKernelInit:585] Please be sure the target callbacks have been registered for this core 660.172700 s: VX_ZONE_ERROR:[ownNodeKernelInit:586] If the target callbacks have been registered, please ensure no errors are occurl 660.172707 s: VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.hwa.dmpac_sde ... failed !!! 660.172721 s: VX_ZONE_ERROR:[vxVerifyGraph:2059] Node kernel init failed 660.172727 s: VX_ZONE_ERROR:[vxVerifyGraph:2113] Graph verify failed 660.172825 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:601] Invalid reference ERROR: from element /GstPipeline:pipeline0/GstTIOVXSde:sde: Unable to init TIOVX module Additional debug info: ../git/gst-libs/gst/tiovx/gsttiovxmiso.c(1508): gst_tiovx_miso_negotiated_src_caps (): /GstPipeline:pipeline0/GstTIOVXSde:sde ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... [MCU2_1] 660.172338 s: VX_ZONE_ERROR:[tivxDmpacSdeCreate:571] Set parameters request failed [MCU2_1] 660.172395 s: VX_ZONE_ERROR:[tivxDmpacSdeCreate:575] Not enough SL2 memory for this configuration Freeing pipeline ... 660.205742 s: VX_ZONE_WARNING:[vxReleaseContext:1088] Found a reference 0xffffb57aa370 of type 00000816 at external count 1, internt 660.205759 s: VX_ZONE_WARNING:[vxReleaseContext:1090] Releasing reference (name=user_data_object_128) now as a part of garbage colln 660.205829 s: VX_ZONE_WARNING:[vxReleaseContext:1088] Found a reference 0xffffb5864378 of type 00000813 at external count 1, internt 660.205838 s: VX_ZONE_WARNING:[vxReleaseContext:1090] Releasing reference (name=object_array_130) now as a part of garbage collectin 660.205851 s: VX_ZONE_WARNING:[vxReleaseContext:1088] Found a reference 0xffffb57e24b8 of type 0000080f at external count 1, internt 660.205857 s: VX_ZONE_WARNING:[vxReleaseContext:1090] Releasing reference (name=image_131) now as a part of garbage collection 660.206232 s: VX_ZONE_WARNING:[vxReleaseContext:1088] Found a reference 0xffffb5864518 of type 00000813 at external count 1, internt 660.206241 s: VX_ZONE_WARNING:[vxReleaseContext:1090] Releasing reference (name=object_array_132) now as a part of garbage collectin 660.206251 s: VX_ZONE_WARNING:[vxReleaseContext:1088] Found a reference 0xffffb57e2770 of type 0000080f at external count 1, internt 660.206259 s: VX_ZONE_WARNING:[vxReleaseContext:1090] Releasing reference (name=image_133) now as a part of garbage collection 660.206599 s: VX_ZONE_WARNING:[vxReleaseContext:1088] Found a reference 0xffffb58646b8 of type 00000813 at external count 1, internt 660.206607 s: VX_ZONE_WARNING:[vxReleaseContext:1090] Releasing reference (name=object_array_134) now as a part of garbage collectin 660.206617 s: VX_ZONE_WARNING:[vxReleaseContext:1088] Found a reference 0xffffb57e2a28 of type 0000080f at external count 1, internt 660.206624 s: VX_ZONE_WARNING:[vxReleaseContext:1090] Releasing reference (name=image_135) now as a part of garbage collection 660.207109 s: VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!! 660.210525 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: 13 alloc's of 33882152 bytes DDR_SHARED_MEM: Free's : 13 free's of 33882152 bytes DDR_SHARED_MEM: Open's : 0 allocs of 0 bytes MEM: Deinit ... Done !!! APP: Deinit ... Done !!!
Please note these two lines:
[MCU2_1] 660.172338 s: VX_ZONE_ERROR:[tivxDmpacSdeCreate:571] Set parameters request failed
[MCU2_1] 660.172395 s: VX_ZONE_ERROR:[tivxDmpacSdeCreate:575] Not enough SL2 memory for this configuration
So does DMPAC supports 2MP in current version? How can I test the maximum resolution?
Regards,
Adam