ofGStreamer problem with Alpha channel

Hello,
I am having problems trying to playing back some video files with an alpha using ofGStreamer.
The code I wrote works fine using the standard 0.9 ofVideoPlayer (video files playback with alpha correctly) but when using gstreamer the videos do not have an alpha.

Setting the pixel format to OF_PIXELS_RGBA or OF_PIXELS_BGRA doesnt seem to make a difference.

I need to use gstreamer for perfomance as the standard ofVideoPlayer is way too slow.

Code is roughly:
setup:

video_idle.setPixelFormat(OF_PIXELS_BGRA);
video_idle.load(filename);
video_idle.setLoopState(OF_LOOP_NORMAL);
video_idle.play();

draw:

ofEnableAlphaBlending();
ofSetColor(255,255,255,255);   // RGBA

if(!video_idle.isLoaded()) 
return;

video_idle.update();
video_idle.draw(origin.x, origin.y, width*scale, height*scale);

Thanks!

can you post a sample of the video? this was working last time i tested

Hey Arturo!
here’s a link: https://www.dropbox.com/s/slwjht345403ste/B2.mov?dl=0
do you reckon it could be a codec problem ?

I started trying to port ofxAVFVideo … has great performance but annoyingly doesnt really work with 0.9

(the linked video works correctly with alpha both with the standard ofvideo and ofxavfvideo)

Thanks!

mmh, it’s working fine for me with gstreamer, i’m using gstreamer 1.6 but i’ve tried it before with older versions and it worked too. are you using ofxGstreamer from: https://github.com/arturoc/ofxGStreamer

also you can install the latest version of gstreamer from http://gstreamer.freedesktop.org/data/pkg/osx/

weird! it def doesnt work on both my machines (MacBook pro 2014 / MacPro 2015) … also it’s weird that ofxAVFVideo runs very high performance with OF08 but then the ofPlayer in OF09 (which should use AVFvideo) has nowhere near the same performance :sweat: