1. Background
I installed ffmpeg a few months ago without knowing anything about ffmpeg or mac os, but it felt weird to use, so I wanted to reconfigure it.
2. How to install FFmpeg on mac os/m1
2.1 Install using brew
brew install ffmpeg
Reference: https://trac.ffmpeg.org/wiki/CompilationGuide/macOS
2.2 Download executable files directly
Download the following four executable files, unzip them and put them in the environment variables.