-
-
Save standinga/39ee562b279eb7bcf8990a321b068fa2 to your computer and use it in GitHub Desktop.
Stream mac camera using ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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