Mailing Lists: Apple Mailing Lists

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

RE: Grab image of individual frame from QuickTime ActiveX?



Title: Re: Grab image of individual frame from QuickTime ActiveX?
I suppose John knows what he says, since he wrote that control
 
btw, I think he means you talk to the QTMovie object, not to the ActiveX control itself. First call the appropriate method to get a QTMovie object from the control (maybe called getMovie), then talk to the QTMovie object as John suggested below
 
cheers,
George
 
----------------
George Birbilis (email@hidden)
Microsoft MVP J# for 2004-2006
* QuickTime, QTVR, ActiveX, VCL, .NET
http://www.kagi.com/birbilis
* Robotics PhD student
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup

Thanks for the suggestion -- but is there any way to do this from the QuickTime ActiveX control?
 
(CopyFrame(...) isn't documented for the ActiveX control, and results in a "not found" error if I try to use it with int  or VARIANT or no argument.)
 
Like I said, maybe I need to bite the bullet and go to the C++ API...
 
Sam


From: John Cromie [mailto:email@hidden]

At 20:05 23/02/2006, Sam Dutton wrote:
>I'm using the QuickTime ActiveX control in a Windows XP C++ app using
>the Qt framework.
>
>Is there any way to get an image of a single frame? I'm doing
>screengrabs for the moment, which is pretty hacky, though it works fine
>(just for a preview).

One way is to use the CopyFrame(VARIANT Time) method of QTMovie to
put a grab of the specified frame on the clipboard. Then in Qt you
can easily use QApplication::clipboard() (or the Win32 clipboard
functions) to get the image in a useable format.

Something like:

     VARIANT vTime;
     VariantInit(&vTime);
     V_I4(&vTime) = 0;      // or whatever movie time you want e.g. PosterTime

     movie->CopyFrame(vTime);

     QPixmap pm = QApplication::clipboard()->pixmap();
     if ( !pm.isNull() )
     {
         // Draw movie frame, etc.
     }

Hope this helps.

 



avast! Antivirus: Outbound message clean.

Virus Database (VPS): 0609-0, 27/02/2006
Tested on: 27/2/2006 8:29:22 ìì
avast! - copyright (c) 1988-2005 ALWIL Software.


 _______________________________________________
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

References: 
 >RE: Grab image of individual frame from QuickTime ActiveX? (From: "Dutton, Sam" <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.