Skip to content

Instantly share code, notes, and snippets.

@AzimsTech
Last active September 14, 2019 06:17
Show Gist options
  • Select an option

  • Save AzimsTech/fcfcd35326c54c7f516e7b1ca1dbc370 to your computer and use it in GitHub Desktop.

Select an option

Save AzimsTech/fcfcd35326c54c7f516e7b1ca1dbc370 to your computer and use it in GitHub Desktop.
My youtube-dl config
# Ignore any errors that occur while downloading. This ensures things keep moving along as intended.
-i
# These will embed metadata into the video once it's done downloading.
--add-metadata --all-subs --embed-subs --embed-thumbnail
# This keeps track of all the videos you have downloaded so they can be skipped over the next time it's ran or the next time it finds that video.
--download-archive "archive.log"
# Download 480p (av1/vp9) video + opus audio from youtube
-f '(bestvideo[vcodec^=av01][height<=480]/bestvideo[vcodec=vp9][height<=480])+(bestaudio[acodec=opus]/bestaudio)'
# Merge video into mkv container
--merge-output-format mkv
# Save all videos under specified directory
-o "D:\Youtube-dl\%(upload_date)s_%(uploader)s_%(title)s.%(ext)s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment