Skip to content

Instantly share code, notes, and snippets.

@standinga
Created July 20, 2023 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save standinga/39ee562b279eb7bcf8990a321b068fa2 to your computer and use it in GitHub Desktop.
Save standinga/39ee562b279eb7bcf8990a321b068fa2 to your computer and use it in GitHub Desktop.
Stream mac camera using ffmpeg
# stream facetime camera (0)
ffmpeg -f avfoundation -framerate 30 -i "0" -video_size 1024x720 -vcodec libx264 -preset ultrafast -f flv "rtmp://127.0.0.1/live"
# framerate needs to be set before the "-i" (input)
# list available devices:
ffmpeg -f avfoundation -list_devices true -i ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment