Hi everyone,
I have a little problem and I have run out of ideas; I am trying to use DMAI to capture frames from the LI-5M03. I can successfully used Gstreamer (gst-launch and in code) to grab frames without too much hassle but using pure DMAI it fails.
I added "Dmai_setLogLevel(Dmai_LogLevel_All);" to get some insight into what is going on. The output follows:
@0x0003d9c7:[T:0davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124x4001eba0] ti.sddavinci_previewer davinci_previewer.2: Mode set for this channel alreadyo.dmai - [Dmai] Log level set to 2.@0x0003e0e7:[T:0x4001eba0] ti.sdo.dmai - [Resize] Successfully set mode to continuous in resizer@0x0003f779:[T:0x4001eba0] ti.sdo.dmai - [Resize] Resizer initialized@0x000417c2:[T:0x4001eba0] ti.sdo.dmai - [Resize] Can't set operation mode in previewer (Invalid argument)@0x00041955:[T:0x4001eba0] ti.sdo.dmai - [Capture] Unable to configure Resizerdvtest: linux/Capture.c:758: Capture_get: Assertion `hCapture' failed.Aborted
So I dive into the code to find where the error is coming from, in "Resize.c" "Int Previewer_continous_config()", and I gather it's a part of IPIPE??
if (ioctl(preview_fd,PREV_S_OPER_MODE, &user_mode) < 0) { Dmai_err1("Can't set operation mode in previewer (%s)\n", strerror(errno)); close(preview_fd); return Dmai_EFAIL; }
I assume I have some settings wrong, but what?
Thanks, Dale
Would you be willing to post the code you used to capture the Gstreamer frames?
At one point I attempted to use Gstreamer to process frames, but I gave up and went straight to using the V4L2 driver.
Thanks.