Results 1 to 3 of 3

Thread: non-tunnel decode component failed to output decoded data

  1. #1
    Junior Member
    Join Date
    Sep 2010

    non-tunnel decode component failed to output decoded data

    I'm a freshman to Openmax.Now I'm using a single decoder component to decode H.264 file.Here is my steps:
    first,call OMX_GetHandle to init the component;
    second,call OMX_GetParameter and OMX_SetParameter to set the component's parameters;
    third,call OMX_SendCommand to set the component from load to idle;
    fourth,allocate enough buffers myself,then call OMX_UseBuffer to attach the buffers to the component's ports;
    fifth;set the component from idle to executing;
    sixth,read the H.264 file ,write the compressed data to input buffer,call OMX_FillThisBuffer and OMX_EmptyThisBuffer to begin decode and wanna get the decoded data in the OMX_FillBufferDone function.
    The test file is generated by JM86,only contain one frame,that means it doesn't need circulation.
    When I run the program,the print information tells me
    component gethandle success,
    set_parameter success,
    allocate_buffer success,
    load_to_idle success,
    VDEC_DEC_SEQ_HEADER - Success,
    VDEC_DECODE Success,
    Last Key Frame Detect!

    gsVpuDecOutput.m_DecOutInfo.m_iDecodingStatus=1; // means Decode success
    gsVpuDecOutput.m_DecOutInfo.m_iOutputStatus=0; // means Output failed

    I don't know why the program can decode but no output,have I missed something ?Anyone please help me out!
    Thank you for your kindness!

  2. #2
    Junior Member
    Join Date
    Sep 2010

    Re: non-tunnel decode component failed to output decoded dat

    Now,I know what happened here,it's because the FrameBufferDelay,Only after the decoded frame number is up to FrameBufferDelay,there will be output.But I've got another question,how to make the value of FrameBufferDelay be 0 , what parameters is relate to FrameBufferDelay?

  3. #3
    Join Date
    May 2008
    California, USA

    Re: non-tunnel decode component failed to output decoded dat

    I would typically run a video decoder with the output port disabled until receiving a PortSettingsChanged event. This occurs when the (sub-)format of the input stream is detected, setting parameters such as the output frame dimensions.

    Are your receiving a PortSettingsChanged event after having supplied data to the input port? If so, this could prevent the frame(s) from being output (see IL 1.1.2, section

    I've no idea what "FrameBufferDelay" is. A standard video decoder doesn't delay outputting frames.


    Roger Nixon, Broadcom Corporation

Similar Threads

  1. Replies: 1
    Last Post: 08-18-2008, 01:37 PM
  2. Replies: 1
    Last Post: 12-31-1969, 07:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean