I have some difficulties loading a video with alpha channel.
I rendered a movie with quicktime Animation codec (with blender) but I can’t get the alpha channel.
I also tried with a video I found on this forum that also have an alpha channel (I can’t upload it since I am a new user…)
I took the video from this post Using Video with Alpha, ofVideoPlayer, Linux gstreamer
Before loading the video, I call setPixelFormat(OF_PIXELS_RGBA) (I also tried OF_PIXELS_BGRA).
I always get an error :
[warning] ofQuickTimePlayer: setPixelFormat(): requested pixel format 2 not supported, expecting OF_PIXELS_RGB
I have been looking for other ways, but I found none except an old ofxAlphaVideoPlayer that doesn’t exists anymore.
So, here is my question: Nowadays, how can I load a video with an alpha channel ?
(BTW, I work on win7 / g++ / code::blocks / OF 0.8.4)
Thanks a lot for these really fast answers.
I will give a try at your solutions asap.
Maybe I should explain my reason for doing this :
I would like to be able to render several layers of video in realtime. These videos will be in FHD (1920x1080). I would like to be able to render at least 10 of these each on top of the others. The order in which the layers are stacked is important. These videos will be playing at different speed and even backward. It will be controlled by the user.
I am quite sure I will be facing big problems soon trying to do so. I fear that my performances will be very very poor (If I can at least achieve it).
Should I forget this goal and move to something else ? Do you have any advice or clue for me ?
So, I succeeded compiling the sample program provided with ofxGStreamer.
But when running it, it complains about a libz-1.dll missing.
I found a libz.dll in mingW/bin and I renamed it. Unfortunatly, it doesn’t work at all…
take a look at the addon_config.mk file in the ofxGStreamer folder it has all the search paths and libraries that you need to add, at least for visual studio but might be useful to add the correct settings in codeblocks
Thanks for the tip Arturo
Putting all the librairies I found in the addon_config.mk file helped me solve my problem. I can now use ofxGStreamer without crash the way it was meant to be used.
Still, it is not working…
I can read a normal RGB movie and draw it, but I can’t read a BGRA movie.
I setted OF_PIXEL_BGRA as needed (otherwise gstreamer complains), but the frames I get are completely empty…
i just tried ofxGStreamer. it compiles successfully. but when it run, the error comes up saying “the procedure entry point g_cond_broadcast could not be located in the dynamic link library libgstapp-1.0-0.dll”. i’m using OF0.8.0 with gstreamer-1.0-x86-1.2.2.msi and gstreamer-1.0-devel-x86-1.2.2.msi installed on Windows8.1. the bin path is already added in the PATH variable.