Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

WinterWolf90

macrumors 6502a
Original poster
Jan 18, 2014
678
477
are there any good plug ins or video downloaders (youtube) for safari?

I used to use keepvid but want something embedded if possible.
 
If you get youtube-dl, you can download using Terminal:
Code:
youtube-dl "https://www.youtube.com/watch?v=EEEEEEEE" -f mp4
where the EEEEEEEE is the video code after the https://www.youtube.com/watch?v= part. It automatically gets the highest quality.
 
I don't know if the OP has got it working, but in my case I visited the Youtube-dl page where it shows how to download and install it directly from the OSX Terminal window. It's working though I've received this error message:

Warning: malformed AAC bitstream detected. Install ffmpeg or avconv to fix this automatically.

So I headed over to the FFMPEG download page which in turn directed me the FFMPEG Mac page where I downloaded the (OSX 10.7-10.12) binaries from. After decompressing the ZIP file I'm left with the following 3 files which I don't know where to place or how to use/set up with youtube-dl:

ffmpeg
ffprobe
ffserver

Another thing: how do define where on my Mac hard drive the video download should go?

UPDATE: Never mind the question about installing FFMPEG. It was just a matter of copying over those 3 files to /usr/local/bin/ on the Mac hard drive, issue the Terminal command again and this time the file worked fine and I didn't get that error message.

I still haven't figured out how to define the download path though
 
Last edited:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.