Added ffmpeg_path parameter to the config file.

This commit is contained in:
harry
2024-03-24 16:59:16 +08:00
parent 62f268ec28
commit eaa991aaf6
2 changed files with 27 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ imagemagick_path = app.get("imagemagick_path", "")
if imagemagick_path and os.path.isfile(imagemagick_path):
os.environ["IMAGEMAGICK_BINARY"] = imagemagick_path
ffmpeg_path = app.get("ffmpeg_path", "")
if ffmpeg_path and os.path.isfile(ffmpeg_path):
os.environ["IMAGEIO_FFMPEG_EXE"] = ffmpeg_path
# __cfg = {
# "hostname": hostname,
# "listen_host": listen_host,