Stopping FFMPEG from failing if one output fails

Viewed 8

I am writing a service that is using FFMPEG to send an RTMP to multiple services. A simple example is such:

ffmpeg -re -i rtmp://localhost:1935/live/xxxxxx -vcodec copy -acodec copy -attempt_recovery 1 -max_recovery_attempts 5 -drop_pkts_on_overflow 1 -f flv rtmp://a.rtmp.youtube.com/live2/xxxxxx -f flv rtmps://live-api-s.facebook.com:443/rtmp/xxxxx

For the above example, occasionally the Facebook output fails and FFMPEG stops all streams. Is there a way to have ffmpeg not stop if one output fails?

0 Answers
Related