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.