I'd highly suggest you look into QTKit Capture classes. Its not too
hard to get an image from them and supply it as a value for a
published input image key. This way you can supply a User interface of
your own design to select the capture device.
The basic idea is you create your own GL context and pixel format, and
init a QCRenderer using those and a QCComposition with published input
image port.
When rendering, take an appropriate image from your QTCapture session
output, and call [myQCRenderer setValue:someImageFromQTKitCapture
forKey:@"thePublishedImageKey"] and then call [myQCRenderer
renderForTime:someTime withArguments:someOptionalArgs];
Thats basically it.
QCRenderers can take a variety of image formats natively (see : http://developer.apple.com/technotes/tn2005/tn2143.html)
, and will handle the conversion to an optimal internal format *for
you*. But you are still best off sticking with minimal conversion for
speed. For QTKit, i *think* the best option is to deliver a
CVOpenGLTextureRef via QTVisualContextCopyImageForTime. You can use
the QTKit Capture session output class QTCaptureVideoPreviewOutput and
use its setVisualContext: forConnection: method to connect the
QTCaptureVideoPreviewOutput to your OpenGL/QTVisualContext for speed.
The Video Input patch in QC is severely lacking in the fact that you
can not query for video devices nor programatically set them..
On Jan 27, 2009, at 4:54 AM, Anshul jain wrote:
but the setting depends upon the number of video input connected to
PC and it can change
On 26-Jan-09, at 7:31 AM, Michal Antonic wrote:
You can load a different composition to QCView (with a different
setting) when needed.
However, the ability to change settings of already loaded
compositions directly would be greatly appreciated.
Miso
On 22.1.2009, at 7:21, Anshul jain wrote:
For capturing LiveVideo i am using Quartz composition example
MiniBooth.We can change video device from the composition (Video
Input-> settings). But i will like the user to change it from the
application. How can we do that.....? Any suggestions are
welcomed.....
Thanks!
Anshul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected]
)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/misoantonic%40gmail.com
This email sent to [email protected]
Thanks & Regards
Anshul jain
[email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected]
)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/doktorp%40mac.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]