mjpg-streamer: Update cambozola to specific version, add yuv and jpeg quality init/config options
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
parent
a1bd5565d0
commit
41aa8a5fc9
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=mjpg-streamer
|
PKG_NAME:=mjpg-streamer
|
||||||
PKG_REV:=182
|
PKG_REV:=182
|
||||||
PKG_VERSION:=r$(PKG_REV)
|
PKG_VERSION:=r$(PKG_REV)
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
|
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).1.tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).1.tar.bz2
|
||||||
|
@ -49,12 +49,12 @@ define Package/mjpg-streamer/conffiles
|
||||||
/etc/config/mjpg-streamer
|
/etc/config/mjpg-streamer
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CAMBOZOLA:=cambozola-latest.tar.gz
|
CAMBOZOLA:=cambozola-0.936.tar.gz
|
||||||
|
|
||||||
define Download/cambozola
|
define Download/cambozola
|
||||||
URL:=http://www.andywilcock.com/code/cambozola
|
URL:=http://www.andywilcock.com/code/cambozola
|
||||||
FILE:=$(CAMBOZOLA)
|
FILE:=$(CAMBOZOLA)
|
||||||
MD5SUM:=c9b0da91f8e6e72efccd307e04e2b75b
|
MD5SUM:=35c45188aa9635aef2b745c35c311396
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Fetch latest cambozola that works with latest Java(s)
|
# Fetch latest cambozola that works with latest Java(s)
|
||||||
|
|
|
@ -5,6 +5,8 @@ config mjpg-streamer 'core'
|
||||||
option output 'http'
|
option output 'http'
|
||||||
option device '/dev/video0'
|
option device '/dev/video0'
|
||||||
option resolution '640x480'
|
option resolution '640x480'
|
||||||
|
option yuv '0'
|
||||||
|
option quality '80'
|
||||||
option fps '5'
|
option fps '5'
|
||||||
option led 'auto'
|
option led 'auto'
|
||||||
option www '/www/webcam'
|
option www '/www/webcam'
|
||||||
|
|
|
@ -43,6 +43,13 @@ start_instance() {
|
||||||
config_get fps "$s" 'fps'
|
config_get fps "$s" 'fps'
|
||||||
[ -n "$fps" ] && input_arg="${input_arg} --fps $fps"
|
[ -n "$fps" ] && input_arg="${input_arg} --fps $fps"
|
||||||
|
|
||||||
|
config_get_bool yuv "$s" 'yuv' 0
|
||||||
|
if [ $yuv -ne 0 ]; then
|
||||||
|
input_arg="${input_arg} --yuv"
|
||||||
|
config_get quality "$s" 'quality'
|
||||||
|
[ -n "$quality" ] && input_arg="${input_arg} --quality $quality"
|
||||||
|
fi
|
||||||
|
|
||||||
config_get resolution "$s" 'resolution'
|
config_get resolution "$s" 'resolution'
|
||||||
[ -n "$resolution" ] && input_arg="${input_arg} --resolution $resolution"
|
[ -n "$resolution" ] && input_arg="${input_arg} --resolution $resolution"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue