processing / processing-video

GStreamer-based video library for Processing
274 stars 130 forks source link

loading video on Catalina not working #142

Open kukovisuals opened 4 years ago

kukovisuals commented 4 years ago
// Example 16-4: Display QuickTime movie

import processing.video.*;

// Step 1. Declare Movie object
Movie movie; 

void setup() {
  size(520, 520);
  background(0);

  // Step 2. Initialize Movie object
  // Movie file should be in data folder
  movie = new Movie(this, "betty.mp4"); 

  // Step 3. Start movie playing
  frameRate(30);
  movie.loop();

  println("movie.frameRate: "+movie.frameRate);
  movie.volume(0);
}

// Step 4. Read new frames from movie
void movieEvent(Movie movie) {
  movie.read();
}

void draw() {
  // Step 5. Display movie.
  image(movie, 0, 0);
}

If i try it with the transit.mov or launch2.mp4(videos form the example folder) it works fine. The only difference with my video and the once from the library are: MY VIDEO codecs: H.264, AAC Color profile: HD(1-1-1) LIBRARY'S codecs: H.264 Color profile: SD(6-1-6) There is no error or anything its just not reading it. The video is in the data folder, I have tried the whole path but no luck when I print the movie.frameRate = -1 Thank you.