title: where to save output of AVAssetWriter - iOS
body: <p>I'm following some examples of how to compress a video to reduce file size prior to uploading it to a server. Specifically, I've looked at this question here: <a href="https://stackoverflow.com/questions/11751883/how-can-i-reduce-the-file-size-of-a-video-created-with-uiimagepickercontroller/16035330#16035330">How can I reduce the file size of a video created with UIImagePickerController?</a></p>
  
  <p>However, I'm wondering where the best place to save the output is. </p>
  
  <p>Even the AV foundation programming guide only provides this as an example: </p>
  
  <pre><code>NSError *outError;
  NSURL *outputURL = &lt;#NSURL object representing the URL where you want to save the   video#&gt;;
  AVAssetWriter *assetWriter = [AVAssetWriter assetWriterWithURL:outputURL
                                                    fileType:AVFileTypeQuickTimeMovie
                                                       error:&amp;outError];
  BOOL success = (assetWriter != nil);
  </code></pre>
  
  <p>Again, looking for some guidance on exactly where it is I want to save the video!</p>
  
  <p>Cheers,
  Brendan</p>