AVCaptureVideoDataOutputとAVAssetWriterを使ったビデオキャプチャー。
This code snippet describes how to capture video using AVCaptureVideoDataOutpput and AVAssetWriter and how to compose video frame.
var captureSession: AVCaptureSession()
var camera: AVCaptureDevice!