我尝试使用 cheese 录制视频和音频。视频录制成功,音频未录制。我尝试修复:
- 运行
alsamixer -c1
并将音量调至 100% - 打开 pavucontrol 并将右角设置为 0,左角设置为 100% 全部不起作用:如果我正在录制音频,那么我只能听到扬声器输出中的噪音。
以下是输出pacmd list-cards
:
2 card(s) available.
index: 0
name: <alsa_card.usb-Sonix_Technology_Co.__Ltd._USB_Live_camera_SN0001-02>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "1"
alsa.card_name = "USB Live camera"
alsa.long_card_name = "Sonix Technology Co., Ltd. USB Live camera at usb-0000:00:14.0-1.4, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:1.4:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4:1.2/sound/card1"
udev.id = "usb-Sonix_Technology_Co.__Ltd._USB_Live_camera_SN0001-02"
device.bus = "usb"
device.vendor.id = "0c46"
device.vendor.name = "WaveRider Communications, Inc."
device.product.id = "64ab"
device.product.name = "USB Live camera "
device.serial = "Sonix_Technology_Co.__Ltd._USB_Live_camera_SN0001"
device.form_factor = "webcam"
device.string = "1"
device.description = "USB Live camera "
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
profiles:
input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
input:iec958-stereo: Digital Stereo (IEC958) Input (priority 55, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <input:analog-stereo>
sources:
alsa_input.usb-Sonix_Technology_Co.__Ltd._USB_Live_camera_SN0001-02.analog-stereo/#4: USB Live camera Analog Stereo
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
iec958-stereo-input: Digital Input (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:
index: 1
name: <alsa_card.pci-0000_00_1b.0>
driver: <module-alsa-card.c>
owner module: 8
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xd0810000 irq 97"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "0f04"
device.product.name = "Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analog Stereo Input (priority 60, available: no)
output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: unknown)
output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5460, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#1: Monitor of Built-in Audio Analog Stereo
alsa_input.pci-0000_00_1b.0.analog-stereo/#2: Built-in Audio Analog Stereo
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-headphones"
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
答案1
我在使用 Somikon 相机时也遇到了类似的问题(Webcam USB HD SXGA,https://www.somikon.fr/produit/webcam-usb-hd-sxga-a-6-led/),这显然与 USB 带宽不足有关。我很幸运,只需将其插入带宽更高的其他 USB 端口(USB 3.0 而不是 USB 2.0)即可解决问题。但是,如果您的情况并非如此,显然有一种方法可以强制限制相机使用的 USB 带宽,以保留一些可用于麦克风的带宽,请参阅 https://www.ideasonboard.org/uvc/#footnote-13
麦克风仍然有些小问题,因为录制的音频包含一些相当大背景噪音。不确定是否与此问题有关,如果我设法解决了它,我会告诉你!
答案2
在 Alsamixer 中,按 F4 转到“捕获”设置。
在 pavucontrol 中,您是否查看了“输入设备”选项卡?