Finally have got some time to get back to playing with oF after the YCAM workshop.
I’m trying to port some of my VJ apps written in other languages to oF. At the moment I am trying to get video’s to load in a thread (trying to use really big HD movies).
I have read through many of the posts elsewhere about using vectors to store pointers to movies and loading images in threads, and have tried with some success to get these things to work: the vector approach works pretty fast, but still always jams, especially with larger (1080x1920) movies).
However I can’t seem to apply the logic used for threaded images successfully to video (http://forum.openframeworks.cc/t/threaded-image-loader/816/0).
I’ve also read the thread about how unsafe vectors are in threading, and the advice to move to arrays…is this what I should do? It’s pretty important to me to be able to load any number of movies into the application as I am constantly changing hard drives, making/deleting content etc so that’s why I started with the vector approach.
I think some of the code you used in liners would help me to better understand the process, but can’t seem to find it on the liners page.
Is it somewhere?
PS: In the end I want to be able to mix (ie., blend, subtract, multiply, blur, color, etc) two (or more) videos together - I have just assumed that the first step to getting this kind of application to work would be to be able to load the movies fast and without any frames jamming?