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?
The codec is indeed the "libvpx VP8" and the (presumably well-known) file I
am using is dancer1.webm, which has alpha_mode = 1:
Input #0, matroska,webm, from '.\dancer1.webm':
Metadata:
encoder : libwebm-0.2.1.0
Duration: 00:01:02.83, start: 0.000000, bitrate: 520 kb/s
Stream #0:0(eng): Video: vp8, yuv420p(progressive), 640x360, SAR
1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
Metadata:
alpha_mode : 1
Regards,
Craig
On Sun, Jan 31, 2021 at 11:12 PM Carl Eugen Hoyos <[email protected]>
wrote:
> Am So., 31. Jan. 2021 um 22:43 Uhr schrieb Craig Turner
> <[email protected]>:
>
> > I'm trying to decode and convert a VP8 video with an alpha channel to a
> 32-bit
> > RGBA for rendering in my application. The decoding with libvpx works
> fine, but
> > I can't get the alpha channel through into the RGBA. Am I doing something
> > wrong with libswscale?
>
> Did you check the value of _codecCtx->pix_fmt ?
> If it is not yuva420p, then the alpha channel was not decoded.
>
> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".