# Two problems of using video capture

**URL:** <https://discourse.processing.org/t/two-problems-of-using-video-capture/37801>\
**Category:** Libraries\
**Created:** [July 3, 2022, 2:10am UTC](https://discourse.processing.org/t/two-problems-of-using-video-capture/37801 "2022-07-03T02:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yifan](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yifan](https://discourse.processing.org/u/Yifan)\
**Post date:** [July 3, 2022, 2:10am UTC](https://discourse.processing.org/t/two-problems-of-using-video-capture/37801/1 "2022-07-03T02:10:18Z")

</div>

Hello guys, yesterday I first tried to use video capture. I ran the example code in Daniel Shiffman’s book, learning processing, to display live video. **But, the live video displayed is very choppy and laggy, meanwhile, the screen color is so weird.** I don’t know why, so I post my problem here, looking for a solution to make the live video displayed normal.

The code is as followed:

```auto
import processing.video.*;

Capture video;

void setup() {
  size(320, 240);
  println(Capture.list());

  video = new Capture(this, 320, 240);
  video.start();
}

void captureEvent(Capture video) {
  video.read();
}

void draw() {
  image(video, 0, 0);
}

```

Here is a screenshot of the live video displayed, using video capture.

 ![1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/3/e/3ec43636f23f5fe944d58440ef2c069819dfa085.jpeg)

The reason for this problem may be that I do not configure processing properly, so here I list all the operations I have made before using video capture.

- I am using a Windows 10 computer.
- I am using Processing 4.0b8, and the video library version is 2.1.
- Based on the instructions in “learning processing”, I installed Quicktime 7 as well as WinVDIG\_101 before using video library.

By the way, I can display the recorded video normally, so I guess problem should only be concerned with Capture.
