Amazon S3 and WordPress Video Site – 2 Hour Project – What A Debacle

About a month ago, I wanted to test using Amazon’s S3 service, for storage. I couldn’t think of any quick, easy projects to use it for, then it hit me, how about video/photos?

I decided to see how long it would take for me to make a video site, with comments, views, etc, on a small budget.

My first thought was maybe to use a hosted WordPress.com blog, and just redirect the domain, which is about 10 dollars a year, and then use S3 for the video/photo hosting. That idea was nixed because hosted WordPress.com blogs can’t embed flash, javascript, or iFrames, etc.

My next idea was just getting a WordPress hosted blog at HostMySite, which is what I went with (which eventually I will move to my own server). This was 45$, and the domain was roughly 10$, so 55$ so far.

Now, to get videos working, and a cool theme. First the theme. I just searched free WordPress theme sites, and found one that looked cool. I set it up, slapped up some Google AdSense and Google Analytics, and changed the logo, rearranged a few things.

As for getting video to work. I was having issues embedding jscript (for the flash video embeds) in WordPress. It would work, but then screw up the formatting of the rest of the page, etc. I knew iFrame would work, so I went that route. Since I am a .NET dev at heart, I made a page where it will take some params on my www.stevienova.com site, and grab the file from S3 and play it. So on WordPress, I just iFrame that site with the right params. I suppose later I could make a PHP page to do the same thing and keep it all self enclosed. Probably will do that once I move it to my server.

For video I found a nice little flv embed, which has a ton of options, even can do pre and post roll ads if I want. What is nice with the setup I have is that there really isn’t and bandwidth being eaten by my webhost. Just the theme images. Everything else is on S3. The videos, thumbnails, etc.

Pricing for Amazon S3 is pretty good.

  • Storage Used: $0.15 per GB-Month of storage. This fee applies to all object data and metadata stored in buckets that you created under your account.

    It does not matter who created the objects in your buckets, so think twice before you give somebody the right to write objects to your bucket!

  • Network Data Transferred: $0.20 per GB of data transferred. This fee applies anytime data is read from or written to one of your buckets. It does not matter who is reading or writing the data, so consider this when you give public access to one of your objects that may become popular.

With the site just starting, the storage and transfer is really low. Less than a dollar.

So, in about 2 hours and less than 60 dollars later, I created a self managed Funny Video site, from the ground up. I can now use Windows Live Writer to post to it, and I use a S3 tool to upload files to S3.

I also have other people putting videos on it, so that is cool as well. I am not sure where it will, because it really was just an experiment to see how fast I could get a video site up, and for how cheap.

Not sure how funny the videos are or will be, but if you want something up, I will put it up. Once nice thing, is that I can just iFrame YouTube as well, so if there is something there that might be Copyrighted by a YouTube uploader, I don’t have to worry about that, since its just the YouTube player which you can embed legally.

Fun stuff :)

Check out the site.

whatadebacle

http://www.whatadebacle.com

 

3 thoughts on “Amazon S3 and WordPress Video Site – 2 Hour Project – What A Debacle”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s