Hello,
I'm trying to create a simple video player in processing 1.5, using GSVideo et GLGraphics on a macbook. The videos have a resolution of 720 x 576, and are played in fullscreen. I've got a lot of videos, and I'm using a xml as a playlist.
Reading videos one by one works fine for me, but what I want is a bit more complicated, I want a sound transition between each cut, and a cut without any lag or freeze for the image. The cycle :
0 - video A is loading in setup (ok it works)
1 - video A is reading (ok it works)
2 - video B is loading (ok, I load it in a thread, so there is no freeze or lag, video A is still reading fine)
3 - 2 seconds before the end of video A, only the sound of B (the first two seconds of B) is starting and fading from a volume of 0 to 1, and a volume for 1 to 0 for video A (here is my problem)
4 - After the last frame of video A, appears the frame located in time = 2s of the video B and B plays alone). And again and again.
My problem is when I read video B during the end of video A, the video A is seriously slowing down. The other problem is that there is a little lag (about 300 ms) when comes the cut between the two videos, and I want the transition to be perfect, like a video montage.
If someone had an idea, I would be very grateful :)
Thanks !