我的网络摄像头麦克风的硬件地址是什么?

我的网络摄像头麦克风的硬件地址是什么?

我知道视频是,/dev/video0但是我不知道如何找到麦克风的硬件地址。我知道它不是,hw:0,0或者任何这些。

的输出aplay --list-device为:

**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC889 Analog [ALC889 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 1: ALC889 Digital [ALC889 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

我尝试查找地址的命令是:

cvlc v4l2:///dev/video0 :v4l2-standard= :inputlave=alsa://hw:0,0 :live-caching=300 :sout="#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/stream.wmv}"

输入lave = alsa://hw:0,0我认为需要改变。

答案1

尝试

arecord --list-devices 

arecord --list-pcms

例如...我不认为 ALSA 捕获设备具有关联的标准 unix 设备文件。在我的笔记本电脑上:

(0)asus-rmano:~% arecord --list-devices      
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

card 0我在、device 0、中有一个音频捕获设备subdevice 0(内置麦克风)。如何将其转换为“地址”取决于您对它的意思以及您使用的应用程序。

(0)asus-rmano:~% arecord --list-pcms     
default
    Playback/recording through the PulseAudio sound server
sysdefault:CARD=Intel
    HDA Intel, ALC269 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    Hardware device with all software conversions

例如从麦克风录制一些内容:

arecord  -D plughw -f S16_LE prova.wav

(完成后按 ctrl-c 停止)。

答案2

我认为你可以通过lspci -v或获取硬件地址lsusb -v- 例如

lspci -v- 声卡

00:1b.0音频设备:英特尔公司6系列/C200系列芯片组家族高清音频控制器
子系统:设备 3975
标志:总线主控、快速设备、延迟 0、IRQ 43
内存位于 e1600000(64 位,不可预取)[size=16K]
功能:
正在使用的内核驱动程序:snd_hda_intel

lsusb- 摄像头

总线 002 设备 003:ID5986:0292宏碁公司

您还可以使用lshw,还有图形界面

相关内容