After my program run on my server (centos) and i get the h264 video, i found that it doesn’t have alpha channel. Then i read the pixel streaming code and notice that it use nvidia hardware encoder, and can only support h264 type (h264 dont have alpha channel) .
Is there any way to output a video with alpha channel?
Hey there!
Unfortunately, the reason Pixel Streaming doesn’t support encoding the alpha channel is because browsers don’t currently support decoding it.
At this stage it isn’t really viable.
Hope this helps shed some light on the issue!
You can output it as a Gif file with full transparency wherever you want it. For instance if you put your gif file at the top of an email and it was like a rotating object it would It would be transparent where you want it to be. It’s hard to advise without knowing what your end result goal is but you could also output a stream of target Tiff or PNG files that have the alpha channel intact…
thanks, i used movie render queue plugin to output some picture with alpha channel, then i used opencv to process the output of movie render queue, at last i used ffmpeg to make all the output (cv::mat) become a video transparency.
On linux platform, pixel-streaming use nvidia-codec to encode the video, but for nvidia-codec it’s hard to add alpha channel.