l0r3nz4cc10
l0r3nz4cc10

Reputation: 1283

Processing : No valid frames decoded before end of stream

I am trying to play a video : the video plays, but then I have this error :

Processing video library using GStreamer 1.16.0 Element: [avdec_prores0] : No valid frames decoded before end of stream

Here is the code :

Movie movie;

public void setup() {
  ...
  movie = new Movie(this, "ani_5.mov");
  movie.loop();
}

public void draw() {
    movie.read();
    image(movie, 0, 0, width, height);
}

Where does the error come from ?

Upvotes: 0

Views: 1590

Answers (1)

George Profenza
George Profenza

Reputation: 51837

I'm not sure the Processing video library can decode Apple ProRes (avdec_prores0) nicely.

I recommend taking your original/uncompressed animation and compressing it with the H.264 codec.

Processing should be able to handle that. (Processing > Examples > Libraries > Video > Loop/data/transit.mov is a good example of a video that can play via processing-video)

Upvotes: 1

Related Questions