Skip to content

Instantly share code, notes, and snippets.

@mplinuxgeek
Created August 27, 2018 07:36
Show Gist options
  • Save mplinuxgeek/08730c9c0523bcbd3ec2fdd033566df8 to your computer and use it in GitHub Desktop.
Save mplinuxgeek/08730c9c0523bcbd3ec2fdd033566df8 to your computer and use it in GitHub Desktop.
youtube-dl aliases
alias youtube-dl-best='youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio" '
alias youtube-dl-480='youtube-dl -f "bestvideo[height<=480][ext=mp4]+bestaudio[ext=m4a]" '
alias youtube-dl-720='youtube-dl -f "bestvideo[height<=720][ext=mp4]+bestaudio[ext=m4a]" '
alias youtube-dl-4k='echo -e "This will transcode the video from webm to h264 which could take a long time\n\n"; youtube-dl -f "bestvideo[ext=webm]+bestaudio[ext=m4a]" --recode-video mp4 '
alias youtube-dl-mp3='youtube-dl --extract-audio -f bestaudio[ext=mp3] --no-playlist '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment