Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
server flv convert map
Old 06-08-2010, 07:00 AM server flv convert map
dente's Avatar
Skilled Talker

Posts: 79
Trades: 0
Hello

I dont know where exactly I could be asking this, but I think its php related.

Does anyone know if it is possible to have a Map on your server which automaticly converts all videos uploaded in it via ftp?
Like when I upload. blabla.wmv, when upload is complete, the server should automaticly start converting it into flv..

Is this possible and if yes, How?
I tried searching google but couldnt find any information on this.

Thank you
__________________
Affordable & Quality Servers:
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Bandwidth Pooling Allowed
dente is offline
Reply With Quote
View Public Profile Visit dente's homepage!
 
 
Register now for full access!
Old 06-08-2010, 07:05 AM Re: server flv convert map
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A Map on the server???????
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-08-2010, 07:27 AM Re: server flv convert map
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-09-2010, 03:06 AM Re: server flv convert map
dente's Avatar
Skilled Talker

Posts: 79
Trades: 0
Hey Tripy,

Thanks man, im going to check this out now.
By map I meant directory, yeah im sorry in dutch both are the same, didnt think about it.

I dont know alot about php or mencoder, but I have Mencoder, fftools, Mplayer on my server.

Ill check the website you gave me.

Thanks again!
__________________
Affordable & Quality Servers:
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Bandwidth Pooling Allowed
dente is offline
Reply With Quote
View Public Profile Visit dente's homepage!
 
Reply     « Reply to server flv convert map
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13445 seconds with 12 queries