Video error on reverse on video library

PerPer
edited February 2016 in Library Questions

Hi!

Im made this sketch but as soon as I hit reverse on the videolibrary with help of negative movie.speed it causes a error. Any solution?:

(Processing core video:475): GStreamer-WARNING **: wrong STREAM_LOCK count 0

(Processing core video:475): GStreamer-CRITICAL **: gst_segment_set_seek: assertion `start <= stop' failed

import processing.video.*;

Movie movie; // Step 1. Declare Movie object

void setup() {
  size(560, 480);
  // Step 2. Initialize Movie object
  movie = new Movie(this, "test1.mov");
  movie.loop();
  movie.jump(5);
  movie.pause();
}
// Step 4. Read new frames from movie
void movieEvent(Movie movie) {
  movie.read();
}
void draw() {
  image(movie, 650, 0);
}

void keyReleased() {
  if (key == 'a') movie.play(); // play
  if (key == 's') movie.pause(); // pause
  if (key == 'd') movie.stop(); // stop
  if (key == 'f') movie.jump(5); // jump
  movie.speed(1.0);
}

void keyPressed() {
  if (key == 'g') movie.speed(5.0); // forward
  if (key == 'h') movie.speed(-5.0); // reverse
}

Answers

  • @Per - Did you find how to run reverse/rewind in your case above ? Can you please share your solution. Thanks in advance.

Sign In or Register to comment.