记录创建的多个文件 [英] Multiple files created by arecord

查看:87
本文介绍了记录创建的多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用buildroot和ARMv7处理器的硬流程进行了自定义分发。
一切正常,但....

I've made custom distribution using buildroot, with hard-flow for ARMv7 processor. Everything is working except....

# arecord -D hw:0,0 -fdat -d 5 test.wav

这将创建多个文件。成千上万的。

This makes multiple files. Thousands of them.

-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参数。

This happens if I pass -d parameter. Any idea?

推荐答案

问题似乎出现在从 1.0.28 开始的ARM体系结构上。 c $ c> arecord 版本( arecord --version )。
在运行Raspbian Jessie的Raspberry Pi 3上,我设法将 alsa-utils 的版本从 1.0.28-1 降级改为 1.0.25-4 (回溯到Wheezy的回购),从而解决了问题:

The problem seems to appear on ARM architecture starting from 1.0.28 arecord version (arecord --version). On Raspberry Pi 3 running Raspbian Jessie I managed to downgrade alsa-utils from 1.0.28-1 to 1.0.25-4 (rolling back to Wheezy's repo), so that fixed the problem:


  • sudo nano /etc/apt/sources.list

  • 将以下行添加到文件末尾 deb 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

  • sudo nano /etc/apt/sources.list
  • add the following line to the end of the file deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
  • sudo apt-get update
  • sudo aptitude versions alsa-utils (this should show the old version to become available)
  • sudo apt-get install alsa-utils=1.0.25-4
  • now arecord --version should display downgraded version 1.0.25
  • You probably now want to remove that line you added to /etc/apt/sources.list, so that you don't get other packages from wheezy
  • sudo nano /etc/apt/sources.list
  • remove the line deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
  • run apt-get update again
  • also, put alsa-utils on hold so it doesn't get upgraded
  • sudo apt-mark hold alsa-utils

这篇关于记录创建的多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆