processing-video
processing-video copied to clipboard
sketch hangs when playing many videos
Issue by processing-bugs
Sunday Feb 10, 2013 at 17:35 GMT
Originally opened as https://github.com/processing/processing/issues/1375
Original author: [email protected] (October 23, 2012 16:25:27)
I've done a lot of tests with various configurations but can't seem to get more than 15 videos to play without the sketch hanging. The more times I call loop() of a Movie object the slower the next call to loop seems to be.
Original issue: http://code.google.com/p/processing/issues/detail?id=1337
Comment by multiburst
Saturday Jan 11, 2014 at 14:31 GMT
Just ran into that issue having strange performance issues even on high end machines. I was loading ~15 movies, but playing only one or two at a time using loop(), which resulted in very sloppy playback, irregular framerates, missed frames and so on.
The workaround seems to be to use play() and then a manual check if the movie has come to an end and then play() again. So my guess is, there is really something wrong with only loop()....
I just revisited this error testing 3.0a4 with a sketch loading 1, then 5, then 10, then 20 movies. The issue seems to be with the load time once the videos have loaded the sketch performs well. It seems that the load time increases exponentially.
This is what I'm using to test.
https://www.dropbox.com/s/c9plb91d6uc544e/ManyVideos.zip