We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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);
}
Answers
Solved it myself. Assets need to be in a folder named 'data', within the sketch directory. All sorted.
Hi rrymc. Found your comment searching for tools with video capabilities ... Curious what you're using it for? I'm doing art.
You might enjoy a these, just for fun -- http://www.jaanga.com/2013/09/folding-polygons-naughty-way-in-3d-with.html Line 47 -- view-source:http://jaanga.github.io/cookbook/video-surfaces/r2/discombobulated-plane.html
https://www.youtube.com/user/Semasiographologist/videos