Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Poster frame export to image



Hello, 

I want to programmatically export the poster frame in a .mov video file to
an image (JPEG, TIFF etc.). The video track in the MOV can use (say) H264
or MPEG4-video compression. Can someone please point me to the correct API
to use for *decoding* the poster frame to a common format so that the
image exporter can work on it? 

According to my current (rather imperfect) understanding, the approximate
steps as seen from a C program are : 

1 Get PicHandle for poster frame
  - GetMoviePosterPict(myMovie)

2 Open an importer (how do I pick the subtype?)
  - OpenDefaultComponent(MovieImportType, XXX);

3 Convert PicHandle to a usable format
   [video codec decoding?]

4 Export image to a JPEG, PNG or TIFF
   - GraphicsImportExportImageFile()
   - GraphicsImportSetDataHandle()

If someone could sanity check the steps and fill in the critical #3, it
would be great. 

Many thanks,
Siddharth

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

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 © 2007 Apple Inc. All rights reserved.