pixelsortframes
pixelsortframes copied to clipboard
The last frame of a video gets dropped
I have a 28 frame video as input, which outputs 28 images, but the first frame is always this gray image:

This seems to be the case on any input video I try. I think it has something to do with the initialization stage for Processing. There may be a solution in looping once to get the first frame in the second pass, but that doesn't sound very elegant.
It turns out, the first frame is not part of the video, and the next file in the output is in fact the first frame. This means that the current code discards the last frame, and not the first.