I want to play a video in Processing for the purpose of storing the frames in a folder and then storing those frames in an array so I can upload them into the sketch for further manipulation.
The problem is that playing and saving the video’s frames happen inside draw(), whereas storing the frames in an array occurs inside setup() (I can’t store them in an array before breaking the video into consecutive frames).
Does anyone have an idea how I can combine them in a single sketch? Is that possible?
Can you do it in two separate sketches? Create one sketch that processes the video into image files, and then another sketch that loads the image files.
If that won’t work, can you please post a MCVE that shows what you’re trying to do?
Thanks @Kevin, yes I currently have two separate sketches but I was wondering if it was possible in any way to combine them for the sake of efficiency…