搬运:https://www.mathworks.com/matlabcentral/answers/155964-use-ffmpeg-in-matlab
问题描述:
安装ffmpeg后,mac的terminal里可以运行ffmpeg,但matlab里无法调用ffmpeg,且报错“/bin/bash: ffmpeg: command not found”
解决方法:
1 ) Go to terminal, type
printenv PATH
2 ) Copy the output of the command
3 ) Go to Matlab. Type setenv(‘PATH’, [getenv(‘PATH’) ‘???’]); instead of ??? paste what you got from terminal