Forum Moderators: coopster

Message Too Old, No Replies

ffmpeg-php problem

capture video frame

         

helenp

10:21 pm on Mar 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi, My dedicated server host installed for some days ago GD support for php, ffmpeg and ffmpeg-php.
I am trying to get a video capture frame, but get an error,
this is the error:
Fatal error: Call to a member function toGDImage() on a non-object in /home/admin/public_html/prueba6.php on line 4
I simplified the script to have the minimum to see where the error is, and this is the minimum and gives me the error.

<?php

$movie = new ffmpeg_movie("harvard.flv");

$cap = $movie->getFrame(50);

$img = $cap->toGDImage();

?>


Can anybody tell me if this code is incorrect or something is wrong in the installation?
And what to do to fix it.
Thanks in advance

helenp

12:11 pm on Mar 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Donīt bother about this post, the problem was in the configuration on ffmpeg-php and the host fixed it.

coopster

7:11 pm on Mar 30, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Good! :) Because to be quite honest I don't think any of us had a clue as to what the issue may be so therefore no idea which direction to start you off in! Glad you got it sorted!