完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
本帖最后由 人间烟火123 于 2018-6-15 10:22 编辑
我跟着 How_do_I_Integrate_new_codecs_into_DVSDK 上面的文档给dm3730添加aacheenc 修改codec.cfg (codec decleration) var AACHEENC = xdc.useModule('ti.sdo.codecs.aacheenc.ce.AACHEENC'); AACHEENC.serverFxns = "AUDENC1_SKEL"; AACHEENC.stubFxns = "AUDENC1_STUBS"; AACHEENC.useCache = false; AACHEENC.alg.watermark = false; AACHEENC.alg.codeSection = codeSection; AACHEENC.alg.udataSection = udataSection; AACHEENC.alg.dataSection = dataSection; Server.algs = [ [name: "aacheenc", mod: AACHEENC , threadAttrs: [ stackMemId: 0, priority: Server.MINPRI + 3], groupId : 2, ], package.xs (for validation) /* * ======== package.xs ======== */ function validate() [ // Each codec is validated with the following call: // validate_one_codec( validate_one_codec( "ti.sdo.codecs.aacheenc", "AACHEENC" ); gstticodecs_omap3530.c (codec added to gstreamer) [ "AAC Audio Encoder", /* String name of codec used by plugin */ "aacheenc", /* String name of codec used by CE */ codecServer /* Engine that contains this codec */ ], 编译codecs,、dmai 、 gstreamer 拷贝cs.x64P到板子上,使用我写的测试程序 /* Create device driver instance */ sAttrs.sampleRate = g_aac.maxSampleRate; sAttrs.mode = Sound_Mode_INPUT; if (device == Cpu_Device_OMAPL137) [ sAttrs.soundStd = Sound_Std_ALSA; ] sAttrs.soundInput = g_aac.soundInput; hSound = Sound_create(&sAttrs); if (hSound == NULL) [ printf("Failed to create audio devicen"); goto cleanup; ] hEngine = Engine_open(“encode”, NULL, NULL); if (hEngine == NULL) [ printf("Failed to open codec engine %sn", g_aac.engineName); goto cleanup; ] params.sampleRate = dynParams.sampleRate = g_aac.maxSampleRate; params.bitRate = dynParams.bitRate = g_aac.maxBitrate; /* Create the AUDENC1 based audio encoder */ hAe1 = Aenc1_create(hEngine, "aacheenc", ¶ms, &dynParams); if (hAe1 == NULL) [ printf("Failed to create audio encodern"); goto cleanup; ] 板子输出的debug信息 root@dm37x-evm:/mnt/rpl/examples# CE_DEBUG=1 ./aacencode test.aac aac filename is test.aac @0,283,570us: [+6 T:0x4001fdd0] CE - Engine_init> CE debugging on (CE_DEBUG=1; allowed CE_DEBUG levels: 1=min, 2=good, 3=max) start aac encode [DSP] @0x0000029e:[T:0x00000000] server - main> Welcome to DSP server's main(). @0,402,587us: [+6 T:0x4001fdd0] CE - Engine_createNode> Remote node creation FAILED (0x80008008). [DSP] @0,012,090tk: [+7 T:0x87c37794] ti.sdo.ce.alg.Algorithm - Algorithm_create> Algorithm creation FAILED; make sure that 1) alg params are correct/appropriate, 2) there is enough internal and external algorithm memory available -- check DSKT2 settings for heap assignments and scratch allocation [DSP] @0,012,249tk: [+6 T:0x87c37794] CV - VISA_create2> FAILED to create local codec. @0,403,137us: [+6 T:0x4001fdd0] CV - VISA_create2> FAILED to create remote codec (0x8). @0,403,167us: [+7 T:0x4001fdd0] ti.sdo.dmai - [Aenc1] Failed to open audio encode algorithm: aacheenc Failed to create audio encoder 请问一下是哪里的问题? |
|
相关推荐
3个回答
|
|
运行应用程序的时候,需要带参数-a 吧
|
|
|
|
程序是我自己写的,根据dmai里面的app修改的,不需要参数,请问你能从CE_DEBUG中看出什么问题么? |
|
|
|
解决了,omap3730使用的是aaclcenc |
|
|
|
只有小组成员才能发言,加入小组>>
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
686 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
601 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1055 浏览 1 评论
744 浏览 0 评论
普中科技F28335开发板每次上电复位后数码管都会显示,如何熄灭它?
526 浏览 1 评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
167浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
128浏览 14评论
在使用3254进行录音的时候出现一个奇怪的现象,右声道有吱吱声,请教一下,是否是什么寄存器设置存在问题?
127浏览 13评论
TLV320芯片内部自带数字滤波功能,请问linein进来的模拟信号是否是先经过ADC的超采样?
123浏览 12评论
GD32F303RCT6配置PA4 ADC引脚,将PA2代替key功能,PA2连接时无法实现预期功能,为什么?
56浏览 10评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 15:08 , Processed in 1.119855 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号