# How can I cut webcam video?

**URL:** https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162
**Category:** Libraries
**Created:** [June 25, 2020, 3:16pm UTC](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162 "2020-06-25T15:16:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hannah](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hannah](https://discourse.processing.org/u/hannah)
#### Post date: [June 25, 2020, 3:16pm UTC](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162/1 "2020-06-25T15:16:10Z")

</div>

Hi, I wonder if there is any way to cut webcam video as if other adobe programs can.  
I know how to resize webcam but I would like to make several live webcam video with one webcam so that I can control each video. Is there any way I can do this?

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [June 25, 2020, 9:34pm UTC](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162/2 "2020-06-25T21:34:23Z")

</div>

Hi,

Welcome to the forum! 🙂

I didn’t quite understand your question. Do you want to store multiple clips from your webcam then play them at different time?

Anyway you should check this tutorial :

- [https://processing.org/tutorials/video](https://processing.org/tutorials/video)

---

<div class="post-metadata">

### Author: ![hannah](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hannah](https://discourse.processing.org/u/hannah)
#### Post date: [June 26, 2020, 12:50am UTC](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162/3 "2020-06-26T00:50:10Z")

</div>

Oh, sorry! my bad.  
I mean, what I want is, for example, even though the web cam’s capturing the whole face of mine, only one eye or lips can be seen in the processing video not the whole face!  
I think the function is similar with crop tool in Photoshop.

Thank you!

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [June 27, 2020, 9:47pm UTC](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162/4 "2020-06-27T21:47:32Z")

</div>

Oh ok, what you need is the `get()` function :

- [get() / Reference / Processing.org](https://processing.org/reference/get_.html)

From the documentation :

> Reads the color of any pixel or grabs a section of an image. If no parameters are specified, the entire image is returned. Use the **x** and **y** parameters to get the value of one pixel. Get a section of the display window by specifying additional **w** and **h** parameters.

---

<div class="post-metadata">

### Author: ![hannah](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hannah](https://discourse.processing.org/u/hannah)
#### Post date: [June 30, 2020, 12:24am UTC](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162/5 "2020-06-30T00:24:08Z")

</div>

Gosh, thanks a lot!  
This is what I wanted!
