Thanks for your suggestion. I have tried it using QTCaptureLayer but
there is flickering if firewire video device is connected and when i
changes the bounds programmatically it freezes. I posted this problem
in Cocoa list and i was told that its a bug which is fixed in snow
leopard.
So i thought of using Quartz Composer.
Now i am using CAOpenGLLayer to show the output of QTCaptureSession.
Thanks!
Anshul
On 28-Jan-09, at 3:26 AM, George Toledo wrote:
Sorry if this is out of place, but I beseech the powers that be at
Apple to take as much stuff OUT of settings as possible with the
next OS update, and make them input parameters. Perhaps a check box
in traditional settings scenarios that could move whatever Apple
*thinks* should be relegated to settings, so that when you "check"
the box, it becomes a input parameter.
Again, apologies all around, as this comment is another one of my
pie in the sky scenarios.
-George Toledo
On Tue, Jan 27, 2009 at 3:40 PM, vade <[email protected]> wrote:
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/gtoledo3%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/archive%40mail-archive.com
This email sent to [email protected]