4

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 ?

Futuregeek
  • 1,900
  • 3
  • 26
  • 51
user2139175
  • 61
  • 1
  • 1
  • 5
  • "command not found" tells that you should type the full path of the executable, or you should add environment variable on shell. Try type path/to/ffmpeg to execute. – Chen-Hai Teng Mar 06 '13 at 09:35
  • No, i'm at the path of binary, I can run "open ffmpeg", but not only "ffmpeg", it tells "-bash: ffmpeg: command not found" – user2139175 Mar 06 '13 at 09:46
  • 1
    I just download it to my Downloads folder, and execute it successfully. Try "cd /Users/yourAccount/Downloads/", then "./ffmpeg" – Chen-Hai Teng Mar 06 '13 at 10:02
  • Thanks Chen-Hai, I dont know I must type ./ffmpeg instead of ffmpeg until now. – user2139175 Mar 06 '13 at 10:52

1 Answers1

11

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.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Nicholas Smith
  • 11,642
  • 6
  • 37
  • 55
  • 3
    `open ./ffmpeg` doesn't make sense for a shell command as OS X Launch Services will try opening the binary in another Terminal window, stopping after that. Just do `./ffmpeg` – slhck Mar 06 '13 at 10:17
  • Good point, depends on what he wants to do with it so I left the open in for if he did want it opening separate from the Terminal he called it from. – Nicholas Smith Mar 06 '13 at 10:22
  • Thanks Nicholas, ./ffmpeg is what I'm looking for, you saved me the day for these MacOS stuffs – user2139175 Mar 06 '13 at 10:38