crazypenguin
2021-09-01 19:22:07 +08:00
mac 环境,其实关于 youtube-dl 如何自动调用 ffmpeg,在 brew install ffmpeg 后是有准确提示的:
==> ffmpeg@2.8
ffmpeg@2.8 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have ffmpeg@2.8 first in your PATH, run:
echo 'export PATH="/usr/local/opt/ffmpeg@2.8/bin:$PATH"' >> ~/.zshrc
For compilers to find ffmpeg@2.8 you may need to set:
export LDFLAGS="-L/usr/local/opt/ffmpeg@2.8/lib"
export CPPFLAGS="-I/usr/local/opt/ffmpeg@2.8/include"
For pkg-config to find ffmpeg@2.8 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg@2.8/lib/pkgconfig"
照着做就好了,其实就是环境变量里加了 ffmpeg