Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 breaks up transcoding and it must be restarted automatically

Any ideas?

share|improve this question

In the past I've used mplayer with dumpstream + a filesizecheck for mms. (let it run for a few seconds, kill it, check if the file is large enough) Maybe this will work for rtmp as well, but I don't know how reliable mplayer's support is.

Btw, title has the abbreviation wrong

share|improve this answer
up vote 0 down vote accepted

After some testing I used "GOD" to solve my problem:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.