-
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
on_color fails with TypeError when given a col_opacity parameter #25
Comments
Thanks for the feedback ! Have you tried with a newer version ? Like the one currently on Github or PyPI ? I can't garantee anything, but this example works on my computer. Tell me if it works (and if the newer version works on your computer :) ) |
I just installed the version from github, and the code now runs without throwing an error. But now I don't get a background color at all if I supply any value of col_opacity. If it omit the col_opacity parameter I get a black box, as expected. If I add the col_opacity parameter I get no background color at all, regardless of what value I support. I tried col_opacity= 1, col_opacity= 0, col_opacity= 0.5, and others. BTW, thanks for this great tool. I've been hand coding ffmpeg command lines, and moviepy is so much better! |
Here's some code that shows the background disappearing if I use a col_opacity argument:
And here's a couple of images showing a screen capture of the resulting video with and without col_opacity parameter. Without col_opacity, I get a nice black background behind the text: With col_opacity, it's gone: |
Thanks for the bug report, I just fixed it (I think). |
Confirmed, it works for me now. Thanks! |
Not a bug, but I've a related question : How to make "black" background disappear in the case above? How can I get full white text and remaining area should have full opacity green background? Not able to get this effect, maybe some specific type of blending is needed? |
Here's a simple python script that shows the issue:
That last statement throws the following error:
Here's my environment:
The text was updated successfully, but these errors were encountered: