FFMPEG – Screen Streaming

Server Side

# Details:
# Server IP: 192.168.0.100
# Client IP: 192.168.0.120
# Port:      10000
# Command for streaming of the screen.
[FFMPEG ScreenCapture] -f mpegts udp://[ClientIP]:[Port]

# Example from Mac OSX.
ffmpeg -f avfoundation -i 2 -r 25 -pix_fmt yuv420p -s 640x480 -c:v libx264 -crf 1 -preset ultrafast -f mpegts udp://192.168.0.120:10000

Client Side

# Command for receiving the stream.
ffplay udp://[ServerIP]:[Port]

# Example.
ffplay udp://192.168.0.100:10000