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.

DVSDK4 Capture Buffer Numbers?

Other Parts Discussed in Thread: OMAP3530, DM3730

Hi.

I am now working on dvsdk demo examples and changing them to my needs. I want to increase the number of capture and display buffers from 3 to 5 or more. I tried changing but it cannot create the capture device when I increase the buffer number. How can I do this increase?

Regards,

Fatih

  • Hi Fatih,

    Can you try running the demo with "DMAI_DEBUG=2" prepended to the command line? E..g.

    DMAI_DEBUG=2 ./encode -y3 -v myvideo.264

    The trace should give a better indication of what went wrong. My suspicion is that you may have run out of CMEM pool space, and you'll need to update your loadmodules.sh file to ensure there are enough buffers allocated for the demos to assign them to the capture and display drivers.

    Best regards,

    Vincent

  • Hi ,

    I will try the DMAI_DEBUG option. I just want to inform you that I modified the loadmodules.sh and doubled all the buffer pool numbers so it shouldnt be a problem. Also, I can increase the number of display buffers without changing the capture buffers. but, when I increase capture buffers, it gives error whether I increase the display buffers or not change them. I made a kernel parameter change for display buffer number video_out.buffer_numbers=5 (something like that). Before that change I was not able to increase the display buffer. Is there any parameter for capture buffer number?

  • Hi again,

    I used DMAI_DEBUG=2 parameter.

    @0x000fcdf6:[T:0x4001ea70] ti.sdo.dmai - [Dmai] Insufficient device driver buffer memory
    @0x000fce52:[T:0x4001ea70] ti.sdo.dmai - [Capture] Failed to intialize capture driver buffers on /dev/video0

    I get these errors. Do you know a way that I can increase the buffer number to more than 3?

    Regards,

  • Hello,

    Have you checked the PSP user guide to see if there is option to increse the default number of buffer in capture driver ? The error you are getting in DMAI indicates that the number of requested buffer is not supported by driver (I think VIDIOC_REQBUFS) ioctl is return error in this case.

    Thanks

    Brijesh

  • For anyone who stumbles upon this thread looking for an answer to this problem, I've found 1 possible cause for this type of error when using an image sensor (i'm on the DM3730 EVM, or OMAP3530 EVM):

     

    In my board setup file (board-omap3evm-camera.c), there is a hw_config structure for my camera sensor.  This structure contains a "capture_mem" field.  This field is used to decide how much memory the capture device is allowed to allocate for this image sensor.  It should be set to your maximum resolution*number of frames in bytes.  Hope this can help someone.