Home › Forums › Syphon › Syphon Development – Developer › Manual UVC exposure webcam control – Help with combining this code
- This topic has 7 replies, 3 voices, and was last updated 8 years, 11 months ago by
mrmaarten.
-
AuthorPosts
-
April 16, 2012 at 6:42 am #5848
mrmaarten
ParticipantHi all!
now and again I run into the need to use USB webcams and to fix their exposure settings so they stay reliable in installation situations.
On the internet I ran into a Xcode project that does exactly that: grabs a USB device and it lets you set the exposure etc manually.
here is the link:
http://www.phoboslab.org/log/2009/07/uvc-camera-control-for-mac-os-x
code:
http://www.phoboslab.org/files/misc/camera-control.zipNow I want to send this image via a syphon server to a syphon client. Pretty straightforward I suppose, but my xcode skills aren’t there yet….
Could somebody help me/ do it? I think it would be of great help for the community to have such an app as a standard tool.
Thanks in advance for thinking along,
Maarten
April 16, 2012 at 10:58 am #5849bangnoise
KeymasterAdd a QTCaptureDecompressedVideoOutput as a connection to the QTCaptureSession, and create an OpenGL texture from the frames you receive from that using the Apple extensions for fast texture backing (or if you’re lucky you might receive CVTextureBuffers already). Feed that texture to a SyphonServer as per the Syphon documentation and sample code.
April 16, 2012 at 12:30 pm #5850mrmaarten
ParticipantThanks for the reply Bangnoise, but I personally don’t have any idea how to do that (I only have experience in Jitter)… would you like to give it a try, so we can post the result here?
I think it would make a great tool for all kinds of uses where manual exposure of a webcam is really important. This way the result can be send to any programma being able to receive syphon…
thanks,
MaartenApril 16, 2012 at 1:19 pm #5851bangnoise
KeymasterI’m too busy but maybe someone else will bite…
April 16, 2012 at 2:45 pm #5852vade
KeymasterSo make it in jitter. Im 95% sure you can use the same controls on web cams for adjustments.
April 16, 2012 at 2:53 pm #5853mrmaarten
ParticipantHi Vade,
yeah I was thinking the same, but I could figure out how to make it work. Also I thought this way it is of benefit to a lot more people, as this would be a general purpose app that takes a webcam image, let you set the manual controls, and then send it to any app on your mac.
Wouldn’t you agree?
April 16, 2012 at 3:07 pm #5854vade
KeymasterKeep trying.
April 16, 2012 at 4:31 pm #5855mrmaarten
ParticipantWell Vade if you are so sure that it feasable in Jitter, I am willing to try again and post my results in the forum there.
In the meantime I do think it would make a great general tool, like the recorder app. I would like to make it myself, but I just don’t have the time now to learn xcode and objective c…
Maybe in the future, maybe someone else finds it useful… We’ll see
Thanks for the help thus far
M
-
AuthorPosts
- You must be logged in to reply to this topic.