Useful commands for people who are using youtube-dl tool.

To find all supported video formats and resolutions:

youtube-dl -F url

To download specific format:

youtube-dl -f[format code] url

To download entire playlist with title (and video index):

youtube-dl -o “%(playlist_index)s-%(title)s.%(ext)s” [palylist-url]

To download playlist in reverse order with title (and video index):

youtube-dl -o “%(playlist_index)s-%(title)s.%(ext)s” — playlist-reverse [playlist url]

To download only mp3:

youtube-dl — extract-audio — audio-format mp3 <video_url>
Like what you read? Give Nayab Basha Sayed a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.