Motion - Bug Report 2011x 10x 05x 071936
You are here: Foswiki>Motion Web>BugReports>BugReport2011x10x05x071936 (22 Oct 2011, AngelCarpintero)Edit Attach

BUG: Crash when write mpeg4, swf and etc

when use ffmpeg from svn (i have not old, compatible version) it's core dump when try start write, but create destination file with zero length. because in ffmpeg have some changes in API.

i'm have not too much time for fix and programming, but found first error:
file ffmpg.c:
function struct ffmpeg *ffmpeg_open, line 437: 
old:
....
    /* Allocation the output media context. */
    ffmpeg->oc = av_mallocz(sizeof(AVFormatContext));
    if (!ffmpeg->oc) {
....
new:
...
    /* Allocation the output media context. */
    ffmpeg->oc = avformat_alloc_context();
    if (!ffmpeg->oc) {
...

and now it function (ffmpeg_open) work ok(i hope) and successfull create file (in my case SWF) with no zero length.

other error try find later.

Environment

Motion version: 3.2.12
ffmpeg version: svn26402
Shared libraries: ffmpeg, mysql, postgresql
Server OS: kernel 3.0.3
-- AlexeyPu - 05 Oct 2011

Follow up

Fixed in svn trunk rev 539.

Cheers,

-- AngelCarpintero - 22 Oct 2011

Fix record

Topic revision: r2 - 22 Oct 2011, AngelCarpintero
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.