Skip to content

Instantly share code, notes, and snippets.

@rredpoppy
Forked from younes200/install.sh
Created February 19, 2017 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rredpoppy/7537ec5c282d7650aa98b256f3de014e to your computer and use it in GitHub Desktop.
Save rredpoppy/7537ec5c282d7650aa98b256f3de014e to your computer and use it in GitHub Desktop.
UV4L + Webrtc
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
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
#
# 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