Video Hosting with Flowplayer and S3

[Note: this is the last (i.e. most recent) of my posts imported from pyBlosxom, and it makes possibly-confusing) reference to that, not WordPress.]

I’d already figured out how to get it into Flash video format. There are sufficient opensource encoders for this, such as FFmpeg, but since I have the giant box of Adobe fun I used their Flash Video Encoder Of course, I ended up running it one more time today after learning that iMovie didn’t do what I want and scaled my movie to a smaller size because I didn’t pay close attention while using it to edit the original video slightly.

I decided to host the actual video on Amazon S3. I determined that if my videos got really popular and went over my colo server’s bandwidth allocation, I’d be paying five times as much for bandwidth than I am paying for it via S3.

I fought with s3sync for a while. I want to get it working eventually so I can script this process better, but I had bizarre problems, like it creating the object, but it being zero bytes in size. So, I went looking for something relatively easy to use for OS X, and I found

S3 Browser. It works great, though it does need manual input of the correct MIME type sometimes.

Rather than bother with putting together my own player, I just used FlowPlayer, because it’s open source and doesn’t seem very annoying.

I uploaded the player .swf file, the .flv video file, and a .jpg as preview image for the movie to a bucket I’d created in S3. It’s important to have the Flash and the data it loads on the same server if you want to avoid Flash crossdomain security issues.

I grabbed some appropiate HTML for invoking the player and changed some of the configuration variables. Don’t forget that part about the controller height.

Finally I figured out how to put raw HTML into reStructuredText so I could put it in my blog. The documented way works, but I wasn’t taking it literally enough and had no end of trouble before I figured out to leave an empty line between the directive and the indented block

Next time I’ll write a shell script or two to do all of this. :) And I’ll figure out how to make it show up usefully in RSS feeds.

1 thought on “Video Hosting with Flowplayer and S3

Leave a Reply

Your email address will not be published. Required fields are marked *