Recently I made a piece with oF wherein I controlled a webcam’s image with five different delay sizes using a MIDI violin in realtime. I asked a lot of questions here and you were all of great help. It was a difficult problem, but I was able to do it using ofxTurboJpeg, recommended by @zach , and PureData for the audio, linking the two via OSC.
Aside from the delay, the only effect I used was a blur shader, applied to each of the five images individually.
I’m very happy with how it turned out. However, I’ve hit a technical wall, with it only running at a stable 20FPS on my computer. Trying to do anything else with it in the future will be difficult without further lowering the framerate.
So one idea is to handle the video delay buffers with external hardware to take some of the burden off of my computer.
@fresla , you’ve encouraged me to try using regular video cameras (ie. not webcams) with Black Magic Hyperdecks for the delay. I guess I’d need more than the two recorders you mentioned in your post to realize multiple delays at once?
Another idea is to start learning Rasberry Pi and hook up cameras into that to handle the delay. It might take more time to get working, but I’d acquire a new skill that and the devices would be more customizable.
However, I just now tested the performance of my app to estimate how it would perform if I were to handle the delays with external hardware…
I turned off the recording of JPEGs, so now it’s only loading pre-recorded ones. I also removed the webcam from the code. The resulting highest stable fps is: 25fps with 5 images drawn at once, a modest five frame improvement.
Loading the JPEGs but not applying the blur and not drawing them gives a result of 45fps.
So the question is: Would bringing in 5 pre-delayed images via capture card make the project run substantially faster than using ofxTurboJpeg on my computer?
Also, would such a performance improvement hold true even if using a laptop, which would require a USB-HDMI adapter? (in that case, I could try to send a 4k image into oF and then divide it up there)
I was recently reading about Nam June Paik and Abe Shuya’s Video Synthesizer that they made in the 60’s that processed seven videos inputs at once… of course, it was a gigantic device, but it made me more cognizant of how powerful specialized hardware can be compared to even today’s standard laptops. Just eager for advice on what hardware is best to combine with oF’s powerful creative toolkit.