USB webcams known to work with mjpg-streamer

This post is a wiki node editable by every user of this forum with trust level 1 (TL1) or higher. You should be able to edit it to add your own printer compatibility information if you've participated at least a bit on this forum.

While OctoPrint doesn't directly support webcams, using a webcam together with mjpg-streamer as bundled on OctoPi is the recommended procedure to get visual feedback.

If you have a webcam in use with mjpg-streamer that is not listed here already, please add it to help people get a grasp of what works.

You might have to play around with mjpg-streamer's configuration parameters to get a cam to work. Do so by editing /boot/octopi.txt if you are running OctoPi. Please document the options you used here as well.

A webcam stream usually calls for the command ./mjpg_streamer -i "input_uvc.so $camera_usb_options" -o "output_http.so -w ./www" where camera_usb_options="-n -r VGA -f 5 -q 50", for example, has already been called (from the terminal or a script like OctoPi's webcamd which reads in configuration from /boot/octopi.txt).

Tested and works

Camera USBID camera_usb_options Tester Comments
Advent AWCAMHD15, AUSDOM AW615 0bda:58b0 default add device id to broken fps devices in octopi.txt - grafster
APEMAN Action Camera A66 -r 1280x720 -f 30 Tested on Raspberry Pi 3 with docker container openhorizon/mjpg-streamer-pi3:20180306
Besteker 920C -r 1920x1080 -f 30 Fixed focus, nice image quality. 1080@30 looks great in Control and Time Lapse. Has standard 1/4" tripod mount.
Chicony Electronics (HP Webcam) 04f2:b016 -r 640x480 -f 10 pulled from a HP DV2000 (pinout Yellow>Data+ Orange>Data- Red>5v Brown>NC Black>Gnd) - war6000
Chinese Endoscope 8mm 038f:6001 -r HD -f 30 Tested on Raspberry Pi 3 with OctoPi 0.13.0 - michalzielanski
Cimkiz A871 1908:2310 -r 640x680 Does not work with -f. Tested on RasPi 3, OctoPi 0.14.0
Clone - Generic -r VGA -f 30 -y Tested on Octopi 1.3.4 with Pi 3
fabiocolella
Creative Live! Cam Optia AF 041e: -r VGA -f 10 Tested on Raspberry Pi; 10-30fps - daprice
Creative Live! Cam Vista IM (VF0420) 041e: -r VGA -f 10 Tested on BeagleBone Black - imrahil
Creative Live! Cam Socialize (VF0640) 041e:4083 -r 640x480 -f 30 -y Tested on RPi3B - apsbiker
Creative Live! Cam Sync HD (VF0770) 041e:4095 -r HD -f 5
-r HD -f 10
-r HD -f 30
- Tested on Nexx WT3020 running OpenWRT - sanchosk
- Tested on Raspberry Pi 3 Model B - eridem
Creative Webcam Notebook (PD1171) 041e:401f -r 640x480 -f 15 Tested on Raspberry Pi 3 Model B - capibara1
Cubeternet "zoom f=3.85mm Megapixel" 1e4e:0110 -r VGA -f 10 -y Try omitting -f - tkoester
Digitech 720p (Jaycar QC3203) -r VGA -f 30 -y Needed to disable webcamd and autorun script to get working. - Flirtle
D-Link DSC-5222L http://user:pass@yourIP:80/video1.mjpg
Docooler USB 2.0 12 Megapixel HD Camera Web Cam Model #:LYSB00OB88HI4-CMPTRACCS -r 640x480 -f30 Tested on Octopi 1.3.4 with Pi3 , only 30fps
EeePC 701 (DEF-299) -q 90 -y Tested on OctoPi - jmceara
ELP-USBFHD01M-L28 05a3:9230 -r HD -f 60 Tested on RasPi2 - dpcrook
ELP-USB8MP02G-MFV -r HD -f 60 Tested on RasPi3 - You can also set resolution to full 4k.
GearHead WC7500HD 0c45:6340 -r HD -y Tested on RasPi3 - Octopi 1.3.2
GearHead WC8500HD 0c45:6340 -r 1920x1080 -q 85 Tested on RasPi3 - Octopi 1.3.4
Generic Endoscope Amazon 090c:037c -q 75 -y also add device id to broken fps devices in octopi.txt - tommmtom
Generic Endoscope eBay 1908:2311 -r VGA -y Johnny Lindén
Generic 8mm Endoscope Aliexpress 5004:4979 -n -r 1280x720 -f 15 Also add the device id to the broken fps devices in octopi.txt - djabi
Generic GEMBIRD -r 320x200 -f 15 -y
-r VGA -f 15 -y
change LD_LIBRARY_PATH=. ./mjpg_streamer -o "output_http.so -w ./www" -i "$input -y" in /scripts/webcamdaemon - Carsten3P, (19-2-2016) - Paco, (13-may-2016) - gzcwnk
Generic HM1355 USB Module Aliexpress 5149:13d3 -r SXGA -f 7 Tested with Ubuntu 18.04 on Rock64
Generic IP Camera Access directly using external IP address and port into the stream url (e.g http://224.127.1323.151:82/nphMotionJpeg?Resolution=640x480) - LocalSpice
Genius WideCam F100 0458:708c -r 1920x1080 -f 30 gives full 16:9 frame @30fps
-r 1920x1080 -f 5 -y gives full 16:9 frame @5fps
-r 1280x720 -f 30 gives full 16:9 frame @30fps
-r 1280x720 -f 8 -y gives full 16:9 frame @8fps
-r 800x600 -f 30 gives cropped 4:3 frame @30fps
-r 800x600 -f 10 -y gives cropped 4:3 frame @10fps
Lower resolutions 640x360 , 352x288, 320x240, 176x144, 160x120 all operate at -f 30 both for MJPG as well as YUYV format.
The wide FOV gives the ability to position camera at a super short distance. Note that cropped frames are very usable as the camera is so wide that full 16:9 frame will show surroundings if you place it in corner (120° FOV!), the printbed easily fits within 4:3 cropped area for this webcam.
Tested on OctoPi w/ OctoPrint 1.3.2 and Raspberry Pi 1 Model B, both via direct connection and via powered USB hub. kroko
If the camera isn't working, try to set the FPS up to 30, 25 FPS might not work! kr0l
Genius FaceCam 1000X 0458:708f -r 1280x720
-r 640x480
-r 352x288
-r 320x240
-r 176x144
-r 160x120

-f doesn't change FPS...
Use -e to lower bandwidth consumption if needed
Tested on Orange Pi Zero H2
Running Armbian 5.38 Debian server
OctoPrint 1.3.8 - biological-hazard
Gigaware - 25-496 (1.3MP) 0bda:5842 -r VGA -f 10 -y engunneer
GUCEE (iRush) HD92 1080p WebCam 0bda:5842 -r 1920x1080 -f 30
-r 160x120 -f 30
-r 176x144 -f 30
-r 320x240 -f 30
-r 352x288 -f 30
-r 640x360 -f 30
-r 640x480 -f 30
-r 800x600 -f 30
-r 848x480 -f 30
-r 1024x768 -f 30
-r 1280x800 -f 30
-r 1280x720 -f 30
-r 1280x960 -f 30
Tested on Raspberry PI 3 Model B
Fairly cheap. Supports 25fps as well as 30fps for a wide range of resolutions in 16:9 and 4:3
Has automatic low light correction (tested - OK) and a 110° FOV (theoretically)
Use uvcdynctrl -f command to find all supported resolutions and framerates
- ram64 (04 May 2018)
Hama PC-Webcam "AC-150" -r VGA -f 10 -y Tested on Raspberry Pi - StefanBurger
Hercules Twist Webcam -r VGA -f 10 Tested on Raspberry Pi - nwalkner
HP HD2300 -r VGA -f 10 Tested on Raspberry Pi - c4sfer
HP Webcam 3110 -r VGA -f 10 Tested on Raspberry Pi - [morcant]
HP Webcam 3300 -r 1280x720 -f 20 Tested on Raspberry Pi 3 - [gharac]
HP Webcam HD4110 03f0:9207 '-r FHD' Tested on rPi 3 B+ [BombshellBill]
HP Webcam HD4310 03f0:e807 -r FHD Tested on Raspberry Pi 2 - [andyrblank]
HP HP Deluxe Webcam KQ246AA 04f2:a13c -r 800x600 -f 10 Tested on Raspberry Pi 3b+ - [jalanjarosz]
`-r 1280x1024 -f 7 Tested on Raspberry pi 3b - [kennferro]
IPEVO Point 2 View 1778:0204 -r 640x480 -f 30 Tested on Raspberry Pi with OctoPi - Miker525
IPEVO Ziggi-HD 1778:0206 -r 2592x1944
-r 1920x1080
Tested on Raspberry Pi 4 with OctoPi - [wdorfmann]
The articulating stand makes this particularly useful for monitoring your printer
Kodak Dual Webcam D101 -y Tested on Raspberry Pi 3 - michaelfdeberry
Kodak S101 Webcam (Jeilin Technology Corp) -r QVGA -f 15 -y Tested on Raspberry Pi - morriscode
LG AN-VC500 043e:3012 -r VGA -f 10 OctoPi - [tapiau] (https://github.com/tapiau)
LOETAD Webcam 1080p 0806:0806 -r 1920x1080 -f 20 Tested on Raspberry Pi 3b with OctoPi 0.16.0 - serofax
Logilink UA0072a -r VGA -f 30 -y Simply add the variable to /boot/octopi.txt. Tested on Raspberry Pi - raffaCH
LogiLink WebCam (Microdia Sonix USB 2.0 Camera) 0c45:62c0 -r 320x240 -f 5 -y Tested on Octopi 1.3.2 with Pi one, 5-30fps - xeonqq
Logitech Quickcam E3500 046d: -r QVGA -f 35 Tested on Raspberry Pi - foosel
Logitech Quickcam for Notebooks Pro V-UAR38 046d: -r VGA -f 10 Tested on Raspberry Pi - OneEyeLeft
Logitech, Inc. Portable Webcam C905 M/N V-UBU-48 P/N 860-000231 PID LZ929BA 046d:080a no flags (640x480) Tested on x86_64 Ubuntu 20.04 (poor results on Ubuntu 18) leftsock Minimum focus at ~150 mm
Logitech, Inc. QuickCam Pro for Notebooks M/N V-UBU48 P/N 860-000026 PID LZ725BA 046d:0991 no flags (640x480) Tested on x86_64 Ubuntu 20.04 (poor results on Ubuntu 18) leftsock Minimum focus at ~150 mm
Logitech QC Pro for Notebook Business M/N V-UBU48 P/N 860-000108 PID LZ836BP 046d:0991 no flags (640x480) Tested on x86_64 Ubuntu 20.04 (poor results on Ubuntu 18) leftsock Minimum focus at ~150 mm
Logitech QuickCam Orbit AF 046d:0994 -r 960x720 Tested on Raspberry Pi3 - MetalRush
Logitech QuickCam 5000 V-uax16 046d: default Tested on Raspberry Pi3
Logitech Quickcam Pro 5000 046d:08ce -r 640x480 -f 10 Tested on a Raspberry Pi - fharni
Logitech Quickcam Pro 9000 046d: -r VGA or -r 960x720 -f 30 Tested on a Raspberry Pi - voxSchurman, First Video: http://youtu.be/32B-ezaCKe8 - [jbarberillo], (http://github.com/jbarberillo), 960x720 tested on Raspberry Pi3B+ [tmcgillis]
Logitech QuickCam Ultra Vision SE 046d: -r VGA -f 10 Tested on Raspberry Pi - fractalclockwork
Logitech QuickCam MP/S5500 046d:09a1 default Tested on Raspberry Pi3 -
Logitech QuickCam Communicate STK 046d:08d7 default Tested on Raspberry Pi4 4GB - Works with low framerates
Logitech Webcam C100 046d: -r VGA -f 10 Tested on Raspberry Pi - [ModClovis] (https://github.com/modclovis)
Logitech Webcam C110 046d:0829 -q 75 -y Tested on a Raspberry Pi - rocket59
Logitech Webcam C110 046d:0829 default Add additional_brokenfps_usb_devices=("046d:0829") to /boot/octopi.txt. Runs in MJPG mode, with no high CPU usage as if using -y option. Tested on a Raspberry Pi3 - tfgcampos
Logitech Webcam C120 046d:080F default Tested on a Raspberry Pi3B+ - [ghostolo90]
Logitech Webcam C160 046d: -r VGA -f 10 Tested on Raspberry Pi - [AndrewBC] (https://github.com/AndrewBCN)
Logitech Webcam C170 046d:082b -r 1024x768 -f 30 or -r 1024x768 -f 15 Tested on Raspberry Pi. Runs in MJPG mode. - [Joske447] (https://github.com/Joske447), confirmed - ringsofdeath.,changes in /boot/octopi.txt for 1024x768 - cr4nk89
Logitech Webcam C210 046d:0819 -r VGA -f 10 Wabba2
Logitech Webcam C250 046d:0804 -r 1280x720 -f 15 Tested on Raspberry Pi 3B+ - seltix5
Logitech Webcam C270 046d:0825 -r 1280x720 -f 30 or
-r 1280x960 -f 30 or
-r VGA -f 10
Tested on Raspberry Pi - foosel, stoneburner, rocket59, VictorLamoine, apazga, BioGeekJoey
Logitech Webcam C310 046d:081b -r VGA -f 10 or -r 1280x720 -f 10 Tested on Raspberry Pi Zero, VGA@10fps ~15% CPU, HD@25fps ~35% CPU, HD@30 ~50% - benhowes, ryanturner, quixotic120
Logitech Webcam C500 046d: -r QVGA -f 30 -y Tested on Raspberry Pi - mattgolt
Logitech Webcam C510 -r 640x480 -f 10 or -r HD -f 30 Tested on Raspberry Pi 3B+ - sclarke81
Logitech Webcam C525 046d: -r VGA -f 10 or -r 1280x720 -f 20 Tested on Raspberry Pi - R1p2u, weeheavy, Frodotus
Logitech Webcam C615 046d:082c -r 1280x720 -f 30 Tested on Raspberry Pi 3 - rezin8
- Tested on Raspberry Pi 3 Model B - justincdotme
Logitech Webcam C905 default
-r 800x600 -f 10
Raspberry Pi2, just plugged it in and it worked [bwaslo]
Tested on RPi3 [WaltmanBeta]
Logitech 1080p Webcam Pro C910 046d:0821 -r VGA -f 10 Tested on Raspberry Pi - [alexncus] (https://github.com/alexncus)
Logitech 720p Webcam C209 on a Raspberry Pi 046d: -r VGA -f 10 Tested on Raspberry Pi; focus stuck at ~ 300mm - eovnu87435ds
Logitech Webcam C920 046d: -r VGA -f 10 Tested on Raspberry Pi - ryanturner
Logitech Webcam C920 046d:082d -r 1280x720 -f 10 Tested on Raspberry Pi 3b+ - [jalanjarosz]
Logitech Webcam C920 -r 1920x1080 -f 30 Tested on Raspberry Pi 4 4gb Model B - [GordonCooker]
Logitech Webcam C920S -r 1920x1080 -f 30 Tested on Raspberry Pi 4 4gb Model B - jagorrell84
Logitech Webcam C922 -r 1920x1080 -f 30 Tested on Raspberry Pi 3B+ - seltix5
Logitech Webcam C930e -r 1920x1080 -f 10 Tested on Raspberry Pi 3 - grumpytechie
Microsoft Lifecam Cinema 045e: -r VGA -f 10 sometimes doesn't startup nicely on Linux/Raspbian, switched to a Logitech C270 - foosel
Microsoft LifeCam Cinema 045e: -r HD -f 20 Tested on CubieBoard2 1280x720 @ 10-15fps - chron0
Tested on Raspberry Pi4, OctoPi 0.17 RC1 - [thomasdkjensen]
Microsoft Lifecam HD-3000 045e: -r HD -f 20 Wade Hovind, can't get it to work - byteborg, tested and restart the Rpi. - neurohide, works out of the box with a RPi 2 - landei
Microsoft Lifecam Show 045e: -r SVGA -f 20 Tested on Raspberry Pi 3 - gregington
Microsoft Lifecam Studio 045e:0772 -r 1920x1080 -f 30 Tested on Rpi 3 and Pine64
Microsoft Lifecam VX-500/VX-700 045e -r 640x480 -f 10 -y Tested on Raspi Zero-W - [twmaster]
Microsoft Lifecam VX-800 -y Tested on Raspi 4B, camera option "-y" is obligatory
Microsoft LifeCam VX-1000 Tested on RPi 3B+ appears PnP [stellar6]
Microsoft Lifecam VX-2000 045e:0761 -r VGA -f 10 Add additional_brokenfps_usb_devices=("046d:082b" "045e:0761") to /boot/octopi.txt - jianC
Microsoft Lifecam VX-3000 045e: -r VGA -f 10 cjmarzano, please share your settings. VX-3000 does not work by default for me - I-AM-EXFOLIATING
Microsoft Lifecam VX-5000 045e: -r VGA Tested on RasPi2. Needed to remove -f parameter to get it working.
Microsoft Lifecam VX-7000 045e:0723 -r 640x480 Tested on RP3. Needed to remove -f parameter to get it working. Higher resolutions possibly supported.
Microsoft Xbox360 Vision Camera 045e: -r VGA -f 10
-r 800x600 -f 20
Tested on OctoPi
Tested on RPi3 [WaltmanBeta]
Microsoft Xbox360 Kinect -r 640x480 Tested on OctoPi running Octoprint 1.3.6
Tested on RPi3 pepex150
Works but consumes 80% of cpu of 1 core.
Streaming doesn't work properly, you need to refresh the page to get a new frame.
Mobius ActionCam 0603:1002 -r VGA -f 10 Add the USB ID additional_brokenfps_usb_devices=("046d:082b" "0603:1002") to /boot/octopi.txt, and remove -f in camera_usb_options="-r VGA " - [gweber] (https://github.com/gweber)
N5 1080p Webcam 0c45:6366 -r 1920x1080 -f 10
-r 1920x1080
Uncommented camera="usb"
Add the USB ID additional_brokenfps_usb_devices=(0c45:6366) to /boot/octopi.txt
Generic webcam from Amazon with wide angle view
Namuga 1.3M Webcam default A USB camera module salvaged from old laptop (it requires 3.3V, use LDO or 3.3V power from RPi)
OV5647 generic IR -fps 1 -x 1920 -y 1080 -br 50 -drc high -ev 10 -ex snow -ISO 100 -mm average -awb incandescent Rather good setup for visible spectrum hot white led lights. This camera is sold with Infra Red spots, but IR makes a very bad image. Just don't use IR.
Orange Pi 2MP sh-2035-iplay gc2035 -n -r 1600x1200 -u nnicoo
Papalook PA150 0c45:6340 -r 64x360 -f 15 q=40 needs max_usb_current=1 added to /boot/config.txt, also works with -r 1280x720 and -f 30 but becomes laggy. Tested on RPi 3B - lienbacher
Philips SPC300NC 0471: -r 352x288 Tested on Ubuntu 13.10 - superzerg
Philips SPZ3000 0471: -f 20
Philips PCVC740K 0471:0311 -y -r 640x480 -f 30 Needs mjpg-streamer-yu12.
Tested on OctoPi.
denniskarlsson
Potensic "2-in-1" Semi-Rigid Waterproof Borescope Inspection Camera f007:a999 -r 640x480 -f 10 -y
-r 1280x720 -f 10 -y
-r 1600x1200 -f 10 -y
Add to octopi.txt:
additional_brokenfps_usb_devices=("f007:a999")

Tested on Raspberry Pi 3 running Octoprint v1.3.6, OctoPi 0.14.0

This version is a rebranded "Teslong" 2-megapixel borescope that has an LED dimmer control on the cable. Runs in MJPG mode.

Rocketfish 720p HD -r VGA Tested on Raspberry Pi with Occidentalis - jwygralak67
Rosewill Webcam RCM-8164 046d: -r QVGA -f 30 -y Tested on Raspberry Pi
Sandberg USB Webcam Pro 1b3f:2002 -r 1920x1080 -fps 20 Tested on Raspberry 3B+
SiGma Micro 1c4f:3000 Remove ALL settings except for USB and streams
Silvercrest Webkamera 1.3 MPix eb1a:2820 -r 640x480 -y Looks like "Microdia Sonix USB 2.0 Camera" above; Tested on Raspberry Pi 3b
SJCAM SJ4000 -r VGA -f 30 Tested on OctoPi - vidschofelix
SJCAM SJ5000X -r VGA -f 30 -r HD -f 50 Tested on OctoPi - [N-Aero]
Sony PlayStation Eye 1415:2000 -f 1 -q 75 -y Tested on Raspberry Pi; See talk below - gluetolf
Sony PlayStation 2 EyeToy -r 640x480 -f 10 -y Tested on Raspberry Pi 3B running Octopi 1.3.0 [I-am-me] (https://github.com/I-am-me)
Tested on Raspberry Pi B rev 2.0 running octopi 4.19.58+ #1245
Suyin Corp. Acer CrystalEye Webcam 064e:d101 -f 25 -y Tested on Arch Linux on Raspberry Pi while running Octoprint
SuperEyes Handheld Microscope B005 -r VGA -y Adjustable zoom/focus, can be used as basic webcam (long distance/focus) or <3um resolution precise microscope for X/Y positioning (short distance/focus). - [mirage335] (https://github.com/mirage335)
Sweex WC066 -r SVGA -f 15 Tested on Octopi - [Stefan73] (https://github.com/Stefan73)
Tevion MD 85872 0ac8:3420 -r VGA -f 30 Tested on Octopi 1.3.0 [wlma]; same chip as Z-Star Venus
TeckNet C016 058f:3841 -r VGA -f 1 -y Tested on Octopi 1.3.2 - micdenny
TeckNet C018 058f:3841 -r 1920x1080 -f 30 Tested on OctoPrint: 1.3.4, octopi-jessie-lite-0.14.0 - Sinbad
TeckNet HTD205 058f:3832 -r FHD Tested on RaspPI 3 - Octopi 1.3.2
Teslong Borescope f007:a999 -r 640x480 -f 10 -y
-r 1280x720 -f 10 -y
-r 1600x1200 -f 10 -y
Add to octopi.txt:
additional_brokenfps_usb_devices=("f007:a999")

Tested on Raspberry Pi 3 running Octoprint v1.3.6, OctoPi 0.14.0

The Teslong Borescope is commonly sold under the "Potensic" brand. This version is 2-megapixels, semi-rigid inspection cable with an LED dimmer control on the cable. Runs in MJPG mode.

Trust Spotlight -r VGA -f 1 -y Tested on Octopi
Trust Trino 720P -r VGA -f 10 Tested on OctoPi - LangBalthazar
Trust Multicover widescreen 720P 145f:016f -r 640x480 -f 10
-r 800x600 -f 10
-r 1280x720 -f 10
Works also without the -f parameter
145f:016f, Tested on OctoPrint 1.4-dev but should work with earlier releases. Seems to not support framerate under 10fps - Gege2B
Vivatar Action Camera 30 fps. Tested on Raspi 3, Octopi 1.3.10
Wilko W460186 GEMBIRD 1908:2310 -r 640x480 -f 15 Only works at 30 or 15 fps. Tested on Raspi 3, Octopi 1.3.6.
Wyze V2 0403:6001 -r 1920x1080 -f 25 Must install USB firmware. (https://support.wyzecam.com/hc/en-us/articles/360041605111-Webcam-Firmware-Instructions) Works at different resolutions and frame rates. Tested on Raspi 3B Rev 1.2, Octopi 1.4.
YoLuke 720P Webcam -r VGA -f 20 Tested on OctoPi 1.3.7 with Pi 2B - Kryket
Z-Star ZC0301 0ac8: -r VGA -f 30 Inexpensive webcam with a clamp and 6 LED lights around the lens
Z-Star ZC0303 0ac8:303b -r 640x480 -f 30 Inexpensive webcam with a clamp and 6 LED lights around the lens
Z-Star Venus 0ac8:3420 -r VGA -f 30 -y
Z-Star Vega 0ac8:c302 -r VGA -f 30

Playstation Eye

  • You may need to run a few commands to get it running. sudo -s rpi-update reboot - OCybress
  • I used the settings above; nothing else seemed to work. The -y made the big difference. - triestelaporte
  • (13th May 2016) Confirming above settings camera_usb_options="-y -q 75 -f 1" with Pi 3, Octoprint Version 1.2.11 (master branch) - gzcwnk
  • (14th August 2016) Had to edit the variable in /root/bin/webcamd instead of /boot/octopi.txt config changes to work, with Pi 3, Octoprint Version 1.2.10 (master branch) - BigRamen
  • This camera does not support MJPG natively, so consumes 100% cpu (of one core) on my Raspberry Pi 3, 24/7. It never overheated or crashed my RPi, but was still a concern. I switched to the Logitech C270 and it uses no CPU. - JustinHoMi

Old CPIA camera (by dpeddi)

  • make sure you have gspca-cpia1.ko or appropriate gspca driver for your camera
  • use https://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-r182-mjpg-streamer.zip
  • apt-get install libv4l-dev libv4l-0 (i'm using armbian on orangepiwin, on raspbian may differ)
  • uncomment PLUGINS += input_gspcav1.so on Makefile
  • edit vi plugins/input_gspcav1/spcav4l.h and add in the beginning #define BASE_VIDIOCPRIVATE 192
  • edit vi plugins/input_gspcav1/spcav4l.h and plugins/input_gspcav1/utils.c and replace linux/videodev.h with libv4l1-videodev.h
  • make
  • LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libv4l/v4l1compat.so LD_LIBRARY_PATH=. ./mjpg_streamer -o "output_http.so -w ./www" -i "input_gspcav1.so -f r16 -r VGA"

Other compatible cameras

Troubleshooting

If your stream won't start, check that the streamer output is working correctly by calling ./mjpg_streamer -i "./input_testpicture.so -r VGA" -o "./output_http.so -w ./www". If you are able to stream two alternating jpg frames using this command, then mjpg_streamer is configured correctly and your previous input_uvc.so settings may be causing you trouble.

  • input_testpicture.so doesn't exist for me. And it seems that http output now also requires a -w=./www parameter. Try this instead: ./mjpg_streamer -i "./input_file.so -f plugins/input_testpicture/pictures/ -e" -o "./output_http.so -w ./www -p 8080" - frankv

If top indicates high CPU usage from mjpg_streamer (about 40% of a Raspberry Pi 3 core, for example) due to the fact that mjpg_streamer won't work without the -y option, you can try an additional utility called v4l2grab to process the YUYV format for mjpg_streamer by exporting jpgs to a tmpfs directory. Start by calling ./mjpg_streamer -i "input_file.so -r -d 0 -f /dev/shm" -o "./output_http.so -w ./www"; it will display and delete new files. Then, call ./v4l2grab -c -m -q 50 -o "/dev/shm/"; do not forget the trailing / on this command, which continuously captures jpgs of 50% compression without bound.