Failed getFrame.
Brought to you by:
tkirby
Have this code:
error_reporting( E_ALL );
$movie = new ffmpeg_movie( $fname = "149.avi" );
echo " Frame count of $fname is: " .
$movie->getFrameCount() . "<br>";
echo " Bit rate of $fname is: " .
$movie->getBitRate() . "<br>";
echo " Frame width of $fname is: " .
$movie->getFrameWidth() . "<br>";
echo " Frame height of $fname is: " .
$movie->getFrameHeight() . "<br>";
// $movie -> getFrame(1);
When uncomment last statement, code fails. No messages
in browser from php. Nothing. Avi have 5 frames.
What it means, - error?
ffmpeg-php version 0.4.8
libavcodec version Lavc51.14.0
libavformat version Lavf50.5.0
ffmpeg.allow_persistent 0 0
Tnx, Arsen.
Logged In: NO
run from command line to see if there are errors
test the file by running it with ffmpeg -i 149.avi out.avi
Logged In: NO
I have the same problem on FreeBSD 6.1 using PHP5, FFMPEG, and FFMPEG-PHP5 all from the ports collection. The apache error log reports this error:
[Sun Dec 24 18:33:06 2006] [notice] child pid 56809 exit signal Bus error (10)
ffmpeg works fine at the command line.
sourceforge@shitsoftware.com
(yes, it works)