Installing ffmpeg in mac os "command not found"
When you ran the first command, you pressed "any other key" than RETURN, and so you never actually installed homebrew.

Re-run the first command and make sure to hit the return (enter) key when asked.