We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello I am trying to play a Video in my programm, but the audio is asynchronous. What did i worng?
import processing.video.*;
Movie movie;
void setup(){
size(500,500);
movie = new Movie(this,"Spieler 1_x264.mov");
movie.play();
}
void draw(){
image(movie,0,0,width,height);
}
void movieEvent(Movie m){
m.read();
}
Answers
code looks ok.
which means it probably depends on the file, which we don't have...
At the normal Videoplayer it works fine
try instead of image(movie,0,0,width,height); better
image(movie,10,10);
@Chrisir I tried this alredy. It didn't help.
But thanks for the reply.
Hm.
image() mit 5 parametern ist sehr rechenintensiv und sollte vermieden werden.
(Wenn der Film nicht schon diese Größe von 500x500 besitzt)