-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Moviepy on centos server generates the video but the texts aren't visible. #1647
Comments
I have also tried this same on amazon linux image and still the same issue :( |
I have narrowed it down to just the text rendering. I have simplified the code as below.
The same on mac returns this video below tmp.mp4Whereas the same on amazon linux or centos returns the following tmp_from_nonmac.mp4And I am completely clueless! |
I tried debugging further debugging with PIL. The PIL ImageDraw works perfectly fine with the following code
Not sure which part of the PIL with TextClip is not rendering :( |
I think the issue is with the convert function (Imagemagick). With print_cmd = True, I was able to replicate the behaviour with the following command
Something to do with imagemagick. Version below
|
Please, compare ImageMagick installations in both platforms. |
Yup I did just now. My mac was running 7.1.0. So I tried installing the 7.1.0 and the following command works via commandline
As you can see I had to use magick convert instead of convert which seems to work but I have to supply full path to the font atleast via commandline. How can I make moviepy use imagemagick as above? |
Are you referring to use |
Actually both. I tried something like this export IMAGEMAGICK_BINARY=/usr/local/bin/magick which didn't work.
|
Use |
Yup that worked. So much difference between the imagemagick versions :) Looks like I need to play around with imagemagick |
There is a plan to remove ImageMagick in new 2.0.0, discussed in #1472, but it should wait because the current maintainers don't have enough time to work on this. That's the reason because any work related with ImageMagick will be useless after it. If you consider it useful, don't hesitate to open a PR 👍 |
Expected Behavior
The code mentioned the steps to reproduce section works fine on my macbook and generates the video as expected. Whereas when I run the same code on a centos7 server, while the movie is getting generated the text portion isn't visible at all. It is displayed as white dots as you can see in the attachment.
Actual Behavior
The code works on centos7 server and generates the mp4 file but the texts aren't rendered as can be seen in the screenshot below

Steps to Reproduce the Problem
Run the code below with the following testinput. You might need any background image and audio file in a res folder.
Specifications
The text was updated successfully, but these errors were encountered: