• 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 » VISA_create2> FAILED to create local codec
Share
Multimedia Software Codecs
  • Forum
Options
  • Subscribe via RSS

Forums

VISA_create2> FAILED to create local codec

This question is answered
Sivaramkrishna Neeruganti
Posted by Sivaramkrishna Neeruganti
on Jan 31 2011 23:24 PM
Intellectual870 points

hi ,

i am trying to play a mp4 file using OMX (openmax interface) hardware codecs on DM365 platform .i have ported Android froyo on DM365 platform .

dvsdk version used is dvsdk_3_00_01_10.i am not able to see the CE Debug messages even after exporting the variable CE_DEBUG=2.

somehow managed to print some log messages and the problem got traced to VISA_create2 function.

E/libnav  ( 1707): Into Codec Engine VIDDEC2_create fun
E/libnav  ( 1707): Into Codec Engine VISA_create fun
E/libnav  ( 1707): Into Codec Engine VISA_create2 fun
E/libnav  ( 1707): VISA_create2> FAILED to create local codec.
E/libnav  ( 1707): VISA_create2 failed
E/libnav  ( 1707): out from Codec Engine VIDDEC2_create fun
E/libnav  ( 1707): Failed to open video decode algorithm
I/omx-dsp ( 1707): 0273928317 [VIDEO.ERROR] Failed to open decoder 'mpeg4dec'

 

can anyone help me whats going wrong when i try to play a mp4 file ?also please let me know the correct params variable to be passed to Videc2_create function in the DMAI layer.

thanks

SRK

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • zanget
    Posted by zanget
    on Apr 06 2012 20:13 PM
    Expert1840 points

    hi, Sivaramkrishna 

    i'm facing with the same issue on our target board, i just want to know if you get your problem solved.

    regards, Mike

    Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • raormanrat
    Posted by raormanrat
    on Apr 09 2012 19:24 PM
    Intellectual1110 points

    Does CE_DEBUG=3 generate any additional trace? Are you able build your application with 'debug' profile components and step into the VISA create function? If you have the algorithm package source you may also want to put a breakpoint in its algorithm IALG::algAlloc function. (external symbols should be published with the algorithm documentation).

    A creation error would likely be due to running out of a system resource (memory, dma channels, vicp, ... ) perhaps posting relevant information of your application configuration might have some clues.

    Best regards,

    Murat

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zanget
    Posted by zanget
    on Apr 09 2012 19:32 PM
    Expert1840 points
    Hi, Murat.
    Thanks for you post.
    this is what i have done :

    status = VIDDEC2_process(pvideodec->hDecoder, &inBufs, &outBufs, &inArgs, &outArgs);
    status Failed with -1 and getlastererror: 0

    printf("decodedBufs.extendedError 0x%x\n" , (int)outArgs.decodedBufs.extendedError);
    decodedBufs.extendedError return with 0x0
    
    
    with CE_DEBUG=3 i get 
    
    

    @83,574,873us: [+0 T:0x41b15490 S:0x41b141e4] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Enter (handle=0x335dd8, inBufs=0x41b14ac0, outBufs=0x41b14ab4, inArgs=0x41b14aa8, outArgs=0x41b14308)

    @83,575,113us: [+5 T:0x41b15490 S:0x41b141c4] CV - VISA_enter(visa=0x335dd8): algHandle = 0x335e10

    @83,575,351us: [+0 T:0x41b15490 S:0x41b141b4] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x335e10)

    @83,575,553us: [+0 T:0x41b15490 S:0x41b1417c] ti.sdo.ce.osal.SemMP - Entered SemMP_pend> sem[0x335c28] timeout[0xffffffff]

    @83,575,774us: [+0 T:0x41b15490 S:0x41b1417c] ti.sdo.ce.osal.SemMP - Leaving SemMP_pend> sem[0x335c28] status[0]

    @83,576,059us: [+0 T:0x41b15490 S:0x41b141c4] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit

    @83,576,359us: [+5 T:0x41b15490 S:0x41b141cc] CV - VISA_exit(visa=0x335dd8): algHandle = 0x335e10

    @83,576,565us: [+0 T:0x41b15490 S:0x41b141bc] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x335e10)

    @83,576,772us: [+0 T:0x41b15490 S:0x41b1419c] ti.sdo.ce.osal.SemMP - Entered SemMP_post> sem[0x335c28]

    @83,576,981us: [+0 T:0x41b15490 S:0x41b1419c] ti.sdo.ce.osal.SemMP - Leaving SemMP_post> sem[0x335c28]

    @83,577,168us: [+0 T:0x41b15490 S:0x41b141cc] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit

    @83,577,344us: [+0 T:0x41b15490 S:0x41b141e4] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_process> Exit (handle=0x335dd8, retVal=0xffffffff)

    any ideas ????

    regards, Mike

    thanks in advance.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • raormanrat
    Posted by raormanrat
    on Apr 10 2012 14:34 PM
    Intellectual1110 points

    Hi Mike,

    It looks like you are farther along, past the 'create' phase, and now bumping into issues as to how to use the codec. (Curious what the issue was with creation before.)

    Your trace here shows that as far as Codec Engine is concerned everything went as expected. However, your decoder has returned -1, which is a general non-specific failure.

    This could be due to a lot of codec specific reasons, so you will have to ensure that you have created the codec with the supported creation parameters, and are passing everything as expected by the codec's process() function. These include the sizes of the inBufs and outBufs, and the other attributes of the inArgs and outArgs. I am not a codec expert, so you would need to rely on documentation about the codec.

    You may also want to check the 'extendedError' fields of the  outArgs after the process() function returns, to see if there is any more specific error information.

    Best regards,

    Murat

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zanget
    Posted by zanget
    on Apr 11 2012 10:07 AM
    Expert1840 points

    hi, Murat.

    Thanks very much.

    it was found out that if the app is running not in the script but the active shell, the timeout message gone:

    Entered SemMP_pend> sem[0x335c28] timeout[0xffffffff].

    I have checked "extendedError"

    i don't know why if CE_DEBUG=2/3 is set, i get none zero value with the "extendedError" or else it was always 0. 

    Regards, Mike.

    thanks again.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zanget
    Posted by zanget
    on Apr 11 2012 20:27 PM
    Expert1840 points

    hi, Murat.

    now i get  extendedError of 0x40211620

    the LSB 0x20 tell us that the error is :

    IH264VDEC_EX_ERR_FRAME_NUM_ERROR

    which tell me that Error in frame number.

    what's that referring to ???

    i'm reading the 264 file form sps, pps, and I form the beginning.

     

    any coments will be thankfull.

    regards, Mike

    Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • raormanrat
    Posted by raormanrat
    on Apr 12 2012 12:40 PM
    Intellectual1110 points

    I am not familiar with the codec specifics or the extended error code you are observing. My advice is to read up on the documentation and check your usage.

    Perhaps someone in the community with better insight might reply.

    Murat

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zanget
    Posted by zanget
    on Apr 13 2012 10:26 AM
    Verified Answer
    Verified by Yashwant Dutt
    Expert1840 points

    hi,Murat

    thanks any way. 

    i get my problem solved

    i check every thing passed to the code engine, and compare it  with the one using DMAI interface.

    now it works.

    regards, Mike


    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