• 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 » "FAILED to create local codec" when h264 encoder is running
Share
Multimedia Software Codecs
  • Forum
Options
  • Subscribe via RSS

Forums

"FAILED to create local codec" when h264 encoder is running

This question is answered
Hongfeng Wang
Posted by Hongfeng Wang
on Feb 08 2012 11:34 AM
Genius3175 points

platform: DM368

I can run DMAI demo application image_encode_io1_dm368.x470MV successfully when the h264 encoder is not running.
However, if I started the encode application from dvsdk_demos, and run the jpeg encoder application again, it would throw such error:

@4,161,211us: [+7 T:0x403165e0 S:0xbeb486d4] ti.sdo.ce.alg.Algorithm - Algorithm_create> Assignment of alg resources through RMAN FAILED (0x7)

@4,503,826us: [+0 T:0x403165e0 S:0xbeb486d4] ti.sdo.ce.alg.Algorithm - Algorithm_create> return (0x0)
@4,503,955us: [+6 T:0x403165e0 S:0xbeb48714] CV - VISA_create2> FAILED to create local codec.
@4,504,080us: [+0 T:0x403165e0 S:0xbeb486ec] CV - VISA_delete(0x587e8)
@4,504,273us: [+5 T:0x403165e0 S:0xbeb486ec] CV - VISA_delete> deleting codec (localQueue=0xffff, remoteQueue=0xffff)
@4,504,431us: [+0 T:0x403165e0 S:0xbeb486cc] OM - Memory_free> Enter(0x587e8, 0x34)
@4,504,608us: [+0 T:0x403165e0 S:0xbeb486cc] OM - Memory_free> return (0x1)
@4,504,749us: [+0 T:0x403165e0 S:0xbeb4884c] ti.sdo.ce.image1.IMGENC1 - IMGENC_create> return (0x0)
@4,504,889us: [+7 T:0x403165e0 S:0xbeb48874] ti.sdo.dmai - [Ienc1] Can't open imaging encode algorithm
Failed to create image encoder: jpegenc

I have 116MB memory reserved for CMEM use, it's probably not because of shortage of memory.

I tried solution in this post
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/86319.aspx#298344

but it's not making any difference. I modified "image_encode_io1_dm368.cfg" to add EDMA3.maxrequests=128.

Thanks for your help.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Hongfeng Wang
    Posted by Hongfeng Wang
    on Feb 08 2012 13:23 PM
    Genius3175 points

    Forgot to mention: I am using DVSDK4.02

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Hongfeng Wang
    Posted by Hongfeng Wang
    on Feb 08 2012 13:41 PM
    Verified Answer
    Verified by Hongfeng Wang
    Genius3175 points

    Found the problem:

    in my encode.cfg, I had

    var myEngine = Engine.create("encode", [
        {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
        {name: "jpegenc", mod: JPEGENC, local: true, groupId: 2},
        {name: "jpegdec", mod: JPEGDEC, local: true, groupId: 2},
    ]);

    in image_encode_io1_dm368.cfg, I had

    var myEngine = Engine.create("encode", [
        {name: "jpegenc", mod: JPEGENC, local: true, groupId: 0},
    ]);

    I removed jpegenc/jpegdec from encode.cfg and changed groupID to 1 in image_encode_io1_dm368.cfg, now it's working!

    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