![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
![]() I want to save a screenshot of a swf movie using PHP. Is there any way I can do this ?
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
I'd say there is no direct way of doing it... you probably need to install some software on the server which you can send commands from PHP
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
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: ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Can be both. Does it make a difference ?
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Oct 2005
Location: Boston
Posts: 929
|
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/>'; ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Jun 2002
Posts: 871
|
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. Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jun 2002
Posts: 871
|
FLV screenshot can be easy extracted. SWF is harder. As long as i know ffmpeg can not do this but not 100% sure about it, never tried.
only worked with movie files myself and ffmpeg. |
![]() |
![]() ![]() ![]() ![]() ![]() |