BrokenPipeError: [Errno 32] Broken pipe
See original GitHub issueWhen i run
python3 -m manim example_scenes.py SquareToCircle -pl
this is what i get Animation 0: ShowCreationSquare: 0%| | 0/15 [00:00<?, ?it/s]/home/pacchu/_temp.local/share/Trash/files/manim/media/videos/example_scenes/480p15/partial_movie_files/SquareToCircle/00000_temp.mp4: No such file or directory
Traceback (most recent call last): File “/home/pacchu/.local/share/Trash/files/manim/manimlib/extract_scene.py”, line 153, in main scene = SceneClass(**scene_kwargs) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 54, in init self.construct() File “example_scenes.py”, line 81, in construct self.play(ShowCreation(square)) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 449, in wrapper func(self, *args, **kwargs) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 484, in play self.add_frames(self.get_frame()) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 570, in add_frames self.file_writer.write_frame(frame) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene_file_writer.py”, line 171, in write_frame self.writing_process.stdin.write(frame.tostring()) BrokenPipeError: [Errno 32] Broken pipe
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:14
My guess is that when you run
ffmpeg -codecs 2> /dev/null | grep -e 264
that none of the lines contain ‘libx264’, but that there is still output. Basically, I got this problem because ffmpeg (used by manim) would fail to generate the video as requested and close, causing your broken pipe.I see two possible solutions -
'-vcodec', 'libx264'
to'-vcodec', 'the_codec_name_you_found'
. This solved the problem for me (I used ‘h264’)https://stackoverflow.com/a/58421346/4146678 For conda peple