Closed LeeWiu closed 8 years ago
Thanks for the report. Looks like motion
is missing sqlite
dependency, and therefore wrongly picks up firmware libsqlite3. Try
ipkg update
ipkg install sqlite
This should work (works for me). I'll fix the missing dependency soon.
Should be fixed: 4aa7212df876d32be55d277422ae4a76f4550453
Yes, this was the culprit, now Motion is starting but can't start webcam
[0] [NTC] [ALL] conf_load: Processing thread 0 - config file /opt/etc/motion.conf [0] [ALR] [ALL] conf_cmdparse: Unknown config option "night_compensate" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "despeckle" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "gap" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "minimum_gap" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "max_mpeg_time" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "low_cpu" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_all" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_normal" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_motion" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ppm" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_new" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_motion" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "locate" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "jpeg_filename" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_port" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_quality" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_motion" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_maxrate" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_localhost" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_limit" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_port" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_localhost" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_html_output" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_image" [0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_mpeg" [0] [NTC] [ALL] motion_startup: Using default log level (NTC) (6) [0] [NTC] [ALL] motion_startup: Motion trunkREV561 Started [0] [NTC] [ALL] motion_startup: Logging to syslog [0] [NTC] [ALL] motion_startup: Using default log type (ALL) [0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC) [0] [NTC] [ALL] become_daemon: Motion going to daemon mode admin@RT-AC68U:/#
I replaced /opt/etc/motion.conf with motion-dist.conf and it works but I can't watch live stream on port 8080 or 8081
Looks like Debian (and Ubuntu) have some patches for motion. I'll try them tomorrow, maybe it can help.
Mysql is not necessary required, can you please remove it from depends? https://www.hqt.ro/webcam-video-surveillance-via-motion-through-optware-ng/ Thanks!
Actually, live streaming works, just need to change stream_localhost on to stream_localhost off :)
@TeHashX Great. Moved mysql
away from dependencies to suggestions
One more issue, I can't stop motion, tried with
/opt/etc/init.d/S99motion stop
this will restart motion :(
motion stop
Works only with
killall motion
@TeHashX All this script does it this:
#!/bin/sh
if [ -n "`pidof motion`" ]; then
killall motion 2>/dev/null
fi
/opt/bin/motion
So, it only (re)starts motion
. Is there something wrong using killall motion
?
Dunno but a init.d script should be used to start, stop and restart, no? With /opt/etc/init.d/S99motion can't stop, just start and restart, even with stop command. I created a script to stop all services with "services stop" command (this will stop all init.d services beside motion, which is restarted :(
@TeHashX I fixed this for motion
, but I remember I encountered other scripts of this kind, though can't recall which exactly. Also, I upgraded the default config, so it works out of the box (except for enabling streaming, and the target dir is /opt/share/motion
-- not /opt/motion
, as per your guide).
Installed Motion but I get Segmentation Fault when trying to start, RT-AC68U RMerlin v380.58 firmware, Logitech C270 Webcam as /dev/video0, Uvc modules loaded.
From chrooted debian is working https://www.hqt.ro/webcam-video-surveillance-via-motion-debian-arm/