The Quicktime model for devices like cameras does not work well with GEM.  Quicktime is designed to control all of the rates for audio and video (and final display) internally using clocks that are not accessible from the API.  Since Pd/GEM has its own rendering engine and clock, efforts must be made to try to reconcile the QT model with GEM.  Because video capture is a real time process there is no way to know which frame you are on (it&#39;s basically a one frame movie), so &#39;gimmieTheNextFrame() doesn&#39;t work, and the work around is to guess if you have a new full frame or not.  I think the technical term for this process is a &#39;hack&#39;.<br>
<br>If the device driver is being a bit of a bitch, I highly suggest using another device.  In particular professional video devices (DV cams, anything made by AJA or BlackMagic) work pretty well.  At least those are the devices I wrote the code for...<br>
<br><div class="gmail_quote">On Thu, May 3, 2012 at 10:46 PM, William Brent <span dir="ltr">&lt;<a href="mailto:william.brent@gmail.com" target="_blank">william.brent@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
I&#39;ve been banging my head against a wall trying to understand why I&#39;m<br>
getting duplicate frames from the PS3seye camera using the<br>
macam-cvs-build-2009-09-25 driver.  This is using Gem 0.93.3 with Pd<br>
vanilla 0.42-6 on a Macbook Pro 2.53 Ghz i5, OS 10.6.8.<br>
<br>
No matter what frame rate I set in the macam driver dialog via GEM, I<br>
get at least 2 duplicate frames.  The attached patch is the simplest<br>
case with single buffer mode for the gemwin.  When I bang the gemhead<br>
to see the next frame, I get duplicates using the PS3eye.  When I use<br>
the built in camera, no duplicates.  Can anyone with a similar setup<br>
confirm this?<br>
<br>
Thanks for any and all insight,<br>
William<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
William Brent<br>
<a href="http://www.williambrent.com" target="_blank">www.williambrent.com</a><br>
<br>
“Great minds flock together”<br>
Conflations: conversational idiom for the 21st century<br>
<br>
<a href="http://www.conflations.com" target="_blank">www.conflations.com</a><br>
</font></span><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>