CTEC607 #16
Once Arduino received the signal from the encoder, Stefan and I used the readings to calculate a velocity (direction and speed). I sent this information as serial to Processing.Â
In my first iteration within Processing, I set up a program using processing video library to loop video. The video library allows playback speed to be controlled. It is supposed to be capable of reversing video also, however myself and many other processing users have difficulty employing this functionality.Â
In my second iteration, I used After Effects to create a reversed copy of the loop. The forward and backward loops play simultaneously, and processing switches based on the received serial from Arduino.
In my third iteration, I made the tracked time of the backwards loop inversely proportionate to the forwards loop. This way the loop always played seamlessly regardless of direction or when the direction changed.Â
Overall, I am very happy with the code efficiency, however Processing does not handle large video (or any video) elegantly. Regardless of the resolution and framerate of the film, it outputs with heavy stutter and bad framerate. I managed to curtail this by reducing the resolution and framerate from the intended 1080p at 60fps to 360p at 30fps. The final output was unfortunately quite stuttery, but given the closeness to open studio, we elected to leave it in it current state.Â
In hindsight, I feel that either preloading the videos in processing through an add-on, or using a different application would be prudent.









