No sound on the webcam video

This is another hw where recording sound with the web camera doesn’t work.
Previously I had an Intel NUC & Logitech 525 camera. I don’t have these anymore.
Now have Acer PN52 & Trust camera.

If I start Linux Mint Cinnamon 21.2 and the aforementioned Camera in QEMU/KVM and record a video, there is sound when playing the video.
The same video also plays audio when I copy it to Tumbleweed and play it with VLC.
But if I do it the other way around, the sound is not heard in the video at all (recording in TW and playback in Mint with VLC).

Since video recording is successful in Mint (=camera works correctly) and playback in TW (=sound is heard and image is visible), IMHO the fault must be in TW.

I’ve been trying to search the internet for help on how to fix this problem, but frankly I haven’t figured out what to do.

Could someone wiser please help with this problem as I need that recording function and would not like to buy a third camera.

Operating System: openSUSE Tumbleweed 20240307
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.7.7-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: MINIPC PN52

localhost:~ # lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 005: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 006: ID 046d:c542 Logitech, Inc. M185 compact wireless mouse
Bus 003 Device 007: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 005 Device 003: ID 0489:e0e2 Foxconn / Hon Hai Wireless_Device
Bus 005 Device 012: ID 1bcf:2701 Sunplus Innovation Technology Inc. Full HD webcam
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 002: ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub
localhost:~ # lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 002: Dev 005, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 002: Dev 006, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 003: Dev 007, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 003: Dev 007, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 002: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 004: Dev 012, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 004: Dev 012, If 1, Class=Video, Driver=uvcvideo, 480M
        |__ Port 004: Dev 012, If 2, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 004: Dev 012, If 3, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 003: Dev 003, If 0, Class=Wireless, Driver=btusb, 480M
    |__ Port 003: Dev 003, If 1, Class=Wireless, Driver=btusb, 480M
    |__ Port 003: Dev 003, If 2, Class=Wireless, Driver=[none], 480M
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    |__ Port 002: Dev 002, If 0, Class=Hub, Driver=hub/4p, 5000M
localhost:~ # 
journal-follow.txt

localhost:~ # 
Mar 10 15:39:36 localhost.localdomain systemd[1688]: app-systemsettings-4d31d53044574579b0823f7163a16900.scope: Consumed 1.512s CPU time.
Mar 10 15:40:31 localhost.localdomain kernel: usb 5-2.4: USB disconnect, device number 12
Mar 10 15:41:06 localhost.localdomain kernel: usb 5-2.3: new high-speed USB device number 13 using xhci_hcd
Mar 10 15:41:06 localhost.localdomain kernel: usb 5-2.3: New USB device found, idVendor=1bcf, idProduct=2701, bcdDevice=11.03
Mar 10 15:41:06 localhost.localdomain kernel: usb 5-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 10 15:41:06 localhost.localdomain kernel: usb 5-2.3: Product: Full HD webcam
Mar 10 15:41:06 localhost.localdomain kernel: usb 5-2.3: Manufacturer: SHENZHEN AONI ELECTRONIC CO., LTD
Mar 10 15:41:06 localhost.localdomain kernel: usb 5-2.3: SerialNumber: AN202011030002
Mar 10 15:41:06 localhost.localdomain kernel: usb 5-2.3: Found UVC 1.00 device Full HD webcam (1bcf:2701)
Mar 10 15:41:07 localhost.localdomain kernel: usb 5-2.3: 3:1: cannot get freq at ep 0x86
Mar 10 15:41:07 localhost.localdomain kernel: usb 5-2.3: 3:2: cannot get freq at ep 0x86
Mar 10 15:41:07 localhost.localdomain kernel: usb 5-2.3: 3:3: cannot get freq at ep 0x86
Mar 10 15:41:07 localhost.localdomain kernel: usb 5-2.3: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
Mar 10 15:41:07 localhost.localdomain kernel: usb 5-2.3: [7] FU [Mic Capture Volume] ch = 1, val = 0/4096/1
Mar 10 15:41:07 localhost.localdomain mtp-probe[5612]: checking bus 5, device 13: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb5/5-2/5-2.3"
Mar 10 15:41:07 localhost.localdomain mtp-probe[5612]: bus: 5, device: 13 was not an MTP device
Mar 10 15:41:07 localhost.localdomain mtp-probe[5621]: checking bus 5, device 13: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb5/5-2/5-2.3"
Mar 10 15:41:07 localhost.localdomain mtp-probe[5621]: bus: 5, device: 13 was not an MTP device
Mar 10 15:41:07 localhost.localdomain pipewire[2187]: spa.v4l2: '/dev/video6' VIDIOC_QUERYCTRL: I/O-virhe
Mar 10 15:41:07 localhost.localdomain pipewire[2187]: spa.v4l2: '/dev/video6' VIDIOC_QUERYCTRL: I/O-virhe
Mar 10 15:41:07 localhost.localdomain wireplumber[2188]: "libcamera" calling after timer expiry for 20742:/dev/video6(uvc)
Mar 10 15:41:26 localhost.localdomain plasmashell[1905]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Mar 10 15:41:26 localhost.localdomain plasmashell[1905]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemListDialog.qml:73: TypeError: Value is null and could not be converted to an object
Mar 10 15:41:33 localhost.localdomain systemd[1688]: Started Muikku - Valokuvakoppi.
Mar 10 15:41:33 localhost.localdomain cheese[5635]: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
Mar 10 15:41:42 localhost.localdomain kded5[1847]: Registering ":1.676/StatusNotifierItem" to system tray
Mar 10 15:41:51 localhost.localdomain kded5[1847]: Service  ":1.676" unregistered
Mar 10 15:41:51 localhost.localdomain cheese[5635]: could not generate thumbnail for /home/raija/Web-kamera/2024-03-10-154142.webm (video/webm): Could not find thumbnailer for mime-type 'video/webm'
Mar 10 15:41:56 localhost.localdomain kwin_x11[1848]: kwin_core: XCB error: 152 (BadDamage), sequence: 65321, resource id: 9018873, major code: 143 (DAMAGE), minor code: 3 (Subtract)
Mar 10 15:41:56 localhost.localdomain systemd[1688]: app-org.gnome.Cheese-923a12b83a2541c6850465cf3069f526.scope: Consumed 4.833s CPU time.
localhost:~ # 

dmesg:

[144367.926456] usb 5-2.4: new high-speed USB device number 12 using xhci_hcd
[144368.138480] usb 5-2.4: New USB device found, idVendor=1bcf, idProduct=2701, bcdDevice=11.03
[144368.138493] usb 5-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[144368.138498] usb 5-2.4: Product: Full HD webcam
[144368.138502] usb 5-2.4: Manufacturer: SHENZHEN AONI ELECTRONIC CO., LTD
[144368.138506] usb 5-2.4: SerialNumber: AN202011030002
[144368.210667] usb 5-2.4: Found UVC 1.00 device Full HD webcam (1bcf:2701)
[144368.381080] usb 5-2.4: 3:1: cannot get freq at ep 0x86
[144368.476724] usb 5-2.4: 3:2: cannot get freq at ep 0x86
[144368.572704] usb 5-2.4: 3:3: cannot get freq at ep 0x86
[144368.717521] usb 5-2.4: Warning! Unlikely big volume range (=4096), cval->res is probably wrong.
[144368.717534] usb 5-2.4: [7] FU [Mic Capture Volume] ch = 1, val = 0/4096/1
[146495.638684] logitech-hidpp-device 0003:046D:4023.000E: Disconnected
[149028.783056] logitech-hidpp-device 0003:046D:4023.000E: HID++ 2.0 device connected.
localhost:~ # 

Check the audio codec used to record:

Maybe Mint doesn’t include that codec?

Compare the vlc versions between the two distros.

Thanks for the tip!

I had to tick “Microphone (Full DH webcam mono)”. It is not visible when the recording is not going on. That is, in TW.

1 Like

Thanks for the update. It might be helpful to others who come searching.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.