Skip to content

Instantly share code, notes, and snippets.

@jult
Last active January 21, 2023 05:42
Show Gist options
  • Save jult/8919d7cb2b1497e9221a7ef1c45fab07 to your computer and use it in GitHub Desktop.
Save jult/8919d7cb2b1497e9221a7ef1c45fab07 to your computer and use it in GitHub Desktop.
[ youtube-dl ] My most succesful config for all-round best codecs and quality
--no-mtime
--no-call-home
# --ignore-errors
-f "bestvideo[height>=1080]+251/bestvideo[height>=1080]+bestaudio/bestvideo[height>=720]+251/bestvideo[height>=720]+bestaudio/137+bestaudio/136+bestaudio/bestvideo+bestaudio"
# Note that I output to an MKV container, despite the fact that shitty devices will not play some files
# or still don't support Opus, it *is* the highest quality available: http://opus-codec.org/comparison/
--merge-output-format mkv
# If you need Mac compatible MP4 uncomment the following two lines instead of the ones above. It's usually a step under max quality, but this yields true mp4 files:
# -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best"
# --merge-output-format mp4
# Save all videos under j:\arch\ with a useful naming scheme (the upload date is in there).
-o 'j:\arch\%(title)s_%(upload_date)s.%(ext)s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment