Problem with audio in a long video mp4 file


#1

The code below works with normally shorter MP4 files, however when I attempt to use the code for a very long MP4 of about 12 hours in length, the video plays without any problems however the audio does not play. I am new to processing and am wondering if there is a work around or a solution to this problem as I cannot find any solutions by googling. In short, the audio of the video file does not play but works with files of shorter length. The audio codec is AAC.

import processing.video.;
import processing.sound.
;
Movie myMovie;

float startClip = 3.0;
float endClip = 10.0;
float durationVid;

void setup() {
fullScreen (P2D);
background (0);
frameRate(30);
myMovie = new Movie(this, “1.mp4”);
myMovie.loop();
myMovie.jump(startClip);
durationVid = myMovie.duration() - endClip - 0.2;
}

void draw() {

noCursor();
//Tints the video. The fourth parameter (100) changes the opacity. Try lowering the opacity to 10.
imageMode(CENTER);
image(myMovie, width/2, height/2);
if (myMovie.time() > startClip + endClip) {
startClip = random(durationVid);
myMovie.jump(startClip);
println(myMovie.duration());
println(durationVid);
}
}

void movieEvent(Movie m) {
m.read();
}