Motion - Motion Release 3x 2x 2snap 10

Motion Snapshot Release 3.2.2 snap10

Release Notes

3.2.2 snap10 - 05 Aug 2005

Development Release

Changes since 3.2.1


  • Avoid Cleanup Segfault. Allocates filepath using strdup to avoid segfault is target_dir parameter is not supplied in motion.conf. Moves out from signal handler the cleanup for pipe and mpipe. (Angel Carpintero)
  • Major code cleanup concerning signedness of chars all over the code to allow compilation with gcc4.0 (like in Fedora Core 4) without any errors or warnings. This will probably require that some of the not yet included patches will have to be fixed because it it code all over the place that has been changed. (Kenneth Lavrsen)

  • Changed the order of drawing the red mask in setup mode so that the smartmask is drawn after the fixed mask (Joerg Weber).
  • Changed the configure script so that /usr/lib64 is also searched for the presense of ffmpeg (should fix the problem with 64 bit machines) (Kenneth Lavrsen).
  • Changed the configure script so that rpms can be made by normal non-root users (Angel Carpintero, Kenneth Lavrsen).

  • Fixed the ffmpeg code so that Motion also compiles against libavcodec build 4754 or later. (Per Jönsson)
  • Above change in configure script for 64 bit ffmpeg support also implemented in the freeBSD configure (Angel Carpintero)
  • Webhttp control interface fixed so it also works in FreeBSD (Angel Carpintero)
  • Improved the display of fixed mask. It is now shown as grey instead of red. This makes it easier to see the smart mask working when you also have a fixed mask (Joerg Weber).
  • Netcam First Header patch. If an error with jpeg decompression occured at connecting to a mjpeg streaming webcam, this patch skips this jpeg and tries to decompress next jpeg up to MAX_HEADER_RETRIES (20) (Peter Holik).


  • Webcam code commented more (Kenneth Lavrsen)
  • New improved webcam feature. When you set webcam_motion on Motion will now stream at 1 fps instead of none. When motion is detected the webcam stream increases to the limit set in the config file. This change makes the webcam_motion much more interesting. The previous function always ended up with clients timing out. (Kenneth Lavrsen).


  • Small code cleanup in webcam.c and picture.c and .h for the webcam code (Peter Holik and Kenneth Lavrsen)
  • Small code cleanup in motion.c for the variable holding the number of microseconds since epoch. The old code worked fine but relied on an integer overflow every 71 minutes. (Bill Brack and Kenneth Lavrsen)
  • Implemented a fix/work around to a bug related to building and installing RPMs on Suse. (Paul Beltrani)
  • Small speed optimization in the creation of reference frame (Peter Holik).
  • Complete rewrite of the Netcam code. Should fix many of the reported and still open netcam bugs. This is first release in a snapshot. Expect to find bugs. Testing is important. If you have a netcam please test this and report bugs.


  • Error Logging Enhancement Patch v 1.3 (Angel Carpintero) including:
    • Populate the motion_log to the whole motion source code.
    • Fixed FreeBSD copilation.
    • Added the posiblity to pass NULL as struct context *
    • Removed unused errno variables.
    • Fixed errno in rotate.c , set to 0.
    • Fixed some errno flags in webhttpd.c and motion.c
    • Fixed a bug when not motion.conf is found
    • Removed printf from all files
    • Fixed the conf_list[] index in motion.c
  • RotateBswapFix Patch v 2 (Per Jönsson) including:
    • cleanup in code comments
    • fix for __bswap_32 macro collision
    • fixed bug where initialization would be incomplete for invalid degrees of rotation
    • now uses motion_log for error reporting
  • Re-mplementation of optional Proxy Server for Network Cameras (Bill Brack).
  • Included a CODE_STANDARD text file to help new developers make patches that are easier to integrate without too much manual editing. (Kenneth Lavrsen)
  • Added the missing rotate feature in the new netcam code (Billl Brack)

Next Steps

  • A lot of testing of the brand new netcam code.
  • Implement retry schemes as discussed in
  • Fix open bugs.
  • tuner_number will be introduced later when Motion eventually supports V4L2. Will not be in 3.2.2.
  • Add the two new conversion specifiers to Motion Guide and man page.
  • Add the new option text_double to Motion Guide when releasing 3.2.2
  • Add the new option netcam_proxy to Motion Guide when releasing 3.2.2
  • Range checking of options - includes a complete redesign of how options are loaded and changed via remote control. This redesign is mainly making the code more robust and should be transparent to the user.

Known Problems

  • See the for open bugs.
  • The pwc-ioctl.h is for pwc version 9.0.1, 10.0.6 and 10.0.7a. If you still use the pwc 8 series then you need to use the headerfile pwc-ioctl.h-pwc8.0 (copy the pwc-ioctl.h-pwc8.0 over pwc-ioctl.h). This is relevant for USB cameras using Philips chips.


GPG Signature

Kenneth Lavrsen's public key can be found on keyservers or on this non-wiki webpage.

Version: GnuPG v1.4.1 (GNU/Linux)


Bug Reports

-- KennethLavrsen - 05 Aug 2005
Topic revision: r1 - 05 Aug 2005, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.