📚 Make sure to read our article Recording to a file using AVCaptureScreenInput before exploring this example project.
tldr; Create an AVCaptureSession, connect the AVCaptureScreenInput and an AVCaptureMovieFileOutput.
- Clone this repo
- Run
swift run avcrecording
See also: ScreenCaptureKit-Recording-example for use on macOS 12.3 or newer.
Nonstrict B.V., Mathijs Kadijk & Tom Lokhorst, released under MIT License.