FFmpeg By Example is a documentation website to showcase all the unique and different ways to use FFmpeg.
Got a cool idea to share with the community? Send your contribution here!

Stream local file to RTMP Server and Client

https://ffmpeg-by-example.s3.amazonaws.com/rtmp-server-client.jpg
# RTMP 'server', will wait for a client to connect
ffmpeg -re -i input.mp4 -listen 1 -c copy -f flv rtmp://localhost/live

# RTMP 'client', will read the data the server is sending
ffplay rtmp://127.0.0.1/live

All Examples