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.

OpenMax for DM8168

Hi All,

- I am using DM8168 board, now I want to use "OMX.TI.VPSSM3.VFCC" component in openmax lib to capture video and use video stream (frame data) for my work.

- Steps used:

     + Load component: OMX_GetHandle ( &hVFCC, ( OMX_STRING ) "OMX.TI.VPSSM3.VFCC", &oAppData, &omxCallback );”

     + Set parameter: OMX_SetParameter

     + Change component to IDLE state:   OMX_SendCommand ( hVFCC, OMX_CommandStateSet, OMX_StateIdle, NULL );

     +  Alloc buffer for 16 port:   OMX_AllocateBuffer(hVFCC, &pBuffer, tPortDef.nPortIndex, NULL,tPortDef.nBufferSize);

- Here is issue: "OMX_AllocateBuffer" return to error code:

  • OMX_ErrorUndefined: while the component is in the process to switch to IDLE
  • OMX_ErrorIncorrectStateOperation:  When the component finished switching to IDLE

- Code build to run on A8 core

- Please help me to resolve this problem !!!

  • Appears like you are trying to use in non-tunnel mode. This is not supported in the EZSDK50011 or previous releases. The release has support/been tested only for proprietary tunnelling.

    Regards

    Tarakesh.

  • Thank you for your quick reply.

    So could you please advise how I can use the VPSS M3 Core to capture video and use frame data for my project?

    Best regards.

  • Mark,

    1. Are you using VS daughter card or VC; In other words, 16 channel (SD) or single channel?
    2. In your project, I assume you require the video frames coming to A8. One way would be to have the VFCC connect (vpss-m3) connected to a VSNK component (running on A8). You would need to create a new chain (similar to that of vs2 or vc3 app). At the input port of VSNK, you would get the video frames. (Currently the frames are freed up immediately after read from the input port).

     

    Thanks

    Tarakesh.

  • Hi Tarakesh

    1. I am using VS daughter card with 16 video input channel (SD)
    2. Are you mean:
    • use both VFCC component and VSNK component
    • Connect output port of VFCC component to input of VSNK component
    • How to get frame data from input port of VSNK  component

    Thanks

     

  • >>use both VFCC component and VSNK component :: Yes

    >>Connect output port of VFCC component to input of VSNK component :: Yes

    >>How to get frame data from input port of VSNK  component::  In the Vsnk component OMX_TI_VSNK_DataNotify () function, fpDioDequeue is the place where the buffers will be available.

    regards,

    Tarakesh.

  • Hi All,

    I am using 00.07.00.02 and I manage to save a frame out inside function OMX_TI_VSNK_DataNotify() function with the following openmax component:

    DMUX -> VDEC -> VSNK

    In VDEC and VSNK tunnelling i set the format as 'OMX_COLOR_FormatYUV420PackedSemiPlanar', the saved image is using the following parameter inside OMX_TI_VSNK_DataNotify()

    1. pInBufHeaderPtr->pBuffer (pointer to start of image)

    2. pInBufHeaderPtr->nFilledLen (size of image to be saved)

    I try to view the saved image but can only see the 'Y' component in correct format, while the 'U' and 'V' seems to be incorrect. I have attached the saved file.8664.raw_1_ch1.txt

    Please advice what I have done incorrect and how to fix this.

    Thank you very much.

    Cheng