I'm really new on ffmpeg and have a question where I cannot find a solution. I really hope that somebody from you could help me with that.
On one server I receive a 1080p stream, with ffmpeg I create a new stream with multiple bitrates and resolution and send it afterwards to a rtmp destination on this server. Below CL the command that I use at the moment and it is working.
ffmpeg -i - -copyts -muxdelay 0 -c:a libfaac -ab 128k
-c:v libx264 -preset faster -profile:v main -level 3.1 -crf 20 -g 50 -b:v 1500k -s:v 1920x1080 -f flv rtmp://localhost/stream/output_stream
-c:a libfaac -ab 64k -c:v libx264 -preset faster -profile:v main -level 3.1 -crf 23 -g 50 -b:v 1000k -s:v 1280x720 -f flv rtmp://localhost/stream/output_stream
-c:a libfaac -ab 32k -c:v libx264 -preset faster -profile:v main -level 3.1 -crf 23 -g 50 -b:v 800k -s:v 960x540 -f flv rtmp://localhost/stream/output_stream
Now I have the challenge that I need to send it to multiple servers. Is there anyway to add multiple outputs?
At the end the incoming 1080p stream should get multiple bitrates and should be send to around 10 different RTMP server.
I really hope that somebody can help me with that.