在终端MacOS上运行ffmpeg [英] Run ffmpeg on Terminal MacOS
问题描述
ffmpeg
正如我在Window上正常运行。 我已经从 http://ffmpegmac.net 获取了ffmpeg二进制文件,我尝试运行可执行文件在Terminal中,它告诉该命令没有找到?现在我可以运行的唯一方法是使用命令:open ffmpeg
,但是这样终端在另一个窗口中打开,这不是我期待的。
有没有办法直接在终端中调用ffmpeg(就像在Windows cmd中运行一样),或者我没有任何东西?
Mac OS X(和Unix)与Windows不同。调用打开ffmpeg
不能保证在目录中打开二进制文件,它保证在您的PATH变量中找到二进制文件(do echo $ PATH
看到)。尝试打开./ffmpeg
。
您可能实际上最适合使用 Homebrew ,这将使您系统地访问它。
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 ?
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.
这篇关于在终端MacOS上运行ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!