Skip to content

Instantly share code, notes, and snippets.

@Touexe
Last active January 11, 2023 13:44
Show Gist options
  • Save Touexe/172bfaaba47dc95a320bd1f0110c0eaf to your computer and use it in GitHub Desktop.
Save Touexe/172bfaaba47dc95a320bd1f0110c0eaf to your computer and use it in GitHub Desktop.
youtube-dl and yt-dlp best commands

Youtube-dl

youtube-dl -f best --ignore-errors --no-mtime --embed-thumbnail -o %(title)s.%(ext)s --merge-output-format mp4 --external-downloader aria2c --external-downloader-args "-c -j 16 -x 16 -s 16 -k 2M" URL

Yt-dlp

yt-dlp -f best -c --ignore-errors --no-mtime --embed-subs --embed-thumbnail -o %(title)s.%(ext)s --add-metadata --merge-output-format mp4 --downloader aria2c --downloader-args "-c -j 16 -x 16 -s 16 -k 2M" URL

Yt-dlp 1080 resolution video avc codec with audio mp4a codec

yt-dlp -f bestvideo+bestaudio -S "res:1080,vcodec:avc1,acodec:mp4a" -c --ignore-errors --no-mtime --embed-subs --embed-thumbnail -o %(title)s.%(ext)s --add-metadata --merge-output-format mkv --downloader aria2c --downloader-args "-c -j 16 -x 16 -s 16 -k 2M" URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment