Generate preview image from Video file?
Solution #1 (Older) (not recommended) Firstly install ffmpeg-php project (http://ffmpeg-php.sourceforge.net/) And then you can use of this simple code: <?php $frame = 10; $movie=”test.mp4″; $thumbnail=”thumbnail.png”; $mov = new ffmpeg_movie($movie); $frame = $mov->getFrame($frame); if ($frame) { $gd_image = $frame->toGDImage(); if ($gd_image) { imagepng($gd_image, $thumbnail); imagedestroy($gd_image); echo ‘<img src=”‘.$thumbnail.'”>’; } } ?> Description: This project use binary … Read more