Motion - Bug Report 2004x 12x 14x 082854

BUG: ffmpeg_put_image_mpeg4 fails during compile

When compiling with ffmpeg support on a basic fedora core 3 system I end up with the following error:

gcc -I/usr/include/ffmpeg -g -O2  -DHAVE_CURL -DHAVE_FFMPEG -Wall -DVERSION=\"3.1.17\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o ffmpeg.o ffmpeg.c
ffmpeg.c: In function `ffmpeg_put_image_mpeg4':
ffmpeg.c:481: warning: passing arg 2 of `av_write_frame' makes pointer from integer without a cast
ffmpeg.c:481: error: too many arguments to function `av_write_frame'
ffmpeg.c:489: warning: passing arg 2 of `av_write_frame' makes pointer from integer without a cast
ffmpeg.c:489: error: too many arguments to function `av_write_frame'
ffmpeg.c: In function `ffmpeg_put_other_image_mpeg4':
ffmpeg.c:562: warning: passing arg 2 of `av_write_frame' makes pointer from integer without a cast
ffmpeg.c:562: error: too many arguments to function `av_write_frame'
ffmpeg.c:570: warning: passing arg 2 of `av_write_frame' makes pointer from integer without a cast
ffmpeg.c:570: error: too many arguments to function `av_write_frame'
make: *** [ffmpeg.o] Error 1

Test case

************************
*   Configure status   *
************************


pthread Support:     Yes
jpeg Support:        Yes
Curl Support:        Yes
V4L included:        Yes
FFmpeg Support:      Yes
xmlrpc-c Support:    No
MYSQL Support:       No
PostgreSQL Support:  No

Environment

Motion version: 3.1.17
Shared libraries: curl, xmlrpc, ffmpeg, mysql, postgresql
Server OS: Fedora Core 3, kernel 2.6.9

-- MortenHansen - 14 Dec 2004

Follow up

Do you use version 0.4.8 of ffmpeg? With Motion 3.1.17 you must use 0.4.8. You cannot use 0.4.9pre1.

You can try the latest 3.1.18 snap shot which now supports the new ffmpeg lib.

-- KennethLavrsen - 14 Dec 2004

Fix record

The problem seems to have been the issue above. Case closed.
Topic revision: r3 - 20 Dec 2004, 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.