BUG: Timelapse feature failes with ffmpeg_timelapse = 1
Someone kindly reported that Motion 3.1.18 fails to save timelapse mpegs when setting ffmpeg_timelapse = 1.
Test case
Set ffmpeg_timelapse = 1 and no mpeg is saved.
Set it to 2 and it works.
Environment
Motion version: |
3.1.18 |
ffmpeg version: |
Any |
Shared libraries: |
N/A |
Server OS: |
N/A |
--
KennethLavrsen - 31 Jan 2005
Follow up
The reporter also provided a fix. See below.
Fix record
motion.c line 890.
Change
if (cnt->shots == 0 &&
time_current_frame % cnt->conf.timelapse < time_last_frame % cnt->conf.timelapse)
event(EVENT_TIMELAPSE, cnt, newimg, NULL, cnt->currenttime);
to
if (cnt->shots == 0 &&
time_current_frame % cnt->conf.timelapse <= time_last_frame % cnt->conf.timelapse)
event(EVENT_TIMELAPSE, cnt, newimg, NULL, cnt->currenttime);
Fix released in 3.1.19
--
KennethLavrsen - 10 Mar 2005