Video file formats?

edited October 2016 in Library Questions

Can anyone recommend preferred file formats for the Processing 3 Video library? I am running some tests in H264 and playback is choppy. I know that format makes a huge difference. Does anyone have experience or knowledge in this area? Which formats play smoothly?

I'm just messing with this very simple code from one of the examples right now:

  import processing.video.*;
    Movie myMovie;

    void setup() {
      size(1920, 1080);
      background(0);
      myMovie = new Movie(this, "temporaldraft.mp4");
      myMovie.loop();
    }

    void draw() {
      image(myMovie, 0, 0, 1920, 1080);
    }

    // Called every time a new frame is available to read
    void movieEvent(Movie m) {
      m.read();
    }

Thanks!!

Tagged:

Answers

Sign In or Register to comment.