I’m trying to create a video that contains a gif. From a previous answer, I saw that the best way to do it is convert the gif to a video like webm and add that to my result.
I’m using Cloudinary to serve the assets and they take care of conversions. You just change the extension in the url. Animated GIF? Convert to WebM or MP4
I had a look at the webm video but it has the black background in the video. It looks like when you convert gif to webm in Cloudinary it does not retain the transparency. The ideal conversion would be gif to mov with alpha channel if that is possible. Do you need to dynamically convert the file or can it be manually converted and exported in software like Adobe Premiere?
Would love to see .webm with alpha channel also supported.
The main benefits of using .webm are smaller file size.
For example, I have 7 seconds video where it is around 40MB on .mov where it is only 445KB on .webm
We support webm as an input/source, so you can use that for overlays, lower thirds, etc… in your edit and they will be much smaller than mov. We don’t currently support webm or mov as an output though.
I just rendered one at sandbox environment.
render id: 3cb86c1e-efa6-41f7-822a-c24db4b44c33
It doesn’t seem to support though, can you help double check again? Thanks!
Hi, I tried jut now with a webm with transparent background and you are correct, it did not work. It looks like we do not support alpha channels/transparency with webm files.
The only option is to either use a mov file with alpha channel. I have been able to reduce the file size using the GoPro CineForm codec: https://cineform.com/technology so you might have some luck with that.
Another option is to use a luma matte which would work like the alpha channel when combined with the asset without the alpha channel. The luma matte can be an mp4 video which will be much smaller in file size. This is a different use case but it will show you how to apply a mask to a video file. You’d need to export the RGB video and the alpha channel separately as a luma mask/matte: Create a luma matte transition using After Effects — Shotstack