Skip to content

Instantly share code, notes, and snippets.

@elliotclowes
Created July 18, 2024 13:44
Show Gist options
  • Save elliotclowes/54433a6e468728f951599485154ed5ad to your computer and use it in GitHub Desktop.
Save elliotclowes/54433a6e468728f951599485154ed5ad to your computer and use it in GitHub Desktop.
youtube-dl \
--format "(bestvideo[vcodec^=av01][height=1080][fps>30]/\
bestvideo[vcodec=vp9.2][height=1080][fps>30]/\
bestvideo[vcodec=vp9][height=1080][fps>30]/\
bestvideo[vcodec^=av01][height=1080]/\
bestvideo[vcodec=vp9.2][height=1080]/\
bestvideo[vcodec=vp9][height=1080]/\
bestvideo[height=1080]/\
bestvideo[vcodec^=av01][height>=720][fps>30]/\
bestvideo[vcodec=vp9.2][height>=720][fps>30]/\
bestvideo[vcodec=vp9][height>=720][fps>30]/\
bestvideo[vcodec^=av01][height>=720]/\
bestvideo[vcodec=vp9.2][height>=720]/\
bestvideo[vcodec=vp9][height>=720]/\
bestvideo[height>=720]/\
bestvideo)+(bestaudio[acodec=opus]/bestaudio)/best" \
--verbose \
--force-ipv4 \
--ignore-errors \
--no-continue \
--no-overwrites \
--download-archive Sync/Files/youtube-dl/downloaded.txt \
--add-metadata \
--write-description \
--write-annotations \
--write-thumbnail \
--all-subs \
--sub-format "srt" \
--embed-subs \
--output "/Volumes/Media/Files/Internet Videos/SORT/%(title)s/%(title)s - %(uploader)s - %(upload_date)s - %(id)s.%(ext)s" \
--merge-output-format "mkv" \
%clipboard%key:enter%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment