Audio 由arecord创建的多个文件
我已经使用buildroot和ARMv7处理器的硬流进行了定制分发。 除了……一切正常Audio 由arecord创建的多个文件,audio,embedded-linux,alsa,buildroot,Audio,Embedded Linux,Alsa,Buildroot,我已经使用buildroot和ARMv7处理器的硬流进行了定制分发。 除了……一切正常 # arecord -D hw:0,0 -fdat -d 5 test.wav 这会生成多个文件。成千上万 -rw-r--r-- 1 root root 958508 Jan 1 00:19 test-01.wav -rw-r--r-- 1 root root 44 Jan 1 00:19 test-02.wav -rw-r--r--
# arecord -D hw:0,0 -fdat -d 5 test.wav
这会生成多个文件。成千上万
-rw-r--r-- 1 root root 958508 Jan 1 00:19 test-01.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-02.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-03.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-04.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-05.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-06.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-07.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-08.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-09.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-10.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-100.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-101.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-102.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-103.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-104.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-105.wav
-rw-r--r-- 1 root root 44 Jan 1 00:19 test-106.wav
等等
如果我传递-d参数,就会发生这种情况。有什么想法吗?问题似乎出现在ARM架构上,从1.0.28开始(
arecord--version
)。
在运行Raspbian Jessie的Raspberry Pi 3上,我成功地将alsa utils从1.0.28-1
降级到1.0.25-4
(返回到喘息反应),从而修复了问题:
sudo nano/etc/apt/sources.list
- 将以下行添加到文件
deb的末尾http://mirrordirector.raspbian.org/raspbian/ 喘息主要原因非自由rpi
sudo-apt-get-update
(这应显示旧版本可用)sudo-aptitude-versions-alsa-utils
sudo apt get install alsa utils=1.0.25-4
- 现在
应显示降级版本a记录--version
1.0.25
- 您现在可能想删除添加到/etc/apt/sources.list的那一行,这样您就不会从wheezy获得其他包了
sudo nano/etc/apt/sources.list
- 删除行
debhttp://mirrordirector.raspbian.org/raspbian/ 喘息主要原因非自由rpi
- 再次运行apt获取更新
- 另外,将alsa utils挂起,这样它就不会升级
sudo apt mark hold alsa utils
mkdir~/alsa utils
cd~/alsa-utils/
wgetftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.1.3.tar.bz2
tar xvjf alsa-utils-1.1.3.tar.bz2
cd~/alsa-utils/alsa-utils-1.1.3/
sudo apt get安装libncursesw5 dev
/configure--disable alsaconf--disable bat--disable xmlto--with curses=ncursesw
make
sudo make安装
arecord--版本
您是否已使用amixer或alsamixer检查音频设置?您需要启用记录源。我猜你是说硬浮动?但这不重要。如果驱动程序有缺陷,您也可以尝试
-N
。理论上,第一个文件应该有960044字节。这看起来好像64位算术没有正确处理。2018年1月的最新版本是1.1.5,只需在命令中相应地更新版本号即可。