Using image sequence
In the previous sections, we have considered how to work with videos stored in video files or captured by cameras. Here we will consider working with the third source of video – image sequences.
Sometimes using ofVideoPlayer
for drawing movies is not appropriate. Two main cases are:
You need to render a big amount of movies on one screen simultaneously. For example, in a 2D computer arcade game, there can be about 100 moving characters and objects. You can play about 10 different video files in openFrameworks simultaneously, but 100 is too much for it; so some other solution is needed.
You need to draw many layers of videos using alpha channel. But at the time of writing this, openFrameworks does not support videos with alpha channel within its standard class
ofVideoPlayer
. There is support in openFrameworks for only Mac OS X, with classofQTKitPlayer
and exampleexamples/video/osxHighPerformanceVideoPlayerExample
. Also, there is an addon ofxAlphaVideoPlayer, but it is...