• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Multimedia Software Codecs » Multimedia Software Codecs forum » Urgent:Why High Profile encode failed?
Share
Multimedia Software Codecs
  • Forum
Options
  • Subscribe via RSS

Urgent:Why High Profile encode failed?

Urgent:Why High Profile encode failed?

This question is answered
feng xiao ming
Posted by feng xiao ming
on Dec 12 2011 03:36 AM
Expert1065 points

EZSDK5.03.1.15

HW:DM8168

APP:capture_encode

I have set the profile parameter:

  tProfileLevel.eProfile = OMX_VIDEO_AVCProfileHigh;

  tProfileLevel.eLevel = OMX_VIDEO_AVCLevel42;

Urgent!!!

encoder Codec DaVinci H.264 HDVICP2 DM8168 Dm816x DM816x C6A816x AM389x dm8186 EZSDK omx dm8168 ddr3 EzSDK 5.03
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • MarcPyne
    Posted by MarcPyne
    on Dec 13 2011 16:49 PM
    Mastermind23505 points

    Hello,

    Can you please provide more details on how it failed? (Output logs, etc.)

    Regards,
    Marc

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • feng xiao ming
    Posted by feng xiao ming
    on Dec 13 2011 19:22 PM
    Expert1065 points

     

    eError = OMX_GetParameter (pHandle, OMX_IndexParamVideoProfileLevelCurrent, &tProfileLevel);

      /* set as baseline 4.2 level */

      tProfileLevel.eProfile = OMX_VIDEO_AVCProfileHigh;

      tProfileLevel.eLevel = OMX_VIDEO_AVCLevel42;


      eError = OMX_SetParameter (pHandle, OMX_IndexParamVideoProfileLevelCurrent,&tProfileLevel);

      if (eError != OMX_ErrorNone)

        ERROR ("failed to set encoder pfofile \n");


      eError = OMX_GetParameter (pHandle, OMX_IndexParamVideoProfileLevelCurrent,

                                 &tProfileLevel);

      printf("tProfileLevel.eProfile  %d",tProfileLevel.eProfile );

     

     

    --------------------------------------------------------------------------------------------------

    the print out is:

    tProfileLevel.eProfile  8

     

    but i find that the profile of the encoded h.264 file is baseline profile。why???

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vimal Jain
    Posted by Vimal Jain
    on Dec 14 2011 00:02 AM
    Verified Answer
    Verified by feng xiao ming
    Expert6535 points

    Feng,

    If you are setting the profile, before Omx_indexParamPortDefinition, please move it after this. indexParamPortDefinition may re-initialize the profile, so it can be again base profile.

    Regards

    Vimal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • feng xiao ming
    Posted by feng xiao ming
    on Dec 14 2011 02:05 AM
    Expert1065 points

    thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ariel T.
    Posted by Ariel T.
    on May 14 2012 02:18 AM
    Intellectual700 points

    i follow your method to change the code as follow:           

    OMX_INIT_PARAM (&tPortDef);

      tPortDef.nPortIndex = OMX_VIDENC_OUTPUT_PORT;
      eError = OMX_GetParameter (pHandle, OMX_IndexParamPortDefinition, &tPortDef);
      /* settings for OMX_IndexParamPortDefinition */
      /* set the actual number of buffers required */
      tPortDef.nBufferCountActual = IL_CLIENT_ENC_OUTPUT_BUFFER_COUNT;
      tPortDef.format.video.nFrameWidth = pAppData->nWidth;
      tPortDef.format.video.nFrameHeight = pAppData->nHeight;
      tPortDef.format.video.eCompressionFormat = OMX_VIDEO_CodingAVC;
      tPortDef.format.video.xFramerate = (pAppData->nFrameRate << 16);
      tVideoParams.xFramerate = (pAppData->nFrameRate << 16);
      tPortDef.format.video.nBitrate = pAppData->nBitRate;
      /* settings for OMX_IndexParamVideoPortFormat */

      eError = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, &tPortDef);
      if (eError != OMX_ErrorNone)
      {
        ERROR ("failed to set Encode OMX_IndexParamPortDefinition for output \n");
      }

     /* Set the profile and level for H264 */
      OMX_INIT_PARAM (&tProfileLevel);
      tProfileLevel.nPortIndex = OMX_VIDENC_OUTPUT_PORT;

      eError = OMX_GetParameter (pHandle, OMX_IndexParamVideoProfileLevelCurrent,
                                 &tProfileLevel);

      /* set as baseline 4.2 level */

      tProfileLevel.eProfile = OMX_VIDEO_AVCProfileBaseline;
      tProfileLevel.eLevel = OMX_VIDEO_AVCLevel42;

      eError = OMX_SetParameter (pHandle, OMX_IndexParamVideoProfileLevelCurrent,
                                 &tProfileLevel);
      if (eError != OMX_ErrorNone)
        ERROR ("failed to set encoder pfofile \n");

    but it did not work as expected,the error as follow:

    encoder input port use buffer done.

    encoder output port buffers allocated

    got event*** unrecoverable error : OMX_ErrorBadParameter(0x80001005)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ariel T.
    Posted by Ariel T.
    on May 14 2012 02:31 AM
    Intellectual700 points

    Hi Vimal,

    I also meet the same problem, and follow your suggest to rearrange the code structrue as follow -

    OMX_INIT_PARAM (&tPortDef);

      tPortDef.nPortIndex = OMX_VIDENC_OUTPUT_PORT;
      eError = OMX_GetParameter (pHandle, OMX_IndexParamPortDefinition, &tPortDef);
      /* settings for OMX_IndexParamPortDefinition */
      /* set the actual number of buffers required */
      tPortDef.nBufferCountActual = IL_CLIENT_ENC_OUTPUT_BUFFER_COUNT;
      tPortDef.format.video.nFrameWidth = pAppData->nWidth;
      tPortDef.format.video.nFrameHeight = pAppData->nHeight;
      tPortDef.format.video.eCompressionFormat = OMX_VIDEO_CodingAVC;
      tPortDef.format.video.xFramerate = (pAppData->nFrameRate << 16);
      tVideoParams.xFramerate = (pAppData->nFrameRate << 16);
      tPortDef.format.video.nBitrate = pAppData->nBitRate;
      /* settings for OMX_IndexParamVideoPortFormat */

      eError = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, &tPortDef);
      if (eError != OMX_ErrorNone)
      {
        ERROR ("failed to set Encode OMX_IndexParamPortDefinition for output \n");
      }


     /* Set the profile and level for H264 */
      OMX_INIT_PARAM (&tProfileLevel);
      tProfileLevel.nPortIndex = OMX_VIDENC_OUTPUT_PORT;

      eError = OMX_GetParameter (pHandle, OMX_IndexParamVideoProfileLevelCurrent,
                                 &tProfileLevel);

      /* set as baseline 4.2 level */

      tProfileLevel.eProfile = OMX_VIDEO_AVCProfileBaseline;
      tProfileLevel.eLevel = OMX_VIDEO_AVCLevel42;

      eError = OMX_SetParameter (pHandle, OMX_IndexParamVideoProfileLevelCurrent,
                                 &tProfileLevel);
      if (eError != OMX_ErrorNone)
        ERROR ("failed to set encoder pfofile \n");

    but, it still not work correctly, the run information says-

    ...

    encoder input port use buffer done

    enconder outport buffers allocated

    got event*** unrecoverable error :OMX_ErrorBadParameter(0x80001005)

    what's wrong?

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use