movie = new Movie (this, "i.mov");

edited July 2016 in Library Questions

hello, i'm sorry this is a very basic question, but i'm all new in processing and trying to run a video in random jumping mode.

but it seams that i didn't knew how to install properly the video library...

please, what i have done wrong?

here is my code:

import processing.video.*;
Movie movie;

float[] cortes={
  5, 10.1, 20.7, 24.5, 32.5, 37.6, 42.8, 53.2, 55.7, 64.3, 72.3, 78,9
};

int trechoAtual;
int quantTrechos = 11;

void setup() {
  size(1020, 882);
  background(0);

  movie = new Movie (this, "komodenu.mov");
  movie.loop();
}

void movieEvent(Movie m) {
  m.read();
}

void draw() {
  if (movie.time()>cortes[trechoAtual+1]) {
    trechoAtual = int(random(quantTrechos-0.1));
    movie.jump(cortes[trechoAtual]);
  }
  image(movie, 0, 0, width, height);
}  

thanks

Tagged:

Answers

  • it still doesn't run... is the library I'm supposed to download the one called processing-video-master ? and, am I supposed to extract it to documents>Processing>sketchfolder ? I think I did it, but it still doesn't work...

  • Operating system?

    Please post the exact error

  • the import processing.video can not be resolved.

    No library found for processing.video Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.

  • Which version of Processing ?

    Are you on Windows?

    Did you install video lib? See post by gotoloop

  • the latest version, on Windows.

    I've seen the stepbystep, but I can't get it right... I've tried dozens of times to install it... what am I doing wrong?

    I have downloaded this processing-video-master.zip from github. and tried to save it all over those folders:

    Documents Processing examples libraries modes mysketch tools

    nothing seems to work... please help. where am I supposed to save the folder when I unzip it?

  • three similar threads. please don't do that.

    closing this.

This discussion has been closed.