To install youtube-dl
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
# Do not copy the mtime
# Use this proxy
# Save all videos under Movies directory in your home directory