我能够从我的计算机进行流式传输,并使用以下命令在本地 vlc 上观看流:
cvlc v4l2:///dev/video0 :v4l2-standard= :inputlave=alsa://hw:0,0 :live-caching=300 :sout="#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/stream.wmv}"
问题是我听不到声音。声音会通过我的网络摄像头传出来。
我已经完成 aplay --list-devices 但在那里没有看到我的网络摄像头(usb):
michaeljwjr@michaeljwjr-desk:~$ aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
但是当我执行 lsusb 时,我确实看到了我的网络摄像头:总线 001 设备 002:ID 045e:0766 Microsoft Corp. LifeCam VX-800