Last active
January 21, 2018 07:52
-
-
Save younes200/ab1f5722d79a5b66ee3e to your computer and use it in GitHub Desktop.
UV4L + Webrtc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc | sudo apt-key add - | |
sudo vi /etc/apt/sources.list | |
cat /etc/apt/sources.list | |
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi | |
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main | |
sudo apt-get update | |
sudo apt-get install uv4l-webrtc | |
sudo apt-get install uv4l-raspicam-extras | |
sudo service uv4l_raspicam restart | |
sudo raspi-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uv4l --driver raspicam --auto-video_nr --width 640 --height 480 --encoding jpeg | |
sudo dd if=/dev/video0 of=snapshot.jpeg bs=11M count=1 | |
open http://raspberrpi:9000/stream/webrtc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# uv4l core options | |
# | |
driver = raspicam | |
# video_nr = 0 | |
auto-video_nr = yes | |
syslog-host = localhost | |
# | |
# raspicam options | |
# | |
encoding = h264 | |
# width = 640 | |
# height = 480 | |
framerate = 30 | |
# text-overlay = yes | |
# text-filename = /usr/share/uv4l/raspicam/text.json | |
# object-detection = no | |
# object-detection-mode = accurate_tracking | |
### for multi argument options you must specify one arg per line, | |
## i.e. --min-object-size 80 80 is: | |
# min-object-size = 80 | |
# min-object-size = 80 | |
# main-classifier = /usr/share/uv4l/raspicam/lbpcascade_frontalface.xml | |
# secondary-classifier =/usr/share/uv4l/raspicam/lbpcascade_frontalface.xml | |
# nopreview = yes | |
# sharpness = 0 | |
# contrast = 0 | |
# brightness = 50 | |
# saturation = 0 | |
# iso = 400 | |
# vstab = yes | |
# ev = 0 | |
# exposure = auto | |
# awb = auto | |
# imgfx = none | |
# metering = average | |
# rotation = 0 | |
# hflip = no | |
# vflip = no | |
# shutter-speed = 0 | |
# drc = off | |
# | |
# streaming server options | |
# | |
server-option = --port=9000 | |
server-option = --user-password=myp4ssw0rd | |
server-option = --admin-password=myp4ssw0rd | |
# To enable 'config' user authentication | |
server-option = --config-password=myp4ssw0rd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment