Skip to content

Instantly share code, notes, and snippets.

@SeeringPhil
Created May 17, 2017 05:26
Show Gist options
  • Save SeeringPhil/4d8b636874d5f0fe7e8cd9d2daa9fdd3 to your computer and use it in GitHub Desktop.
Save SeeringPhil/4d8b636874d5f0fe7e8cd9d2daa9fdd3 to your computer and use it in GitHub Desktop.
List of useful youtube-dl commands
.\youtube-dl.exe --extract-audio --audio-format mp3 --batch-file .\fileContainingURLsHere.txt --output "%(autonumber)s.%(title)s.%(ext)s"
Will output all the videos from the urls provided in the file, in the order of appearance. That order will reflect in fileexplorer because
of the "%(autonumber)s used here, which will prepend 0001, 0002, ... to each video, thus allowing one to download in a precise order
.\youtube-dl.exe -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' --batch-file .\Video.txt --output "%(autonumber)s.%(title)s.%(ext)s
Downloads the videos specified in the file, numbered, with best quality of video and best audio merged into an mp4 file.
(For these ^ to work properly, ffmpeg has to be in the Path variable in windows. (ffmpeg or libav simply has to be installed on linux)
youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 <Video-URL>
^ That command can also be used with --batch-file or -a to specify use of a list of urls stored to download all of them at best quality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment