Sharing Family Videos using Amazon Cloudfront, CloudBerry, JWPlayer and Wordpress

#“Sharing Family Videos using Amazon Cloudfront, CloudBerry, JWPlayer and Wordpress”

We have tons of old video going back to 1997 that I have been capturing as MPG files over the past few years with WinTV boxes. They then sat unloved on a harddrive until now. We have recently got family requests for copies of some of the videos and it prompted me to finally do something. I had considered burning DVDs but they are just going to get lost/scratched and I've always found generating them to be a complete pain.

I switched my thinking to online site which we have used before for very short school-play type snippets. Password protected Vimeo worked fine for that. But I realised it was finally an opportunity to store the videos somewhere safe for the long-term so my focus switched to my old friend Amazon S3. Some fiddling and configuring later and it is working like a charm. So these are the steps:

  1. Run all the video files through Handbrake to create MP4s at the quality level you want. In our case a lot of the source is Video8 so it starts pretty rough in the first place.
  2. Create a bucket on Amazon S3 using the very useful CloudBerry S3 Explorer
  3. Note that if you are an S3 noobie, CloudBerry can guide you through the account setup
  4. Make that bucket a Streaming Distribution. I got this wrong initially and the videos would have to download entirely before playing! See the CloudBerry instructions here.
  5. Use CloudBerry to upload the video to S3. CloudBerry has a throttle so you can keep working away and not saturate your broadband
  6. Now on your Wordpress blog, you install the JW Player Plugin and follow the on-screen instructions.
  7. Once the video is uploaded you need to get the streaming code for it. CloudBerry can generate the code for you but it is for generic HTML pages, not the WP Plugin. But you use the code CloudBerry gives you as a starting point (see below).
  8. Also, all the discussion in the CloudBerryinstructionsabout crossdomain.xml and hosting the JW Player on S3 isirrelevantif you use the plugin and are streaming
  9. Create a new Wordpress Page or Post. Make it password protected if it is stuff that is not for broadcast to a wider audience
  10. Add the following to the page: [jwplayer config="ConorVids1" file="BlahBlah.mp4" streamer="rtmp://whatever.cloudfront.net/cfx/st/mp4:/" provider="rtmp"]
  11. You use the info that Cloudberry gave you above to fill out the file and streamer details. The config thing is just a JWPlayer config that you create in the Wordpress settings to suit the height/width of your video.
  12. Save
  13. Done!
So far it's working like a charm. I'll spend the next few weeks with MP4 conversions and uploads happening in the background until it is all up there, safe and accessible to the family.

Conor O'Neill

Tech guy who likes running slowly

Bandon, Cork, Ireland https://conoroneill.net