The script:
public static function apercuFichierVideo($cheminFichierVideo,$tailleImage)
{
echo $cheminFichierVideo."<br>";
$movie = new ffmpeg_movie($cheminFichierVideo, false);
echo $movie."<br>";
$frame = $movie->getFrame(1);
echo $frame."<br>";
$img = $frame->toGDImage();
return $img;
}
Calling this function give me :
Sometime:
disc1/www/dev-informatic/temp/uploaded_files/test.avi<br><br><br />
<b>Fatal error</b>: Call to a member function getFrame() on a non-object in <b>/disc1/www/dev-informatic/objet/compte/document/FichierMedia.class.php</b> on line <b>27</b><br />
Then sometime:
/disc1/www/dev-informatic/temp/uploaded_files/test.avi<br>Object id #2<br>Object id #3<br><br />
<b>Fatal error</b>: Call to undefined method ffmpeg_frame::toGDImage() in <b>/disc1/www/dev-informatic/objet/compte/document/FichierMedia.class.php</b> on line <b>30</b><br />
But from phpinfo:
ffmpeg
ffmpeg support (ffmpeg-php) enabled
ffmpeg-php version 0.4.6.0
libavcodec version Lavc51.9.0
libavformat version Lavf50.4.0
Directive Local Value Master Value
ffmpeg.allow_persistent 0 0
gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
I have uninstall and reinstall from urpmi under mandrake:
NOTHING CHANGE!
Argh, i'm using ffmpeg for thumbnail purpose.
Logged In: YES
user_id=1801277
Originator: NO
I'm the owner of this post. Please send me any additional technical information that could help me about ffmpeg installation. I'm asking if there is not a problem with package installed by urpmi. May be I will install from tarball today and check it again...
Logged In: YES
user_id=948989
Originator: NO
I recommend you to run the tests