go run /usr/local/share/llhlstools/ll-hls-origin-example.go -dir /Library/WebServer/Documents -http :8000
rm /Library/WebServer/Documents/4M/[fpc]*
mediastreamsegmenter -w 499 -t 1 224.0.0.50:9121 -s 16 -D -T -f /Library/WebServer/Documents/4M/
ffmpeg -f avfoundation -list_devices true -i ""
(in this example, specifying input device #5 for video, and no audio)
ffmpeg -f avfoundation -i "5:" -c:v h264 -fflags nobuffer -tune zerolatency -f mpegts udp://224.0.0.50:9121
http://localhost:8000/4M/prog_index.m3u8
With this config, latency from the encoded source (local system's screen) to the client (also the local system) is ~3 seconds, as you can see by comparing the clocks in this screenshot of me viewing the stream of my own screen recording: