5106
- 收藏
- 点赞
- 分享
- 举报
求助急:音频模块部分细节问题(ar0130)
1.最近在调音频模块,调了快一个月了,没找到原因,关键是不知道哪里出问题了,按理说例程应该是可以的,这里有些小疑问,还请各们大侠帮忙看一下:)
例程位于开发文档中的:/mnt/mpp/sample/audio/sample_acodec, cat一下C文件,这里有个变量声时如此: static HI_BOOL gs_bMicIn = HI_FALSE; 因为我用的测试设备是有源麦克风(电脑麦克风那种),这里是否要更改为HI_TRUE,后面有改过调试问题同样存在,帮忙理一下,这里放一下调试proc给大伙看看:
/mnt/mpp/sample/audio
# ./sample_audio
/************************************/
press sample command as follows!
1: send audio frame to AENC channel form AI, save them
2: read audio stream from file,decode and send AO
3: start AI to AO loop
q: quit whole audio sample
sample command:1
Ai(0,0) bind to AencChn:0 ok!
open stream file:"audio_chn0.adpcm" for aenc ok
bind adec:0 to ao(0,1) ok
please press twice ENTER to exit this sample(到这里喊话没有声音,不管是选择123)。接者:
# cat ai
[AI] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time: [Jan 28 2013, 14:48:13]
-----AI DEV ATTR---------------------------------------------------------------------------------------------------------
AiDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 2 1 mono 320 1 30
-----AI DEV STATUS-------------------------------------------------------------------------------------------------------
AiDev IntCnt FrmTime MaxFrmTime DMAChn DMAReq TranLen IsrTime MaxIsrTime DMAPhy0 DMAPhy1
0 3197 40004 40038 0 0 2560 311 450 84391000 84391a00
-----AI CHN STATUS-------------------------------------------------------------------------------------------------------
AiDev AiChn State Read Write BufFul u32Data0 u32Data1 AecAo AecFail bAnr bResmp PoiNum SampR ResmpType
0 0 enable 0 0 0 20002 30004 (-1,-1) 0 disable disable 0 (null) (null)
0 1 enable 0 0 0 50001 60003 (-1,-1) 0 disable disable 0 (null) (null)
# cat ao
[AO] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time: [Jan 28 2013, 14:48:13]
-----AO DEV ATTR---------------------------------------------------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 2 1 mono 320 1 30
-----AO DEV STATUS-------------------------------------------------------------------------------------------------------
AoDev IntCnt FrmTime MaxFrmTime DMAChn DMAReq TranLen IsrTime MaxIsrTime DMAPhy0 DMAPhy1
0 3282 40000 40018 1 1 2560 110 114 843bd000 843bda00
-----AO CHN STATUS-------------------------------------------------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1 bResmp PoiNum SampR ResmpType
0 1 enable 11 12 1 20001 20002 disable 0 (null) (null)
# cat aenc
[AENC] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time[Jan 28 2013, 14:48:14]
-----AENC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr1 Attr2 Attr3 Attr4 Attr5
0 adpcm 30
-----AENC CHN STATUS------------------------------------------------------------
ChnId RcvFrm EncOk FrmErr BufFull GetStrm RlsStrm
0 3384 3384 0 0 3384 3384
# cat adec
[ADEC] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time[Jan 28 2013, 14:48:14]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr SendCnt GetCnt PutCnt
0 adpcm 20 3551 3550 3550
2.# ./sample_audio 23 通过运行这句产生的录制文件audio_chn0.pcm, mount到PC端播放没有声音。
请问大哥们,这到底是什么原因呢,还有我的# cat /dev/log为什么没有反应呢,log文件是粉红色的文件夹,呀呀,快疯了。
例程位于开发文档中的:/mnt/mpp/sample/audio/sample_acodec, cat一下C文件,这里有个变量声时如此: static HI_BOOL gs_bMicIn = HI_FALSE; 因为我用的测试设备是有源麦克风(电脑麦克风那种),这里是否要更改为HI_TRUE,后面有改过调试问题同样存在,帮忙理一下,这里放一下调试proc给大伙看看:
/mnt/mpp/sample/audio
# ./sample_audio
/************************************/
press sample command as follows!
1: send audio frame to AENC channel form AI, save them
2: read audio stream from file,decode and send AO
3: start AI to AO loop
q: quit whole audio sample
sample command:1
Ai(0,0) bind to AencChn:0 ok!
open stream file:"audio_chn0.adpcm" for aenc ok
bind adec:0 to ao(0,1) ok
please press twice ENTER to exit this sample(到这里喊话没有声音,不管是选择123)。接者:
# cat ai
[AI] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time: [Jan 28 2013, 14:48:13]
-----AI DEV ATTR---------------------------------------------------------------------------------------------------------
AiDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 2 1 mono 320 1 30
-----AI DEV STATUS-------------------------------------------------------------------------------------------------------
AiDev IntCnt FrmTime MaxFrmTime DMAChn DMAReq TranLen IsrTime MaxIsrTime DMAPhy0 DMAPhy1
0 3197 40004 40038 0 0 2560 311 450 84391000 84391a00
-----AI CHN STATUS-------------------------------------------------------------------------------------------------------
AiDev AiChn State Read Write BufFul u32Data0 u32Data1 AecAo AecFail bAnr bResmp PoiNum SampR ResmpType
0 0 enable 0 0 0 20002 30004 (-1,-1) 0 disable disable 0 (null) (null)
0 1 enable 0 0 0 50001 60003 (-1,-1) 0 disable disable 0 (null) (null)
# cat ao
[AO] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time: [Jan 28 2013, 14:48:13]
-----AO DEV ATTR---------------------------------------------------------------------------------------------------------
AoDev WorkMod SampR BitWid ChnCnt ClkSel SondMod PoiNum ExFlag FrmNum
0 i2s_mas 8kHZ 16bit 2 1 mono 320 1 30
-----AO DEV STATUS-------------------------------------------------------------------------------------------------------
AoDev IntCnt FrmTime MaxFrmTime DMAChn DMAReq TranLen IsrTime MaxIsrTime DMAPhy0 DMAPhy1
0 3282 40000 40018 1 1 2560 110 114 843bd000 843bda00
-----AO CHN STATUS-------------------------------------------------------------------------------------------------------
AoDev AoChn State Read Write BufEmp u32Data0 u32Data1 bResmp PoiNum SampR ResmpType
0 1 enable 11 12 1 20001 20002 disable 0 (null) (null)
# cat aenc
[AENC] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time[Jan 28 2013, 14:48:14]
-----AENC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr1 Attr2 Attr3 Attr4 Attr5
0 adpcm 30
-----AENC CHN STATUS------------------------------------------------------------
ChnId RcvFrm EncOk FrmErr BufFull GetStrm RlsStrm
0 3384 3384 0 0 3384 3384
# cat adec
[ADEC] Version: [Hi3518_MPP_V1.0.4.0 Debug], Build Time[Jan 28 2013, 14:48:14]
-----ADEC CHN ATTR--------------------------------------------------------------
ChnId PlType BufSize Attr SendCnt GetCnt PutCnt
0 adpcm 20 3551 3550 3550
2.# ./sample_audio 23 通过运行这句产生的录制文件audio_chn0.pcm, mount到PC端播放没有声音。
请问大哥们,这到底是什么原因呢,还有我的# cat /dev/log为什么没有反应呢,log文件是粉红色的文件夹,呀呀,快疯了。
我来回答
回答2个
时间排序
认可量排序
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
22014-11-10 14:44:18
-
2016-04-01 10:00:25
-
2016-08-05 08:08:51
-
2016-01-16 11:26:31
-
2019-05-24 11:57:17
-
2017-01-15 17:27:11
-
2016-04-22 13:29:55
-
2016-08-24 11:00:12
-
2015-11-10 09:57:52
-
2016-12-08 10:57:54
-
2016-12-07 17:39:19
-
2014-07-09 12:20:53
-
2016-11-11 17:06:25
-
2014-02-20 14:05:22
-
2014-11-12 10:09:14
-
2015-04-09 11:05:48
-
2018-08-07 10:04:21
-
42015-06-18 16:47:55
-
2017-03-06 22:41:20
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认