Movie

edited January 2018 in Library Questions

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();
}
Tagged:

Answers

  • code looks ok.

    which means it probably depends on the file, which we don't have...

  • At the normal Videoplayer it works fine

  • edited January 2018

    try instead of image(movie,0,0,width,height); better

    image(movie,10,10);

    • image with 5 parameters might cause a lag
  • @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)

Sign In or Register to comment.