3b1b / manim

Animation engine for explanatory math videos
MIT License
62.59k stars 5.8k forks source link

ffmepg #2048

Open fjdk123 opened 1 year ago

fjdk123 commented 1 year ago

我想给manim提供检测ffmpeg的程序 `import subprocess

cmd = "ffmpeg -version" cmd_return = subprocess.getoutput(cmd) if cmd_return == "'ffmpeg' 不是内部或外部命令,也不是可运行的程序或批处理文件。": raise Exception("FFMPEG not found") else: print("found FFMPEG")`

mikolajlubiak commented 1 year ago

I don't quite get this issue. What is the error/what do you want to change? Also could you try to use ASCII characters to describe it, because half of your issue doesn't even render, those characters aren't in my font.

fjdk123 commented 1 year ago

Sometimes, ffmpeg is not installed, but manim can run, but video cannot be exported

mikolajlubiak commented 1 year ago

ffmpeg is in the README under requirements, so I don't think that we need additionally check in the code if ffmpeg is installed.

fjdk123 commented 1 year ago

Ok