Run ffmpeg on Terminal MacOS

user2139175 picture user2139175 · Mar 6, 2013 · Viewed 30.7k times · Source

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 ?

Answer

Nicholas Smith picture Nicholas Smith · Mar 6, 2013

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.