audio – 由arecord创建的多个文件

audio – 由arecord创建的多个文件,第1张

概述我使用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 roo 我使用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--    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参数会发生这种情况.任何的想法?

解决方法 从1.0.28 arecord版本(arecord –version)开始,这个问题似乎出现在ARM体系结构上.
在运行Raspbian JessIE的RaspBerry Pi 3上,我设法将alsa-utils从1.0.28-1降级到1.0.25-4(回滚到Wheezy的repo),以便解决问题:

> sudo nano /etc/apt/sources.List>将以下行添加到文件末尾http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi> sudo apt-get update> sudo aptitude版本alsa-utils(这应该显示旧版本可用)> sudo apt-get install alsa-utils = 1.0.25-4>现在arecord –version应该显示降级版本1.0.25>您现在可能想要删除添加到/etc/apt/sources.List中的那一行,这样就不会从wheezy获取其他包> sudo nano /etc/apt/sources.List>删除行deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi>再次运行apt-get update>另外,将alsa-utils置于保持状态,以便不升级> sudo apt-mark hold alsa-utils

总结

以上是内存溢出为你收集整理的audio – 由arecord创建的多个文件全部内容,希望文章能够帮你解决audio – 由arecord创建的多个文件所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1047644.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存