Installing webcams

Forum for questions and support relating to 1.33.x development only.
Post Reply
bugmenot
Posts: 34
Joined: Tue Feb 10, 2015 2:23 pm

Installing webcams

Post by bugmenot » Tue Jun 02, 2020 10:03 am

I have 2 webcams

046d:09a6 Logitech QuickCam Vision Pro
046d:0850 Logitech QuickCam Web

and i try to install these to my Raspberry/Raspbian and lsusb sees these but i can't figure out correct Monitor settings.

Source Type: Local
Device Path: /dev/video0
Capture Method: Video For Linux version 2

Maybe Device Path is wrong? If i go to /dev/ there is video0, video10, video11, video12 and in v4l is by-id and by-path and there are some files with long names.

I got Raspberry Pi Camera Module 2.1 working.

burger
Posts: 262
Joined: Mon May 11, 2020 4:32 pm

Re: Installing webcams

Post by burger » Fri Jun 05, 2020 3:35 am

Review similar webcam settings at: https://wiki.zoneminder.com/Hardware_Compatibility_List

Perhaps ffmpeg can write from the device file input to an output file e.g. (syntax may be wrong, but something like)

Code: Select all

ffmpeg -i /dev/video0 output.mp4
You can watch dmesg when it loads. Assuming you have the module needed for the kernel it should load and may tell you some information. On my device I get:

Code: Select all

[ 1111.112065] usb 7-1: new high-speed USB device number 3 using ehci-pci
[ 1111.868095] usb 7-1: device descriptor read/64, error -71
[ 1112.391823] usb 7-1: New USB device found, idVendor=046d, idProduct=0826
[ 1112.391830] usb 7-1: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[ 1112.391835] usb 7-1: Product: HD Webcam C525
[ 1112.391840] usb 7-1: SerialNumber: A8403AA0
[ 1112.578138] media: Linux media interface: v0.10
[ 1112.593307] Linux video capture interface: v2.00
[ 1112.671787] usb 7-1: set resolution quirk: cval->res = 384
[ 1112.672074] usbcore: registered new interface driver snd-usb-audio
[ 1112.672246] uvcvideo: Found UVC 1.00 device HD Webcam C525 (046d:0826)
[ 1112.684650] uvcvideo 7-1:1.2: Entity type for entity Extension 5 was not initialized!
[ 1112.684655] uvcvideo 7-1:1.2: Entity type for entity Processing 2 was not initialized!
[ 1112.684657] uvcvideo 7-1:1.2: Entity type for entity Camera 1 was not initialized!
[ 1112.684660] uvcvideo 7-1:1.2: Entity type for entity Extension 6 was not initialized!
[ 1112.684662] uvcvideo 7-1:1.2: Entity type for entity Extension 7 was not initialized!
[ 1112.684665] uvcvideo 7-1:1.2: Entity type for entity Extension 8 was not initialized!
[ 1112.684800] input: HD Webcam C525 as /devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1:1.2/input/input15
[ 1112.684926] usbcore: registered new interface driver uvcvideo
[ 1112.684927] USB Video Class driver (1.1.1)
[ 1116.520168] usb 7-1: USB disconnect, device number 3
[ 1116.788128] usb 7-1: new high-speed USB device number 4 using ehci-pci
[ 1117.204293] usb 7-1: New USB device found, idVendor=046d, idProduct=0826
[ 1117.204300] usb 7-1: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[ 1117.204305] usb 7-1: Product: HD Webcam C525
[ 1117.204309] usb 7-1: SerialNumber: A8403AA0
[ 1117.486534] usb 7-1: set resolution quirk: cval->res = 384
[ 1117.487461] uvcvideo: Found UVC 1.00 device HD Webcam C525 (046d:0826)
[ 1117.500296] uvcvideo 7-1:1.2: Entity type for entity Extension 5 was not initialized!
[ 1117.500307] uvcvideo 7-1:1.2: Entity type for entity Processing 2 was not initialized!
[ 1117.500315] uvcvideo 7-1:1.2: Entity type for entity Camera 1 was not initialized!
[ 1117.500322] uvcvideo 7-1:1.2: Entity type for entity Extension 6 was not initialized!
[ 1117.500330] uvcvideo 7-1:1.2: Entity type for entity Extension 7 was not initialized!
[ 1117.500337] uvcvideo 7-1:1.2: Entity type for entity Extension 8 was not initialized!
[ 1117.500742] input: HD Webcam C525 as /devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1:1.2/input/input16
Here it uses the uvcvideo driver. Notice that the last entry details the path. If I cd to /sys and then to /devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1:1.2/input/input16, it has a video4linux folder with the name video0. That video0 also happens to be the same in /dev/video0. You will still need to configure the settings for the raw webcam encoding. You can guess, look at existing webcams in the wiki, or try to glean it from ffmpeg. In ffmpeg it mentions yuv442p, which happens to be 'one' of the supported modes of this camera in zm under YUYV.

EDIT: https://www.linuxtv.org/wiki/index.php/V4L_capturing

Code: Select all

apt-get install v4l-utils
$ sudo v4l2-ctl  --list-devices
HD Webcam C525 (usb-0000:00:1a.7-1):
        /dev/video0
fastest way to test streams:
ffmpeg -i rtsp://<ipaddress>:554/path output.mp4
from terminal, and run through paths on ispydb or in zm hcl

If you are new to security software, read this:
https://wiki.zoneminder.com/Dummies_Guide

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest