ffmpeg - done reading - done reading

// display a list of available formats (aspect ratios)
youtube-dl -F VIDEO_URL
youtube-dl --list-formats VIDEO_URL

// download the file using the format code 22 
// (see the output of the above command):
youtube-dl -f 22 VIDEO_URL

// similar to the above command 
// (show how we can specify multiple format codes):
youtube-dl -f 137+141 VIDEO_URL

// automatically download the best audio and video tracks available:
youtube-dl -f bestvideo+bestaudio VIDEO_URL

// If you encounter an error during the muxing process, try the following:
  -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' 
  --merge-output-format mp4 VIDEO_URL

-f '(mp4)[width=640][height=360]'

// Download Entire YouTube Channel:
youtube-dl -citw ytuser:<USER>

// Download all YouTube videos on some playlist:
youtube-dl -citw <PLAYLIST URL>
youtube-dl -citw

// Specify Alternative Formats:
youtube-dl --format 36/17 VIDEO_URL

// Specify Multiple Formats:
youtube-dl --format best,17 VIDEO_URL
youtube-dl --format 160+140 VIDEO_URL

// To download the videos with actual sub-titles uploaded by the owner:
youtube-dl --write-srt --sub-lang en VIDEO_URL

youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' 
  --merge-output-format mp4  VIDEO_URL

youtube-dl -i -a ourlist.txt

youtube-dl -i -a youtube-in.txt --restrict-filenames --format mp4 
  --no-overwrites --continue

youtube-dl -i -a batchFileName --restrict-filenames --continue --format mp4 
  --no-overwrites --no-continue --extract-audio --audio-format mp3

--recode-video FORMAT
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License