Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Stream A Mac Desktop To An RTMP Server With ffmpeg

This appears to work. Need to play with it to figure out the min set of options and a good default set

Code

ffmpeg \
  -f avfoundation \
  -i "3:0" \
  -framerate 30 \
  -preset ultrafast \
  -vcodec libx264 \
  -b 900k \
  -f flv rtmp://127.0.0.1:1935/a/b