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.

Why the h264 decoder do not support 1600x1200?

When I try to decode a h264 video in 1600x1200, I have the following error:

"N:Video P:1 #:00235 T:000000038dbcd503 S:OMX_TI_VIDDEC_Process::Line 2454::omxHandle 0x9db0e6b0::Error->Decoder returned error 0x208001"

I'm using TI-OMX with the EVM DM8148 and EZSDK 5.03.01.015

NOTE: I modified the TI-OMX to remove all the software limits to 1920x1080 and it works fine with the capture, the dei, the h264 encoder, the scaler and the display with any resolution up to 1920x1200 but not the h264 decoder.

  • Can you add the following in decode IL-Client and see if it works for you?

    {
      OMX_VIDEO_PARAM_STATICPARAMS tStaticParam;
      OMX_TEST_INIT_STRUCT_PTR (&tStaticParam, OMX_VIDEO_PARAM_STATICPARAMS);
     
      tStaticParam.nPortIndex = OMX_VIDDEC_OUTPUT_PORT;
     
      eError = OMX_GetParameter (pHandle, OMX_TI_IndexParamVideoStaticParams,
                                 &tStaticParam);
      /* setting I frame interval */
      printf( " level set is %d \n", tStaticParam.videoStaticParams.h264DecStaticParams.presetLevelIdc);
     
      tStaticParam.videoStaticParams.h264DecStaticParams.viddec3Params.maxHeight = width;
      tStaticParam.videoStaticParams.h264DecStaticParams.viddec3Params.maxWidth = ((height + 15) & 0xfffffff0);
      tStaticParam.videoStaticParams.h264DecStaticParams.presetLevelIdc = IH264VDEC_LEVEL5;
                            
      eError = OMX_SetParameter (pHandle, OMX_TI_IndexParamVideoStaticParams,
                                 &tStaticParam);
      }   

    Regards,

    Anirban

     

  • Thanks Anirban,

    I do not try the decode IL-Client sample but I found where my problem was. I forgot a software limitation of the height in OMX that was 1088 in the function "OMX_TI_H264VD_Set_StaticParams". Also, the "OMX_SetParameter" with index "OMX_IndexParamVideoProfileLevelCurrent" do not work at all for the h264 decoder (so I default it to level 5 instead of 4.1).

  • We also need to encoding picture up to 1920x1200p. Can you speak how to remowe software limitations on 1080 lines at TI-OMX libraries? 

  • Hello Evgeniy,


    I would recommend you to open a new topic for the new issue with these information:

    Software release version;


    BR
    Margartia