平台dm8168,dvrrdk3.0开发板,我用线一端接入开发板的音频输入1口,一端接入播放歌曲的手机耳机口;摄像头接入视频输入1口,运行gui程序后,我录制的视频和现场都没有听到声音,gui里的音频设置我都设为enable了,请大家帮忙给点意见?谢谢了!
Louis:
你使用的是TI的EVM么?
fei li2:
回复 Louis:
我使用的是udwork的DM8168,dvrrdk3.0的
Louis:
回复 fei li2:
GUI的不是很清楚,不过你可以在liunx的ALSA utils试一下音频,下面是一个loopback的例子:
arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2 | aplay -Dhw:0,1 -r8000 -fS16_LE -c1
Normal0falsefalsefalseEN-USZH-CNX-NONEMicrosoftInternetExplorer4
arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2 | aplay -Dhw:0,1 -r8000 -fS16_LE -c1
fei li2:
回复 Louis:
谢谢louis! 我按照你给的例子,我在开发板的根目录下执行,但是报错了:arecord:pcm_rea:1773:read error:Input/output error .这是怎么回事?我昨天运行mcfw 可以录制音频了,播放是有声音的,但是运行gui后录制实时的都没有声音?
Louis:
回复 fei li2:
你用arecord -l 看一下你的设备有哪些?我给的只是一个例子,需要根据你的硬件配置,修改一下命令的参数。
fei li2:
回复 Louis:
谢谢louis!
root@dvr:/# aplay -l**** List of PLAYBACK Hardware Devices ****card 0: SOUND0 [TI81XX SOUND0], device 1: AIC3X tlv320aic3x-hifi-1 [] Subdevices: 1/1 Subdevice #0: subdevice #0card 1: SOUND1 [TI81XX SOUND1], device 0: hdmi HDMI-DAI-CODEC-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0root@dvr:/# arecord -l**** List of CAPTURE Hardware Devices ****card 0: SOUND0 [TI81XX SOUND0], device 0: TVP-PCM tvp5158-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0card 0: SOUND0 [TI81XX SOUND0], device 1: AIC3X tlv320aic3x-hifi-1 [] Subdevices: 1/1
Subdevice #0: subdevice #0
这是我的具体硬件配置, 我的音频输入接到开发板的音频1口,液晶电视接入开发板的hdmi0口, 运行
1.root@dvr:/# arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2|aplay -Dhw:0,0 -r8000 -fS 16_LE -c1 aplay: main:660: audio open error: No such file or directory Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo root@dvr:/# arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2|aplay -Dhw:0,1 -r8000 -fS 16_LE -c1 Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo arecord: pcm_read:1773: read error: Input/output error
2.root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,0 Side_Right.wav aplay: main:660: audio open error: No such file or directory root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,1 Side_Right.wav Playing WAVE 'Side_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono aplay: set_params:1065: Channels count non available
以上是我的音频测试信息,麻烦你帮我看看!
fei li2:
回复 Louis:
运行aplay -Dhw:0,1 /input_48k.wav没报错了,但是不知道这个输出的声音接口在哪?是hdmi0口,还是开发板上的stereo audio out口?