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: Live camera picture from SequenceGrabber using awt or OpenGL



Could someone please help to adapt this code to use an on-disk .mov file instead of sequencegrabber?
Basically I am looking for the fastest possible way to read QuickTime files into OpenGL's ByteBuffers.
I'm new to both and so any help in updating this example would be highly appreciated.. I tried substituting sg with a movieplayer throughout (and making related changes) but all I get is a black screen...
Thanks a lot..
-J
 
----
I present two ways of getting sequence grabber live images to screen. Both have been tested with my Logitech QuickCam. So I do not know, if the code works with other cameras. One method is using JOGL, (see http://today.java.net/pub/a/today/2003/09/11/jogl2d.html for a introduction to Java and OpenGL) and one that is based on awt's BufferedImage.

The basic steps are in common for both methods:
1. Set up the SequenceGrabber Component
2. Define a offscreen gWorld, where the SequenceGrabber may draw to
3. Configure the VideoChannel
4. Start previewing
5. Get the RawImage from the gWorld frequently, and bring it to the screen (either with awt or JOGL)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/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.