Friday, November 4, 2011

Preparing audio files for Apple's HTTP Streaming protocol and uploading them to S3

I've been getting inquiries about how I prepare MP3 files for Apple's HTTP Streaming protocol and uploading them to S3 which I mentioned while discussing my PhoneGap example. I thought I would post a gist of the rake task I use to help people get started. The whole process is explained on Apple's site.

You'll need to install mediafilesegmenter and mediastreamvalidator from Apple (which I weirdly can't find now but may be part of Lion at this point). If you need to downsample the audio quality like I do, you'll also need ffmpeg and libmp3lame.

2 comments:

Ian said...

Apple's HTTP streaming tools are not a part of Lion, but they can only be downloaded while logged into an Apple developer account.

You could also link to Apple's streaming best practices tech note, which lists suggested bit rate & resolutions, and has instructions for downloading the streaming tools: Best Practices for Creating and Deploying HTTP Live Streaming Media for the iPhone and iPad

Anyway, nice post, that rake task will be handy. :)

Mike Subelsky said...

thanks Ian! that will help folks who stumble here a lot I'm sure!