LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-07-2008, 09:23 PM   #1
JustinMs66
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Question FFMPEG-PHP "toGdImage()" error and many other problems


Just a few days ago i had ffmpeg-php working. then i got the bright idea to try to add a codec to ffmpeg. so i re-installed ffmpeg and then ffmpeg-php. i then noticed this error:
Fatal error: Call to a member function togdimage() on a non-object
which i did NOT get before.
PHP Code:
$movie = new ffmpeg_movie("testmovie.wmv");
$cap $movie->getFrame(1);
$img $cap->togdimage(); 
that is my php code. (i have also tried MANY different movie types) now i have figured out that all functions called from $cap return that error, $cap returns false, but am not sure why. i have not changed this code at all, yet it worked before this.

I have the latest ffmpeg, the latest ffmpeg-php, the latest php, and the latest gd library installed.
also, in an outputted phpinfo() page, it says that ffmpeg-php is installed correctly. i also printed out:
get_class_methods("ffmpeg_frame") and get_class_methods("ffmpeg_movie")
and that returns all the functions, they are all there, including togdimage.

when configuring php, i have read mixed ideas. some say to use --with-gd, and some say --with-gd=shared. i have tried both, with no success with either.

here is my configuration command for "ffmpeg"
Code:
TMPDIR="/tmp2" ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
a) if i don't have the TMPDIR="/tmp2" there, it will say "Unable to create and execute files in /tmp. Set the TMPDIR environment
variable to another directory and make sure that /tmp is not mounted
noexec. Sanity test failed.". but the /tmp2 dir does exist and is chmodded 7777.
b) i have installed libOGG many times but when i have --enable-libogg as an option it says "Unknown option.." so i just take it out.


and for ffmpeg-php i dont use any configuration parameters. once ffmpeg-php is installed, i go to "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/" and copy ffmpeg.so to "/usr/local/lib/php/extensions/" (one directory up), and in my php.ini file i have:
Code:
extension_dir = "/usr/local/lib/php/extensions/"
extension=ffmpeg.so
in my phpinfo(), it DOES recognize ffmpeg-php. but the functions out of the class wont work.

Can anyone further help me debug this problem?

Last edited by JustinMs66; 03-07-2008 at 09:33 PM.
 
  


Reply



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
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 01:16 PM
plesk + php 4.3.2 upgrade error - "undefined symbol: ap_signal" p_s_shah Linux - Server 0 10-30-2007 12:41 PM
I need help on this PHP error -- "Call to undefined function: mysql_connect()" yzh999 Linux - Software 1 08-12-2006 03:14 AM
"Parse error" from class_postbit.php loading thread PTrenholme LQ Suggestions & Feedback 2 12-08-2005 11:26 AM
error message when pressing "Next" "BIOS Problems" , help ! HeRCuLeSX Fedora 3 07-21-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:32 AM.

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