Volunteer needed for school development

Subscribe to Volunteer needed for school development 3 posts, 2 voices

 
Avatar timh 4 posts

Hi all.

I’m a school vice-principal (and an novice/intermediate php developer). I’ve written a php based pod/videocasting server for my district, and want to integrate HeyWatch to convert .avi/.wmf/.mov files to .flv automatically. My server already handles .flv files no problem, its just the conversion to flv I need help with.

I’m finding the REST API awkward for a rookie like me, so any help is appreciated. I’ve been over the API and done a few dollars worth of tests (grrrr!), but can’t get things working and an ready to start again from scratch.

Has anyone got a working implementation (complete) in php they can share that covers this basic need: -when a user uploads an .avi, I store it in a web-accessible location on my server -the php that accepted the upload will then initiate a call to heywatch (“discover” I am assuming, maybe “download” is right???) with the url of the .avi file <-need example code here -the heywatch account will be set to auto-encode jobs to .flv -I’ll have a php file waiting for the post back from heywatch that says the job is done -once the notice is received, my script will download the .flv from heywatch and replace the .avi

I haven’t worked with PEAR before, so that is part of what I’m hung up on.

Anyone got working code to share so the students can start loading their content???

Thanks ./tim

 
Avatar Ian Tasker -... 4 posts

Hi tim,

I don’t want to take anything away from heywatch they are a great services and I will be using them in my up coming project.

You can replicate heywatch on a small scale by following http://genarorocha.com/wordpress/?p=7, the only reason i post this is education funding is poor and if the students go crazy there could be a problem over cost.

You can then call ffmpeg from within your php script, using the php-ffmpeg interface.

Ian

 
Avatar timh 4 posts

Thanks Ian. I did finally get heywatch going. Problem was with pear not being installed.

We are on a hosted server (we don’t have full control, whoch is why pear was such a problem and why the ffmpeg options aren’t do-able either).

Thanks for your help though. ./tim