Advertisement
MrLunk

Install Mjpg-Streamer raspberry pi 2 3 4 - C920 webcam

Dec 9th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. sudo apt update
  2. sudo apt install snapd
  3. sudo reboot
  4. sudo snap install mjpg-streamer
  5.  
  6. can be configured via the /var/snap/mjpg-streamer/current/config file.
  7. Set the DAEMON= option in there to "true", then run "snap restart mjpg-streamer" (or reboot the system) to get the mjpg-streamer service up and running.
  8.  
  9. Please make sure to run "snap connect mjpg-streamer:camera" command 1x to allow the app to access /dev/video*.
  10.  
  11. Goto http://[RAPSIIP]:port (port you set in /var/snap/mjpg-streamer/current/config)
  12.  
  13. Options to set in /var/snap/mjpg-streamer/current/config file:
  14.  
  15. USB webcams (input_uvc.so)
  16.  
  17. input_uvc.so comes bundled with MJPG Streamer.
  18.  
  19. -d <device>: The video device to use, e.g. -d /dev/video0
  20. -r <resolution>: The resolution, e.g. -r 640x480 for 640x480px
  21. -f <framerate>: The framerate in frames per second, e.g. -f 10 for 10 fps
  22. -q <quality>: The quality of the JPG compression to use, e.g. -q 85 for compression down to 85%
  23. -y: Use this if your camera doesn't support MJPG, pictures will be captured in YUVY
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement