Take the 2-minute tour ×

I want to display the (static) first frame of a video in my app as a preview.

I have read through this thread and understand that I could use a thumbnail :

Getting thumbnail from a video url or data in IPhone SDK

I have two questions :

1) What is the resolution of the thumbnail ? I am looking to make the preview a 4:3 format and wonder if the image will end up looking blurry if enlarged.

2) Does the resolution of the thumbnail differ for iPhone / iPad ?

3) Is there a better way to grab and display the first frame of a video ?

Thank you.

share|improve this question
image.size will get you the size of the image. –  Ankit Srivastava Apr 18 '12 at 12:16
add comment

1 Answer

up vote 7 down vote accepted

Following code may helping to you

NSString *str = [[self.vedioArray objectAtIndex:i] valueForKey:@"vName"];
    NSURL *videoURL = [NSURL URLWithString:str] ;
    MPMoviePlayerController *player = [[[MPMoviePlayerController alloc] initWithContentURL:videoURL]autorelease];
  UIImage  *thumbnail = [player thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame];
    player = nil;


Following link is use for the how to fetch the thumbnail from video

share|improve this answer
Thanks Neon - this may be a stupid question, but is it possible to use that framework in an existing project ? It assumes you are going to create a new project. –  GuybrushThreepwood Apr 18 '12 at 15:36
add comment

Your Answer


