Youtube-dl
Installation
To install youtube-dl
Basic usage
you can start simple by using: (which will download the best avaliable format)
List available resolutions and formats
Tips and tricks
Use -q flag to enter quiet mode and hide all download details.
if your download got interrupted or failed you can use -c flag to resume downloading instead of starting over. Remeber to check if you're still in the same directory.
In case you want to pipe a youtube video (for example) to another streaming tool like ffmpeg, you can use -g or --get-url flag to return a direct link
When you're downloading seperate video/audio and there's a need to merge them you can use --merge-output-format <FORMAT>
Use -o <TEMPLATE> to make filenames follow a certain pattern, like:
Finally, you can save your prefered commands in ~/.config/youtube-dl/config to always use them as preferences, like so:
# Lines starting with # are comments
# Always extract audio
-x
# Do not copy the mtime
--no-mtime
# Use this proxy
--proxy 127.0.0.1:3128
# Save all videos under Movies directory in your home directory
-o ~/Movies/%(title)s.%(ext)s