Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
thumbnails from QuickTime movies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

thumbnails from QuickTime movies



I have some experience with this.

I would not waste your time doing a canInitWithFile:; that used to actually take a fair amount of time (if I remember correctly, it does much of the work of initing the movie) - just go ahead and make the movie as cheaply as possible, since you're not going to play it, just getting a thumbnail:

NSNumber* no = [NSNumber numberWithBool:NO];
NSDictionary* dict = [NSDictionary dictionaryWithObject:no, andKey:QTMovieIsActiveAttribute];
QTMovie* srcMovie = [[QTMovie alloc] initWithAttributes:dict error:&error];


and once you get the thumbnail, I would reduce it (say to 256 wide) and save it to disk as a JPEG. You can read thumbnails out of QTMovies fast, but it's totally worth caching them.

Good luck.

--> Michael B. Johnson, PhD
--> http://homepage.mac.com/drwave (personal)
--> http://xenia.media.mit.edu/~wave (alum)
--> MPG Lead
--> Pixar Animation Studios



_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.