Skip to content

Instantly share code, notes, and snippets.

@tomshen
Created May 25, 2017 13:00
Show Gist options
  • Save tomshen/d944d2e8962552c7fccd8296172da70b to your computer and use it in GitHub Desktop.
Save tomshen/d944d2e8962552c7fccd8296172da70b to your computer and use it in GitHub Desktop.
How to Download a YouTube Video in MP4 with Subtitles

How to Download a YouTube Video in MP4 with Subtitles

Install youtube-dl:

brew install youtube-dl
pip install youtube-dl

and run the following:

youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' --write-sub --embed-subs --embed-thumbnail 'https://www.youtube.com/watch?v=...'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment