3b1b / manim

Animation engine for explanatory math videos
MIT License
70.79k stars 6.23k forks source link

Video is just black (entire duration) #2074

Closed XaverStiensmeier closed 12 months ago

XaverStiensmeier commented 12 months ago

Describe the bug

The media/videos output is just black.

Code: Using manim==0.18.0 installed in a virtual environment and the quickstart code

from manim import *

class CreateCircle(Scene):
    def construct(self):
        circle = Circle()  # create a circle
        circle.set_fill(PINK, opacity=0.5)  # set the color and transparency
        self.play(Create(circle))  # show the circle on screen

and running it via manim -pql scene.py CreateCircle results in just a black video that is ~1 second long. If I add self.wait(5) the video is just black and ~6 seconds long.

I am unsure whether this is a bug or if I am doing something wrong. I am also unsure how to debug this further. I am new to manim.

Wrong display or Error traceback: The wrong display is that the video is black.

Additional context

I am using Xubuntu 22.04. I use a python3 virtual environment as mentioned above. My ffmpeg -version ffmpeg version 4.4.2-0ubuntu0.22.04.1. I have never worked with manim before. I have not been able to create non-black videos using other code examples.

XaverStiensmeier commented 12 months ago

I've opened this issue in the wrong repository as I am using the community version.