|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Hello all: I’m hoping someone can help me with the following. I’m developing a video capture stack based on the
QuickTime SDK. I have multiple video input devices connected (1394 + USB).
I’m able to enumerate all the devices correctly, but unable to select a
specific device using the SGSetChannelDevice() function. Below is my code
snippet to do this. Any help would be most appreciated. err = EnterMovies(); gSeqGrab = OpenDefaultComponent(SeqGrabComponentType, 0); err = SGInitialize(gSeqGrab); err = SGNewChannel(gSeqGrab, VideoMediaType,
&gVideoChan); err = SGGetChannelDeviceList(gVideoChan,
sgDeviceListIncludeInputs, &gDeviceList); bHasInputDevices = ((*gDeviceList)->entry[i].flags) &
sgDeviceNameFlagShowInputAsDevices; theSGInputList = ((SGDeviceName*)(&((*gDeviceList)->entry[i])))->inputs; if (bHasInputDevices) { // I am able to build out the list correctly. Number
of inputs = (*gDeviceList)->count // Just for testing purposes, I try
to “bind” the first device I find. printf(“Device Name = \t%s\n”,
(*theSGInputList)->entry[0].name); // this does print out the correct
name in the console log… err = SGSetChannelDevice(gVideoChan,
(*theSGInputList)->entry[0].name); } SGSetChannelDevice returns an error of -50, which is
paramErr Invalid parameter value. Thanks for any insight provided. -Mike |
_______________________________________________ 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: | |
| >Codec selection (From: "Simon Raisin" <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
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.