LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Does the latest version of ffmpeg not work with ffmpeg-php? (http://www.linuxquestions.org/questions/linux-software-2/does-the-latest-version-of-ffmpeg-not-work-with-ffmpeg-php-660447/)

whitey4900 08-04-2008 06:16 PM

Does the latest version of ffmpeg not work with ffmpeg-php?
 
Hey Guys,

Looking for a little help, I've been trying to install ffmpeg-php all day. I've compiled both ffmpeg and ffmpeg-php from source using the directions listed in ffmpeg-php

Code:

BUILDING FFMPEG
---------------

cd /path/to/ffmpeg
./configure --enable-shared --prefix=/usr
make clean && make
[become root]
make install


BUILDING FFMPEG-PHP AS A SHARED EXTENSION
-----------------------------------------

1. Build php if not already built or installed by your distro (See the file INSTALL in your php source directory)

2. Unpack the archive

        tar -xjf ffmpeg-php.X.x.x.tbz2 -C /path/to/php_sources/ext/

3. cd into the ffmpeg extension directory

        cd /path/to/php_sources/ext/ffmpeg-php.X.X.X/

4. Run phpize (included with your php install) to build configuration files

        phpize

5. Configure and build

        ./configure && make

6. Install the shared extension

        make install (as root)

If everything went as planned, ffmpeg-php is now installed as a shared library.
You must explicitly load it in your scripts using dl(ffmpeg.so) or if you want
it available to all scripts by default add extension=ffmpeg.so to your php.ini
file which will tell php to load it when starting up.

I keep getting the same error, having to do with ffmpeg, when I am compiling ffmpeg-php:

./ffmpeg-php/ffmpeg-php-svn/ffmpeg-php/ffmpeg_movie.c: In function `PHP_METHOD':
./ffmpeg-php/ffmpeg-php-svn/ffmpeg-php/ffmpeg_movie.c:1457: error: `this_ptr' undeclared (first use in this function)
./ffmpeg-php/ffmpeg-php-svn/ffmpeg-php/ffmpeg_movie.c:1457: error: `return_value' undeclared (first use in this function)
./ffmpeg-php/ffmpeg-php-svn/ffmpeg-php/ffmpeg_movie.c:1457: warning: `return' with no value, in function returning non-void
./ffmpeg-php/ffmpeg-php-svn/ffmpeg-php/ffmpeg_movie.c:1457: warning: `return' with no value, in function returning non-void
./ffmpeg-php/ffmpeg-php-svn/ffmpeg-php/ffmpeg_movie.c:1461: warning: `return' with no value, in function returning non-void
make: *** [ffmpeg_movie.lo] Error 1

Seems like there is an imcompatibility with ffmpeg-php and the latest version of ffmpeg. Is there a work around, do you know of a working combination that will get this job done?

Thanks for any help.


All times are GMT -5. The time now is 04:44 AM.