mac 环境,其实关于 youtube-dl 如何自动调用 ffmpeg,在 brew install ffmpeg 后是有准确提示的:
==>
[email protected][email protected] 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
[email protected] first in your PATH, run:
echo 'export PATH="/usr/local/opt/
[email protected]/bin:$PATH"' >> ~/.zshrc
For compilers to find
[email protected] you may need to set:
export LDFLAGS="-L/usr/local/opt/
[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/
[email protected]/include"
For pkg-config to find
[email protected] you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/
[email protected]/lib/pkgconfig"
照着做就好了,其实就是环境变量里加了 ffmpeg