Motion - Support Question 2015x 04x 22x 121417

Timelapse video broken again by ffmpeg upgrade (to 2.2.14)

Question

Motion was running fine for quite a long time built against ffmpeg-1.2.6 and with these patches: https://github.com/mapmot/moverlay/tree/master/media-video/motion

Now the upgrade of ffmpeg (to 2.2.14) breaks the timelapse video feature. More precisely, the call to avformat_write_header() segfaults. Even more specifically, the code included below (from the end of ffmpeg_open() from ffmpeg.c) causes the segmentation violation. I know nothing about the ffmpeg API so I am unable to be more specific, but I would be happy to try things out and/or provide more information upon request.

Advice and/or patches are all appreciated.

    /* write the stream header, if any */
    if(avformat_write_header(ffmpeg->oc, NULL) < 0) {
      motion_log(LOG_ERR, 1, "Error while writing header for %s", filename);
      ffmpeg_cleanups(ffmpeg);
      return NULL;
    }

Environment

Motion version: 3.2.12 (patched)
ffmpeg version: 2.2.14
Libraries: ffmpeg
Server OS: Gentoo amd64/13.0, kernel 3.18.11 w/ Gentoo patches
-- StefanBruda - 22 Apr 2015

Answer

Topic revision: r1 - 22 Apr 2015, StefanBruda
Copyright © 1999-2017 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.