title: Record, save and/or convert video in mp4 format?
body: <p>I have the following problem - I am trying to create an app that records video, then save it to the camera roll and after that I am uploading that video to the web. The problem is that the only supported format is "mp4", but my videos are "mov". </p>
  
  <p>So my question is how to save video from camera in "mp4" format, or save it in "mov" and then convert it to "mp4".</p>
  
  <p>Here's my code:</p>
  
  <ul>
  <li><p>this is how I open the camera:</p>
  
  <pre><code>picker = [[UIImagePickerController alloc] init];
  picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  picker.delegate = self;
  picker.showsCameraControls = YES;
  picker.allowsEditing = YES;
  picker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
  [self presentViewController:picker animated:YES completion:nil];
  </code></pre></li>
  <li><p>this is how I save the video:</p>
  
  <pre><code>NSString *mediaType = [info objectForKey: UIImagePickerControllerMediaType];
  
  if (CFStringCompare ((__bridge_retained CFStringRef) mediaType, kUTTypeMovie, 0) == kCFCompareEqualTo)
  {
      NSString *moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];
      videoURL = info[UIImagePickerControllerMediaURL];
  
      if (UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(moviePath))
      {
          UISaveVideoAtPathToSavedPhotosAlbum(moviePath, self, nil, nil);
      }
  }
  [nextScreenButton setTitle:@"ПРОДЪЛЖИ" forState:UIControlStateNormal];
  [self dismissViewControllerAnimated:YES completion:nil];
  </code></pre></li>
  </ul>
  
  <p>Thanks in advance!</p>