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: trouble opening sequence grabber



The issue was actually the fact that I am using Windows, and apparently
QT won't speak directly w/ Windows drivers. (the channel type was just
one of many different values I was using to try and get it to work; the
component type didn't work either).

Thanks anyway!


-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of
QuickTimeAPIDigest
Sent: Sunday, September 29, 2002 8:02 PM
To: email@hidden
Subject: RE: trouble opening sequence grabber

>Message: 3
>From: "Rick Lane" <email@hidden>
>To: <email@hidden>
>Subject: RE: trouble opening sequence grabber
>Date: Sat, 28 Sep 2002 12:39:21 -0700

>SeqGrabComponent gSeqGrabber;
>
>
>Then, in a function similar to HackTV's InitializeSequenceGrabber, I
>say:
>
>gSeqGrabber = OpenDefaultComponent(SeqGrabChannelType, 0);
>
>This always returns null, as does OpenComponent (which takes in the
>result of a FindNextComponent call (which seems to be working
>properly)).
>
>I can't seem to figure out why this possibly would not be working

Hi Rick,

You want to use SeqGrabComponentType not SeqGrabChannelType - take a
look at
InitializeSequenceGrabber() again and you'll see that very small
difference.

The sequence grabber uses the the services of lower-level components,
called
channel components, to obtain digitized data from different sources, you
can
create a new channel using SGNewChannel which will take the returned
SeqGrabComponent as it's first parameter.

So, something like this:

SeqGrabComponent seqGrab;
SGChannel sgchanVideo;

seqGrab = OpenDefaultComponent(SeqGrabComponentType, 0);
if (seqGrab != NULL) {
// initialize the default sequence grabber component
err = SGInitialize(seqGrab);
...
err = SGNewChannel(seqGrab, VideoMediaType, &sgchanVideo);
etc.
}

SGDataProcSample is also another example you can check out.
http://developer.apple.com/samplecode/Sample_Code/QuickTime/Capturing/SG
DataProcSample.htm

later,
edward

-------------------------------------
Edward Agabeg
QuickTime & Audio
Developer Technical Support Engineer
Worldwide Developer Relations
Apple

http://www.apple.com/developer
http://www.apple.com/quicktime

QuickTime 6, we're gonna need a bigger boat!

-- This message was sent from a personal account --
-- All views are mine and not necessarily shared by my employer --
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.



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.