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

cd /c/Khai/doNotDelete/youtube-videos
./youtube-dl.exe -i -a youtube-in.txt  --format mp4

youtube-dl -i -a ourlist.txt

youtube-dl -i -a youtube-in.txt --continue --format mp4  --no-overwrites 
yt-dlp -i -a youtube-in.txt --continue --format mp4  --no-overwrites
yt-dlp -i  --continue --format mp4  --no-overwrites -o "%(upload_date)s-%(title)s.%(ext)s" --download-archive youtube-done.txt -i PLwVmIngReyslsCV5OYCARq0EIHpuXnGNp 

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

youtube-dl -i -a youtube-in.txt --continue  --no-overwrite --write-sub --write-auto-sub --sub-format ttml --sub-lang en --skip-download

--recode-video FORMAT

// 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
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License