📚 Make sure to read our article Recording to a file using ScreenCaptureKit before exploring this example project.
tldr; Use an AVAssetWriter to save CMSampleBuffers in a SCStreamOutput callback.
- Clone this repo
- Run
swift run sckrecording
See also: AVCaptureScreenInput-Recording-example for use on macOS versions older than 12.3
Nonstrict B.V., Mathijs Kadijk & Tom Lokhorst, released under MIT License.