Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
I don't know what a map could be in this context either, but what you want to do is pretty simple.
2 ways to go, at first sight.
1) The easiest, if you have control of the server. Use a ftp server that can easily be extended, like pureftpd.
http://www.pureftpd.org/project/pure-ftpd
This one in particular allows you to apply a batch script to each uploaded files in a given directory.
Quote:
since 0.98, Pure-FTPd has a nice feature regarding
uploads. Any external program or script can be automatically called after a
successful upload. It needs another program installed by the Pure-FTPd
package, called 'pure-uploadscript'. Check the man page for more info about
this.
|
Simply create a bash script that convert the file to flv (via mencoder, for example) and voila.
2)More portable, but more complicated.
Have a php script (if you insist on using it) that convert every files it founds in a given directory (the upload directory) to flv (again, via a system() call to mencoder) and configure cron to run this script every minutes.
Just take care to put a semaphore in the directory when you convert the videos, and check for it before starting conversion.
Otherwise, you might be converting several times the same video at the same time, if a video conversion takes more than the interval set in the cron.
And if you wonder how to use mencoder to create your flv:
http://www.jeremychapman.info/cms/me...flv-conversion
__________________
Only a biker knows why a dog sticks his head out the window.
|