[Ffmpeg-php-user] togdimage() not working on BSD
Brought to you by:
tkirby
From: Scott L. <sl...@io...> - 2005-03-21 19:16:28
|
I'm running the following script on a RH Linux 3ES machine with no problems, however when moving the script to a FreeBSD machine I get this error: [21-Mar-2005 10:58:00] PHP Warning: togdimage(): supplied resource is not a valid Image resource in /usr/local/www/data-dist/ffmpeg/bar.php on line 16 Here is the script I'm testing with: <?php header("Content-type: image/jpeg"); $file = "qt/video.mov"; $movie = new ffmpeg_movie($file); $total = $movie->getFrameCount(); $bitrate = $movie->getBitRate(); $type = $movie->getVideoCodec(); $id = round($total/2); $frame = $movie->getFrame($id); $width = $frame->getWidth($frame); $height = $frame->getHeight($frame); $image = $frame->togdimage(); imagejpeg($image,'',100); ?> The only underlying difference is the OS. Both machines run PHP 4.3.10, ffmpeg 0.4.9p1, and ffmpeg-php 0.4.3, and in both cases ffmpeg-php is built as a dynamic extension. An interesting thing to note is that on the troublesome BSD machine, all the other functions seem to work. It correctly gets the frame count, bit rate, video codec, width and height. -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com |