I'm relatively new to Processing, but am a seasoned developer. I have a rather simple project in which I utilized the GSVideo playback library. What happens is when the code runs, the video starts playing when it should, but about 2-4 seconds in, the audio begins to get choppy and then cuts all out together, although the video keeps playing. I've tried to scan the internet to find solutions, but only found one link to a older Processing forum where no answer was to be found. Here is the code:
import processing.serial.*;
import codeanticode.gsvideo.*;
Serial myPort;
void setup() {
size(screen.width, screen.height);
myPort = new Serial(this, "COM3", 9600);
myPort.bufferUntil('\n');
movie = new GSMovie(this, "IntroMovie.mp4");
imageMode(CENTER);
}
void draw() {
delay(50);
movie.play();
}
The movie file is only about 56MB and was originally a AVI that I converted to MP4 using quicktime Pro if that matters. The MP4 plays fine on all other PC's and media devices. Not sure if its some type of buffer issue, or sync issue that possibly Processing cant keep up with the framerate and therefore looses sync on audio? Any help would be appreciated. The above code is a snippet of the full code, as I am at work and dont have the full code available. If needed, I can copy and paste it here when I get home. Thanks everyon!