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.

ti8168 ezsdk decode_display sample, OMX_AllocateBuffer() err?

Hello,

I use the decode_display example to decode 3 1080P video, in the third way decoder allocates memory, OMX_AllocateBuffer () blocking, HDVICP memory is insufficient, how to modify the memory allocation of Linux and hdvicp?

thanks

lonly

  • Hello,

    You could check this guide for the memory map:

    You could also check OMX mosaic demo.

    You could try gstreamer also :

    gst-launch filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! gstperf ! fakesink filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! fakesink filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! fakesink

    BR

    Margarita

  • hello,
    I decoded 3ch 1080p in decode_display demo video, using 3 decode components, 3 scalar components, 2 display components. decode1, decode2, scalar1, scalar2, dispaly1, Display2 input and output buffer can be allocated, but OMX_AllocBuffer () does not return in the decode3 output buffer allocated memory,, I do not know way. I added it to demo:
    IL_CLIENT_SR #defien 2
    Heap = SharedRegion_getHeap (IL_CLIENT_SR);
    PBuffer = Memory_alloc (heap, pAppData->decILComp->outPortParams->nBufferSize, 128, NULL);
    Using OMX_usebuffer to use this shared memory, let's not succeed, and before the imagination.

    thanks,
    lonly
  • If I decoded 3ch 720p video in decode_display demo,sample no problem.
  • If I decoded 3ch 720p video in decode_display demo ,sample no problem.
  • I decoded 3ch 720p video in decode_display demo,sample no problem.
  • Hello,

    Could you try the gst pipeline and let me know the result.

    gst-launch filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! gstperf ! fakesink silent=true filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! fakesink silent=true filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! fakesink silent=true

    This pipeline will not display the videos.

    You could try to increase the heap memory. Refer to Memory map user guide.

    It also would be better to provide the debug log for your OMX demo.

    BR

    Margarita