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.

GStreamer user application with RidgeRun Evaluation SDK

Hi,

I have a problem with RidgeRun Evaluation SDK for Davinci Leopard board. I tried to run gst-launch application like this:

gst-launch -e v4l2src always-copy=FALSE num-buffers=300 input-src=composite ! 'video/x-raw-yuv,format=(

fourcc)NV12,width=720,height=480,pitch=736' !
dmaiaccel ! queue ! dmaienc_h264 copyOutput=false ratecontrol=4 ! dmaiperf ! qtmux ! filesink location=file.mov

Leopard board started with video stream processing and writing it to the file and no error was reported. I successfully copied file on my PC and played it without any problem.

I tried to make my own GStreamer application with the pipes that I tested with gst-launch application. I used RidgeRun video-capture-application written in c as template. After running make command I copied my application to Leopard board and after starting it I got this error:

vpfe-capture vpfe-capture: dma_alloc_coherent size 7168000 failed               
Segmentation fault

I also tried to run RidgeRun video-capture-application and I did not have a problem with it.

Can someone know what might cause this behavior?

Best regards,
Gradimir.

  • Hello,

    Gradimir Ljubibratic1 said:
    vpfe-capture vpfe-capture: dma_alloc_coherent size 7168000 failed               
    Segmentation fault

    dma_alloc_coherent() is a Linux kernel API.  It allocates memory suitable for a DMA operation.  The memory would come from somewhere in the physical address space that's granted to the Linux kernel via the  bootargs parameter mem=XX.  dma_alloc_coherent() returns  pointer to allocated memory on success, NULL on failure.  You should check where dma_alloc_from_coherent fails. May be is a  problem with insufficient memory. Check how much MB you are passing for the image, may be it is not enough.

    Gradimir Ljubibratic1 said:

    'video/x-raw-yuv,format=(

    fourcc)NV12,width=720,height=480,pitch=736'

    Check this caps that you are passing also.

    Let me know the result.

    Best Regards,

    Margarita

  • Hi,


    I solved the problem. Elements in pipeline were not linked together properly. I fixed that and now my pipeline is working ok.


    Regards,

    Gradimir.