# Reordering a chopped-up video (crop images from frames)

**URL:** <https://discourse.processing.org/t/reordering-a-chopped-up-video-crop-images-from-frames/30567>\
**Category:** Libraries\
**Created:** [June 8, 2021, 8:55am UTC](https://discourse.processing.org/t/reordering-a-chopped-up-video-crop-images-from-frames/30567 "2021-06-08T08:55:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mat100](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Mat100](https://discourse.processing.org/u/Mat100)\
**Post date:** [June 8, 2021, 8:55am UTC](https://discourse.processing.org/t/reordering-a-chopped-up-video-crop-images-from-frames/30567/1 "2021-06-08T08:55:12Z")

</div>

Hi, I’m a total noob at Processing.

I presume this is possible but it would be good to have it confirmed before I start. 🙂

I want to cut rectangles from random frames in an existing video to construct a new video.

For example if I have a 1000x500px video with 100 frames; for frame 1 of my new video I want the top left rectangle (500x250px) to be from a random frame (e.g frame 77) of the referenced video, then the top right rectangle to be from another random frame (e.g frame 23), etc with the bottom left and right rectangles. That is for frame 1, then repeat with frame 2 etc until I’ve build up my new (chopped and reordered) 100 frame video.

So I guess this boils down to…  
1 can I access individual frames from a video?

2 And can I cut and paste from that frame into a new frame/ image, and paste from another different frame into the same image?

Many thanks 😊

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [June 8, 2021, 8:45pm UTC](https://discourse.processing.org/t/reordering-a-chopped-up-video-crop-images-from-frames/30567/2 "2021-06-08T20:45:27Z")

</div>

Yes, we can

Check out: [Movie::play() \ Language (API) \ Processing 3+](https://www.processing.org/reference/libraries/video/Movie_play_.html)

Hey, and welcome to the forum!

Great to have you here!

Warm regards,

Chrisir

---

<div class="post-metadata">

**Author:** ![Mat100](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Mat100](https://discourse.processing.org/u/Mat100)\
**Post date:** [June 10, 2021, 2:20pm UTC](https://discourse.processing.org/t/reordering-a-chopped-up-video-crop-images-from-frames/30567/3 "2021-06-10T14:20:17Z")

</div>

Hi Chrisir,

Thanks for the warm welcome and reply!

Great, good to know, and thanks for the link, it would have taken a long time to find the specific library.  
I see that in here…  
[processing.org/reference/libraries/video/Movie\_jump](https://processing.org/reference/libraries/video/Movie_jump_.html)  
you can jump to a section by specifying seconds; is there a way to jump to a specific frame instead/ advance frame by frame?

Many thanks

Mat

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [June 10, 2021, 3:22pm UTC](https://discourse.processing.org/t/reordering-a-chopped-up-video-crop-images-from-frames/30567/4 "2021-06-10T15:22:12Z")

</div>

> [@Mat100](#):
>
> you can jump to a section by specifying seconds; is there a way to jump to a specific frame instead/ advance frame by frame?

I don’t know.

Did you try to, I don’t know, gather all images from the movie in an array ?

---

<div class="post-metadata">

**Author:** ![Mat100](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Mat100](https://discourse.processing.org/u/Mat100)\
**Post date:** [June 10, 2021, 4:06pm UTC](https://discourse.processing.org/t/reordering-a-chopped-up-video-crop-images-from-frames/30567/5 "2021-06-10T16:06:06Z")

</div>

Good tip thanks, I’ll give it a go…

Thanks
