nginx - Force ffmpeg to ignore error when connecting failed -


i'm trying deploy live stream delivery system nginx , nginx-rtmp-module.

for every node in system, wish 'forward' live stream received downstream node. try implement following config in nginx.conf:

exec_push ffmpeg -i rtmp://localhost/src/test -vcodec copy -strict -2 -ar 44100 -ac 1 -f flv rtmp://<downstreaming a>/src/test -f flv rtmp://<downstreaming b>/src/test

it works when runs well, if downstream node down, command exit , none of downstream nodes receive live stream.

how force ffmpeg ignore connetion refused, or there better alternative implementation?

you cannot ignore connection refused since rtmp uses tcp needs connection.

if understood correctly you're trying transcode rtmp source , send number of servers.

  1. you duplicate command send each downstream node individually you'll doing transcoding twice.
  2. an alternative transcode , publish transcoded stream using ffserver on same machine , push / pull on each downstream server

Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -