<div dir="ltr"><div dir="ltr">You are absolutely right - the format is AV_PIX_FMT_YUV420P, so it seems the alpha channel is not being decoded. Is there something specific I need to do to ensure it does indeed get decoded?</div><div dir="ltr"><br></div><div>The codec is indeed the "libvpx VP8" and the (presumably well-known) file I am using is dancer1.webm, which has alpha_mode = 1:</div><div><font face="monospace"> Input #0, matroska,webm, from '.\dancer1.webm':<br> Metadata:<br> encoder : libwebm-0.2.1.0<br> Duration: 00:01:02.83, start: 0.000000, bitrate: 520 kb/s<br> Stream #0:0(eng): Video: vp8, yuv420p(progressive), 640x360, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)<br> Metadata:<br> alpha_mode : 1</font><br></div><div><br></div><div>Regards,</div><div>Craig</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 31, 2021 at 11:12 PM Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am So., 31. Jan. 2021 um 22:43 Uhr schrieb Craig Turner<br>
<<a href="mailto:turner.craig@gmail.com" target="_blank">turner.craig@gmail.com</a>>:<br>
<br>
> I'm trying to decode and convert a VP8 video with an alpha channel to a 32-bit<br>
> RGBA for rendering in my application. The decoding with libvpx works fine, but<br>
> I can't get the alpha channel through into the RGBA. Am I doing something<br>
> wrong with libswscale?<br>
<br>
Did you check the value of _codecCtx->pix_fmt ?<br>
If it is not yuva420p, then the alpha channel was not decoded.<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div></div>