How can I detect a movie orientation (portrait or landscape) or width and height of it? For example, when using UIImagePickerController:
- (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info {
if ([[info valueForKey:UIImagePickerControllerMediaType] isEqualToString:(NSString*)kUTTypeMovie]) {
NSURL *videoURL = [info valueForKey:UIImagePickerControllerMediaURL];
}
}
how can I get this information from videoURL?
Now I'm trying to locate a video thumbnail images in /tmp directory and work with them but this method is not stable.
Thanks in advance.