| | 14 | |
| | 15 | == OS X == |
| | 16 | |
| | 17 | Use the '''[http://ffmpeg.org/ffmpeg-devices.html#avfoundation avfoundation]''' device: |
| | 18 | {{{ |
| | 19 | ffmpeg -f avfoundation -list_devices true -i "" |
| | 20 | }}} |
| | 21 | |
| | 22 | This will enumerate all the available input devices including screens ready to be captured. |
| | 23 | |
| | 24 | Once you've figured out the device index corresponding to the screen to be captured use: |
| | 25 | {{{ |
| | 26 | ffmpeg -f avfoundation -i "<screen device index>:<audio device index>" out.avi |
| | 27 | }}} |
| | 28 | |
| | 29 | This will capture the screen from <screen device index> and audio from <audio device index> into the output file out.avi. |