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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-14-2008, 01:59 PM   #1
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
:stoned PHP gurus ...

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.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-14-2008, 02:02 PM   #2
biskoppen
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
__________________
Submit my videos to make bank, tons of 5 minute videos offered right here
biskoppen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-14-2008, 02:13 PM   #3
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-14-2008, 05:08 PM   #4
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
Can be both. Does it make a difference ?
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-14-2008, 05:38 PM   #5
bashbug
Confirmed User
 
bashbug's Avatar
 
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/>';
?>
you will need to have ffmpeg-php4 or ffmpeg-php5 installed.
bashbug is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-14-2008, 06:59 PM   #6
Hansm
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:
Originally Posted by bashbug View Post
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/>';
?>
you will need to have ffmpeg-php4 or ffmpeg-php5 installed.
Hansm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-14-2008, 07:00 PM   #7
Hansm
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&#37; sure about it, never tried.

only worked with movie files myself and ffmpeg.
Hansm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.