Detect and record video movement with Motion
By Forrest Cook
June 10, 2008
Motion
is a video application that monitors a video4linux device such as a
USB camera and records movement within the image:
Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed; in other words, it can detect motion.
The program is written in C and is made for the Linux operating system. Motion is a command line based tool whose output can be either jpeg, ppm fies or mpeg video sequences.
An installation of Motion was performed on a machine with a 3Ghz
Athlon 64 processor running Ubuntu 7.04 (Feisty Fawn).
The most recent version of Motion (v 3.2.10.1) was
downloaded, the file was uncompressed and untared.
The normal configure, make and make install steps were performed.
If one wishes to record mpeg movies, the libavcodec and libavformat
libraries must be installed prior to running configure.
The make install step needed a bit of manual intervention,
it was necessary to create the /var/run/motion directory and
copy the motion-dist.conf configuration file to
/usr/local/etc/motion.conf. The config file was modified to
define a USB camera, the camera's default resolution was defined
and the destination directory for images was set.
The framerate parameter was changed to 2 seconds to slow down the
rate of accumulation of image files.
A Kensington Model 67015 VideoCAM VGA USB camera was plugged into
the computer.
It is a good idea to run a real-time video monitoring application such as
xawtv or
EffecTV (in DumbTV
mode) to adjust the camera's focus, brightness and contrast settings.
Running Motion was simply a matter of typing "motion"
on the command line. The program takes about 25 seconds to start
recording movement, presumably most of this time is spent learning
the contents of the video. After this delay, the software would
output a line of text and create one .jpg file for each movement
it detected. The images were inspected with the
Mirage image viewer and a changing sequence of static images was
observed.
Motion has a wide variety of capabilities and configurable
parameters. The
Motion Guide and
Config File Options are a good place to read about the
various capabilities and the
FAQ gives answers to common questions.
One can imagine a number of uses for Motion, cube farm denizens could
find out what is causing their pens to disappear at night, people in high
crime areas could use it to catch vandals and thieves in the act.
The on_picture_save configuration directive can execute a script
on motion detection, this could be used to copy captured images to
a distant web server for remote monitoring.
This feature was tested by adding a line like this:
on_picture_save scp %f remote-host:/directory-path
to the config file, the operation worked as expected.
It should be noted that inexpensive USB cameras may only work in a
very limited set of lighting conditions. Serious surveillance
would require an NTSC or PAL video input adapter and a better
camera, or a high resolution webcam.
Apparently, no major releases of Motion have been released in a long
time, but the developers'
mail archive shows that recent work has been done on the project.
A new point release just showed up this week, it added a fix
for a security bug.
If you are looking for a way to do automated video surveillance,
Motion is an excellent tool for the job.
Comments (5 posted)
System Applications
Database Software
MySQL 5.1.25-rc has been released
Version 5.1.25-rc of the MySQL DBMS has been announced.
"
We are proud to present to you the MySQL Server 5.1.25-rc release,
a new "release candidate" version of the popular open source database.
Bear in mind that this is still a "candidate" release, and as with any
other pre-production release, caution should be taken when installing on
production level systems or systems with critical data."
Full Story (comments: none)
pgAdmin III v1.8.4 released
Version 1.8.4 of pgAdmin III has been
announced.
"
The pgAdmin Development Team are pleased to announce the release of pgAdmin 1.8.3, the Open Source graphical PostgreSQL administration tool for Windows, Linux, FreeBSD, Mac OS X and Solaris, now available for download in source and a variety of binary formats from:
http://www.pgadmin.org/download/.
v1.8.4 is primarily a bug fix release".
Comments (none posted)
Embedded Systems
BusyBox 1.10.3 released
Version 1.10.3 of
BusyBox, a collection
of command line utilities for embedded systems, has been announced.
"
Bugfix-only release for 1.10.x branch. It contains fixes for dnsd, fuser, hush, ip, mdev and syslogd."
Comments (none posted)
Web Site Development
About Django and the importance of releases (Technobabble)
Christian Joergensen
notes the lack of recent releases of the Django web platform.
"
My favorite Python web framework, Django, has not been updated for a long time. The most current release, 0.96, was released in March 2007. This is a very long time, when you're in the market of web frameworks.
This doesn't seem to bother a lot of people, as the common answer in the django community seems to be just to run the trunk version (development version).
I for one do[]n't like that solution. And here are some of the reasons why."
Comments (1 posted)
Desktop Applications
Animation Software
Synfig Irregular News
The June 5, 2008 edition of the
Synfig Irregular News
covers the latest news from the Synfig 2D vector animation studio project.
Comments (none posted)
Audio Applications
JVoiceXML: Release 0.6 (SourceForge)
Version 0.6 of JVoiceXML has been
announced, several new capabilities have been added.
"
VoiceXML is designed for creating audio dialogs that feature synthesized speech, digitized audio, recognition of spoken and DTMF key input, recording of spoken input, telephony, and mixed initiative conversations. Major goal is to have a platform independent implementation that can be used for free."
Comments (none posted)
Business Applications
OrangeHRM: Releases Version 2.3 (SourceForge)
Version 2.3 of OrangeHRM has been
announced.
"
OrangeHRM developed by OrangeHRM Inc is an Open Source HR Information Systems(HRIS) that covers Personnel Information Management, Employee Self Service, Leave, Time & Attendance, and Benefits. Recruitment, and Performance Appraisal are in development.
New version - a result of OrangeHRM and its user community collaboration - brings in the introduction of the comprehensive Benefit Module".
Comments (none posted)
Desktop Environments
GNOME 2.23.3 released
Version 2.23.3 of the GNOME desktop has been announced.
"
Okay, the big thing in this release is that we fixed many bugs! Hrm,
you're used to this too... But does all this mean this release is
boring? Of course not, it just means we don't realize how much good work
we're constantly doing :-) So just think about it and hug a GNOME
contributor!"
Full Story (comments: none)
GARNOME 2.23.3 released
Version 2.23.3 of GARNOME, the bleeding-edge GNOME distribution,
has been announced.
"
Next one. Unstable again this time. After lots of smoke-testing the last
3 days, re-building lots of stuff over and over again, pestering
maintainers to fix their code and upload brown paper bag tarballs..."
Full Story (comments: none)
GNOME Software Announcements
The following new GNOME software has been announced this week:
You can find more new GNOME software releases at
gnomefiles.org.
Comments (none posted)
KDE Commit-Digest (KDE.News)
The May 11, 2008 edition of the
KDE Commit-Digest has been
announced.
The content summary says:
"
In this week's KDE Commit-Digest: A wordprocessor-like ruler for repositioning and resizing the Plasma panel. Scripting support re-enabled in KRunner. More developments in the NetworkManager Plasma applet. Initial work to allow closer interaction of Plasma with KNotify's popups. Work on theming, Magnatune membership support, and the ClassicView in Amarok 2.0. Work on adding support for plugins to Marble. General work across KDE games..."
Comments (none posted)
KDE Software Announcements
The following new KDE software has been announced this week:
You can find more new KDE software releases at
kde-apps.org.
Comments (none posted)
X.Org security advisory june 2008 - Multiple vulnerabilities
A June, 2008 X.Org security advisory has been issued.
"
Several vulnerabilities have been found in the server-side code
of some extensions in the X Window System. Improper validation of
client-provided data can cause data corruption."
Full Story (comments: none)
Xorg Software Announcements
The following new Xorg software has been announced this week:
More information can be found on the
X.Org Foundation wiki.
Comments (none posted)
Desktop Publishing
LyX version 1.6.0 (beta 3) is released
Version 1.6.0 beta 3 of LyX, a GUI front-end to the TeX typesetter,
has been announced.
"
Compared with the latest stable release, this is the culmination of
one year of hard work, and we sincerely hope you will enjoy the
results."
Full Story (comments: 1)
pdfposter 0.4.2 released
Version 0.4.2 of pdfposter, a tool for scaling and tiling PDF
images to print on multiple pages, has been announced.
"
This version fixes a view minor bugs
- some media-/poster-sizes (eg. Letter) have not bee[n] recogni[z]ed
- some PDF files crashed the tool."
Full Story (comments: none)
Imaging Applications
Gimp UserFilter: plug-in v0.9.6 released (SourceForge)
Version 0.9.6 of Gimp User Filter has been
announced.
"
Gimp User Filter is a plugin for The Gimp (http://www.gimp.org/), originally written by Jens Restemeier back in 1997. This project is about maintaining the plugin, keeping it compatible with current versions of Gimp, and eventually extending its features.
This is a bugfix release of the plug-in. It fixes a couple of issues in the configuration and compilation process."
Comments (1 posted)
Interoperability
Wine 1.0-rc4 released
Version 1.0-rc4 of Wine
has been announced.
Changes include: Bug fixes only, we are in code freeze.
Comments (none posted)
Multimedia
ScaleTempo: gst-scaletempo Release 1 (SourceForge)
Release 1 of ScaleTempo has been
announced. The application is a:
"
Variable speed playback for major open source media players (MPlayer, GStreamer, Xine, VLC, Totem, RhythmBox, Amorak, Miro, etc.) Scaletempo plays audio and video faster or slower than the recorded speed without changing pitch (i.e. no chipmunk effect)."
Comments (none posted)
Office Suites
OpenOffice 2.4.1 released
Version 2.4.1 of OpenOffice.org has been released.
"
The OpenOffice.org Community is pleased to announce the release of
OpenOffice.org 2.4.1, a minor update of OpenOffice.org 2.4 released in
March 2008."
Full Story (comments: none)
Video Applications
Dirac Beta version (0.10.0) released
Beta version 0.10.0 of the Dirac video codec has been announced.
Changes include new support for ultra high definition video,
improved compression performance, bug fixes and more.
Full Story (comments: none)
Web Browsers
Mozilla Firefox 3 Release Candidate 2 Available (MozillaZine)
MozillaZine has
announced the availability of Firefox 3 RC 2.
"
The second candidate build for Mozilla's next generation Firefox browser is
now available for testing. Firefox 3 Release Candidate 2 can be downloaded
from the
Firefox Release Candidates page. The Firefox 3 Release Candidate 2
Release Notes have more details."
Comments (5 posted)
Miscellaneous
Souzou: Version 0.1.0 Released (SourceForge)
The initial release of Souzou has been
announced.
"
Souzou is a cross-platform drawing board application written in C++. It is intended to be used with homemade Wiimote smartboards, and allows the interactive whiteboard to be used like a normal whiteboard, and allows you to save captures of the content."
Comments (none posted)
Languages and Tools
C
GCC 4.3.1 released
Version 4.3.1 of GCC, the GNU Compiler Collection, has been
announced. See the
changes
document for details.
Comments (none posted)
Caml
Caml Weekly News
The June 10, 2008 edition of the Caml Weekly News
is out with new articles about the Caml language.
Full Story (comments: none)
Haskell
Haskell Communities and Activities Report
The
May, 2008 edition of the
Haskell Communities and Activities Report has been published.
"
This is the 14th edition of the Haskell Communities and Activities Report. There has been a transition in editorship which went very smoothly, also thanks to the many responsive contributors who where as helpful to the new editor as they have been to Andres during the last years."
Comments (none posted)
Java
GNU Classpath 0.97.2 released
Version 0.97.2 of GNU Classpath, the essential libraries for Java,
has been announced.
"
This is the second of a new series of bugfix releases that follow a
major (0.x) release. A 0.x.y release will only contain minor bug
fixes. It will not cause major changes in the functionality of GNU
Classpath, either for better or for worse."
Full Story (comments: none)
Qt Jambi 4.4 has been released (KDE.News)
KDE.News
takes a look
at Qt Jambi 4.4.
"
Trolltech today announced the launch of Qt Jambi 4.4 – the latest version of its application framework for Java development. Qt Jambi is based on the recently-launched Qt 4.4, and brings its benefits to Java developers: including the ability to develop web and multimedia enriched applications across desktop operating systems."
Comments (none posted)
Perl
This Week on perl5-porters (use Perl)
The May 25-31, 2008 edition of
This Week on perl5-porters is out with the latest Perl 5 news.
Comments (none posted)
Python
Practical threaded programming with Python (IBM developerWorks)
Noah Gift
discusses threaded programming with Python on IBM developerWorks.
"
Threaded programming in Python can be done with a minimal amount of complexity by combining threads with Queues. This article explores using threads and queues together to create simple yet effective patterns for solving problems that require concurrency."
Comments (2 posted)
Python-URL! - weekly Python news and links
The June 11, 2008 edition of the Python-URL! is online with
a new collection of Python article links.
Full Story (comments: none)
Tcl/Tk
Tcl-URL! - weekly Tcl news and links
The June 8, 2008 edition of the Tcl-URL! is online with new
Tcl/Tk articles and resources.
Full Story (comments: none)
UML
UMLet: 9.01 Released (SourceForge)
Version 9.01 of UMLet has been
announced.
"
UMLet is an open-source Java tool for rapidly drawing UML diagrams, with a focus on a sound and pop-up-free user interface. Its homepage is
http://www.umlet.com.
UMLet 9.01 is available at http://www.umlet.com. Changes: CPU load issue on Linux resolved."
Comments (none posted)
Page editor: Forrest Cook
Next page: Linux in the news>>