It's not installed. If it was you should have:
Quote:
php -i|grep ffmpeg
ffmpeg
ffmpeg-php version => 0.6.0-svn
ffmpeg-php built on => Aug 5 2009 00:07:49
ffmpeg-php gd support => enabled
ffmpeg libavcodec version => Lavc52.32.0
ffmpeg libavformat version => Lavf52.37.0
ffmpeg swscaler version => SwS0.7.1
ffmpeg.allow_persistent => 0 => 0
ffmpeg.show_warnings => 0 => 0
|
This is because of the "undefined symbol" error.
I have just installed ffmpeg-php from source for testing:
1st: I had to get and compile the latest ffmpeg source from svn as per the ubuntu
link, along with some missing dependencies (faac, faad2).
2nd: I downloaded ffmpeg-php-0.6.0, but I got a compile error. After searching I found that due to an error in ffmpeg_frame.c the following needs to be run before compiling:
Code:
sed -i 's/PIX_FMT_RGBA32/PIX_FMT_RGB32/g' ffmpeg_frame.c
You have to run the above from inside the ffmpeg-php source tree.
3rd. Add manually "extension=ffmpeg.so" and define "extension_dir = "/usr/local/lib/php/extensions/no-debug-zts-20090626" in php.ini (of course the extensions dir may vary in your case)
After restarting apache, I've tested your code and it worked.