Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-04-2008, 06:16 PM   #1
LQ Newbie
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Question 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


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


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


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( or if you want 
it available to all scripts by default add 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.


ffmpeg, ffmpegphp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with ffmpeg-php fandar Linux - Software 0 07-24-2008 01:38 PM
Problem with ffmpeg-php? UBdebian Programming 3 06-01-2008 12:25 PM
PHP: Adding ffmpeg-php without re-compiling? vxc69 Linux - Software 2 05-17-2007 05:47 PM
This version of nuvexport requires either the cvs or svn version of ffmpeg?? zeltak Linux - Software 2 02-02-2007 05:54 AM
Problem executing a linux script from php that runs ffmpeg darkisolde Linux - Software 4 10-04-2005 08:43 AM

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration