What if you do not use ffmpegcolorspace, because capsfilter seems to be correct but caps detected by decodebin/avidemux does not look appropriate since it&#39;s missing alpha_mask.<div><br></div><div>Its just a guess ! </div>
<div><br></div><div><br><div><br></div><div><br><br><div class="gmail_quote">On Fri, Mar 18, 2011 at 11:14 PM, Mathieu Virbel <span dir="ltr">&lt;<a href="mailto:mat@kivy.org">mat@kivy.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi folks,<br>
<br>
I&#39;m trying to get alpha working from a avi video, without success.<br>
My video is a set of uncompressed PNG image, 32 bpp. Even if my<br>
current code is in Python, the pipeline look like:<br>
<br>
filesrc location=rgbavideo.avi ! decodebin ! ffmpegcolorspace !<br>
video/x-raw-rgb,red_mask=(int)0xff000000,green_mask=(int)0x00ff0000,blue_mask=(int)0x0000ff00,alpha_mask=(int)0x000000ff,bpp=32,depth=32<br>
! appsink<br>
<br>
After getting the buffer from appsink, the alpha channel is still 0xff :<br>
&gt;&gt;&gt; print set(self._buffer.data[3::4])<br>
set([&#39;\xff&#39;])<br>
<br>
The caps detected by decodebin/avidemux is:<br>
video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321,<br>
red_mask=(int)65280, green_mask=(int)16711680,<br>
blue_mask=(int)-16777216, framerate=(fraction)25/1, width=(int)1080,<br>
height=(int)540<br>
<br>
With ffmpeg, i&#39;m able to convert the video into png, and the png got<br>
the alpha background. FFMpeg show :<br>
Input #0, avi, from &#39;Fleches_3.avi&#39;:<br>
  Duration: 00:00:10.00, start: 0.000000, bitrate: 466965 kb/s<br>
    Stream #0.0: Video: rawvideo, bgra, 1080x540, 25 tbr, 25 tbn, 25 tbc<br>
<br>
I&#39;ve tryied to use ffdemux_avi instead of decodebin, without success.<br>
<br>
Is anyone have an idea about how to get the alpha channel from the<br>
video source ?<br>
<br>
Regards,<br>
<br>
Mathieu<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>
</div></div>