I found this as a reference when trying to do Open source based FFMPEG HTTP streaming.
Link is here http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/
Code for the segmenter and the PDF of the website attached here as an archive.
NOTE: To compile ffmpeg successfully, the –arch=x86_64 flag needs to be passed in the configure script.