Hi,

I've almost finished a plugin for the video module which allows users to:

  1. Upload video
  2. Store a local version
  3. Send the video file over to blip.tv using curl
  4. Blip converts to to flash
  5. Using REST blip lets the local site know its finished conversion
  6. 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

yelvington’s picture

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.

tomski777’s picture

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

tiggman’s picture

Just wondering if you finished this module up?

Thanks,
Todd

tomski777’s picture

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