# A single sketch for saving video's frames and storing them in an array

**URL:** https://discourse.processing.org/t/a-single-sketch-for-saving-videos-frames-and-storing-them-in-an-array/3126
**Category:** Processing
**Created:** [August 31, 2018, 3:07am UTC](https://discourse.processing.org/t/a-single-sketch-for-saving-videos-frames-and-storing-them-in-an-array/3126 "2018-08-31T03:07:08Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [August 31, 2018, 3:33am UTC](https://discourse.processing.org/t/a-single-sketch-for-saving-videos-frames-and-storing-them-in-an-array/3126/6 "2018-08-31T03:33:08Z")

</div>

I would probably just stick with two sketches. In fact that’s exactly what I did for my [Movie Colors](https://discourse.processing.org/t/movie-color-visualization/2285) project.

I wouldn’t worry too much about “efficiency” with this kind of thing. Keeping your code simple and easy to work with is generally much more important.

If you really need to do it in one sketch, then you can do something like play the movie at 10x speed to get the frames at startup.

---

_[View the full topic](https://discourse.processing.org/t/a-single-sketch-for-saving-videos-frames-and-storing-them-in-an-array/3126)._
