| | 105 | |
| | 106 | === AVFoundation === |
| | 107 | |
| | 108 | To list the supported capture devices, connected to the machine: |
| | 109 | {{{ |
| | 110 | ffmpeg -f avfoundation -list_devices true -i "" |
| | 111 | }}} |
| | 112 | |
| | 113 | To use the default device which is usually the first device in the listing the user can either use an empty name string or "default": |
| | 114 | {{{ |
| | 115 | ffmpeg -f avfoundation -i "" out.mpg |
| | 116 | }}} |
| | 117 | or |
| | 118 | {{{ |
| | 119 | ffmpeg -f avfoundation -i "default" out.mpg |
| | 120 | }}} |
| | 121 | |
| | 122 | To use one of these devices for capturing the user has to specifiy either the name of the device or the index shown in the device listing. |
| | 123 | Abbreviations using just the beginning of the device name are possible. Thus, to capture form a device named "Integrated iSight-camera": |
| | 124 | {{{ |
| | 125 | ffmpeg -f avfoundation -i "Integrated" out.mpg |
| | 126 | }}} |
| | 127 | |
| | 128 | To use the device's index provide the index either as the input or use the -video_device_index option that will override any given input name: |
| | 129 | So |
| | 130 | {{{ |
| | 131 | ffmpeg -f avfoundation -i "2" out.mpg |
| | 132 | }}} |
| | 133 | and |
| | 134 | {{{ |
| | 135 | ffmpeg -f avfoundation -video_device_index 2 -i "default" out.mpg |
| | 136 | }}} |
| | 137 | will use the device with the index 2 ignoring the default device in the second case. |