Bug 1400

Summary: motion-3.2.12.1.fc12 - smart_mask not working
Product: Fedora Reporter: Dennis DeDonatis <rpmfusion>
Component: motionAssignee: Steven Moix <steven.moix>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P5    
Version: 12   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: motion.conf
thread1.conf
thread2.conf
Smart detection working

Description Dennis DeDonatis 2010-09-08 17:22:08 CEST
The smart_mask_speed config option doesn't work for me in the RPM release.  I never get any red blocks on the motion AVIs and I get a LOT of captured video (yesterday was very windy).

When I compile motion-3.2.12 from source, it works as expected (with no other changes other than the motion executable is replaced).  I used ffmpeg-cvs-20060306-certified-with-motion-3.2.5.tar.gz for ffmpeg (this may or may not have anything to do with it).  I am running kernel 2.6.32.21-166.fc12.x86_64.
Comment 1 Steven Moix 2010-09-09 09:49:03 CEST
Hello,

You obviously did more than just compile motion, it could also be an ffmpeg bug. Could you provide the "./configure" lines you used for motion and ffmpeg?

Could you also post your motion configuration file?

Thanks
Comment 2 Dennis DeDonatis 2010-09-09 15:18:21 CEST
Here is what I did to build ffmpeg:

comment out in ffplay.c

/*
#if defined(__linux__)
#define HAVE_X11
#endif
*/


export TMPDIR=.

./configure --extra-cflags=-DHAVE_LRINTF --disable-debug --prefix=/mnt/download/motion/ffmpeg-cvs-20060306
make
make install

-----------------------

Here is what I did to build and install motion:

./configure --with-ffmpeg=/mnt/download/motion/ffmpeg-cvs-20060306

make

mv -f /usr/bin/motion /tmp
cp -a motion /usr/bin

chown root.root /usr/bin/motion
chmod 755 /usr/bin/motion

Comment 3 Dennis DeDonatis 2010-09-09 15:20:55 CEST
Created attachment 485 [details]
motion.conf
Comment 4 Dennis DeDonatis 2010-09-09 15:22:39 CEST
Created attachment 486 [details]
thread1.conf
Comment 5 Dennis DeDonatis 2010-09-09 15:23:21 CEST
Created attachment 487 [details]
thread2.conf
Comment 6 Steven Moix 2010-09-13 13:10:32 CEST
Created attachment 489 [details]
Smart detection working
Comment 7 Steven Moix 2010-09-13 13:12:18 CEST
I just tried to replicate your problem, but everything runs fine on my Fedora 13 box, unfortunately I don't have a F12 box around any-more...

With these settings, I went to http://localhost:8081 
smart_mask_speed 10
setup_mode on

After a while and as you can see on the attached screenshot, you can see the smart zones in red that are correctly detected.

Here is what I have installed:

ffmpeg-libs-0.6-3.fc13.x86_64
motion-3.2.12-1.fc13.x86_64
kernel-2.6.34.6-54.fc13.x86_64
Comment 8 Steven Moix 2010-09-22 15:57:44 CEST
As I can't replicate it for F12 due to lack of hardware and software, that it isn't completely critical and that it works for F13, I'm closing the bug.