If you use nginx as your http server then you don't need ffmpeg to cut up your RTMP streams, the nginx rtmp module will read RTMP streams and serve RTMP, HLS, and DASH. Throw the stream module in front of it and you can do RTMPS.
I don't know the paid/OS history of the module but all I had to do to get it was check a checkbox on FreeBSD since it was configured as an option in the port.