问题
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