It downloads to the current terminal directory, so use "cd path/to/directory/here" to download to the new directory. You can also type cd then space then drag your folder into terminal and it will type in the path for you.
Or you can specify -o "~/Movies/%(title)s-%(id)s.%(ext)s" to download to Movies.
You only need ffmpeg but it needs to be in the same directory as youtube-dl. You can also specify it every time (using --ffmpeg-location path/to/ffmpeg) or "install" it (basically let terminal know about it). If you have homebrew installed, then "brew install ffmpeg" should take care of everything. Otherwise you need to add it to a specific directory. Running "echo $PATH" shows which directories are already checked for programs. You can also make a new folder for yourself, but that involves updating your PATH variable and is somewhat involved. You might need to close and restart terminal to apply the PATH changes.
You can also create a config file to handle all the extra options: From the readme:
You can configure youtube-dl by placing any supported command line option to a configuration file. On Linux and OS X, the system wide configuration file is located at /etc/youtube-dl.conf and the user wide configuration file at ~/.config/youtube-dl/config.
So I recommend putting ffmpeg in the same directory or if not adding it to the config file. The file should have one command per line.
Code:
-o "~/Movies/%(title)s-%(id)s.%(ext)s"
--ffmpeg-location path/to/ffmpeg
More options for downloading:
https://github.com/rg3/youtube-dl/blob/master/README.md
For bonus points, you can make a terminal shortcut (an alias, requires editing bash_profile) to something like yget (or anything really). So then the new command would be:
Code:
yget https://www.youtube.com/watch?v=EEEEEEEE
This is really only for style points (and learning how terminal works). If you use terminal often, then it's nice to have shortcuts to frequent commands.
edit: apparently it tried to embed YouTube video: EEEEEEEE and failed. Thankfully it wasn't something bad.