Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

youflik

macrumors newbie
Original poster
Feb 26, 2014
1
0
I downloaded the .tbz2 as well trunk folder of ffmpeg-php-0.6.0.
I got ffmpeg-2.1.3 installed successfully.

but i am unable to install ffmpeg-php.
When ./configure it created config file, but when using make- it is giving these errors in ffmpeg_movie.c

Youfliks-Mac-Pro:ffmpeg-php-0.5.3.1 root# make


/bin/sh /usr/local/Cellar/ffmpeg-php-0.5.3.1/libtool --mode=compile cc -I. -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/include -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/main -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -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 /usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg-php.c -o ffmpeg-php.lo
mkdir .libs
cc -I. -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/include -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/main -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -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 /usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg-php.c -fno-common -DPIC -o .libs/ffmpeg-php.o
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg-php.c:91:5: warning: implicit
declaration of function 'avcodec_init' is invalid in C99
[-Wimplicit-function-declaration]
avcodec_init();
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg-php.c:111:7: warning: implicit
declaration of function 'avcodec_build' is invalid in C99
[-Wimplicit-function-declaration]
avcodec_build(), CONST_CS | CONST_PERSISTENT);
^
/usr/include/php/Zend/zend_constants.h:41:103: note: expanded from macro
'REGISTER_LONG_CONSTANT'
...lval, flags) zend_register_long_constant((name), sizeof(name), (lval), ...
^
2 warnings generated.
/bin/sh /usr/local/Cellar/ffmpeg-php-0.5.3.1/libtool --mode=compile cc -I. -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/include -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/main -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -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 /usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c -o ffmpeg_movie.lo
cc -I. -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/include -I/usr/local/Cellar/ffmpeg-php-0.5.3.1/main -I/usr/local/Cellar/ffmpeg-php-0.5.3.1 -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 /usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c -fno-common -DPIC -o .libs/ffmpeg_movie.o
In file included from /usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:40:
./ffmpeg_movie.h:75:31: error: use of undeclared identifier 'MAX_STREAMS'
AVCodecContext *codec_ctx[MAX_STREAMS];
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:138:44: error: use of
undeclared identifier 'CODEC_TYPE_VIDEO'
int i = _php_get_stream_index(fmt_ctx, CODEC_TYPE_VIDEO);
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:151:44: error: use of
undeclared identifier 'CODEC_TYPE_AUDIO'
int i = _php_get_stream_index(fmt_ctx, CODEC_TYPE_AUDIO);
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:189:21: error: use of
undeclared identifier 'MAX_STREAMS'
for (i = 0; i < MAX_STREAMS; i++) {
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:239:9: warning:
'av_close_input_file' is deprecated [-Wdeprecated-declarations]
av_close_input_file(ffmovie_ctx->fmt_ctx);
^
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file'
declared here
void av_close_input_file(AVFormatContext *s);
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:244:9: warning: implicit
declaration of function 'av_open_input_file' is invalid in C99
[-Wimplicit-function-declaration]
if (av_open_input_file(&(ffmovie_ctx->fmt_ctx), filename, NULL, 0, NULL)) {
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:250:9: warning:
'av_find_stream_info' is deprecated [-Wdeprecated-declarations]
if (av_find_stream_info(ffmovie_ctx->fmt_ctx)) {
^
/usr/local/include/libavformat/avformat.h:1616:5: note: 'av_find_stream_info'
declared here
int av_find_stream_info(AVFormatContext *ic);
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:300:9: error: use of
undeclared identifier 'list_entry'
list_entry *le;
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:300:21: error: use of
undeclared identifier 'le'
list_entry *le;
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:313:48: error: use of
undeclared identifier 'le'
hashkey_length+1, (void**)&le)) {
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:316:26: error: use of
undeclared identifier 'le'
if (Z_TYPE_P(le) != le_ffmpeg_pmovie) {
^
/usr/include/php/Zend/zend_operators.h:461:34: note: expanded from macro
'Z_TYPE_P'
#define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)
^
/usr/include/php/Zend/zend_operators.h:460:24: note: expanded from macro
'Z_TYPE'
#define Z_TYPE(zval) (zval).type
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:320:46: error: use of
undeclared identifier 'le'
ffmovie_ctx = (ff_movie_context*)le->ptr;
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:335:13: error: use of
undeclared identifier 'list_entry'
list_entry new_le;
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:345:20: error: use of
undeclared identifier 'new_le'
Z_TYPE(new_le) = le_ffmpeg_pmovie;
^
/usr/include/php/Zend/zend_operators.h:460:24: note: expanded from macro
'Z_TYPE'
#define Z_TYPE(zval) (zval).type
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:346:13: error: use of
undeclared identifier 'new_le'
new_le.ptr = ffmovie_ctx;
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:349:52: error: use of
undeclared identifier 'new_le'
hashkey_length+1, (void *)&new_le, sizeof(list_entry),
^
/usr/include/php/Zend/zend_hash.h:109:51: note: expanded from macro
'zend_hash_update'
_zend_hash_add_or_update(ht, arKey, nKeyLength, pData, n...
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:398:25: error: use of
undeclared identifier 'MAX_STREAMS'
for (i = 0; i < MAX_STREAMS; i++) {
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:406:5: warning:
'av_close_input_file' is deprecated [-Wdeprecated-declarations]
av_close_input_file(ffmovie_ctx->fmt_ctx);
^
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file'
declared here
void av_close_input_file(AVFormatContext *s);
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:422:25: error: use of
undeclared identifier 'MAX_STREAMS'
for (i = 0; i < MAX_STREAMS; i++) {
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:430:5: warning:
'av_close_input_file' is deprecated [-Wdeprecated-declarations]
av_close_input_file(ffmovie_ctx->fmt_ctx);
^
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file'
declared here
void av_close_input_file(AVFormatContext *s);
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:473:28: error: use of
undeclared identifier 'CODEC_TYPE_VIDEO'
if (stream_type == CODEC_TYPE_VIDEO) {
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:502:13: warning: implicit
declaration of function 'avcodec_open' is invalid in C99
[-Wimplicit-function-declaration]
if (avcodec_open(ffmovie_ctx->codec_ctx[stream_index], decoder) < 0) {
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:520:42: error: no member
named 'comment' in 'struct AVFormatContext'
RETURN_STRINGL(ffmovie_ctx->fmt_ctx->comment,
~~~~~~~~~~~~~~~~~~~~ ^
/usr/include/php/Zend/zend_API.h:631:58: note: expanded from macro
'RETURN_STRINGL'
#define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate...
^
/usr/include/php/Zend/zend_API.h:619:69: note: expanded from macro
'RETVAL_STRINGL'
...l, duplicate) ZVAL_STRINGL(return_value, s, l, duplicate)
^
/usr/include/php/Zend/zend_API.h:579:20: note: expanded from macro
'ZVAL_STRINGL'
const char *__s=(s); int __l=l; \
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:521:42: error: no member
named 'comment' in 'struct AVFormatContext'
strlen(ffmovie_ctx->fmt_ctx->comment), 1);
~~~~~~~~~~~~~~~~~~~~ ^
/usr/include/php/Zend/zend_API.h:631:61: note: expanded from macro
'RETURN_STRINGL'
#define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate...
^
/usr/include/php/Zend/zend_API.h:619:72: note: expanded from macro
'RETVAL_STRINGL'
...l, duplicate) ZVAL_STRINGL(return_value, s, l, duplicate)
^
/usr/include/php/Zend/zend_API.h:579:32: note: expanded from macro
'ZVAL_STRINGL'
const char *__s=(s); int __l=l; \
^
/usr/local/Cellar/ffmpeg-php-0.5.3.1/ffmpeg_movie.c:535:42: error: no member
named 'title' in 'struct AVFormatContext'
RETURN_STRINGL(ffmovie_ctx->fmt_ctx->title,
~~~~~~~~~~~~~~~~~~~~ ^
/usr/include/php/Zend/zend_API.h:631:58: note: expanded from macro
'RETURN_STRINGL'
#define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate...
^
/usr/include/php/Zend/zend_API.h:619:69: note: expanded from macro
'RETVAL_STRINGL'
...l, duplicate) ZVAL_STRINGL(return_value, s, l, duplicate)
^
/usr/include/php/Zend/zend_API.h:579:20: note: expanded from macro
'ZVAL_STRINGL'
const char *__s=(s); int __l=l; \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.