3b1b / manim

Animation engine for explanatory math videos
MIT License
62.64k stars 5.81k forks source link

No video is generated #2125

Closed ghost closed 5 months ago

ghost commented 5 months ago

Showing the following error

Manim Extension XTerm Serves as a terminal for logging purpose.

Extension Version 0.2.13

MSV d:\All document\VS Code\Python>"manim" "d:\All document\VS Code\Python\new2.py" CreateCircle Manim Community v0.18.0

Animation 0: Create(Circle): 0% 0/60 [00:00<?, ?it/s][rawvideo @ 0194dfa0]Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'pipe:': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0.0: Video: rawvideo, rgba, 1920x1080, 60 tbr, 60 tbn, 60 tbc Unknown encoder 'libx264' +--------------------- Traceback (most recent call last) ---------------------+ C:\tools\Manim\Lib\site-packages\manim\cli\render\commands.py:115 in render
112 try:
113 with tempconfig({}):
114 scene = SceneClass()
> 115 scene.render()
116 except Exception:
117 error_console.print_exception()
118 sys.exit(1)
C:\tools\Manim\Lib\site-packages\manim\scene\scene.py:223 in render
220 """
221 self.setup()
222 try:
> 223 self.construct()
224 except EndSceneEarlyException:
225 pass
226 except RerunSceneException as e:
d:\All document\VS Code\Python\new2.py:6 in construct
3 def construct(self):
4 circle = Circle() # create a circle
5 circle.set_fill(PINK, opacity=0.5) # set the color and transpa
> 6 self.play(Create(circle)) # show the circle on screen
7 self.wait(1)
8
C:\tools\Manim\Lib\site-packages\manim\scene\scene.py:1080 in play
1077 return
1078
1079 start_time = self.renderer.time
> 1080 self.renderer.play(self, *args, **kwargs)
1081 run_time = self.renderer.time - start_time
1082 if subcaption:
1083 if subcaption_duration is None:
C:\tools\Manim\Lib\site-packages\manim\renderer\cairo_renderer.py:104 in
play
101 # In this case, as there is only a wait, it will be the l
102 self.freeze_current_frame(scene.duration)
103 else:
> 104 scene.play_internal()
105 self.file_writer.end_animation(not self.skip_animations)
106
107 self.num_plays += 1
C:\tools\Manim\Lib\site-packages\manim\scene\scene.py:1245 in play_internal
1242 for t in self.time_progression:
1243 self.update_to_time(t)
1244 if not skip_rendering and not self.skip_animation_previe
> 1245 self.renderer.render(self, t, self.moving_mobjects)
1246 if self.stop_condition is not None and self.stop_conditi
1247 self.time_progression.close()
1248 break
C:\tools\Manim\Lib\site-packages\manim\renderer\cairo_renderer.py:150 in
render
147
148 def render(self, scene, time, moving_mobjects):
149 self.update_frame(scene, moving_mobjects)
> 150 self.add_frame(self.get_frame())
151
152 def get_frame(self):
153 """
C:\tools\Manim\Lib\site-packages\manim\renderer\cairo_renderer.py:180 in
add_frame
177 return
178 self.time += num_frames * dt
179 for _ in range(num_frames):
> 180 self.file_writer.write_frame(frame)
181
182 def freeze_current_frame(self, duration: float):
183 """Adds a static frame to the movie for a given duration. The
C:\tools\Manim\Lib\site-packages\manim\scene\scene_file_writer.py:391 in
write_frame
388 elif config.renderer == RendererType.CAIRO:
389 frame = frame_or_renderer
390 if write_to_movie():
> 391 self.writing_process.stdin.write(frame.tobytes())
392 if is_png_format() and not config["dry_run"]:
393 self.output_image_from_array(frame)
394

+-----------------------------------------------------------------------------+ OSError: [Errno 22] Invalid argument [19512] Execution returned code=1 in 2.156 seconds returned signal null