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
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/camparse%t.pl
on_movie_end /usr/local/motion-extras/mpegparse%t.pl
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