Help - Search - Members - Calendar
Full Version: ffmpeg-php errors on make: *** [ffmpeg_frame.lo] Error 1
The Planet Forums > System Administration > HOWTOs
eyexer0
ffmpeg-php errors on make: *** [ffmpeg_frame.lo] Error 1


I have fallowed a few different guides and when I try and make ffmpeg-php this is what I get:


CODE

cd /usr/local/src/ffmpeg-php-0.5.3.1/
phpize
./configure
make
make install


Here is the make errors:

CODE

user@host /usr/local/src/ffmpeg-php-0.5.3.1 # make

/bin/sh /usr/local/src/ffmpeg-php-0.5.3.1/libtool --mode=compile gcc -I. -I/usr/local/src/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.5.3.1/include -I/usr/local/src/ffmpeg-php-0.5.3.1/main -I/usr/local/src/ffmpeg-php-0.5.3.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c -o ffmpeg_frame.lo
gcc -I. -I/usr/local/src/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.5.3.1/include -I/usr/local/src/ffmpeg-php-0.5.3.1/main -I/usr/local/src/ffmpeg-php-0.5.3.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c -fPIC -DPIC -o .libs/ffmpeg_frame.o
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_convert_frame':
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:202: warning: implicit declaration of function 'img_convert'
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_crop_frame':
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:260: warning: implicit declaration of function 'img_copy'
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_resample_frame':
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: 'ImgReSampleContext' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: (Each undeclared identifier is reported only once
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: for each function it appears in.)
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: 'img_resample_ctx' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:308: warning: implicit declaration of function 'img_resample_full_init'
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:321: warning: implicit declaration of function 'img_resample'
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:326: warning: implicit declaration of function 'img_resample_close'
make: *** [ffmpeg_frame.lo] Error 1


Guides Fallowed:


http://forums.theplanet.com/index.php?showtopic=64541

http://linux.justinhartman.com/FFmpeg,_FFm...MR_Installation

same results no matter how I do it

Server Settings:

CentOS 5.x - 32 bit
Apache 2.0
PHP5 / MySql5
GD
tff (free-type)
Zend Optimizer


This all works fine on my CentOS 4.x - 32bit server with the same apache/php setup
dmitry dovidenko
I had the same problem today when I was helping a client of mine that I consult for. It looks like the problem is with the current SVN source of ffmpeg (not ffmpeg-php) that is causing those build errors on ffmpeg-php. I went on one of the older boxes and grabbed the sources downloaded last month and they compiled fine. Here is a copy of the sources which includes both ffmpeg and ffmpeg-php, though I think ffmpeg is the problem since ffmpeg-php I included is the same as the current release copy: http://rootit.org/ffmpeg-ffmpeg-php.tar.gz

*** If you have ffmpeg installed from svn or some other source, go into that source's directory and run "make uninstall" to remove the existing ffmpeg installation. Then rebuild ffmpeg from the copy I provided. ***

My site also has some generic install instructions, just skip the parts that have you check out ffmpeg/ffmpeg-php from svn/http: http://rootit.org/2008/06/installing-ffmpe...ther-dependen...

If you still need help getting it running let me know. I'll try to check back in later.
Kevin Hazard
Jason from Strobe Net sent me an email with the fix he found for this problem. He said, "The trouble with mine was that I had to rename ffmpeg_frame.loT to ffmpeg_frame.lo, it must have been a mis spell in the ffmpeg-php distro."
jsilvestre
Hello,

when i'm trying convert one video i got follow error:

- erro 127



- ERROR: undefined method `timestamp' for nil:NilClass

ERROR: /usr/local/lib/site_ruby/1.8/flv/stream.rb:285:in `lasttimestamp'

ERROR: /usr/local/lib/site_ruby/1.8/flv/stream.rb:274:in `duration'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:181:in
`add_meta_data_tag'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:137:in `update'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:47:in `send'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:47:in `execute!'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:46:in `each'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:46:in `execute!'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:206:in `process_files'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2/base.rb:44:in `execute!'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2.rb:168:in `execute!'

ERROR: /usr/local/lib/site_ruby/1.8/flvtool2.rb:228

ERROR: /usr/bin/flvtool2:2:in `require'

ERROR: /usr/bin/flvtool2:2

How can i solve this issue?

Regards,
Tony W
the http://rootit.org/ffmpeg-ffmpeg-php.tar.gz program seems to be 64-bit??
ChuFuong
huh?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.