Ubuntu系统怎么调用摄像头和麦克风

  1. 系统环境查看
# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.4 LTS
Release:	22.04
Codename:	jammy
# uname -a
Linux Default-string 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May  7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
  1. 调用摄像头
# cheese

如正常打开摄像头则代表摄像头和驱动安装成功
3. 调用麦克风录音

# arecord -d 10 -f cd -t wav -D plughw:1,0 test.wav

录音10秒,会在当前目录生成十秒录音文件test.wav

posted @ 2024-06-07 16:48  minseo  阅读(14)  评论(0编辑  收藏  举报