From: Scott Mazur <scott@li...> - 2008-10-16 00:55:38
On Wed, 15 Oct 2008 23:06:11 +0200, Robert Rozman wrote
> I'm setting up motion 3.2.11 and motionbrowser (I've read
> recomendation in another thread)....
> It seems that motion is correctly entering things into database, but
> motionbrowser doesn't show anything ....
> What am I doing wrong ?
2 things to check off the top of my head:
- The MotionBrowser config.inc is setup for the database (host, user, pass, db)
- The directory containing the jpeg/avi files is readable by the webserver.
My hunch is it's the file permissions on /home/camera/...
A couple of other things to consider:
- Your avi files aren't configured in motion to be created in the same
sub-directories as the jpeg images. Maybe that was by design? MotionBrowser
will use the file path as it's found in the database so it makes no matter
where the actual file is stored.
- Repeating above, MotionBrowser will use the file path as it's found in the
database. If at some point in the future you decided to move old captured
files to a new location, MotionBrowser will continue to look for them at the
old location (and not find them).
- Breaking image paths into month/day/hour/... subdirectories is a good way to
keep your directories from filling up with files. In fact you pretty much
have to do this if you're expecting much motion activity. Just keep in mind
that when the time changes, motion will create a new directory path for the
files it needs to save. When it creates a new directory, the
user/group/permissions will be set according to the user/group that motion is
running as. This could mess with the webserver access again if it's running
as a different user/group.
- MotionBrowser doesn't handle deletions very well. First it will delete the
database reference, even if it doesn't have write access to the actual file.
This can leave you with the impression you deleted images/movies, when in fact
they're still taking up space on the drive. Secondly, it uses the wrong
method to accept the list of files to delete and it will choke if you try to
select too many to delete at one time. I hacked my MotionBrowser to handle
select/delete properly (and add a few other useful bells). That reminds me
that I should send a patch back to the author.
Registered Linux user #395249, http://counter.li.org
Nothing goes to waste when Little Fish are near!