- List Formats:
youtube-dl --list-formats <URL>
- Download video with english subtitles, and embed them, using best formats available
youtube-dl --no-playlist --format best --sub-lang en --sub-format best --write-sub --embed-subs <URL>
or
youtube-dl --write-sub --sub-lang en --embed-subs --format 'best[ext=mp4]' --output '%(title)s.%(ext)s' <URL>
- Download video preferring mp4 and m4a, if not available prefer mp4 and choose the best format if anything else is not available
youtube-dl --format 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' <URL>