rules/uv4l: Don't hard code raspicam script.

This commit is contained in:
Tiago Marques
2017-06-02 10:27:27 +01:00
parent eeefa5908d
commit db04cf06cb
2 changed files with 30 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
start()
{
killall uv4l
modprobe cuse &&
uv4l \
-nopreview \
--auto-video_nr \
--driver raspicam \
--encoding h264 \
--width 1080 \
--height 720 \
--framerate 20 \
--quality 10 \
--server-option \
--port=9090 \
--server-option \
--max-queued-connections=30 \
--server-option \
--max-streams=25 \
--server-option \
--max-threads=29
}
stop()
{
killall uv4l
rmmod uv4l
}