Motion - Bug Report 2005x 01x 31x 211756

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
Topic revision: r2 - 10 Mar 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.