private async void OnStartRecording(object sender, RoutedEventArgs e) { cameraCapture.setTargetFile(new File(KnownFolders.VideosLibrary, captureOutput)); var winRtVideoFormat = new WinRtVideoFormat("video/avc", 640, 480) { bitrate = 1000000 }; winRtVideoFormat.frameRate.Numerator = 30; winRtVideoFormat.frameRate.Denominator = 1; cameraCapture.setTargetVideoFormat(winRtVideoFormat); cameraCapture.setTargetAudioFormat(new WinRtAudioFormat("audio/aac") { sampleRate = 44100, bitrate = 128000, bitsPerSample = 16, channelCount = 2 }); await cameraCapture.start(); UpdateUiState(PageState.InProgress); }