Genre not found
Artist not found
Album not found
Song not found

javascript void;
Séverin Lyrics


No lyrics text found for this track.

The lyrics can frequently be found in the comments below, by filtering for lyric videos or browsing the comments in the different videos below.
Most interesting comments from YouTube:

oooBASTIooo

Do I have to somehow enable the camera to record? I'm using windows and I always get a black screen. I can see that the camera is on, though (the green light is on). I verbatim used the code provided here and on the Processing website:

import processing.video.*;

Capture video;

void setup(){
size(600,400);
video = new Capture(this);
video.start();
}

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

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


Any ideas what might go wrong? I assume it has nothign to do with processing, but rather with windows.



hieu pham

Hello Daniel.
Thank you so much for your series of video. Please tell me how we can get live image from external USB camera?
I have a 3iCube USB3.0 vision camera and I already installed all drivers, but when I plug it to my PC I can not get the live image from this camera.
When I add these code as below, console always shows: "there are no cameras". Please help me.

void setup() {
size (640,480);
String[] cameras = Capture.list();
if (cameras.length == 0) {
println("there are no cameras");
} else {
println("Available camera");
for (int i = 0; i<cameras.length; i++) {
println(cameras[i]);
}
}



GMA FB

+Daniel Shiffman
Hello Daniel! First of all thank you! For you time and your excellent work!
I don´t know what i am doing wrong, i can capture video with my camera (usb), that works perfect, but i can´t save anything! I am going to copy what I am doing for if you could help me.
Thank you so much again in advanced!






import processing.video.*;

Capture cam;

void setup() {
size(640, 480);

String[] cameras = Capture.list();

if (cameras == null) {
println("Failed to retrieve the list of available cameras, will try the default...");
cam = new Capture(this, 640, 480);
} if (cameras.length == 0) {
println("There are no cameras available for capture.");
exit();
} else {
println("Available cameras:");
printArray(cameras);

// The camera can be initialized directly using an element
// from the array returned by list():
cam = new Capture(this, cameras[0]);
// Or, the settings can be defined based on the text in the list
//cam = new Capture(this, 640, 480, "Built-in iSight", 30);

// Start capturing the images from the camera
cam.start();
}
}

void draw() {
if (cam.available() == true) {
cam.read();
}
image(cam, 0, 0, width, height);
// The following does the same as the above image() line, but
// is faster when just drawing the image without any additional
// resizing, transformations, or tint.
//set(0, 0, cam);
}

boolean recording = false;

void setup() {
size(480, 270);
}

void draw() {
background(0);

// An arbitrary oscillating rotating animation
// so that we have something to render
for (float a = 0; a < TWO_PI; a+= 0.2) {
pushMatrix();
translate(width/2, height/2);
rotate(a+sin(frameCount*0.004*a));
stroke(255);
line(-100, 0, 100, 0);
popMatrix();
}

// If we are recording call saveFrame!
// The number signs (#) indicate to Processing to
// number the files automatically
if (recording) {
saveFrame("output/frames####.png");
}

// Let's draw some stuff to tell us what is happening
// It's important to note that none of this will show up in the
// rendered files b/c it is drawn after saveFrame()
textAlign(CENTER);
fill(255);
if (!recording) {
text("Press r to start recording.", width/2, height-24);
}
else {
text("Press r to stop recording.", width/2, height-24);
}

// A red dot for when we are recording
stroke(255);
if (recording) {
fill(255, 0, 0);
} else {
noFill();
}
ellipse(width/2, height-48, 16, 16);
}

void keyPressed() {

// If we press r, start or stop recording!
if (key == 'r' || key == 'R') {
recording = !recording;
}
}



TheGBsXB

import processing.video.*;

Capture video;

void setup() {
size(640, 360);

video = new Capture(this, 640, 360, 30);
video.start();
}

void draw() {

loadPixels();
video.loadPixels();
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
pixels[x + y * width] = video.pixels[(width - 1 - x) + y * width];
}
}
updatePixels();
}

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



Numero7 Mojeangering

this is my code :

import processing.video.*;

Capture video;

void setup() {
size(1280, 720);
video = new Capture(this, 1280, 720, 30);
video.start();
}

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

void draw() {
background(0);
image(video, 0, 0, width, height);
}



All comments from YouTube:

Brastin3

I absolutely love your videos. The way you act and everything just makes it a lot more fun, and it feels like there is a genuine person teaching you.

hú hú

thank you for your hard working for this tutorial. fan from vietnam <3

DeathTrap

I'm trying so hard to wrap my head around all of this but I'm not very good at coding. Amateur at best. I tried to copy everything exactly but my sketch won't run and access my camera.

Simon Nitzsche

xD my image is flashing.
I should continue the video :P

mvsmith051

Daniel, thanks for everything you've done. I love Processing. Nice to see what you look like. You are like a thin, fuzzy, bearded god to me...8)

Cam Ha Chau

Awesome Video! learned alot from this video. Can i have a link to your Particles exercise? thanks a lot.

Randios187

Maybe this is covered in one of your other amazing tutorials, or maybe someone here in the comments could help, but is there a way to use something like a live feed of a second monitor as the video in this kind of application? The closest thing I've found is using PImage with java.awt.Robot to take successive screen captures.

MissCherry

I've been waiting for this channel to come out all my life <3. Thankyou Daniel SOOO MUCH, I read your beginner's guide to Proceesing book and it litterally saved my life. There's just one matter about working with the webcam that I can't seem to figure out; How do you MIRROR the image??? You have a few examples in your book but they all involve editing the image with different effects...So I can't seem to figure out what function I should call out in order for my webcam image WITH NO EFFECTS ON WHAT SO EVER to just simply REVERSE it's self like a mirror??? Thankyou in advance. I deeply admire you <3

John Canniff

best drawing of a camera ever :) all jokes aside, these vids are excellent.

The Coding Train

+John Canniff thanks so much!

More Comments