Skip to content

Instantly share code, notes, and snippets.

@ali2077
Last active January 28, 2019 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ali2077/3b7446db83c56e5ca8df5413690250bb to your computer and use it in GitHub Desktop.
Save ali2077/3b7446db83c56e5ca8df5413690250bb to your computer and use it in GitHub Desktop.
Youtube-dl_best_usage: Productivity Tools
$youtube-dl .......
--prefer-ffmpeg
--skip-download
--embed-thumbnail
--skip-download Do not download the video
Download only the videos uploaded in the last 6 months
$youtube-dl --dateafter now-6months --add-metadata (https://soundcloud. youtube. etc.)
Download best audio from a video/audio file, convert it to mp3, download and add metadata and thumbnail of the Original video to the new mp3 file.
$youtube-dl -f bestaudio --extract-audio --audio-format mp3 --prefer-ffmpeg --add-metadata --embed-thumbnail -i (URL)
Download all playlists of YouTube channel/user keeping each playlist in separate directory:
$youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists
Download all playlists and extract audio in mp3 format, all in one command.
$youtube-dl -f bestaudio --extract-audio --audio-format mp3 --add-metadata --embed-thumbnail -i -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment