Open baljeetrathi opened 3 years ago
Were you able to resolve this I have the exact same problem.
@BUCKFAE I couldn't come up with a better solution so I directly made changes to the constants.py file like this:
ASPECT_RATIO = 9.0 / 16.0
FRAME_HEIGHT = 14.23
DEFAULT_PIXEL_HEIGHT = 1920
DEFAULT_PIXEL_WIDTH = 1080
I also encountered this problem. To fix it, you not only need to modify the constants.py file, but also the emit_gl_Position.glsl and get_gl_Position.glsl files in the shaders/inserts directory. In both of these files, change the line "const float ASPECT_RATIO = 16.0 / 9.0;" to "const float ASPECT_RATIO = 9.0 / 16.0;".
0001-fix-aspect_ratio-other-than-16-9-issue.patch
This patch is based on the manim master branch, which I modified to solve this issue.
I want to render manim animations on a different aspect ratio instead of the default. So, I pass these values to the class.
and
However, the contents of the video still don't maintain the new aspect ratio. I run the following command in terminal.
How can I get the video to display without any stretching in manim?
Thanks. :)