Wracając do kamery - wyedytowałem /etc/init.d/mjpg-streamer
#!/bin/sh /etc/rc.common
# Copyright (C) 2009-2012 OpenWrt.org
START=50
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
PROG=/usr/bin/mjpg_streamer
error() {
echo "${initscript}:" "$@" 1>&2
}
section_enabled() {
config_get_bool enabled "$1" 'enabled' 0
[ $enabled -gt 0 ]
}
start_instance() {
local s="$1"
section_enabled "$s" || return 1
config_get device "$s" 'device'
config_get resolution "$s" 'resolution'
config_get fps "$s" 'fps'
config_get www "$s" 'www'
config_get port "$s" 'port'
[ -c "$device" ] || {
error "device '$device' does not exist"
return 1
}
service_start /usr/bin/mjpg_streamer --input "input_uvc.so -y \
--device $device --fps $fps --resolution $resolution" \
--output "output_http.so --www $www --port $port"
}
stop_instance() {
local s="$1"
section_enabled "$s" || return 1
service_stop /usr/bin/mjpg_streamer
}
start() {
config_load 'mjpg-streamer'
config_foreach start_instance 'mjpg-streamer'
}
stop() {
config_load 'mjpg-streamer'
config_foreach stop_instance 'mjpg-streamer'
}
Dodałem -y do "service_start /usr/bin/mjpg_streamer --input "input_uvc.so -y \"
i coś jest tzn. po wpisaniu http://192.168.1.2:8080/stream.html pojawia się strona, ale zarówno na static jak i stream jest wyświetlona 1 klatka i stoi. Czerwona dioda na kamerze się świeci. Przy próbie odświeżenia strony traci połączenie i nie da się już połączyć ze stroną, a czerwona dioda gaśnie.
Po wpisaniu ponownie /etc/init.d/mjpg-streamer enable i /etc/init.d/mjpg-streamer start dioda się zapala i znowu na chwilę można wejść na stronę i wyświetlić 1 klatkę - potem brak połączenia. Co z tym zrobić?