Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for output with alpha channel #3

Open
sheriffderek opened this issue Apr 26, 2023 · 3 comments
Open

Option for output with alpha channel #3

sheriffderek opened this issue Apr 26, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@sheriffderek
Copy link

Hello!

I'm interested in exporting GSAP animations to be used as swipe animations for cuts between video scenes. I've read the documentation and exported some examples. This is so cool! I'm not sure about the exact terminology, but what I'm looking for is the black/white/background to be an alpha channel and invisible when I layer it over another video. I'll look for what the output is called in After Effects.

Here's a quick Pen I was using to try it: https://codepen.io/perpetual-education/pen/OJBmWQY

and here's an output of those tests with white and black backgrounds over some edits: https://assets.codepen.io/4806767/alpha-question.mp4

Is this possible?

: )

@workeffortwaste
Copy link
Owner

It's not possible to output the video with alpha transparency unfortunately, but in After Effects you should be able to use colour keying with Keylight to remove the background.

@galipmedia
Copy link

galipmedia commented May 17, 2023

I have not used this library yet. But I have used ffmpeg a fair bit. It should be possible to get transparent output using Apple prores444 format. Pix format yuv444p10, codec prores_ks , and file name whatever.mov . Mind you this will only work if the initial pngs are transparent. This will make enormous file sizes so be careful. My exact instructions may be wrong but by googling these things you might be able to find a solution.

@workeffortwaste
Copy link
Owner

Thanks for that, it gives me a good starting point to attempt to add this support.

@workeffortwaste workeffortwaste added the enhancement New feature or request label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants