Motion - Bug Report 2013x 07x 09x 180501

BUG: Recording timelapse video no longer working

I last build motion Sat Aug 18 22:11:02 2012 and it's been working fine ever since. Now a change in the version of ffmpeg libraries required a rebuilt after which timelapse videos can no longer be recorded. The error (EINPROGRESS) actually seems to be generated by ffmpeg, but other than this I have no idea how to start debugging this.

The last build was against ffmpeg 0.10.3. The issue is manifest with both ffmpeg 1.0.7 (current stable in Gentoo) as well as 0.10.7 (oldest available). Note that recording video on motion events (MPEG 4) works as it did in the past, but I am no longer able to record timelapse movies (MPEG 1).

Help is much appreciated.
I believe that the relevant portion of the log is the following (but please let me know if more is needed):

[2] ffmpeg_open FPS 24
[2] ffmpeg_avcodec_log: intra_quant_bias = 96 inter_quant_bias = 0
 - flag 48
[2] Error opening file /home/motion/side/daily/20130708.mpg: Operation now in progress
[1] ffmpeg_open FPS 24
[2] ffopen_open error creating (timelapse) file [/home/motion/side/daily/20130708.mpg]: Operation now in progress
[1] ffmpeg_avcodec_log: intra_quant_bias = 96 inter_quant_bias = 0
 - flag 48
[1] Error opening file /home/motion/front/daily/20130708.mpg: Operation now in progress
[1] ffopen_open error creating (timelapse) file [/home/motion/front/daily/20130708.mpg]: Operation now in progress

Most config options are at their default values.  What I believe to be the relevant options are:

ffmpeg_cap_new on
ffmpeg_timelapse 1
ffmpeg_timelapse_mode daily
ffmpeg_video_codec mpeg4
width 640
height 480

Again please let me know if more is needed.

Environment

Motion version: 3.2.12
ffmpeg version: 1.0.7
Shared libraries: ffmpeg
Server OS: Gentoo amd64/13.0, kernel 3.8.13-gentoo
-- StefanBruda - 09 Jul 2013

Follow up

There does not seem to be much activity here but in case somebody stumbles on it there is a solution for the whole thing. Please see http://forums.gentoo.org/viewtopic.php?p=7416612#7416472. Note in particular that timelapse movies are no longer appendable (with a possible fix later in the thread). Also note that that all the patches from https://github.com/mapmot/moverlay/tree/master/media-video/motion/files are needed to make motion work with new versions of ffmpeg.

A patch to resolve this has been created and should be incorporated into an upcoming version. The bug report is correct in that the issue is caused by a change in FFMpeg. Note that I did did not see any temporary workaround on the gentoo post and if the code from the SVN trunk is used, the patches should not be necessary.

Note that as of October 2015, this bug happens on Ubuntu 14.04.3 LTS with their binary packages.

Any version less than 3.4 will have this issue. Test packages of 3.4 are in

http://www.lavrsen.dk/foswiki/bin/view/Motion/PatchworkForNewRelease

Fix record

Topic revision: r5 - 22 Nov 2015, MrDave
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.