Topic: Suggestions for video upload (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic: Suggestions for video upload (Page 1 of 1)" rel="nofollow" >Topic: Suggestions for video upload <span class="small">(Page 1 of 1)</span>\

Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

IP logged posted posted 07-15-2006 21:54 Edit Quote

Let's see if I can explain what I want to do.

We have a sever on one domain (say that is going to process videos that are uploaded by users and convert them to a flash format. The server can only process one video at a time so they will need to be put in a queue.

Now, the upload form will be on a different server ( and we want to be able to upload the video to the remote server and then get an answer back from that server after it's done it's thing so we can give the user a proper error or success message. My original thought for doing this was to make the form action action="" and then just use a header("Location:") or whatever result we want to send back may be.

Never having done a lot with files as large as video files will probably be, I started to wonder if this was the best way at all. I'm assuming the odds of the upload going slower or screwing up completely is much greater if I'm doing it to a remote server instead of keeping it on the local server. Then I was thinking I could put them local to begin with so the user didn't have to put up with it going over a remote connection. The problem then becomes the fact that I'm not sure how I would go about getting them from the local machine to the remote machine and queued up to be processed in an automatted way.

Any suggestions for the best way to go about this or should I just do it the way I've already put forth? Or maybe open a socket and do a 2 way with that?

Thanks for any help or guidance you may have to offer.

- Butcher -

Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 07-16-2006 00:42 Edit Quote

Having a sever dedicated to hosting the video sounds good. The user will have to upload the video, be it on the portal or the videos server is not important. It will be as long ... unless the video server is crawling under zillion of requests. In this case, an option could be to process the video upload on the portal, and when it's done, copy it to the videos server via the LAN of your host / server farm. You'll have to see with host to get the IP and path of the videos server. Another option could be to have a CRON job on the portal server check every minute if there is any video ready and waiting to be uploaded on the videos server.

I'm not really into video, so could you explain what you mean by Flash format. Has Ado-media created their own codec ?

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 07-16-2006 20:33 Edit Quote

Honestly... I wouldn't use browser upload for this.
I have seen some nice java applets that can resume, show sensible progress bars and the like,
that would be a million times more userfriendly ( oh, and yeah, have a browser upload fallback for those guys without java, they're used to the pain )

so long,

->Tyberius Prime

Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

IP logged posted posted 07-16-2006 22:06 Edit Quote

I think the flash format reffers to the way youtube and google video host their videos.

I saw this:
it seems php has a way of dealing with ftp, but its probably just a good interface for browser upload, I didnt really look into it.

Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

IP logged posted posted 07-18-2006 00:07 Edit Quote

Yea, Hugh has it right.

Sorry for the late reply, I've been waiting to hear from the guy that's handling that part of it so I could give you proper info on the server that does the conversion but like I said Hugh's got it in a nutshell.

Thanks for the replies and suggestions.

- Butcher -

Post Reply
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
Your Text:
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu