ffmpeg-php

ffmpeg-php

Posted by: digitalsadhu
Posted on: 2008-12-04 02:51:00

I'm struggling to get ffmpeg-php working
I've been trying to configure it with --prefix=$HOME
I have set my environment variables PATH to $HOME/bin:$PATH and LD_LIBRARY_PATH to $HOME/lib
whenever I try to configure it complains that it can't find ffmpeg headers.

I found a post on another forum with exactly the problem I've run into but it's solution hasn't worked for me the following is from said forum.........

////------------------------------------------------------------------------

While installing FFMPEG-PHP sometime it gives following error:

checking for ffmpeg support... yes, shared
checking for ffmpeg headers... configure: error: ffmpeg headers not
found. Make sure you've built ffmpeg as shared libs using the
--enable-shared option
To fix this problem just copy and paste the following commands on the
shell of your server and re-run the "./configure" for FFMPEG-PHP:

mkdir /usr/local/include/ffmpeg
cp /usr/local/include/libavcodec/* /usr/local/include/ffmpeg
cp /usr/local/include/libavdevice/* /usr/local/include/ffmpeg
cp /usr/local/include/libavformat/* /usr/local/include/ffmpeg
cp /usr/local/include/libavutil/* /usr/local/include/ffmpeg
cp /usr/local/include/libswscale/* /usr/local/include/ffmpeg

////-------------------------------------------------------------------------

I copied the headers files mentioned in the advice above from $HOME/include/.. to $HOME/include/ffmpeg and reran configure but to know avail.
Anyone else have this problem?

Re: ffmpeg-php

Posted by: sXi
Posted on: 2008-12-04 03:40:00

In reply to:

I've been trying to configure it with --prefix=$HOME
I have set my environment variables PATH to $HOME/bin:$PATH and LD_LIBRARY_PATH to $HOME/lib


Try this in shell:

cd [ffmpeg-php_dir]
~/bin/phpize
./configure --enable-shared --with-ffmpeg=$HOME --with-php-config=$HOME/bin/php-config
make
make install




How To Install PHP.INI / ionCube on DreamHost

Re: ffmpeg-php

Posted by: digitalsadhu
Posted on: 2008-12-04 04:48:00

thanks a lot, I got through the configure with the following command:

./configure --enable-shared --with-ffmpeg=$HOME --with-php-config=/usr/local/php5/bin/php-config

however i'm now stuck on the make, error as follows...

/home/nutvca/ffmpeg-php-0.5.0/ffmpeg-php.c: At top level:
/home/nutvca/include/ffmpeg/avformat.h:188: error: storage size of `pix_fmt' isn't known
make: *** [ffmpeg-php.lo] Error 1

thanks




Re: ffmpeg-php

Posted by: sXi
Posted on: 2008-12-04 05:55:00

In reply to:

--with-php-config=/usr/local/php5/bin/php-config


Are you attempting to install ffmpeg without customising your PHP environment?




How To Install PHP.INI / ionCube on DreamHost

Re: ffmpeg-php

Posted by: digitalsadhu
Posted on: 2008-12-04 05:57:00

yea.. I take it thats where I'm going wrong?

Re: ffmpeg-php

Posted by: sXi
Posted on: 2008-12-04 06:13:00

I've installed it for a few people on DreamHost and compiled PHP immediately before compiling ffmpeg-php, then call it via the PHP.INI in the following manner:

[ffmpeg]
extension_dir=[your extension directory]
extension=ffmpeg.so




How To Install PHP.INI / ionCube on DreamHost

Tags: ld libraryenvironment variableslibrary pathavailhasnlibshell