Motion - Thread Conversion Specifier Patch

Implements the %t as conv spec for thread number

Description of Patch

See %t in ExtendReplaceConversionSpecifiersDiscussion

added by KennethLavrsen for Angel for tracking purposes only.

Installation of Patch

Download the patch file. If it is packed as a gz or tar.gz unpack it first. Then copy it to the motion source directory and issue the command (assuming the patch file is called filename_of_patch_file.diff)

patch < filename_of_patch_file.diff

Then re-build Motion and test the patch.

Change History of Patch

  • 1.0 Initial revision

Discussion and Comments

This patch is brilliant Angel.

I updated the conf.c so that %t is included in the help text then saving config files. I also updated motion-dist.conf.

This little feature is actually brilliant.

Now you can specify this in motion.conf

text_left CAMERA %t
target_dir /usr/local/apache2/htdocs
snapshot_filename cam%t/%v-%Y%m%d%H%M%S-snapshot
jpeg_filename cam%t/%v-%Y%m%d%H%M%S-%q
ffmpeg_filename cam%t/%v-%Y%m%d%H%M%S
timelapse_filename cam%t/%Y%m%d%H-timelapse
on_picture_save /usr/local/motion-extras/
on_movie_end /usr/local/motion-extras/

and the thread files now only need to contain.
videodevice /dev/video10
webcam_port 8084
and a few unique settings related to Motion detection.

Brilliant. Simplifies unique features.

The feature is available in 20051017-051019 and in next snap4.

-- KennethLavrsen - 18 Oct 2005
Topic revision: r4 - 20 Dec 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.