Hi all, 

I have solved this problem by modifing 
dvsdk_2_10_01_18/dmai_1_21_00_10/packages/package.xs,

change:

var codecInterfaces = [
    "ti.sdo.ce.speech",
    "ti.sdo.ce.speech1",
    "ti.sdo.ce.audio",
    "ti.sdo.ce.audio1",
    "ittiam.extensions.audio1",  /*For AAC,MP3 and WMA */
    /*"ittiam.extensions.speech1", *//* For G711 */
    "ittiam.extensions.common",  /* For AEC */    
    "ti.sdo.ce.video",
    "ti.sdo.ce.video1",
    "ti.sdo.ce.video2",
    "ti.sdo.ce.image",
    "ti.sdo.ce.image1",
];

to:

var codecInterfaces = [
    "ti.sdo.ce.speech",
    "ti.sdo.ce.speech1",
    "ti.sdo.ce.audio",
    "ti.sdo.ce.audio1",
    "ittiam.codecs.aaclc_enc",  /*For AAC */
    /*"ittiam.extensions.speech1", *//* For G711 */
    "ittiam.extensions.common",  /* For AEC */    
    "ti.sdo.ce.video",
    "ti.sdo.ce.video1",
    "ti.sdo.ce.video2",
    "ti.sdo.ce.image",
    "ti.sdo.ce.image1",
];

and I think wiki page:

http://processors.wiki.ti.com/index.php/DM365_Audio_Codecs_Integration_with_DVSDK_2.10.01.18_Demos

should also be updated becuase it's wrong for current version of audio codec.

2010-06-11



johnny



发件人: johnny
发送时间: 2010-06-11 10:25:20
收件人: Ring, Chris; Davinci-linux-open-source
抄送: 
主题: Re: RE: dm365: problem when aacenc update from version 2.8.0 to 3.5.0, 
Unable to locate alg "aacenc".

Thanks Ring,Chris for help.

The CE debug info is as below:

@6,607,041us: [+0 T:0x42973490] ti.sdo.ce.audio1.AUDENC1 - AUDENC1_create> 
Enter (engine=0x183be0, name='aacenc', params=0x42972c30)
@6,607,292us: [+0 T:0x42973490] CV - VISA_create(0x183be0, 'aacenc', 
0x42972ac8, 0x716, 'ittiam.extensions.audio1.IAUDENC1')
@6,607,493us: [+0 T:0x42973490] CV - VISA_create2(0x183be0, 'aacenc', 
0x42972ac8, 0x70, 0x716, 'ittiam.extensions.audio1.IAUDENC1')
@6,607,664us: [+6 T:0x42973490] CE - Engine_getConstName> Unable to locate alg 
"aacenc" (type "ittiam.extensions.audio1.IAUDENC1").
@6,607,804us: [+6 T:0x42973490] CV - VISA_create2> Unable to locate alg 
"aacenc".
@6,607,918us: [+0 T:0x42973490] CV - VISA_delete(0x0)
@6,608,028us: [+0 T:0x42973490] ti.sdo.ce.audio1.AUDENC1 - AUDENC_create> 
return (0x0)
@6,608,156us: [+7 T:0x42973490] ti.sdo.dmai - [Aenc1] Failed to open audio 
encode algorithm: aacenc
audioThrFxn():  Failed to create audio encoder: aacenc


and as I see, the problem is Unable to locate alg "aacenc".

I'm a little confused, because the codec package of version 2.8.0 has 3 
directorys:
app, codecs, extensions

but version 3.5.0 only has app and codec directories, no extensions directory, 
so I use the old version instead, and I think they should be the same.

I download AACLC encode 3.5.00 from page:
http://software-dl.ti.com/dsps/dsps_public_sw/codecs/DM365/index_FDS.html


becuase I use dmai interface for appication, so I locate aacenc v2.8.0 by 
adding "ittiam.extensions.audio1" in file:
dvsdk_2_10_01_18/dmai_1_21_00_10/packages/package.xs,

as below:

var codecInterfaces = [
    "ti.sdo.ce.speech",
    "ti.sdo.ce.speech1",
    "ti.sdo.ce.audio",
    "ti.sdo.ce.audio1",
    "ittiam.extensions.audio1",  /*For AAC,MP3 and WMA */
    /*"ittiam.extensions.speech1", *//* For G711 */
    "ittiam.extensions.common",  /* For AEC */    
    "ti.sdo.ce.video",
    "ti.sdo.ce.video1",
    "ti.sdo.ce.video2",
    "ti.sdo.ce.image",
    "ti.sdo.ce.image1",
];

it works for version v2.8.0 but does not work for v3.5.0 becuase v3.5.0 have no 
extension directory within codec package.

maybe we can use another way to integrate aac codec without extension directory?
2010-06-11 



johnny 



发件人: Ring, Chris 
发送时间: 2010-06-11  01:34:26 
收件人: johnny; Davinci-linux-open-source 
抄送: 
主题: RE: dm365: problem when aacenc update from version 2.8.0 to 3.5.0 
Just as an example of what this might be - the newer codec _may_ require more 
resources than before (e.g. DMA channels), and if those extra resources aren't 
made available (typically done in the .cfg script), the creation may fail.

You may be able to learn more about the exact cause of the create failure by:
   1.  Enabling trace in Framework Components 
(http://processors.wiki.ti.com/index.php/Trace_in_Framework_Components)
   2.  Displaying that trace via CE_DEBUG 
(http://processors.wiki.ti.com/index.php/CE_DEBUG)

You might also dig through the codec data sheets and/or users guide.  Sometimes 
those show what resource requirements the codecs have - you might get lucky and 
find differences there, too.

Chris




From: [email protected] 
[mailto:[email protected]] On Behalf Of 
johnny
Sent: Wednesday, June 09, 2010 11:29 PM
To: Davinci-linux-open-source
Subject: dm365: problem when aacenc update from version 2.8.0 to 3.5.0



Hi all,

I'm use dvsdk_2_10_01_18 and update framework_component to 2_25_00_04 and 
linuxutils to 2_24_03,

when I use aac audio codec v2.8.0, everything is ok, but when I update it to 
v3.5.0,  with same paramters to open audio codec, it does not work.

that's, Aenc1_create() return NULL,.

If anybody has solved or encounterd this problem, please help me.

thank you very much.

2010-06-10 



johnny 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to