autotee

See also: https://github.com/fxkr/autotee

autotee manages transcoding processes.

It watches an nginx-rtmp or Icecast server for active streams.For each active stream, it spawns a number of source and sink processes and forwards data from each sources stdout to the stdin of each sink connected to the source.It supervises the source/sink processes and kills/restarts them as necessary (e.g. due to streams appearing / going away or stalling/crashing sources/sinks).