Create a JPG from the first frame of a SWF using PHP?

43 views
Skip to first unread message

Ciaran

unread,
Apr 12, 2007, 6:08:01 AM4/12/07
to Professional PHP Developers
Hi Is this possible? I have several flash games on my site and I would
like to be able to show an automatically created icon next to them in
the games menu.
Thanks
Ciarán

Thiago Paes

unread,
Apr 12, 2007, 6:22:23 AM4/12/07
to Professi...@googlegroups.com
Try using ffmpeg-php (http://ffmpeg-php.sourceforge.net) ..

Thiago


--
________________________________________________________
Thiago Paes - WebDeveloper
site: http://thiagopaes.com.br
msn: mrpr...@hotmail.com
gtalk: mrpr...@gmail.com
icq: 57975647
linux user: #224062

Ciaran

unread,
Apr 14, 2007, 12:57:12 PM4/14/07
to Professional PHP Developers
On Apr 12, 11:22 am, "Thiago Paes" <mrpro...@gmail.com> wrote:
> Try using ffmpeg-php (http://ffmpeg-php.sourceforge.net) ..
>
> Thiago

Thanks Thiago but I checked it out and it seems that ffmpeg only
supports FLV files. Is there anything out there that can capture the
first frame of a SWF?

Cheers,
Ciarán

Sandeep Somvanshi

unread,
Apr 17, 2007, 9:14:48 AM4/17/07
to Professional PHP Developers

Hi Ciarán,

If your requirement is to display automatic images for each SWF then
do one thing create images for each SWF and save the path in the
database with other information of SWF. and display the image by
querying the path of image from database.

And if you want to catch the first frame of SWF then you have to use
some SWF functions http://www.php.net/manual/en/ref.swf.php
(Just to alert you I have never use SWF function in PHP)

Regards,
Sandeep Somvanshi

Reply all
Reply to author
Forward
0 new messages