Skip to content

Instantly share code, notes, and snippets.

@MagicalDrizzle
Created August 22, 2024 08:15
Show Gist options
  • Save MagicalDrizzle/189ec59840d3b9111f4318a7f362824d to your computer and use it in GitHub Desktop.
Save MagicalDrizzle/189ec59840d3b9111f4318a7f362824d to your computer and use it in GitHub Desktop.
Personal yt-dlp config
-i
-o "%(uploader)s (%(uploader_id)s)/%(upload_date)s - %(title)s - (%(duration)ss) [%(resolution)s] [%(id)s] [%(vcodec)s].%(ext)s"
# -o "%(upload_date)s - %(title)s - (%(duration)ss) [%(resolution)s] [%(id)s].%(ext)s"
# Uniform Format
# bv: bestvideo, ba: bestaudio, b: best (both)
-f "(((bv[height=?1080]/bv[height<=?1080])[vcodec^=av01]/(bv[height=?1080]/bv[height<=?1080]))+ba / (b[height=?1080]/b[height<=?1080]))[format_id!$=-drc]"
# [vcodec^=vp09]
# --prefer-ffmpeg
--ffmpeg-location "C:\Scoop\apps\ffmpeg-shared-nightly\current\bin"
--merge-output-format webm/mp4
--prefer-free-formats
# For non-YT
# --merge-output-format webm/mp4/mkv
# Get All Subs to SRT
--write-sub
--all-subs
--convert-subs srt
# Get metadata
--add-metadata
--write-description
--write-thumbnail
# Debug
# -v
# aria2c
#--downloader aria2c
#--downloader-args aria2c:"--conf-path=aria2.conf"
# User Agent
--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment