-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix Writing Transparent Video Files #2123
Fix Writing Transparent Video Files #2123
Conversation
@stratty7 Looks like there are problems with formatting which would need fixing. Also, looking at changes that came before this addition: shouldn't this be propagated to elsewhere as well? E.g. when |
Hmm, looking at the above examples as well as other files, I guess I'm confused about two things:
When I mentioned |
…now pixel_format it passed through.
@keikoro I understand your points and see what you mean, I think. With mask is not used in the ffmpeg writer at all, and using the
|
I think using pixel_format="rgba" addresses my needs. |
To clarify my last comment: I only used I didn't look at it in more detail, but am I understanding correctly that this discrepancy was actually introduced earlier, and |
Yeah this. I think That is why I have closed this for now and will work on it when i find time. |
This will allow for clips that are loaded with an alpha channel (a .mov file for example) to be writen back out as a .mov file with an alpha layer (transparent background). The code already largely exists for this, the write_videofile function simply needs to be allowed to pass the with_mask arg to the ffmpeg_write_video, which then handles the rest.
For example:
Longer example:
Even longer