PAREC을 사용하여 웹캠 사운드를 캡처할 수 없는 이유는 무엇입니까?

PAREC을 사용하여 웹캠 사운드를 캡처할 수 없는 이유는 무엇입니까?

다음 명령을 사용하여 모든 입력 장치를 나열합니다.

pactl list sources | grep -A 5 Source
Source #0
State: RUNNING
Name: alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.mono-fallback
Description: HIK 1080P CAMERA Mono
Driver: module-alsa-card.c
Sample Specification: s16le 1ch 16000Hz
--
Source #1
State: RUNNING
Name: alsa_output.pci-0000_09_00.6.analog-stereo.monitor
Description: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz

같은 방법으로 사운드 카드에서 재생되는 오디오를 캡처합니다.

parecord -d  alsa_output.pci-0000_09_00.6.analog-stereo.monitor  sample.wav

훌륭하게 작동하며 이제 웹캠으로 오디오를 캡처할 수 있습니다.

arecord -d  alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.analog-mono-fallback sample.wav
Stream error: No such entity

alsa_input의 상태를 표시합니다.

pacmd dump | grep alsa_input
set-source-volume alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.mono-fallback 0x13220
set-source-mute alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.mono-fallback no
suspend-source alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.mono-fallback no
set-default-source alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.mono-fallback

상태는 양호합니다. 웹캠에서 말하는 음성을 캡처할 수 없는 이유는 무엇입니까? 이상하게도 웹캠에 말하는 오디오는 arecord 명령을 사용하여 캡처할 수 있습니다.

#get the hardware info
arecord -L|grep  plughw|grep  CAMERA
plughw:CARD=CAMERA,DEV=0
#write the command  
arecord --device="plughw:CARD=CAMERA,DEV=0"  music.wav

arecord웹캠으로 말하는 모든 음성을 대신 캡처할 수 있는 이유는 무엇입니까 parecord?

관련 정보