Ask Your Question
0

can videowriter preserve alpha?

asked 2016-05-28 02:25:24 -0600

Hi, I am trying to save the output of an OpenGL FBO as video. Any format would be fine. I tried codecs that I know to support the alpha channel, i.e. Lagarith and also uncompressed. However, the video file has no alpha, the blackground is black. Is there any way to create a video with opencv that preserves the alpha channel? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-05-28 03:07:17 -0600

berak gravatar image

updated 2016-05-28 03:11:52 -0600

no, it can't. (was not made for this purpose)

(alpha is not useful to computer-vision, and mostly gets discarded, so you probably should stop (ab)using opencv for this, and rather use ffmpeg/gstreamer/libvlc instead)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-05-28 02:25:24 -0600

Seen: 1,459 times

Last updated: May 28 '16