Failed to fetch frame XXXXX
There are two possible causes for this:
1) Your movie was not completely uploaded. If this happens, the beginning of the movie file reports that you have X number of frames, and ffmpeg-php isn't able to seek to that specific file. Please double check that this file is completely uploaded and wasn't truncated.
2) This may be a problem with ffmpeg-php. You can confirm this with the following PHP code:
Note - be sure to change FULL SERVER PATH TO VIDEO FILE to your actual video file path.
Note - be sure to change FRAME NUMBER to the frame number used.
ini_set("display_errors", "on"); error_reporting(E_ALL ^ E_NOTICE);
$pth = "FULL SERVER PATH TO VIDEO FILE"; $frameid = FRAME NUMBER;
if (!file_exists($pth)) { echo "Cannot find file $pth"; exit; } $movie = new ffmpeg_movie($pth); $frame = $movie->getFrame($frameid);
if (!$frame) { echo "Failed to fetch frame $frameid from $pth"; exit; }
$gd = $frame->toGDImage();
echo "done"; exit;
If this is the case, your host will have to recompile / fix ffmpeg-php.
|