Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Video capture issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Video capture issues



<SNIP>


The code that I am using to configure the sequence grabber is below, and compiles without warning.

-(void)configureSequenceGrabber
{
grabber = OpenDefaultComponent(SeqGrabComponentType,0);

SGInitialize(grabber);

SGSetDataRef(grabber,0,0,seqGrabDontMakeMovie);


SGNewChannel(grabber,VideoMediaType,&videoChannel);
SGNewChannel(grabber,SGAudioMediaType,&audioChannel);

SGSetChannelUsage(videoChannel,seqGrabRecord);
SGSetChannelUsage(audioChannel,seqGrabRecord);

SGSetDataProc(grabber,&GrabberDataProc, (long)self);

SGStartRecord(grabber);

[self taskGrabber];

First problem - you're not checking for errors.  You don't know what's succeeding and failing.

Second thing - does -taskGrabber just call SGIdle?  You're not ever going to get anything out of Sequence Grabber if you don't give it regular idle time (like 30-60 idles per second).  You need to kick off a timer in which you call SGIdle, otherwise your data proc will never be called, because all the source video/audio is being dropped.

-Brad Ford
QuickTime Engineering
 _______________________________________________
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

References: 
 >Video capture issues (From: Adam Chester <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.