PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 19, 2019 8:32 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Sep 17, 2011 8:56 am 
Offline
Forum Commoner

Joined: Tue May 04, 2010 6:24 am
Posts: 43
Location: Norway
Hi

I'm trying to make a script to make a movie from multible image (jpg) files.
Theres several steps this script shall do:

1. Download all the files from a ftp server.
2. Convert the files to a .mpg or mp4 movie.
3. Delete the dowloaded image files from the ftp server.
4. Upload the finished movie file to a web page where the file kan be played.

Anyone have examples of code to do theese steps?


Top
 Profile  
 
PostPosted: Sat Sep 17, 2011 12:24 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
What OS are you using?

_________________
(#10850)


Top
 Profile  
 
PostPosted: Sat Sep 17, 2011 1:53 pm 
Offline
Forum Commoner

Joined: Tue May 04, 2010 6:24 am
Posts: 43
Location: Norway
Ubuntu.


Top
 Profile  
 
PostPosted: Sat Sep 17, 2011 6:39 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
You can do the FTP with PHP using:
http://us2.php.net/manual/en/ref.ftp.php

You can run command line image conversion tools with:
http://us2.php.net/manual/en/ref.exec.php

_________________
(#10850)


Top
 Profile  
 
PostPosted: Sun Sep 18, 2011 5:08 am 
Offline
Forum Commoner

Joined: Tue May 04, 2010 6:24 am
Posts: 43
Location: Norway
Thanks for the reply.
I have now managed much of my tasks, but one small issue is still left:
The movie my script creates is a .swf file. It then publish to a web page.

Here is the code for the movie in my webpage:
Syntax: [ Download ] [ Hide ]
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="250" id="alldaymovie" ALIGN="center">
<PARAM NAME=movie VALUE="alldaymovie.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <EMBED src="alldaymovie.swf" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="250" controller=true NAME="alldaymovie" ALIGN="center" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT>
 

My question is: How can i get movie controls (start/stop) into the webpage?


Top
 Profile  
 
PostPosted: Sun Sep 18, 2011 11:50 am 
Offline
Forum Commoner

Joined: Tue May 04, 2010 6:24 am
Posts: 43
Location: Norway


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group