svn trunk motion + git trunk ffmpeg + Ubuntu 10.04
Question
motion shipped with ubuntu 10.04 is very old. To get working video pipe functionality trying to compile from svn trunk.
Got built ffmpeg from git with shared libs.
./autogen.sh --with-ffmpeg=/usr/local
Motion will not search avformat.h from correct place (/usr/local/include/libavformat/). To get things happy ln -s /usr/local/include/libavformat/avformat.h /usr/local/include/avformat.h
But now there are a lot of errors (below). Can be this newer motion version compiled for ubuntu? Motion shipped with ubuntu will not support video pipes. Downgrading ffmpeg is not option because support for rtmp output needed. Trying to get webcam picture (from network) with motion and send output to video pipe from where ffmpeg will pick it up and send to rtmp server.
ffmpeg.c:77: error: expected ')' before '*' token
ffmpeg.c:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mpeg1_file_protocol'
ffmpeg.c: In function 'ffmpeg_init':
ffmpeg.c:136: error: 'mpeg1_file_protocol' undeclared (first use in this function)
ffmpeg.c:136: error: (Each undeclared identifier is reported only once
ffmpeg.c:136: error: for each function it appears in.)
ffmpeg.c:136: error: 'file_protocol' undeclared (first use in this function)
ffmpeg.c: In function 'get_oformat':
ffmpeg.c:168: warning: assignment makes pointer from integer without a cast
ffmpeg.c:180: warning: assignment makes pointer from integer without a cast
ffmpeg.c:183: warning: assignment makes pointer from integer without a cast
ffmpeg.c: In function 'ffmpeg_open':
ffmpeg.c:250: warning: 'av_new_stream' is deprecated (declared at /usr/local/include/avformat.h:2036)
ffmpeg.c:265: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
ffmpeg.c:336: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3426)
ffmpeg.c:369: error: 'URL_WRONLY' undeclared (first use in this function)
ffmpeg.c: In function 'ffmpeg_cleanups':
ffmpeg.c:421: warning: comparison between signed and unsigned integer expressions
ffmpeg.c: In function 'ffmpeg_close':
ffmpeg.c:453: warning: comparison between signed and unsigned integer expressions
ffmpeg.c: In function 'ffmpeg_put_frame':
ffmpeg.c:511: warning: passing argument 2 of 'av_write_frame' makes pointer from integer without a cast
/usr/local/include/avformat.h:2104: note: expected 'struct AVPacket *' but argument is of type 'int'
ffmpeg.c:511: error: too many arguments to function 'av_write_frame'
ffmpeg.c:515: warning: 'avcodec_encode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4344)
ffmpeg.c:533: warning: passing argument 2 of 'av_write_frame' makes pointer from integer without a cast
/usr/local/include/avformat.h:2104: note: expected 'struct AVPacket *' but argument is of type 'int'
ffmpeg.c:533: error: too many arguments to function 'av_write_frame'
ffmpeg.c: In function 'ffmpeg_prepare_frame':
ffmpeg.c:558: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3426)
ffmpeg.c: In function 'ffmpeg_deinterlace':
ffmpeg.c:598: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3426)
ffmpeg.c:612: warning: 'avpicture_deinterlace' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4589)
make[2]: *** [ffmpeg.o] Error 1
Environment
Motion version: |
svn trunk |
ffmpeg version: |
git trunk |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Ubuntu 10.04 server |
--
KarelH - 17 Mar 2014
Answer
SVN now is synced with GIT where this issue should be fixed.
--
AngelCarpintero - 18 Mar 2014