Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashing with no debugging info #19

Open
jmej opened this issue Aug 15, 2017 · 3 comments
Open

crashing with no debugging info #19

jmej opened this issue Aug 15, 2017 · 3 comments
Labels

Comments

@jmej
Copy link

jmej commented Aug 15, 2017

I've tried to make a sketch that plays back movies using the following code but, but it causes the sketch to crash with no debugging info. I'm assuming this is something I'm doing wrong - but it seems like there should be an error...

`public class MovieMapper extends AbstractSketch {

public MovieMapper(final PApplet parent, final int width, final int height) {
    super(parent, width, height);
}

Movie movie;
@Override
public void draw() {
    graphics.image(movie, 0, 0, graphics.width, graphics.height);
}

@Override
public void keyEvent(KeyEvent event) {

}

@Override
public void mouseEvent(MouseEvent event) {

}

public void movieEvent(Movie m) {
  m.read();
}
@Override
public void setup() {
    // Load and play the video in a loop
    movie = new Movie(parent, "transit.mov");
    movie.loop();
  

}

}`

@jmej
Copy link
Author

jmej commented Aug 15, 2017

In the parent sketch I have this in the setup loop:

sketchMapper.addSketch(new MovieMapper(this, width / 2, height / 2 ));

and the library import line is in the parent as well

@josephtaylor
Copy link
Owner

Just curious, have you tried just the video library by itself? I'm on Linux and having a hard time just getting it to play a video. Tried the GLVideo library too with no luck.

@jmej
Copy link
Author

jmej commented Aug 19, 2017

Hmm yeah I've used the official (Processing Foundation) GStreamer based video library (just called 'Video') quite a bit on OSX and Windows - but haven't tried it on Linux. (Apart from on an RPI where I did not have any success - it seems like GL Video is the way to go there but I haven't tried it) I was just trying to incorporate and example sketch from the GStreamer library to use with sketch mapper. It would be great to have a processing based mapping solution for video. This seems like it could be it if we can figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants