~/.config/youtube-dl/config.yt-dlp:
--restrict-filenames --output '%(title)s.%(ext)s' --ignore-errors --embed-subs --all-subs --format 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' --embed-thumbnail --audio-quality 0 --add-metadata --xattrs --xattr-set-filesize --prefer-free-formats --geo-bypass --no-mark-watched --console-title --no-warnings --downloader aria2c --downloader-args '-j 16 -s 16 -x 16 -k 1M'
And my ~/.zshrc alias:
alias ytdl="yt-dlp --config-location ~/.config/youtube-dl/config.yt-dlp"
~/.config/youtube-dl/config.yt-dlp:
Only the last 2 lines are pertinent here but I am including my entire config because it serves me very well.And my ~/.zshrc alias: