We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › Audio cuts out after 2 seconds but video continues
Page Index Toggle Pages: 1
Audio cuts out after 2 seconds but video continues (Read 373 times)
Audio cuts out after 2 seconds but video continues
Mar 13th, 2009, 10:42pm
 
I've seen a couple other threads here with the same problem, but never a solution posted, so I'm going to throw it out again. I'm trying to play a very simple, short QT movie.  Currently, it loads, plays video and sound, and then about 2 seconds in, the sound cuts out.  The video continues to play through to the end. I've tried several different .mov files, each of which plays fine in QT outside of processing. My code is below; it's just the example code from the video library reference, with the "P3D" parameter added to the size() command (without that, I couldn't get the video to display at all).  Please let me know if you have any ideas why the sound is cutting out & how to fix it.
Thanks!
Karen


import processing.video.*;
Movie myMovie;

void setup() {
 size(200, 200, P3D);
 myMovie = new Movie(this, "video.mov");
 myMovie.play();
}

void draw() {
 tint(255, 20);
 image(myMovie, 0,0);
}

// Called every time a new frame is available to read
void movieEvent(Movie m) {
 m.read();
}
Page Index Toggle Pages: 1