I am trying to stream audio and video from a USB2 video capture card. If I put the Alsa device as the main input, it works fine. I get both audio and video.:
dick@dick2:~$ vlcshow1
++ vlc alsa://hw:1,0 –input-slave=v4l2:///dev/video0
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
QObject::~QObject: Timers cannot be stopped from another thread
d
However, If I put the Alsa device as “–input-slave”, I get no sound and and in the log I get:
dick@dick2:~$ vlcshow2
++ vlc v4l2:///dev/video0 –input-slave=alsa://hw:1,0
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
with error in the log:
main error: Invalid url passed to the “input-slave” option
(This is line 264 of the following log.)
result of “aplay -l”
dick@dick2:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 0: ALC897 Analog [ALC897 Analog]
Subdevices: 1/1
Subdevice #0:
(ALC897 is the speaker driver.)
result of “arecord -l”:
dick@dick2:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: MS210x [MS210x], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 0: ALC897 Analog [ALC897 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 2: ALC897 Alt Analog [ALC897 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: acp [acp], device 0: DMIC capture dmic-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
dick@dick2:~$
Statistics: Posted by richardthiebaud — 26 May 2024 06:29