QVideoSink doesn't handle alpha channel
Locked
Unsolved
General and Desktop
-
I've a WebM (VP9) video with alpha channel on it. I can open correctly the video on OBS and it shows as intended, but if I try to use it in
QVideoSink
usingvideoFrameChanged
to show video frame by frame it shows a black background instead of transparent.Here ffmpeg file info :
PixelFormat
of eachQVideoFrame
isFormat_BGRA8888
, when converted toQImage
becomesFormat_ARGB32_Premultiplied
, all of them has an alpha channel so why my video show transparency as a black pixel?EDIT: If I check alpha channel with
hasAlpha()
onframe.image()
is true,QPixmap::fromImage(frame.image)
returns false! -
Hi,
Please don't post the same question in multiple sub forums. One is enough.
Closing this one