Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: Compile Errors with latest version of ffmpeg. (The_Spider) 2. Re: Multiple cams & cpu usage (Richard Bown) 3. Re: Multiple cams & cpu usage (Richard Bown) ---------------------------------------------------------------------- Message: 1 Date: Thu, 21 Jan 2016 03:42:51 -0600 From: The_Spider <spi...@smoothnet.org> Subject: Re: [Motion-user] Compile Errors with latest version of ffmpeg. To: Motion discussion list <motion-user@lists.sourceforge.net> Message-ID: <cajfe2f4tqc82regop7hobkrbbxab46xf0nfgessklxql+f9...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Ok, I saw the link, but it never occurred to me that the original project stalled. I see now last commit was over ~2 years ago. It was just a confusing scenario. Thanks for your assistance. On Thu, Jan 21, 2016 at 3:33 AM, tosiara <tosi...@gmail.com> wrote: > It is not obvious, but github is not an "official" yet. It is mentioned on > the web page: > http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome (see "These unofficial > versions exists that hopefully will soon be merged into the official > project") > > On Thu, Jan 21, 2016 at 11:19 AM, Nicolaas Hyatt <spi...@smoothnet.org> > wrote: >> >> Tosiara, >> >> Thanks, I was un-aware that motion development had been moved to GitHub. >> The website does certainly not reflect this. Using that fork worked without >> issue. >> >> >> >> Can you shed a little light as to why the motion website does not properly >> reflect the projects proper download location or why it seems its being >> maintained by another user/group? >> >> >> >> From: tosiara [mailto:tosi...@gmail.com] >> Sent: Thursday, January 21, 2016 1:09 AM >> To: Motion discussion list <motion-user@lists.sourceforge.net> >> Subject: Re: [Motion-user] Compile Errors with latest version of ffmpeg. >> >> >> >> Looks like you are compiling SVN version, which may be outdated >> >> Try compiling the latest one from github: >> https://github.com/Mr-Dave/motion >> >> >> >> On Thu, Jan 21, 2016 at 12:36 AM, The_Spider <spi...@smoothnet.org> wrote: >> >> Attached is the output from both configure & make for the latest >> version of ffmpeg. ffmpeg was compiled using the guide located here: >> https://trac.ffmpeg.org/wiki/CompilationGuide/Centos >> >> If anyone could assist I would greatly appreciate the help. I find >> motion to be a most valuable tool. >> >> OS: CentOS Linux release 7.2.1511 (Core) >> seLinux: Enabled & Enforcing >> kernel version: 3.10.0-327.4.4.el7.x86_64 >> >> Let me know if you require any further information. >> >> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >> _______________________________________________ >> Motion-user mailing list >> Motion-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/motion-user >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >> _______________________________________________ >> Motion-user mailing list >> Motion-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/motion-user >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > ------------------------------ Message: 2 Date: Thu, 21 Jan 2016 13:34:51 +0000 From: Richard Bown <rich...@g8jvm.com> Subject: Re: [Motion-user] Multiple cams & cpu usage To: Motion discussion list <motion-user@lists.sourceforge.net> Message-ID: <20160121133451.2d77eb15.rich...@g8jvm.com> Content-Type: text/plain; charset=UTF-8 I tried using one instance of motion with multiple threads, but for some reason it was no longer sending jpegs on motion detected. So now trying multiple instances of motion. As I run motion as a service, if I restart the service it kills all the processes and just starts one. so to get around this, I'd like to spawn the other instances of motion when the service is started. so at the end of motion.conf I added /usr/bin/motion2 -c /etc/motion/motion2.conf & I made motion.conf executable as well, motion2 is sym linked to /usr/bin/motion But It doesn't work :( odroid@odroid:/etc/motion$ sudo service motion restart * Restarting motion... * Stopping motion detection daemon motion [ OK ] * Starting motion detection daemon motion [ OK ] [ OK ] odroid@odroid:/etc/motion$ ps ax | grep motion 17624 ? Sl 0:00 /usr/bin/motion 17630 pts/1 S+ 0:00 grep --color=auto motion But odroid@odroid:/etc/motion$ sudo motion2 -c ./motion2.conf [0] Processing thread 0 - config file ./motion2.conf [0] Motion 3.2.12 Started [0] Motion going to daemon mode odroid@odroid:/etc/motion$ ps ax | grep motion 17624 ? Sl 0:05 /usr/bin/motion 17640 ? Sl 0:00 motion2 -c ./motion2.conf Any ideas ???? TIA On Wed, 20 Jan 2016 10:30:16 +0100 M?bin ??yer <mubinic...@gmail.com> wrote: > I run also one motion with 2 threads for each USB webcam. I have not > experienced such bugs or errors. > > 2016-01-19 18:12 GMT+01:00 tosiara <tosi...@gmail.com>: > > > Not necessary. I simply run the same binary with different config on the > > command line > > > > On Tue, Jan 19, 2016 at 7:01 PM, Richard Bown <rich...@g8jvm.com> wrote: > > > >> Many thanks > >> Am I correct with multiple instances of motion you copy the motion binary > >> to motion1, motion2, ect > >> and the conf files for each motion1.conf motion2.conf > >> > >> > >> > >> On Tue, 19 Jan 2016 17:03:29 +0200 > >> tosiara <tosi...@gmail.com> wrote: > >> > >> > I use separate motion process per camera. Mostly because of a bug when > >> > threaded config can cause picture corruptions (pictures partialy mixed) > >> > I don't thing there will be any significant performance or memory > >> penalty > >> > if you are using threaded or not threaded scenario. It's only about > >> > maintaining config files > >> > > >> > On Tue, Jan 19, 2016 at 4:54 PM, Richard Bown <rich...@g8jvm.com> > >> wrote: > >> > > >> > > > >> > > Hi > >> > > > >> > > Which is going to have to use less cpu/memory usage ??? > >> > > using one instance of motion with multiple cameras > >> > > multiple instances of motion with one cam/motion > >> > > The later is easier to configure, I have three cams , two web IP and > >> one > >> > > USB cam > >> > > But it will be using a ARM SBC, twice the speed of a Rasp PI2, the > >> same > >> > > SBC is also used > >> > > as streaming media device, So far no problems with one instance of > >> motion > >> > > when Kodi is run. > >> > > TIA > >> > > -- > >> > > -- > >> > > Best wishes /73 > >> > > Richard Bown > >> > > > >> > > Email : rich...@g8jvm.com > >> > > HTTP : http://www.g8jvm.com > >> > > nil carborundum a illegitemis > >> > > > >> > > > >> ################################################################################## > >> > > Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms > >> 100W & > >> > > 3cms 5W > >> > > Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W > >> > > QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W > >> > > OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop > >> > > > >> > > > >> ################################################################################## > >> > > > >> > > > >> > > > >> > > > >> ------------------------------------------------------------------------------ > >> > > Site24x7 APM Insight: Get Deep Visibility into Application Performance > >> > > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > >> > > Monitor end-to-end web transactions and take corrective actions now > >> > > Troubleshoot faster and improve end-user experience. Signup Now! > >> > > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > >> > > _______________________________________________ > >> > > Motion-user mailing list > >> > > Motion-user@lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/motion-user > >> > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > >> > > > >> > >> > >> > >> -- > >> -- > >> Best wishes /73 > >> Richard Bown > >> > >> Email : rich...@g8jvm.com > >> HTTP : http://www.g8jvm.com > >> nil carborundum a illegitemis > >> > >> ################################################################################## > >> Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms 100W & > >> 3cms 5W > >> Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W > >> QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W > >> OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop > >> > >> ################################################################################## > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> Site24x7 APM Insight: Get Deep Visibility into Application Performance > >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > >> Monitor end-to-end web transactions and take corrective actions now > >> Troubleshoot faster and improve end-user experience. Signup Now! > >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > >> _______________________________________________ > >> Motion-user mailing list > >> Motion-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/motion-user > >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > >> > > > > > > > > ------------------------------------------------------------------------------ > > Site24x7 APM Insight: Get Deep Visibility into Application Performance > > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > > Monitor end-to-end web transactions and take corrective actions now > > Troubleshoot faster and improve end-user experience. Signup Now! > > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > > _______________________________________________ > > Motion-user mailing list > > Motion-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/motion-user > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > > > -- -- Best wishes /73 Richard Bown Email : rich...@g8jvm.com HTTP : http://www.g8jvm.com nil carborundum a illegitemis ################################################################################## Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms 100W & 3cms 5W Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop ################################################################################## ------------------------------ Message: 3 Date: Thu, 21 Jan 2016 17:24:40 +0000 From: Richard Bown <rich...@g8jvm.com> Subject: Re: [Motion-user] Multiple cams & cpu usage To: Motion discussion list <motion-user@lists.sourceforge.net> Message-ID: <20160121172440.019cb75f.rich...@g8jvm.com> Content-Type: text/plain; charset=UTF-8 Hi trying to get each instance of motion running as a service /etc/init.d/motion2 =motion2 PATH_BIN=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/bin/motion2 PIDFILE=/var/run/$NAME.pid DEFAULTS=/etc/default/$NAME DESC="motion2 detection daemon" ENV="env -i LANG=C PATH=$PATH_BIN" . /lib/lsb/init-functions test -x $DAEMON || exit 0 RET=0 [ -r "$DEFAULTS" ] && . "$DEFAULTS" || start_motion_daemon=yes check_daemon_enabled () { if [ "$start_motion_daemon" = "yes" ] ; then return 0 else log_warning_msg "Not starting $NAME daemon, disabled via /etc/default/$NAME" return 1 fi } case "$1" in start) if check_daemon_enabled ; then if ! [ -d /var/run/motion2 ]; then mkdir /var/run/motion2 fi chown motion:motion /var/run/motion2 log_daemon_msg "Starting $DESC" "$NAME" if start-stop-daemon --start -c motion2.conf --oknodo --exec $DAEMON -b -v --chuid motion ; then log_end_msg 0 else log_end_msg 1 RET=1 fi fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if start-stop-daemon --stop --oknodo --exec $DAEMON --retry 30 ; then log_end_msg 0 else log_end_msg 1 RET=1 fi ;; reload|force-reload) log_daemon_msg "Reloading $NAME configuration" if start-stop-daemon --stop --signal HUP --exec $DAEMON ; then log_end_msg 0 else log_end_msg 1 RET=1 fi ;; restart-motion) if check_daemon_enabled ; then log_action_begin_msg "Restarting $NAME" if $0 stop && $0 start ; then log_action_end_msg 0 else log_action_cont_msg "(failed)" RET=1 fi fi ;; restart) $0 restart-motion2 ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}" RET=1 ;; esac exit $RET In the line if start-stop-daemon --start -c motion2.conf --oknodo --exec $DAEMON -b -v --chuid motion its not passing -c motion2.conf to the starting daemon process if I put -- start [-c motion2.conf] --oknodo It starts and ps ax shows PID motion2 [-c motion2.conf] one problem is "-c" is a valid switch for start-stop-daemon How do you pass the config file to the daemon process, in this case motion2 ???????? I've tried using quotes as well I do have a script in /usr/bin called cam2 which just has the line motion2 -c /etc/motion/motion2.conf & that starts up as it should , but not when used as the $DAEMON in above I'm a bit stuck , can someone assist please Thanks On Thu, 21 Jan 2016 13:34:51 +0000 Richard Bown <rich...@g8jvm.com> wrote: > I tried using one instance of motion with multiple threads, but for some > reason it was no longer > sending jpegs on motion detected. > > So now trying multiple instances of motion. > As I run motion as a service, if I restart the service it kills all the > processes and just starts > one. > > so to get around this, I'd like to spawn the other instances of motion when > the service is > started. > > so at the end of motion.conf I added > /usr/bin/motion2 -c /etc/motion/motion2.conf & > I made motion.conf executable as well, motion2 is sym linked to > /usr/bin/motion > > But It doesn't work :( > > odroid@odroid:/etc/motion$ sudo service motion restart > * Restarting motion... > * Stopping > motion detection daemon motion [ OK ] > * Starting motion detection daemon motion [ OK > ] > [ OK > ] > odroid@odroid:/etc/motion$ ps ax | grep motion > 17624 ? Sl 0:00 /usr/bin/motion > 17630 pts/1 S+ 0:00 grep --color=auto motion > > But > > odroid@odroid:/etc/motion$ sudo motion2 -c ./motion2.conf > [0] Processing thread 0 - config file ./motion2.conf > [0] Motion 3.2.12 Started > [0] Motion going to daemon mode > odroid@odroid:/etc/motion$ ps ax | grep motion > 17624 ? Sl 0:05 /usr/bin/motion > 17640 ? Sl 0:00 motion2 -c ./motion2.conf > > Any ideas ???? > > TIA > > > > > > On Wed, 20 Jan 2016 10:30:16 +0100 > M?bin ??yer <mubinic...@gmail.com> wrote: > > > I run also one motion with 2 threads for each USB webcam. I have not > > experienced such bugs or errors. > > > > 2016-01-19 18:12 GMT+01:00 tosiara <tosi...@gmail.com>: > > > > > Not necessary. I simply run the same binary with different config on the > > > command line > > > > > > On Tue, Jan 19, 2016 at 7:01 PM, Richard Bown <rich...@g8jvm.com> wrote: > > > > > >> Many thanks > > >> Am I correct with multiple instances of motion you copy the motion binary > > >> to motion1, motion2, ect > > >> and the conf files for each motion1.conf motion2.conf > > >> > > >> > > >> > > >> On Tue, 19 Jan 2016 17:03:29 +0200 > > >> tosiara <tosi...@gmail.com> wrote: > > >> > > >> > I use separate motion process per camera. Mostly because of a bug when > > >> > threaded config can cause picture corruptions (pictures partialy mixed) > > >> > I don't thing there will be any significant performance or memory > > >> penalty > > >> > if you are using threaded or not threaded scenario. It's only about > > >> > maintaining config files > > >> > > > >> > On Tue, Jan 19, 2016 at 4:54 PM, Richard Bown <rich...@g8jvm.com> > > >> wrote: > > >> > > > >> > > > > >> > > Hi > > >> > > > > >> > > Which is going to have to use less cpu/memory usage ??? > > >> > > using one instance of motion with multiple cameras > > >> > > multiple instances of motion with one cam/motion > > >> > > The later is easier to configure, I have three cams , two web IP and > > >> one > > >> > > USB cam > > >> > > But it will be using a ARM SBC, twice the speed of a Rasp PI2, the > > >> same > > >> > > SBC is also used > > >> > > as streaming media device, So far no problems with one instance of > > >> motion > > >> > > when Kodi is run. > > >> > > TIA > > >> > > -- > > >> > > -- > > >> > > Best wishes /73 > > >> > > Richard Bown > > >> > > > > >> > > Email : rich...@g8jvm.com > > >> > > HTTP : http://www.g8jvm.com > > >> > > nil carborundum a illegitemis > > >> > > > > >> > > > > >> ################################################################################## > > >> > > Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms > > >> 100W & > > >> > > 3cms 5W > > >> > > Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W > > >> > > QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W > > >> > > OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop > > >> > > > > >> > > > > >> ################################################################################## > > >> > > > > >> > > > > >> > > > > >> > > > > >> ------------------------------------------------------------------------------ > > >> > > Site24x7 APM Insight: Get Deep Visibility into Application > > >> > > Performance > > >> > > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > > >> > > Monitor end-to-end web transactions and take corrective actions now > > >> > > Troubleshoot faster and improve end-user experience. Signup Now! > > >> > > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > > >> > > _______________________________________________ > > >> > > Motion-user mailing list > > >> > > Motion-user@lists.sourceforge.net > > >> > > https://lists.sourceforge.net/lists/listinfo/motion-user > > >> > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > >> > > > > >> > > >> > > >> > > >> -- > > >> -- > > >> Best wishes /73 > > >> Richard Bown > > >> > > >> Email : rich...@g8jvm.com > > >> HTTP : http://www.g8jvm.com > > >> nil carborundum a illegitemis > > >> > > >> ################################################################################## > > >> Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms 100W & > > >> 3cms 5W > > >> Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W > > >> QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W > > >> OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop > > >> > > >> ################################################################################## > > >> > > >> > > >> > > >> ------------------------------------------------------------------------------ > > >> Site24x7 APM Insight: Get Deep Visibility into Application Performance > > >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > > >> Monitor end-to-end web transactions and take corrective actions now > > >> Troubleshoot faster and improve end-user experience. Signup Now! > > >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > > >> _______________________________________________ > > >> Motion-user mailing list > > >> Motion-user@lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/motion-user > > >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > >> > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Site24x7 APM Insight: Get Deep Visibility into Application Performance > > > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > > > Monitor end-to-end web transactions and take corrective actions now > > > Troubleshoot faster and improve end-user experience. Signup Now! > > > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > > > _______________________________________________ > > > Motion-user mailing list > > > Motion-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/motion-user > > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > > > > > > > > -- -- Best wishes /73 Richard Bown Email : rich...@g8jvm.com HTTP : http://www.g8jvm.com nil carborundum a illegitemis ################################################################################## Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms 100W & 3cms 5W Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop ################################################################################## ------------------------------ ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 ------------------------------ _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user End of Motion-user Digest, Vol 116, Issue 8 *******************************************