From f643f221c0abb287b52a35af384b6d0d35638b63 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 10 Oct 2024 17:57:02 +0200 Subject: [PATCH] Suggest imageio_ffmpeg to provide ffmpeg as animation writer. imageio_ffmpeg distributes the ffmpeg binary with their binary wheel; suggesting its use seems convenient enough. --- galleries/users_explain/animations/animations.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/galleries/users_explain/animations/animations.py b/galleries/users_explain/animations/animations.py index 2711663196f2..a0669956ab81 100644 --- a/galleries/users_explain/animations/animations.py +++ b/galleries/users_explain/animations/animations.py @@ -251,3 +251,8 @@ def update(frame): # writer="imagemagick", extra_args=["-quality", "100"]) # # (the ``extra_args`` for *apng* are needed to reduce filesize by ~10x) +# +# Note that *ffmpeg* and *imagemagick* need to be separately installed. +# A cross-platform way to obtain *ffmpeg* is to install the ``imageio_ffmpeg`` +# PyPI package, and then to set +# ``rcParams["animation.ffmpeg_path"] = imageio_ffmpeg.get_ffmpeg_exe()``.