Record video with AVAssetWriter
I'm trying to record video with AVAssetwriter but I keep getting NO when checking AVAssetWriterInput property readyForMoreMediaData before appending data. I saw related posts that mentioned similar problem when trying to record audio + video so I took out the audio recording part but the problem still occurs ( readyForMoreMediaData is always NO). My code: - (void)startRecordingWithAssetWriter { NSLog(@"Setting up capture session"); captureSession = [[AVCaptureSession alloc] init]; //----- ADD INPUTS ----- NSLog(@"Adding video input"); //ADD VIDEO INPUT AVCaptureDevice *videoCaptureDevice =