youtube-dl

video
youtube

ffmpeg

https://www.nellump.net/downloading-videos-with-youtube-dl.html - done reading
http://askubuntu.com/questions/486297/how-to-select-video-quality-from-youtube-dl - 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:
youtube-dl 
  -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 https://www.youtube.com/playlist?list=PL71D5FDBC8F7CA3B8

// 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