Run ffmpeg on Terminal MacOS [closed]

醉酒当歌 提交于 2019-12-07 15:11:35

问题


I'm rather new to MacOS and I cannot find it easy to working with Terminal to get ffmpeg run properly as I have on Window.

I have got ffmpeg binary from http://ffmpegmac.net and I try running the executable in Terminal, it tells that the command not found ? The only way I can run it by now is using command : "open ffmpeg", but this way the Terminal open in another window and this is not what I'm expecting.

Is there any ways to call ffmpeg directly in Terminal (just like run in on Windows cmd) or I'm missing anything ?


回答1:


Mac OS X (and Unix) is different to Windows. Calling open ffmpeg isn't guaranteed to open the binary in the directory, it's guaranteed to find the binary in your PATH variable (do echo $PATH to see that). Try open ./ffmpeg instead.

You might actually be best off installing it with Homebrew, that'll give you system wide access to it.



来源:https://stackoverflow.com/questions/15243426/run-ffmpeg-on-terminal-macos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!