I'm new to PD, and to be honest, not the best programmer, so I am wondering if PD would be able to do the following -

I want to play a video file (AVI, MPeg, format is not too critical to me), and then have, at certain various frames, an Ardunio trigger a mosfet.

On the surface, this seems pretty simple. Play the video --> Send the current frame info out --> look for these frames ---> if you find frame X then trigger this port on the Arduino.

I have a feeling I am oversimplifying this though, and am wondering if I am overestimating the ease of this. I haven't so far been able to find an object or patch that will do anything like that frame count.

Will Pd (and I guess GEM really) be able to handle this kind of activity?