I used pix_movement and blob for basic motion detection for years.  I gated the video signal so it would only output every half second or second because it is usually counter-productive to have 25 or 30 updates a second for this task.  <br>
<br>As to your problem, it might come from how your device/driver reports (or doesn&#39;t report) new frames.  Try setting the GEM framerate to the advertised frame rate of your device and see if that helps.  Note, that lots of webcams claim 30fps, but only deliver 15fps or less.<br>
<br><div class="gmail_quote">On Tue, Apr 5, 2011 at 7:53 AM, Matteo Sisti Sette <span dir="ltr">&lt;<a href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Bug 3191771 renders the combination pix_video+pix_movement useless in Mac OS unless you can lower gem&#39;s framerate to ensure it is lower than the camera&#39;s framerate (which is not always an option), or unless one finds some other workaround.<br>

<br>
The problem is that whenever a new frame from the camera is not available, pix_movement computes the new input frame as a black frame, and hence the resulting difference is almost all-white.<br>
<br>
Note that the problem is NOT that pix_movement computes the difference between two identical frames yelding a black frame as a result. It&#39;s worse: when the new frame is not available, it seems it considers it as an all-black frame, so the output is the difference between a real frame and a black frame. That causes white flickering, not black flickering.<br>

<br>
<br>
Does anybody use pix_movement and pix_video on Mac OS? How do you work around this issue?<br>
<br>
Ideally I would like to find a simple and easy-to-understand solution, because I am teaching a Pd course and I&#39;d like to give the students (most of whom use Mac) a workaround they can understand.<br>
<br>
Thank you in advance<br>
m.<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">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>
</blockquote></div><br>