sudo ffmpeg -f avfoundation -i "1" -c:v libvpx -deadline realtime -cpu-used 5 -b:v 500k -c:a libvorbis -listen 1 -content_type "video/webm" -f webm "http://localhost:8080"
this is working on my m1 playing with VLC or Firefox, not with Chrome.