Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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.