-
I would like to ask you, if is there support for creating AVI video file with alpha channel from raw (RGBA) frames? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not sure if the alpha channel in AVI files is respected by video players. However, you can give it a try. |
Beta Was this translation helpful? Give feedback.
I'm not sure if the alpha channel in AVI files is respected by video players. However, you can give it a try.
Create a video stream using the
AviWriter.AddVideoStream
method - it sets the uncompressed format and 32 bits per pixel by default. And pass your 32-bit bitmaps to theWriteFrame
method. Remember that in this case (when not using theUncompressedVideoEncoder
for pre-processing frames) bitmap data should be in the bottom-up layout - the bottom line of a picture goes first, the top line goes last.