Closed zimmermant closed 5 years ago
I've worked around this issue like below because I couldn't be brought to changing one line of code and waiting for another image build:
mkdir out
docker run --rm -v `pwd`/files:/app/files -v `pwd`/out:"/root/Dropbox (3Blue1Brown)/3Blue1Brown Team Folder" manim example_scenes.py WarpSquare
Now it has this to say:
Writing to /root/Dropbox (3Blue1Brown)/3Blue1Brown Team Folder/animations/example_scenes/1080p60/WarpSquareTemp.mp4
Animation 0: ApplyPointwiseFunctionSquareToSquare: 100%|████████████████████████████████████████████████████████████████████| 180/180 [00:04<00:00, 39.91it/s]
Played a total of 1 animations
sh: 1: play: not found
and the video is a 4 second long black screen. You'll find it in ./out/animations/example_scenes/1080p60/WarpSquareTemp.mp4
The black screen problem when running with docker seems to be common. It looks like the PNGs don't get generated correctly. I've tested the ffmpeg with a video transcode and it works. I've also manually built the docker image with a debian base and the issue persists.
See https://github.com/3b1b/manim/issues/170 https://github.com/3b1b/manim/issues/119
Edit: nvm, the pngs are outputting. I based that on what someone else was saying. The ffmpeg in docker must not like being streamed pngs.
It still says Writing to /app/example_scenes/1440p60/WarpSquareTemp.mp4
ishandutta2007@MacBook-Pro:~/Documents/Projects/manim$ mkdir out
mkdir: out: File exists
ishandutta2007@MacBook-Pro:~/Documents/Projects/manim$ docker run --rm -v `pwd`/files:/app/files -v `pwd`/out:"/root/Dropbox (3Blue1Brown)/3Blue1Brown Team Folder" manim example_scenes.py WarpSquare
Animation 0: ApplyPointwiseFunctionSquareToSquare: 100%|##########| 180/180 [00:16<00:00, 10.77it/s] sh: 1: play: not found Writing to /app/example_scenes/1440p60/WarpSquareTemp.mp4 Played a total of 1 animations
ishandutta2007@MacBook-Pro:~/Documents/Projects/manim$ ls out
ishandutta2007@MacBook-Pro:~/Documents/Projects/manim$
Closing, as this issue is addressed in #296.
I've successfully installed docker to run manim but I get the following error message.
I did change the MEDIA_DIR directory in constants.py to a folder that exists and I've even run
os.path.exists(MEDIA_DIR)
in separate Python file and it does return True.