WebM Video with alpha channel

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gaspa

Dear all,
I would like to play a simple animation before the game stars that shows 3-2-1-Go on top of the game view.
I have prepared a sequence of PNGs with transparent background with a third party editor, and then I made a webm video with ffmpeg:

ffmpeg -i start_0%03d.png -b:v 800k start.webm

That is the result: Dropbox - start.webm - Simplify your life
It plays correctly in VLC with a black background, or in Chrome with any backgound-color CSS value.

The problem with Godot is that the VideoPlayer node can’t reproduce it. I only get a black rectangle. Are WebM files with alpha supported by the engine?

Anyway, how do you usually solve this problem? I could also use an AnimatedSprite node with the original PNG sequence, even if it seems to me that a VideoPlayer node is more appropriate. What is the best practice for thees kind of animations or effects?

Thanks in advance.

did you hear back anything from the devs ?
i really would like this feature too.
i have played around with colormasked videos, but it is cumbersome and also not nearly as flexible as a true alpha.

guelinator | 2019-01-28 14:08

I would also be very interested in the possibility of viewing videos with transparency in Godot!

The_Moye | 2020-03-28 10:06

:bust_in_silhouette: Reply From: rcurtis

I would really love this feature. 3.0 uses WebM which can support alpha.

:bust_in_silhouette: Reply From: Mjfindley

I only get a black screen with WebM v.9 produced by ffmepg in Blender. When I used an outside converter to WebM v.8, Godot played the file perfectly.