Motion - Support Question 2005x 08x 08x 033734

av_freep not defined?

Question

During compilation of 3.2.1 I kept getting a compilation error: ffmpeg.c line 426 __av_freep not defined...

There were about ten of these errors on different line numbers.

I found 3.2.2.snap_2 and compiled that...although the earlier complaints about "signedness" dissappeared the same ffmpeg.c line 426 __av_freep not defined appeared.

I went into ffmpeg.c and changed the suspected problems av_freep to av_free. It compiled just fine, but when it detects motion the program crashes. It will run the mini_server and show the image with timestamp changing (as long as it doesn't exceed the threshold).

Obviously, av_freep is not this issue.

What can I do to fix this?

Environment

Motion version: 3.2.1
ffmpeg version: 0.4.9
Libraries: ffmpeg, mysql
Server OS: Fedora Core 4

-- JamesScott - 08 Aug 2005

Answer

You probably installed a very new ffmpeg and the ffmpeg team changes API like the wind blows with no respect to the projects that uses the libs.

The mod you have made is probably not good and will make Motion crash when motion is detected and ffmpeg comes to use.

Download the MotionRelease3x2x2snap10 and apply this patch FfmpegCodecPatch.

That should get you going.

You can also just find an older rpm for your FC4.

ffmpeg-0.4.9-0.lvn.0.15.20050427.4.i386.rpm and ffmpeg-devel-0.4.9-0.lvn.0.15.20050427.4.i386.rpm is a known good rpm combination for FC4. Download from the Livna repository.

Or wait for 3.2.2_snap11 due in a few days.

-- KennethLavrsen - 08 Aug 2005
Topic revision: r2 - 08 Aug 2005, KennethLavrsen
Copyright © 1999-2019 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.