Thursday, June 14, 2012

Building a Campus Video Portal with PHPmotion

As a Tech Director for a k-12 school district one of my biggest challenges is managing our district's internet bandwidth.  I use a variety of techniques from throttling services to using our Sonicwall NSA's IPS system to block a wide range of non educational web services that suck the life out of our internet bandwidth.

We only have a 20Mbps leased fiber channel for internet that we are doubling next month to 40Mbps which has to support 1800 computers, 3100 students and 350 staff.  It's not a lot of pipe for that many users and I am always looking for a way to lighten the load.  After some brainstorming I thought, what about building a YouTube like intranet site to host all of our videos?  We have many free video sources and pay subscription services that we can legally download but streaming them through the day eats a big part of our internet bandwidth.  My line of thinking was if I could get teachers to download these videos that they use for their lessons outside of school hours then upload them to our servers it would save a considerable amount of bandwidth throughout the school year.

Where to begin?  I had no idea how I was going to pull this off.  I started off trying drupal addons, joomla addons, kaltura, clipbucket, and a couple other scripts I had found but none of them were even close to a finished product.  After spending two weeks on various software and platforms with install problems, dependency issues, bugs and lack of features, I was just about to give up.  Then, after more research I found a free script called PHPmotion and it was exactly what I was looking for.  A near YouTube clone that was easy to use, professional looking, and supported many audio and video formats.

PHPmotion was highly recommended to run off of Linux as many users had problems with trying to get it to work on Windows server.  I decided my best bet was to load up Ubuntu server 12.04 as the Ubuntu distro has the best documentation of any Linux distro on the net.  I ran this off of a 3 year old server that was retired sitting on the shelf.  It was suitable for the project because it had 1.3 TB of storage, 4 gigs of ram and 64-bit Xeon processors.  It took me a solid week of slow downloads off repositories, fixing some minor bugs, installing undocumented dependencies and unexpected issues with PHPmotion.  After all of that work I finally had a finished product where I did some customization to some of the menu options, removal of social buttons and disabled commenting.  I was able to tweak my video settings on the site to convert uploaded videos to 480p to save on storage space and edited some of the logos to fit our school district.

I plan on creating a tutorial or guide of how I accomplished this to give to other school districts.  I will be posting the guide on this blog as well as giving a presentation on this concept at our state's school technical conference where other tech directors will be able to see what I have built and whether or not they can use it in their districts.

Other Benefits? Teachers will benefit from having a centralized place on campus to put videos plus they can easily share videos with other teachers who may be teaching a similar lesson.  It will eliminate slow loading videos and buffering issues as well.  The only thing that could be an issue in the future is video portal becoming very popular in the district and we begin having storage issues.  Then we may have to look had buying a larger server or sans to support all of the videos.

What do you think?  Could you use a intranet video portal for your company or campus?

No comments:

Post a Comment