VLC + Webcam Capture

From Notes

Jump to: navigation, search

I just bought a Logitech Webcam Pro 9000. I wanted to record an video and audio stream from the webcam via VLC on Linux. VLC presents two fields: Video device name and Audio device name. The video device was easy: /dev/video0. The audio device? This took a bit more research.

After some quick googling, I found how to query for a list of audio devices and then plug them into VLC.

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889 Analog [ALC889 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC889 Analog [ALC889 Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 1: U0x46d0x809 [USB Device 0x46d:0x809], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

You will see my Webcam above listed as card 1: U0x46d0x809 [USB Device 0x46d:0x809], device 0: USB Audio [USB Audio]. Simply take the first field after card 1:, prepend plughw:, and you're set. My VLC device selection page now has listed a video and audio device:

  • Video device name: /dev/video0
  • Audio device name: plughw:U0x46d0x809

If the audio does not work, try using another format:

  • Audio device name: plughw:1,0

Where 1 = card 1: from the arecord -l output above.

Personal tools