Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Unable to read big videos with processing 2.0.3

$
0
0
    import processing.video.*;
    import codeanticode.gsvideo.*;

    Capture myCapture;
    GSCapture cam;

    void setup()
    {
      size(1024, 768);
   
    
     myCapture = new Capture(this, width, height, 30);///with p5 videolibrary

      //cam = new GSCapture(this, width, height, 30);// with GS

      myCapture.start();
      ///cam.start();
    }
    void draw() {

      if(myCapture.available()){
   myCapture.read();
 image(myCapture, 0, 0);////works
  }
  }
   
//      if(cam.available()){
//       cam.read();
//        image(myCapture, 0, 0);//does nt work ::: resolution (1024/768) not supported by this device; the same with ///1.5.1:: works..........accepting without problem 1024/768!!!----Puzzling!
//      }
//    }
   
    void mousePressed(){
     
      myCapture.stop();
//cam.stop();
      myCapture.dispose();
//cam.dispose()
      background(0);
     
    }

Viewing all articles
Browse latest Browse all 1768

Trending Articles