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.

IPNC app using VideoForLinx (v4l) possible?



Hi,

I am working with a IPNC DMVA2 and I was looking for some help of an expert in the IPNC app from the TI DM365/368/DMVA1/DMVA2.

I was wondering if it is there any posibility to make the IPNC application to use a VideoForLinuxe (v4l) device, I really would like the app to take frames from "/dev/video0" .

If i am understanding properly the IPNC app isent using v4l but a low level driver implementation of a 5MP CCD sensor, if we want to use it with other sensor, do we have to implement this driver? isn´t there any way to use video for linux devices??

 

Thank you very much :)

  • Hi Ivan,

    IPNC releases on DM36x, DMVAx do not support capture using V4L2. We use only custom drivers for capture and other related blocks in capture path. The interface/concept is similar to V4L2 drivers.

    Is there any specific reason why you would not want to use the drivers provided in the IPNC?

    BTW, in the V4L2 driver that comes in the PSP/DVSDK package, support for 5MP resolution does not exist. It needs decent amount of changes to support vertical slicing mechanism needed for 5MP kind of capture.

    Regards,

    Anshuman

  • Thank you very much Anshuman. 

    I wanted to use v4l becouse we already have a camera video streaming/enconding using DVSDK3.1 and v4l drivers for our CMOS, I just wanted to add analytics to it, i was thinking to use dmval.a as and stand alone to be added to the "encode demo" of the DVSDK in order to have our starting point for our full analytics support with future TI processors. I have seen that dmval.a has much more dependencies that I initially thought and I see it dificult to use it out of the IPNC app, the other way was to port IPNC app to v4l in order to start using this full featured app.

     

    Thank you very much again :) 

  • Ivan Mayo said:
    I have seen that dmval.a has much more dependencies that I initially thought and I see it dificult to use it out of the IPNC app, the other way was to port IPNC app to v4l in order to start using this full featured app.

    Porting complete IPNC app to V4L2 based drivers is going to take much longer. If you could tell us the kind of issues you are facing in using DMVA library, then we can try to help.

    Regards,

    Anshuman

     

     

  • Hi Anshuman,

     

    I am triying to compile a simple example code but I get so many dependencies on drv libraries, osa libs, cmem etc...., so it seems so dificult to me to use dmval.a outside the IPNC app, if I am right the way you want developers to use IPNC with their own sensors is to develop their own driver for IPNC app. ¿Am i right?

     

     

    #include "DMVALINC.h"

    void main()

    {

    DMVALhandle handle;

    DMVALsensitivity sensitivity = DMVAL_SENSITIVITY_HIGH;

    DMVAL_create( &handle,

    DMVAL_DETECTMODE_IMD,

    DMVAL_IMG_YUV420_PLANARINTERLEAVED,

    sensitivity,

    DMVAL_CAM_ORIENT_HIGH_ANGLE,

    DMVAL_CAM_LENS_FIXFOCAL,

    288,

    192,

    288);

     

    }

     

  • The minimum layers you need are osa, cmem, codec engine, framework components, linuxutils for using DMVA Lib

    Ivan Mayo said:
    I am right the way you want developers to use IPNC with their own sensors is to develop their own driver for IPNC app. ¿Am i right?

    Yes, that is the preferred approach to keep the focussed support and ensure a robust system for customers.

    Regards,

    Anshuman

  • Thank you very much Anshuman.

  • Hi again Anshuman,

    I am using "Digital Media Video Analytics Library (DMVAL) Application Programming Interface (API) Guide for DMVAx v0.30" pdf. I have been trying to compile the code sample that appears on the 2.4 with only references to DMVAL with any OSA reference, ¿is there any place where TI provides the makefile to compile such code or this sample project with it´s makefiles and dependencies compiling and linking? It could be so helpful for me becouse I can´t compile it even with the components that you told to me.