If you want to save videos using UIImagePicker, you can easily save them to a photo album using:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info; { NSURL * movieURL = [[info valueForKey:UIImagePickerControllerMediaURL] retain];
This allows you to save it in the photo album and save the link to the movie for later use. I'm not quite sure that this is what you need, but it allows you to save movies.
EDIT: If you really want to save the "Movie to Documents" directory, just grab the above code and change the line:
UISaveVideoAtPathToSavedPhotosAlbum([movieURL path], nil, nil, nil);
to
NSData * movieData = [NSData dataWithContentsOfURL:movieURL];
This will give you the movie data, and from there you can write this data to the document catalog. Hope this helps!
source share