在终端MacOS上运行ffmpeg [英] Run ffmpeg on Terminal MacOS

查看:705
本文介绍了在终端MacOS上运行ffmpeg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆