Is there an open source project that accomplishes something similar?
There is on open source a Nginx module that streams RTMP and creates HLS segments that looks promising: https://github.com/arut/nginx-rtmp-module
There are also red5 (http://www.red5.org/) and rtmpd (http://www.rtmpd.com/)