@spiraljetty
Thanks a lot for the advice. It worked. I also saw your original post in this same very thread and then read your advice above. Tried it and it worked. It finally attempted to load the video and then I had to install the k-lite pack to get the ogg example to use.
In response to the question above of having videos loading issues before the app. Well I tried two methods and they both worked. I experience the same loading times. So I came up with the two methods, however the first one is the most useful. The second is only for the random backgrounds.
Method 1:
Since before I was using JMCVideo, I was using the quicktime library. To get around the loading times. I created a batch file that creates a text file of all the specified filenames in the \Sketch_folder\data\ folder
Exampledir *.jpg,*.png,*.bmp,*.jpeg,*.pct,*.mpeg,*.avi,*.mov,*.mpeg,*.ogg /on /b >files.txt
For this purpose use just media files
Exampledir *.mpg,*.avi,*.mov,*.mpeg,*.ogg,*.mp4,*.wmv /on /b >files.txt
Now you can have multiple file extensions but before I was using the quicktime library, but with JMCVideo I can have all kinds of media files streaming simultaneously.
The second line of the .bat file would be to launch the .exe in the autonamed application.windows folder or whichever folder is created. The batch file can reside directly in the data folder or in the application.windows root folder.. just simply put
data\ before the file extensions... however I have found, regardless of the files being in the data folder or in the root folder of the .exe; Processing seems to find them somehow.
Once the sketch is launched the text file can be read line by line and the filenames of the video are in the array. Once they are in the array then can be called at will. As for loading a movie array..this works but I have no control over the pre-loading it takes to put all the movies in the array; which kinda defeats the purpose of the filenames in the array.
One can write a procedure to handle each file based on it's extension. However this is optional.
Method 2Load a text file <auto generated> or simply typed by hand. Each line would contain the location of each file or movie on the system as well as URL's
Example1.
http://www.movie-list.net/classics121807/bladerunner_tsr_h640_ml.mov2.c:\movies\park-ride.mov
3.transformers.mov
4.opportunity.jpeg
1 - URL 2-Physical drive location 3. Data folder default 4.Photo (this is where the procedure to determine the files by extension could be useful)
I have found doing this bridges the gap of not having the files embedded in the Application.Windows program. I can add links to movies to an already compiled sketch. Also I have found when I get better at Processing, I can devise a way to dispose of each video after I have looped a pre-determined amount of times. I would like to start loading a specified video so when one movie ends it coincides with the completion of another video. I would like to attain smooth transitions. I have not been able to do it as yet. There is still a visible jump from one movie to the other. I want to get to the point I can fade one movie out and fade the other movie in.
Also I have managed to get the realtime-masking of the background video done pretty well. I have it with multimple videos in the forefront and as the background and backlayer , multiple images in both background, foreground and backlayer and 3D rotational as well. When I click a specified colour of the desired clip, I can optionally change the entire video to the specified hue or simply remove the colour alltogether to reveal the jpeg,bmp, or even the streaming video behind. ALL THIS AND ROTATIONAL as well..PROCESSING ROCKS!
Right now I am trying to get the background as a totally different sketch. However I am only so far able to get it run as the forefront and using keystrokes to remove layers from it until I can phase into the back sketch.
I LOVE PROCESSING!