views:

161

answers:

0

Hi,

I'm using ffmpeg to transcode a rtmp-stream and re-stream it with ffmpeg.

I have 2 problems:

  • how can I check if the remote rtmp-stream is running and then start ffmpeg
  • sometimes ffmpeg brake up transcoding and it must be restartet automatically

Any hints to do this with a shell-script, ruby or php?