To use a secure SSL/TLS RTMPS use --capture=rtmps://x.x.x.x:1935/app-name/stream-name
To retry up to three consecutive times if the remote server is not available add --retry=3. Use --retry to retry indefinately unless an unrecoverable error occurs.
RTMP Capture Server
Run an RTMP capture server for ingesting a stream from a remote RTMP publish client such as Flash Media Encoder using RTMP PUBLISH. The stream will be available for viewing by a combination of HTTP streaming methods on port 8080.