Cannot load MP4 video

edited November 2014 in Questions about Code

Hello.

Started using Processing today, I want to use it to play with video.

Processing 2.2.1 x64 / Win 8.1 x64

Perhaps someone can tell me why the below code won't load the video? It is in the sketch directory, I have tried altering size() to half and quarter values, I have tried .mp4 and .MP4 - but Processing tells me that it "cannot load striplight.MP4". Thanks in advance.

 import processing.video.*;

    Movie test;

    void setup() {
      size(1920, 1080);
      background(0);
      test = new Movie(this, "striplight.MP4");
      test.loop();
      test.volume(0);
    }

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

    void draw() {
      image(test, 0, 0, width, height);
    }
Tagged:

Answers

Sign In or Register to comment.