RE: [Ffmpeg-php-user] togdimage() not working on BSD
Brought to you by:
tkirby
From: Rob C. <ro...@ma...> - 2005-03-21 20:08:50
|
I assume you're using the same version of libavcodec and/or libavformat since you're using ffmpeg 0.4.9p1 on both machines. One thing I could think of is that your video.mov has it's headers compressed with zlib. Make sure that ffmpeg is compiled with zlib support. Could you give us a link to the file you tested with (video.mov) ? -ROB -----Original Message----- From: ffm...@li... [mailto:ffm...@li...] On Behalf Of Scott Larson Sent: maandag 21 maart 2005 20:16 To: ffm...@li... Subject: [Ffmpeg-php-user] togdimage() not working on BSD 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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Ffmpeg-php-user mailing list Ffm...@li... https://lists.sourceforge.net/lists/listinfo/ffmpeg-php-user |