I want to save a screenshot of a swf movie using PHP. Is there any way I can do this ?
PHP gurus ...
Collapse
X
-
you will probably need ffmpeg installed
here's a link you might use
http://www.phpbuilder.com/board/arch...-10327812.html
PS: is the video FLV or SWF?Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!
PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
Comment
-
you will need to have ffmpeg-php4 or ffmpeg-php5 installed.Code:<?php $movie = new ffmpeg_movie("video.flv", false); $framenum = 15; $frame = $movie->getFrame($framenum); $im = $frame->toGDImage(); imagejpeg($im, "test.jpg"); imagedestroy($im); print '<img src="test.jpg"/><br/>'; ?>Comment
-
Only PHP Programmers who are starting are using for every thing a extension, alot hosts are not going to install php-ffmpeg. so save yourself alot of work and use ffmpeg direct with the shell_exec function.
using a extension for something so easy is ridicoules anyway.
you will need to have ffmpeg-php4 or ffmpeg-php5 installed.Code:<?php $movie = new ffmpeg_movie("video.flv", false); $framenum = 15; $frame = $movie->getFrame($framenum); $im = $frame->toGDImage(); imagejpeg($im, "test.jpg"); imagedestroy($im); print '<img src="test.jpg"/><br/>'; ?>Comment

Comment