title: Saving Video From Camera Roll to Documents
body: <p>How can I save a video selected from the camera roll to a specific destination? In my case I want to save the selected video to <code>destinationPath</code>. Also how can I get the duration of the video?</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>- (void) imagePickerController: (UIImagePickerController *) picker didFinishPickingMediaWithInfo: (NSDictionary *) info
  {
  
      // Video Path
      NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
      NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
      [dateFormatter setDateFormat:@"yyyy-MM-dd_HH-mm-ss"];
      NSString *destinationPath = [documentsDirectory stringByAppendingFormat:@"/output_%@.mov", [dateFormatter stringFromDate:[NSDate date]]];
  
      // Save Video
  
      // Get Video Duration        
  
      [self dismissViewControllerAnimated:YES completion:nil];
  
  }
  </code></pre>