By tomski777 on
Hi,
I've almost finished a plugin for the video module which allows users to:
- Upload video
- Store a local version
- Send the video file over to blip.tv using curl
- Blip converts to to flash
- Using REST blip lets the local site know its finished conversion
- The flash version is displayed
What I want to know is where is the best place to start a curl POST of the video file to blip.tv?
I'ts currently called when the node is viewed. If its a large file i.e. 30mb then isn't this going to slow down viewing of the node? Is there a way of sending the file in the background?
I'm concerned that if a user submits a large file to the local server which is then curl'ed to blip.tv this is allot of work for a single script to carry out.
Any hints or tips? Do people understand what i'm getting at?
Cheers for any help.
Tom:)
Comments
Cron?
You probably want to decouple the transcoding stuff from the user interface. Perhaps store the upload and have a cron-triggered process periodically handle new uploads.
Sounds like a good idea -
Sounds like a good idea - i'd been thinking the same, I was just wondering if there was a "threading hook type thing" I could link into - which I suppose cron is in a basic sort of way.
Cheers yelvington
Tom
><>tomskii
><>www.theanthillsocial.co.uk
status?
Just wondering if you finished this module up?
Thanks,
Todd
Hi Todd, sorry for the delay
Hi Todd,
sorry for the delay i've been away!
If you would like a copy of the module, then please send a request to "info (at) theanthillsocial.co.uk" though be warned, this is a production version for 4.7 which is working very well on a site we've produced but has to get full testing out in the wild - though it would be very good to get feedback....
Ta
tom
><>tomskii
><>www.theanthillsocial.co.uk