Download youtube-dl and ffmpeg
brew install youtube-dl
brew install ffmpeg
Re-direct to your video directory
cd your_video_dir
Download video
youtube-dl https://www.youtube.com/watch?v=???
or
youtube-dl https://www.youtube.com/watch?v=??? -f mp4
Insert subtitle
get subtitle
youtube-dl https://www.youtube.com/watch?v=Qkf4farak1k --list-subs
download
youtube-dl https://www.youtube.com/watch?v=??? --write-sub --embed-sub --sub-lang zh-CN -f mp4
Others
Check website
youtube-dl \--list-extractors
Update
youtube-dl -U
Help
youtube-dl -h