You are not logged in.

#1 2022-10-17 08:31:27

yufeiluo
Member
Registered: 2017-08-08
Posts: 8

Why can't capture the sound speak into my webcamera?

List all input device with commands:

    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

Capture audio playing on the sound card with same way:

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

It works fine,now to catch the audio speaking into my webcamera with

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

Show status of 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

It is in good status ,why can't capture the sound speak into my webcamera ?

Offline

#2 2022-10-18 19:38:19

Gosi
Member
From: Vienna, Austria
Registered: 2010-02-25
Posts: 103

Re: Why can't capture the sound speak into my webcamera?

arecord -d  alsa_input.usb-SN0002_HIK_1080P_CAMERA_SN0002-02.analog-mono-fallback sample.wav

What if you remove the "analog-" from the input descriptor?

Offline

Board footer

Powered by FluxBB