ffmpeg is without doubt one of the (if not the!) best file based encoders out there. However getting it to run as a 24×7 live encoder can be somewhat tricky as one of the main issue with ffmpeg is there are few options to handle and retry any failure conditions, which is perfectly acceptable for a file based encoder.
To accommodate this scenario I have been working on some simple scripts that can wrap ffmpeg to produce 24×7 live streams.
This is a work in progress and my wrapper code is available here: