Article 6H0DT Can't capture image or audio from Logitech webcam on Ubuntu server

Can't capture image or audio from Logitech webcam on Ubuntu server

by
bomberb17
from LinuxQuestions.org on (#6H0DT)
I have a Logitech C500 webcam and I want to periodically capture image and audio from it, so I am looking to write a simple script. My server is a VM on esxi.

Here is the related info:

Code:$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 006: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 001 Device 004: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 003: ID 046d:0807 Logitech, Inc. Webcam B500
Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ v4l2-ctl --list-devices
UVC Camera (046d:0807) (usb-0000:02:01.0-2):
/dev/video0
then I run:

Code:$ fswebcam -r 640x480 --jpeg 85 -D 1 web-cam-shot.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Delaying 1 seconds.
--- Capturing frame...
Timed out waiting for frame!
No frames captured.I also ran

Code:$ ffmpeg -f pulse -ac 2 -i default -f v4l2 -i /dev/video0 -t 00:00:10 -vcodec libx264 record.mp4but the text output stops after the "libpostproc" line and no file is produced.
Any help?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments