转自:
http://blog.sina.com.cn/s/blog_691d51a40100l8ue.htmlmpeg4ip.tar.gz安装安装mpeg4ip.tar.gz需要安装SDL mpeg4ip-1.6.1.tar.gz下载地址http://dlwt.csdn.net/fd.php?i=210720578311723&s=05bcb1b814fc777ab6ae2cce mpeg4ip-1.5.0.1.tar.gz下载地址http://nchc.dl./project/mpeg4ip/mpeg4ip/1.5.0.1/mpeg4ip-1.5.0.1.tar.gz SDL安装方法yum install SDL yum install SDL-devel mpeg4ip安装方法 [shell]#tar -zxf mpeg4ip-1.6.1.tar.gz [shell]#cd mpeg4ip-1.6.1 [shell]#./bootstrap --prefix=/usr --enable-ffmpeg=/usr --disable-player --disable-server [shell]#make [shell]#make install 安装报错解决 make[5]: *** [ffmpeg.lo] Error 1安装参数为[shell]#./bootstrap --prefix=/usr --enable-ffmpeg=/usr ffmpeg.h:28:28: error: ffmpeg/avcodec.h: No such file or directory ffmpeg.h:40: error: use of enum 'CodecID' without previous declaration ffmpeg.h:41: error: ISO C++ forbids declaration of 'AVCodec' with no type ffmpeg.h:41: error: expected ';' before '*' token ffmpeg.h:42: error: ISO C++ forbids declaration of 'AVCodecContext' with no type ffmpeg.h:42: error: expected ';' before '*' token ffmpeg.cpp:46: error: use of enum 'CodecID' without previous declaration ffmpeg.cpp: In function 'int ffmpeg_find_codec(const char*, const char*, int, int, format_list_t*, const uint8_t*, uint32_t)': ffmpeg.cpp:64: error: 'CODEC_ID_PCM_MULAW' was not declared in this scope ffmpeg.cpp:67: error: 'CODEC_ID_PCM_ALAW' was not declared in this scope ffmpeg.cpp:71: error: 'CODEC_ID_PCM_ALAW' was not declared in this scope ffmpeg.cpp:74: error: 'CODEC_ID_PCM_MULAW' was not declared in this scope ffmpeg.cpp:77: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp:80: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp:84: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp:88: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp:92: error: 'CODEC_ID_PCM_MULAW' was not declared in this scope ffmpeg.cpp:95: error: 'CODEC_ID_PCM_ALAW' was not declared in this scope ffmpeg.cpp:97: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp:101: error: 'CODEC_ID_PCM_ALAW' was not declared in this scope ffmpeg.cpp:104: error: 'CODEC_ID_PCM_MULAW' was not declared in this scope ffmpeg.cpp:114: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp:116: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp: In function 'codec_data_t* ffmpeg_create(const char*, const char*, int, int, format_list_t*, audio_info_t*, const uint8_t*, uint32_t, audio_vft_t*, void*)': ffmpeg.cpp:137: error: 'avcodec_init' was not declared in this scope ffmpeg.cpp:138: error: 'avcodec_register_all' was not declared in this scope ffmpeg.cpp:144: error: 'struct ffmpeg_codec_t' has no member named 'm_codec' ffmpeg.cpp:144: error: 'avcodec_find_decoder' was not declared in this scope ffmpeg.cpp:145: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:145: error: 'avcodec_alloc_context' was not declared in this scope ffmpeg.cpp:148: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:149: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:160: error: 'CODEC_ID_PCM_ALAW' was not declared in this scope ffmpeg.cpp:161: error: 'CODEC_ID_PCM_MULAW' was not declared in this scope ffmpeg.cpp:162: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:163: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:169: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:170: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:172: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:172: error: 'struct ffmpeg_codec_t' has no member named 'm_codec' ffmpeg.cpp:172: error: 'avcodec_open' was not declared in this scope ffmpeg.cpp:176: error: 'AVCODEC_MAX_AUDIO_FRAME_SIZE' was not declared in this scope ffmpeg.cpp: In function 'void ffmpeg_close(codec_data_t*)': ffmpeg.cpp:187: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:188: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:188: error: 'avcodec_close' was not declared in this scope ffmpeg.cpp:189: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp: In function 'int ffmpeg_decode(codec_data_t*, frame_timestamp_t*, int, int*, uint8_t*, uint32_t, void*)': ffmpeg.cpp:217: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:218: error: 'avcodec_decode_audio' was not declared in this scope ffmpeg.cpp:227: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:228: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:231: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp:232: error: 'struct ffmpeg_codec_t' has no member named 'm_c' ffmpeg.cpp: In function 'int ffmpeg_codec_check(void (*)(int, const char*, const char*, ...), const char*, const char*, int, int, format_list_t*, const uint8_t*, uint32_t, CConfigSet*)': ffmpeg.cpp:279: error: use of enum 'CodecID' without previous declaration ffmpeg.cpp:279: error: invalid type in declaration before ';' token ffmpeg.cpp:280: error: 'AVCodec' was not declared in this scope ffmpeg.cpp:280: error: 'c' was not declared in this scope ffmpeg.cpp:281: error: 'avcodec_init' was not declared in this scope ffmpeg.cpp:282: error: 'avcodec_register_all' was not declared in this scope ffmpeg.cpp:287: error: 'CODEC_ID_NONE' was not declared in this scope ffmpeg.cpp:290: error: 'avcodec_find_decoder' was not declared in this scope make[5]: *** [ffmpeg.lo] Error 1 make[5]: Leaving directory `/usr/local/movies/1/mpeg4ip-1.5.0.1/player/plugin/audio/ffmpeg' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/local/movies/1/mpeg4ip-1.5.0.1/player/plugin/audio' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/movies/1/mpeg4ip-1.5.0.1/player/plugin' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/movies/1/mpeg4ip-1.5.0.1/player' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/movies/1/mpeg4ip-1.5.0.1' make: *** [all] Error 2 解决方法使用下列参数安装 [shell]#./bootstrap --prefix=/usr --enable-ffmpeg=/usr --disable-player --disable-server make[4]: *** [audio_encoder_base.lo] Error 1安装参数为[shell]#./bootstrap --prefix=/usr --enable-ffmpeg=/usr --disable-server In file included from audio_encoder_base.cpp:37: audio_ffmpeg.h:30:21: error: avcodec.h: No such file or directory audio_ffmpeg.h:92: error: ISO C++ forbids declaration of 'AVCodec' with no type audio_ffmpeg.h:92: error: expected ';' before '*' token audio_ffmpeg.h:93: error: ISO C++ forbids declaration of 'AVCodecContext' with no type audio_ffmpeg.h:93: error: expected ';' before '*' token audio_ffmpeg.h:95: error: ISO C++ forbids declaration of 'AVFrame' with no type audio_ffmpeg.h:95: error: expected ';' before '*' token make[4]: *** [audio_encoder_base.lo] Error 1 make[4]: Leaving directory `/root/software/mpeg4ip-1.6.1/server/mp4live' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/software/mpeg4ip-1.6.1/server/mp4live' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/software/mpeg4ip-1.6.1/server' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/software/mpeg4ip-1.6.1' make: *** [all] Error 2 解决方法使用下列参数安装 [shell]#./bootstrap --prefix=/usr --enable-ffmpeg=/usr --disable-player --disable-server make[6]: *** [sys_block.lo] Error 11.4.1版本安装报错 make[6]: *** [sys_block.lo] Error 1 make[6]: Leaving directory `/root/mpeg4ip-1.5.0.1/common/video/iso-mpeg4/src' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/root/mpeg4ip-1.5.0.1/common/video/iso-mpeg4' make[4]: *** [all] Error 2 make[4]: Leaving directory `/root/mpeg4ip-1.5.0.1/common/video/iso-mpeg4' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/mpeg4ip-1.5.0.1/common/video' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/mpeg4ip-1.5.0.1/common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/mpeg4ip-1.5.0.1' make: *** [all] Error 2 解决方法使用新版本1.5.0.1或者1.6.1安装 |
|