RTMP server using ffmpeg I'd like to use a Teradek Cube connected to a broadcast camera to push to a server running ffmpeg with an open RTMP port, and have ffmpeg re-stream that feed to a decoder using RTMP or RTSP.

Monaserver does this, but I need to duplicate this functionality using ffmpeg. I would use the Cube as a server, except it could be broadcasting anywhere so opening ports at every location the camera goes to is not an option. Our decoder is a Teradek Slice. Any other suggestions about how to do this would be greatly appreciated.

Thank you!
You can use FFmpeg as an RTMP server as following
ffmpeg -f flv -listen 1 -i rtmp://localhost:1935/live/app -c copy rtsp://YOUR_RTSP_HOST

Notes:


-listen 1 makes FFmpeg act as a RTMP server when used with RTMP protocol
Use rtmp://localhost:1935/live/app as the RTMP server url on the source 
You can set any playpath rtmp://localhost:1935/any/thing and any port
The main advantage with this way is simplicity, the disadvantage is server stops if source stopped or had encoding errors
The other option is to use nginx with nginx-rtmp-module