commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
in place of "output-filename.mp4" put the name you want the file to be named with.
in place of "youtube-video-link" put the link of the Video page eg: http://www.youtube.com/watch?v=AclA-7YntvE
in place of "format-number" put the number of the file format you would like
How to get the "format-number"
to get format number type in below command before running this command
youtube-dl -F "youtube-video-link"
and it will list all the available formats with the format number, like to download in 360p mp4 use the number "18"
To automatically let it fetch the best quality available just remove the -f "format-number" and you are good to go.
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.