[FFmpeg-user] ffmpeg-php won't compile with ffmpeg 0.8.7

Shalom Levytam research at the10thfloor.com
Tue Dec 6 08:37:25 CET 2011


Hi everyone, 

I'm trying to install ffmpeg-php with ffmpeg 0.8.7; however, I'm getting numerous compile errors.  I had no problems installing ffmpeg-php with ffmpeg 0.6.x but for some reason its just not working with the latest build off ffmpeg.

Could someone please be of assistance?

Thanks,

slevytam


----

[root at localhost ffmpeg-php-0.6.0]# make
/bin/sh /tmp/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/tmp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/tmp/ffmpeg-php-0.6.0/include -I/tmp/ffmpeg-php-0.6.0/main -I/tmp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /tmp/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo 
mkdir .libs
 cc -I. -I/tmp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/tmp/ffmpeg-php-0.6.0/include -I/tmp/ffmpeg-php-0.6.0/main -I/tmp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /tmp/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o
/tmp/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg':
/tmp/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: 'avcodec_init' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3836)
/bin/sh /tmp/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/tmp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/tmp/ffmpeg-php-0.6.0/include -I/tmp/ffmpeg-php-0.6.0/main -I/tmp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c -o ffmpeg_movie.lo 
 cc -I. -I/tmp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/tmp/ffmpeg-php-0.6.0/include -I/tmp/ffmpeg-php-0.6.0/main -I/tmp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c  -fPIC -DPIC -o .libs/ffmpeg_movie.o
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:73: error: 'MAX_STREAMS' undeclared here (not in a function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_video_stream':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: (Each undeclared identifier is reported only once
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:152: error: for each function it appears in.)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_audio_stream':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:165: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_open_movie_file':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:258: warning: 'av_open_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1367)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:263: warning: 'av_find_stream_info' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1446)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_decoder_context':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:484: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:513: warning: 'avcodec_open' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4058)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getComment':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: 'AVFormatContext' has no member named 'comment'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:531: error: 'AVFormatContext' has no member named 'comment'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getTitle':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: 'AVFormatContext' has no member named 'title'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:546: error: 'AVFormatContext' has no member named 'title'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAuthor':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: 'AVFormatContext' has no member named 'author'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:561: error: 'AVFormatContext' has no member named 'author'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getCopyright':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: 'AVFormatContext' has no member named 'copyright'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:575: error: 'AVFormatContext' has no member named 'copyright'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAlbum':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: 'AVFormatContext' has no member named 'album'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:590: error: 'AVFormatContext' has no member named 'album'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getGenre':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: 'AVFormatContext' has no member named 'genre'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:604: error: 'AVFormatContext' has no member named 'genre'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getTrackNumber':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:619: error: 'AVFormatContext' has no member named 'track'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getYear':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:632: error: 'AVFormatContext' has no member named 'year'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_framerate':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:678: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_framenumber':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:810: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_pixelformat':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:850: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getPixelFormat':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:868: warning: 'avcodec_get_pix_fmt_name' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3679)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_codec_name':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:963: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoCodec':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:989: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioCodec':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1009: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoStreamId':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1029: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioStreamId':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1051: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioChannels':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1089: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioSampleRate':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1125: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioBitRate':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1161: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoBitRate':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1181: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_read_av_frame':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1204: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1215: warning: implicit declaration of function 'avcodec_decode_video'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1219: error: 'PKT_FLAG_KEY' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_av_frame':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1246: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1282: error: 'AVCodecContext' has no member named 'hurry_up'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1284: error: 'AVCodecContext' has no member named 'hurry_up'
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function '_php_get_sample_aspect_ratio':
/tmp/ffmpeg-php-0.6.0/ffmpeg_movie.c:1443: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
make: *** [ffmpeg_movie.lo] Error 1


More information about the ffmpeg-user mailing list