title: Capture Video and Audio and write it to server in iPhone
body: <p>I tried to capture video and write it to following url.I am getting this error.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>videoURL = [[NSURL alloc] initWithString:@"http://belterra.webiguide.com/uploadimages/VideoRecord.mpeg4"];
  
  _videoWriter = [[AVAssetWriter alloc] initWithURL:videoURL fileType:AVFileTypeQuickTimeMovie
                                              error:&amp;error];
  </code></pre>
  
  <p><strong>Exception:</strong></p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', 
  reason: '*** -[AVAssetWriter initWithURL:fileType:error:] 
  invalid parameter not satisfying: [outputURL isFileURL]'
      *** Call stack at first throw:
      (
          0   CoreFoundation           0x314d0987 __exceptionPreprocess + 114
          1   libobjc.A.dylib          0x319a149d objc_exception_throw + 24
          2   AVFoundation             0x30690421 -[AVAssetWriter initWithURL:fileType:error:] + 188
          3   iChat                    0x00003155 -[AVCaptureVideo setupWriter] + 116
          4   iChat                    0x000030a3 -[AVCaptureVideo startVideoRecording] + 26
          5   iChat                    0x000039ed -[AVCaptureVideo initCapture] + 1112
  
  &lt;snip&gt;
  
      )
  </code></pre>